| Previous | 15994 Revisions | Next |
| r3116 Friday 29th August, 2008 at 10:52:47 UTC by Nathan Woods |
|---|
| Updated to MAME 0.127u1 core |
| [docs] | messnew.txt |
| [src/emu] | audit.c cpuexec.h cpuintrf.c devintrf.c devintrf.h emu.mak inptport.c mconfig.h rendersw.c romload.c tilemap.c tilemap.h ui.c ui.h uimenu.c uimenu.h video.c |
| [src/emu/cpu] | cpu.mak |
| [src/emu/cpu/alph8201] | 8201dasm.c alph8201.c |
| [src/emu/cpu/cp1610] | cp1610.c |
| [src/emu/cpu/m6502] | ill02.h |
| [src/emu/cpu/m68000] | m68k.h m68kcpu.c m68kcpu.h m68kmame.c |
| [src/emu/cpu/mcs48] | mcs48.c* mcs48.h* mcs48dsm.c* |
| [src/emu/cpu/sh4] | sh4.c sh4comn.c sh4comn.h |
| [src/emu/cpu/tms32025] | tms32025.c |
| [src/emu/debug] | debugcpu.c |
| [src/emu/drivers] | xtal.h |
| [src/emu/machine] | at28c16.c at28c16.h generic.c laserdsc.c latch8.c* latch8.h* roc10937.c |
| [src/emu/sound] | disc_dev.c disc_flt.c disc_inp.c disc_mth.c disc_wav.c discrete.c discrete.h |
| [src/ldplayer] | ldpdriv.c ldplayer.c ldplayer.mak |
| [src/lib/util] | aviio.c |
| [src/mame] | mame.mak mamedriv.c |
| [src/mame/audio] | asteroid.c carnival.c circus.c cyberbal.c dkong.c firetrk.c harddriv.c mario.c mw8080bw.c n8080.c namcoc7x.c namcoc7x.h phoenix.c poolshrk.c segag80r.c segasnd.c snes.c spacefb.c spiders.c sprint2.c sprint4.c starshp1.c* tank8.c triplhnt.c vicdual.c |
| [src/mame/drivers] | 8080bw.c adp.c arcadecl.c argus.c artmagic.c asterix.c asteroid.c asuka.c atarig1.c atarig42.c atarigt.c atarigx2.c atarisy1.c badlands.c balsente.c batman.c bfm_sc2.c bking.c blstroid.c cave.c centiped.c champbas.c chinagat.c cischeat.c couple.c cps1.c cps2.c cps3.c cyberbal.c dacholer.c dcheese.c ddragon.c dec0.c discoboy.c djmain.c dkong.c docastle.c drw80pkr.c eprom.c equites.c finalizr.c foodf.c funkyjet.c galaxold.c gatron.c gauntlet.c genesis.c gijoe.c gyruss.c hal21.c hikaru.c hyhoo.c igs_blit.c igs_m68.c itech32.c itech8.c jpmimpct.c junofrst.c klax.c m63.c m72.c magic10.c marvins.c mayumi.c mcr.c megadriv.c megaplay.c megasys1.c megazone.c mhavoc.c mlanding.c model2.c moo.c mpu4.c mpu4drvr.c ms32.c multigam.c mystwarr.c namcofl.c namconb1.c namcond1.c namcos11.c namcos12.c namcos2.c namcos21.c namcos23.c namcos86.c nbmj8688.c nbmj8891.c nbmj8991.c nemesis.c neodrvr.c neogeo.c news.c nitedrvr.c niyanpai.c nmg5.c nmk16.c nova2001.c nycaptor.c offtwall.c ohmygod.c ojankohs.c olibochu.c omegrace.c onetwo.c opwolf.c othldrby.c overdriv.c pandoras.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 pirates.c pitnrun.c pkscram.c pktgaldx.c playch10.c playmark.c pokechmp.c polepos.c policetr.c portrait.c powerbal.c powerins.c ppmast93.c psikyo.c psikyo4.c psikyosh.c pturn.c puckpkmn.c punchout.c pushman.c qdrmfgp.c quasar.c quizdna.c quizo.c quizpani.c r2dtank.c rabbit.c raiden.c raiden2.c rainbow.c rallyx.c rampart.c rastan.c rbmk.c redalert.c relief.c retofinv.c rockrage.c rocnrope.c rohga.c rollerg.c rollrace.c rotaryf.c rpunch.c rungun.c safarir.c sandscrp.c sangho.c sauro.c sbasketb.c sbowling.c sbugger.c scobra.c scotrsht.c scramble.c scregg.c segae.c segag80v.c segahang.c segaorun.c segas16a.c segas16b.c segas24.c segaxbd.c segaybd.c seibuspi.c senjyo.c sg1000a.c shangha3.c shangkid.c shaolins.c shootout.c shougi.c shuuz.c sidepckt.c silkroad.c simpsons.c skullxbo.c skyarmy.c skydiver.c skylncr.c sliver.c snk.c snowbros.c solomon.c sonson.c spacefb.c spbactn.c spcforce.c spdodgeb.c speedbal.c speedspn.c speglsht.c splash.c sprcros2.c sprint4.c spy.c srmp5.c srumbler.c sshangha.c ssingles.c sspeedr.c sstrangr.c ssv.c stactics.c stadhero.c starcrus.c starshp1.c statriv2.c stlforce.c strnskil.c stv.c suna16.c supbtime.c supdrapo.c superchs.c supertnk.c suprgolf.c suprloco.c suprnova.c suprridr.c suprslam.c surpratk.c system1.c system16.c tagteam.c tail2nos.c taito_l.c taito_z.c taitojc.c taitosj.c tank8.c tankbust.c taotaido.c targeth.c tattack.c taxidrvr.c tbowl.c tecmo.c tecmo16.c tecmosys.c tehkanwc.c terracre.c tetrisp2.c thayers.c thepit.c thoop2.c thunderj.c thunderx.c tiamc1.c tigeroad.c timelimt.c tmaster.c tmnt.c tnzs.c toaplan2.c toki.c toobin.c topshoot.c topspeed.c tp84.c trackfld.c trucocl.c trvmadns.c trvquest.c tsamurai.c ttchamp.c tubep.c tumbleb.c tumblep.c twincobr.c ultraman.c ultrsprt.c undrfire.c unico.c usgames.c vamphalf.c vaportra.c vastar.c vball.c vegaeo.c vendetta.c vertigo.c vicdual.c victory.c vigilant.c vindictr.c vulgus.c xybots.c zn.c zr107.c |
| [src/mame/etc] | jrcrypt.c |
| [src/mame/includes] | asteroid.h balsente.h dkong.h galaxold.h iremipt.h megasys1.h mhavoc.h nb1413m3.h nitedrvr.h playch10.h snk.h starshp1.h |
| [src/mame/layout] | poker41.lay* pulltabs.lay* |
| [src/mame/machine] | amiga.c asteroid.c balsente.c bfm_bd1.c dc.c dec0.c decoprot.c fd1089.c fd1089.h galaxold.c gaplus.c harddriv.c mcr.c mhavoc.c nb1413m3.c nitedrvr.c playch10.c scramble.c steppers.c steppers.h stfight.c taitosj.c |
| [src/mame/video] | avgdvg.h cischeat.c cps1.c dkong.c fromance.c gatron.c* hd63484.c konamiic.c marvins.c namconb1.c psikyo.c psx.c quizdna.c rollrace.c snk.c snk68.c tetrisp2.c ygv608.c |
| [src/mess] | mess.mak |
| [src/osd/windows] | drawd3d.c windows.mak |
| [src/tools] | chdman.c |
| r3115 | r3116 | |
|---|---|---|
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "cpu/ | |
| 8 | #include "cpu/mcs48 | |
| 9 | 9 | #include "sound/dac.h" |
| 10 | 10 | #include "sound/samples.h" |
| 11 | 11 | #include "includes/spacefb.h" |
| r3115 | r3116 | |
|---|---|---|
| 603 | 603 | #ifdef DBG_INTRP |
| 604 | 604 | fprintf( |
| 605 | 605 | stderr, |
| 606 | "V%d: mixfrac=%d: [%d]*%d + [%d]*%d + [%d]*%d + [%d]*%d "\ | |
| 607 | "= %d\n", | |
| 606 | "V%d: mixfrac=%d: [%d]*%d + [%d]*%d + [%d]*%d + [%d]*%d = %d\n", | |
| 608 | 607 | v, |
| 609 | 608 | vl, |
| 610 | 609 | G1[ vl ], |
| r3115 | r3116 | |
|---|---|---|
| 88 | 88 | |
| 89 | 89 | static const discrete_555_desc spiders_super_web_555a = |
| 90 | 90 | { |
| 91 | DISC_555_OUT_ | |
| 91 | DISC_555_OUT_ | |
| 92 | 92 | 5, // B+ voltage of 555 |
| 93 | 93 | DEFAULT_555_VALUES |
| 94 | 94 | }; |
| r3115 | r3116 | |
|---|---|---|
| 238 | 238 | { |
| 239 | 239 | DISC_555_OUT_ENERGY, |
| 240 | 240 | 5, // B+ voltage of 555 |
| 241 | 4.0, DEFAULT_555_THRESHOLD, DEFAULT_555_TRIGGER | |
| 241 | DEFAULT_555_CHARGE, | |
| 242 | 4.0 // loaded output voltage | |
| 242 | 243 | }; |
| 243 | 244 | |
| 244 | 245 | static const discrete_comp_adder_table phoenix_effect2_cap_sel = |
| r3115 | r3116 | |
| 335 | 336 | /* - level 5 spaceship */ |
| 336 | 337 | /************************************************/ |
| 337 | 338 | /* R22 has been confirmed on real boards as 470 ohm, not 47k in schematics */ |
| 338 | DISCRETE_RCDISC4(NODE_20, 1, PHOENIX_EFFECT_1_FREQ, 470, RES_K(100), RES_K(33), CAP_U(6.8), 12, 1) // R22, R23, R24, C7 | |
| 339 | DISCRETE_555_ASTABLE_CV(NODE_21, 1, RES_K(47), RES_K(47), CAP_U(.001), NODE_20, &phoenix_effect1_555) // R25, R26, C8 | |
| 339 | DISCRETE_RCDISC4(NODE_20, /* IC52 output pin 7 */ | |
| 340 | 1, /* ENAB */ | |
| 341 | PHOENIX_EFFECT_1_FREQ, /* Input to O.C. inverter */ | |
| 342 | 470, /* R22 */ | |
| 343 | RES_K(100), /* R23 */ | |
| 344 | RES_K(33), /* R24 */ | |
| 345 | CAP_U(6.8), /* C7 */ | |
| 346 | 12, /* 12V supply */ | |
| 347 | 1) /* Circuit type 1 */ | |
| 348 | DISCRETE_555_ASTABLE_CV(NODE_21, /* IC20 pin 6 */ | |
| 349 | 1, /* ENAB */ | |
| 350 | RES_K(47), /* R25 */ | |
| 351 | RES_K(47), /* R26 */ | |
| 352 | CAP_U(.001), /* C8 */ | |
| 353 | NODE_20, /* IC48 pin 5 input */ | |
| 354 | &phoenix_effect1_555) | |
| 340 | 355 | /* LS163 counts rising edge, but the LS14 inverts that */ |
| 341 | DISCRETE_NOTE(NODE_22, 1, NODE_21, PHOENIX_EFFECT_1_DATA, 0x0f, 1, DISC_CLK_BY_COUNT | DISC_OUT_IS_ENERGY) | |
| 356 | DISCRETE_NOTE(NODE_22, /* IC21 pin 5 output */ | |
| 357 | 1, /* ENAB */ | |
| 358 | NODE_21, /* IC13 pin 2 clock input */ | |
| 359 | PHOENIX_EFFECT_1_DATA, /* Pre-load data */ | |
| 360 | 0x0f, /* Maximum count of first counter 0-15 (IC13) */ | |
| 361 | 1, /* Maximum count of second counter 0-1 (IC21) */ | |
| 362 | DISC_CLK_BY_COUNT | DISC_OUT_IS_ENERGY) /* Module is clocked externally and we anti-alias output */ | |
| 342 | 363 | /* When FILT is enabled, the effect is filtered. |
| 343 | 364 | * While the R20 does decrease the amplitude a little, its main purpose |
| 344 | 365 | * is to discharge C5 when the filter is disabled. */ |
| 345 | DISCRETE_SWITCH(NODE_23, 1, PHOENIX_EFFECT_1_FILT, DEFAULT_TTL_V_LOGIC_1, DEFAULT_TTL_V_LOGIC_1 * RES_K(100) / (RES_K(10) + RES_K(100))) // R20, R19 | |
| 346 | DISCRETE_MULTIPLY(NODE_24, 1, NODE_22, NODE_23) | |
| 347 | DISCRETE_RCFILTER(NODE_25, 1, NODE_24, 1.0/(1.0/RES_K(10) + 1.0/RES_K(100)), CAP_U(.047)) // R19, R20, C5 | |
| 348 | DISCRETE_SWITCH(PHOENIX_EFFECT_1_SND, 1, PHOENIX_EFFECT_1_FILT, NODE_24, NODE_25) | |
| 366 | DISCRETE_SWITCH(NODE_23, | |
| 367 | 1, /* ENAB */ | |
| 368 | PHOENIX_EFFECT_1_FILT, | |
| 369 | DEFAULT_TTL_V_LOGIC_1, | |
| 370 | DEFAULT_TTL_V_LOGIC_1 * RES_K(100) / (RES_K(10) + RES_K(100))) /* R20, R19 */ | |
| 371 | DISCRETE_MULTIPLY(NODE_24, | |
| 372 | 1, /* ENAB */ | |
| 373 | NODE_22, | |
| 374 | NODE_23) | |
| 375 | DISCRETE_RCFILTER(NODE_25, | |
| 376 | 1, | |
| 377 | NODE_24, | |
| 378 | 1.0/(1.0/RES_K(10) + 1.0/RES_K(100)), /* R19, R20 */ | |
| 379 | CAP_U(.047)) /* C5 */ | |
| 380 | DISCRETE_SWITCH(PHOENIX_EFFECT_1_SND, | |
| 381 | 1, /* ENAB */ | |
| 382 | PHOENIX_EFFECT_1_FILT, | |
| 383 | NODE_24, /* non-filtered */ | |
| 384 | NODE_25) /* filtered */ | |
| 349 | 385 | |
| 350 | 386 | /************************************************/ |
| 351 | 387 | /* Effect 2 */ |
| 352 | 388 | /* - bird flying, bird/phoenix/spaceship hit */ |
| 353 | 389 | /* - phoenix wing hit */ |
| 354 | 390 | /************************************************/ |
| 355 | DISCRETE_COMP_ADDER(NODE_30, 1, PHOENIX_EFFECT_2_FREQ, &phoenix_effect2_cap_sel) | |
| 391 | DISCRETE_COMP_ADDER(NODE_30, /* total capacitance of selected capacitors */ | |
| 392 | 1, /* ENAB */ | |
| 393 | PHOENIX_EFFECT_2_FREQ, /* passed selection bits */ | |
| 394 | &phoenix_effect2_cap_sel) | |
| 356 | 395 | /* Part of the frequency select also effects the gain */ |
| 357 | DISCRETE_TRANSFORM2(NODE_31, 1, PHOENIX_EFFECT_2_FREQ, 2, "01&1/") // get bit 0x02 | |
| 358 | DISCRETE_SWITCH(NODE_32, 1, NODE_31, DEFAULT_TTL_V_LOGIC_1, DEFAULT_TTL_V_LOGIC_1/2) | |
| 359 | DISCRETE_555_ASTABLE(NODE_33, 1, RES_K(47), RES_K(100), NODE_30, &phoenix_effect2_555) // R40, R41 | |
| 396 | DISCRETE_TRANSFORM2(NODE_31, /* 0/1 state of PHOENIX_EFFECT_2_FREQ high bit */ | |
| 397 | 1, /* ENAB */ | |
| 398 | PHOENIX_EFFECT_2_FREQ, 2, "01&1/") // get bit 0x02 | |
| 399 | DISCRETE_SWITCH(NODE_32, /* voltage level */ | |
| 400 | 1, /* ENAB */ | |
| 401 | NODE_31, /* PHOENIX_EFFECT_2_FREQ high bit determines voltage level */ | |
| 402 | DEFAULT_TTL_V_LOGIC_1, | |
| 403 | DEFAULT_TTL_V_LOGIC_1 / 2) | |
| 404 | DISCRETE_555_ASTABLE(NODE_33, /* pin 3 output of IC44 */ | |
| 405 | 1, /* ENAB */ | |
| 406 | RES_K(47), /* R40 */ | |
| 407 | RES_K(100), /* R41 */ | |
| 408 | NODE_30, /* C16, C17, C18 combined */ | |
| 409 | &phoenix_effect2_555) | |
| 360 | 410 | /* C20 has been confirmed on real boards as 1uF, not 10uF in schematics */ |
| 361 | DISCRETE_555_ASTABLE(NODE_34, 1, RES_K(510), RES_K(510), CAP_U(1), &phoenix_effect2_555) // R23, R24, C20 | |
| 411 | DISCRETE_555_ASTABLE(NODE_34, /* pin 3 output of IC51 */ | |
| 412 | 1, /* ENAB */ | |
| 413 | RES_K(510), /* R23 */ | |
| 414 | RES_K(510), /* R24 */ | |
| 415 | CAP_U(1), /* C20 */ | |
| 416 | &phoenix_effect2_555) | |
| 362 | 417 | /* R45 & R46 have been confirmed on real boards as 5.1k, not 51k in schematics */ |
| 363 | 418 | /* We need to work backwards here and calculate the voltage at the junction of R42 & R46 */ |
| 364 | 419 | /* If you remove C22 from the real PCB, you can WAVELOG NODE_35 with a gain of 1000 and compare |
| 365 | 420 | * it against the junction of R42 & R46 on a real PCB. */ |
| 366 | DISCRETE_MIXER3(NODE_35, 1, NODE_33, NODE_34, 5, &phoenix_effect2_mixer1) | |
| 421 | DISCRETE_MIXER3(NODE_35, /* Voltage at junction of R42 & R46 with C22 removed */ | |
| 422 | 1, /* ENAB */ | |
| 423 | NODE_33, /* output from IC44 */ | |
| 424 | NODE_34, /* output from IC51 */ | |
| 425 | 5, /* B+ connected internally to pin 5 of 555 */ | |
| 426 | &phoenix_effect2_mixer1) | |
| 367 | 427 | /* Then calculate the voltage going to C22 */ |
| 368 | 428 | /* If you remove C22 from the real PCB, you can WAVELOG NODE_36 with a gain of 1000 and compare |
| 369 | 429 | * it against the junction of R45 & R46 on a real PCB. */ |
| 370 | DISCRETE_MIXER2(NODE_36, 1, NODE_34, NODE_35, &phoenix_effect2_mixer2) | |
| 430 | DISCRETE_MIXER2(NODE_36, /* Voltage at junction of R45 & R46 with C22 removed */ | |
| 431 | 1, /* ENAB */ | |
| 432 | NODE_34, /* pin 3 output of IC51 */ | |
| 433 | NODE_35, /* Voltage at junction of R42 & R46 with C22 removed */ | |
| 434 | &phoenix_effect2_mixer2) | |
| 371 | 435 | /* C22 charging is R45 in parallel with R46, R42 and the 555 CV internal resistance */ |
| 372 | DISCRETE_RCFILTER(NODE_37, 1, NODE_36, 1.0/ (1.0/RES_K(5.1) + (1.0/(RES_K(5.1) + 1.0/(1.0/RES_K(10) + 1.0/RES_K(5) + 1.0/RES_K(10)) ))), CAP_U(100)) // R45, R46, R42, internal 555 Rs, C22 | |
| 436 | DISCRETE_RCFILTER(NODE_37, | |
| 437 | 1, /* ENAB */ | |
| 438 | NODE_36, | |
| 439 | 1.0/ (1.0/RES_K(5.1) + (1.0/(RES_K(5.1) + 1.0/(1.0/RES_K(10) + 1.0/RES_K(5) + 1.0/RES_K(10)) ))), | |
| 440 | CAP_U(100)) /* R45, R46, R42, internal 555 Rs, C22 */ | |
| 373 | 441 | /* Now mix from C22 on */ |
| 374 | 442 | /* You can WAVELOG NODE_38 with a gain of 1000 and compare it against IC50 pin 5 on a real PCB. */ |
| 375 | DISCRETE_MIXER3(NODE_38, 1, NODE_33, NODE_37, 5, &phoenix_effect2_mixer3) | |
| 376 | DISCRETE_555_ASTABLE_CV(NODE_39, 1, RES_K(20), RES_K(20), CAP_U(0.001), NODE_38, &phoenix_effect1_555) // R47, R48, C23 | |
| 377 | DISCRETE_NOTE(NODE_40, 1, NODE_39, PHOENIX_EFFECT_2_DATA, 0x0f, 1, DISC_CLK_BY_COUNT | DISC_OUT_IS_ENERGY) | |
| 378 | DISCRETE_MULTIPLY(PHOENIX_EFFECT_2_SND, 1, NODE_40, NODE_32) | |
| 443 | DISCRETE_MIXER3(NODE_38, /* control voltage to pin 5 of IC50 */ | |
| 444 | 1, /* ENAB */ | |
| 445 | NODE_33, /* pin 3 output of IC44 */ | |
| 446 | NODE_37, /* voltage on C22 */ | |
| 447 | 5, /* IC50 internally connected to B+ */ | |
| 448 | &phoenix_effect2_mixer3) | |
| 449 | DISCRETE_555_ASTABLE_CV(NODE_39, /* IC20 pin 8 output */ | |
| 450 | 1, /* ENAB */ | |
| 451 | RES_K(20), /* R47 */ | |
| 452 | RES_K(20), /* R48 */ | |
| 453 | CAP_U(0.001), /* C23 */ | |
| 454 | NODE_38, /* IC50 pin 5 input */ | |
| 455 | &phoenix_effect1_555) | |
| 456 | DISCRETE_NOTE(NODE_40, /* IC21 pin 9 output */ | |
| 457 | 1, /* ENAB */ | |
| 458 | NODE_39, /* IC14 pin 2 clock input */ | |
| 459 | PHOENIX_EFFECT_2_DATA, /* Pre-load data */ | |
| 460 | 0x0f, /* Maximum count of first counter 0-15 (IC14) */ | |
| 461 | 1, /* Maximum count of second counter 0-1 (IC21) */ | |
| 462 | DISC_CLK_BY_COUNT | DISC_OUT_IS_ENERGY) | |
| 463 | DISCRETE_MULTIPLY(PHOENIX_EFFECT_2_SND, | |
| 464 | 1, /* ENAB */ | |
| 465 | NODE_40, /* IC21 pin 9 output */ | |
| 466 | NODE_32) /* voltage level selected by high bit of PHOENIX_EFFECT_2_FREQ */ | |
| 379 | 467 | |
| 380 | 468 | /************************************************/ |
| 381 | 469 | /* Combine all sound sources. */ |
| 382 | 470 | /************************************************/ |
| 383 | DISCRETE_MIXER4(NODE_90, 1, PHOENIX_EFFECT_1_SND, PHOENIX_EFFECT_2_SND, PHOENIX_EFFECT_3_SND, PHOENIX_EFFECT_4_SND,&phoenix_mixer) | |
| 471 | DISCRETE_MIXER4(NODE_90, | |
| 472 | 1, /* ENAB */ | |
| 473 | PHOENIX_EFFECT_1_SND, | |
| 474 | PHOENIX_EFFECT_2_SND, | |
| 475 | PHOENIX_EFFECT_3_SND, | |
| 476 | PHOENIX_EFFECT_4_SND, | |
| 477 | &phoenix_mixer) | |
| 384 | 478 | |
| 385 | 479 | DISCRETE_OUTPUT(NODE_90, 1) |
| 386 | 480 | DISCRETE_SOUND_END |
| r3115 | r3116 | |
| 389 | 483 | { |
| 390 | 484 | discrete_sound_w(machine, PHOENIX_EFFECT_2_DATA, data & 0x0f); |
| 391 | 485 | discrete_sound_w(machine, PHOENIX_EFFECT_2_FREQ, (data & 0x30) >> 4); |
| 392 | // discrete_sound_w(PHOENIX_EFFECT_3_EN , data & 0x40); | |
| 393 | // discrete_sound_w(PHOENIX_EFFECT_4_EN , data & 0x80); | |
| 394 | ||
| 486 | #if 0 | |
| 487 | /* future handling of noise sounds */ | |
| 488 | discrete_sound_w(PHOENIX_EFFECT_3_EN , data & 0x40); | |
| 489 | discrete_sound_w(PHOENIX_EFFECT_4_EN , data & 0x80); | |
| 490 | #endif | |
| 395 | 491 | stream_update(channel); |
| 396 | 492 | sound_latch_a = data; |
| 397 | 493 | } |
| r3115 | r3116 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "deprecat.h" |
| 9 | #include "cpu/ | |
| 9 | #include "cpu/mcs48 | |
| 10 | 10 | #include "sound/sn76477.h" |
| 11 | 11 | #include "sound/dac.h" |
| 12 | 12 | #include "includes/n8080.h" |
| r3115 | r3116 | |
| 523 | 523 | |
| 524 | 524 | |
| 525 | 525 | static ADDRESS_MAP_START( n8080_sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| 526 | AM_RANGE(I8039_t0, I8039_t0) AM_READ(n8080_8035_t0_r) | |
| 527 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(n8080_8035_t1_r) | |
| 528 | AM_RANGE(I8039_p1, I8039_p1) AM_READ(n8080_8035_p1_r) | |
| 526 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_READ(n8080_8035_t0_r) | |
| 527 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(n8080_8035_t1_r) | |
| 528 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READ(n8080_8035_p1_r) | |
| 529 | 529 | |
| 530 | AM_RANGE( | |
| 530 | AM_RANGE(MCS48 | |
| 531 | 531 | ADDRESS_MAP_END |
| 532 | 532 | |
| 533 | 533 | |
| 534 | 534 | static ADDRESS_MAP_START( helifire_sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| 535 | AM_RANGE(I8039_t0, I8039_t0) AM_READ(helifire_8035_t0_r) | |
| 536 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(helifire_8035_t1_r) | |
| 537 | AM_RANGE(I8039_p2, I8039_p2) AM_READ(helifire_8035_p2_r) | |
| 535 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_READ(helifire_8035_t0_r) | |
| 536 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(helifire_8035_t1_r) | |
| 537 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READ(helifire_8035_p2_r) | |
| 538 | 538 | |
| 539 | 539 | AM_RANGE(0x00, 0x7f) AM_READ(helifire_8035_external_ram_r) |
| 540 | 540 | |
| 541 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(helifire_dac_w) | |
| 542 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(helifire_sound_ctrl_w) | |
| 541 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(helifire_dac_w) | |
| 542 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(helifire_sound_ctrl_w) | |
| 543 | 543 | ADDRESS_MAP_END |
| 544 | 544 | |
| 545 | 545 |
| r3115 | r3116 | |
|---|---|---|
| 97 | 97 | |
| 98 | 98 | static void update_sound_68k_interrupts(running_machine *machine) |
| 99 | 99 | { |
| 100 | int newstate = 0; | |
| 101 | ||
| 102 | if (fast_68k_int) | |
| 103 | newstate |= 6; | |
| 104 | if (io_68k_int) | |
| 105 | newstate |= 2; | |
| 106 | ||
| 107 | if (newstate) | |
| 108 | cpunum_set_input_line(machine, 3, newstate, ASSERT_LINE); | |
| 109 | else | |
| 110 | cpunum_set_input_line(machine, 3, 7, CLEAR_LINE); | |
| 100 | cpunum_set_input_line(machine, 3, 6, fast_68k_int ? ASSERT_LINE : CLEAR_LINE); | |
| 101 | cpunum_set_input_line(machine, 3, 2, io_68k_int ? ASSERT_LINE : CLEAR_LINE); | |
| 111 | 102 | } |
| 112 | 103 | |
| 113 | 104 |
| r3115 | r3116 | |
|---|---|---|
| 95 | 95 | |
| 96 | 96 | static const discrete_555_desc crash_beeper_555m = |
| 97 | 97 | { |
| 98 | DISC_555_T | |
| 98 | DISC_555_OUT | |
| 99 | 99 | 5, // B+ voltage of 555 |
| 100 | 100 | DEFAULT_555_VALUES |
| 101 | 101 | }; |
| 102 | 102 | |
| 103 | 103 | static const discrete_555_desc crash_beeper_555a = |
| 104 | 104 | { |
| 105 | DISC_555_OUT_ | |
| 105 | DISC_555_OUT_SQW | DISC_555_OUT_DC | |
| 106 | 106 | 5, // B+ voltage of 555 |
| 107 | 107 | DEFAULT_555_VALUES |
| 108 | 108 | }; |
| r3115 | r3116 | |
|---|---|---|
| 44 | 44 | DISC_555_OUT_SQW | DISC_555_OUT_AC | DISCRETE_555_CC_TO_CAP, |
| 45 | 45 | 5, // B+ voltage of 555 |
| 46 | 46 | DEFAULT_555_VALUES, |
| 47 | 5, // B+ voltage of the Constant Current source | |
| 48 | 47 | 0.8 // VBE 2N3906 (Si) |
| 49 | 48 | }; |
| 50 | 49 |
| r3115 | r3116 | |
|---|---|---|
| 13 | 13 | #include "streams.h" |
| 14 | 14 | #include "deprecat.h" |
| 15 | 15 | #include "segag80v.h" |
| 16 | #include "cpu/ | |
| 16 | #include "cpu/mcs48 | |
| 17 | 17 | #include "sound/sp0250.h" |
| 18 | 18 | #include "segasnd.h" |
| 19 | 19 | |
| r3115 | r3116 | |
| 250 | 250 | static ADDRESS_MAP_START( speech_portmap, ADDRESS_SPACE_IO, 8 ) |
| 251 | 251 | AM_RANGE(0x00, 0xff) AM_READ(speech_rom_r) |
| 252 | 252 | AM_RANGE(0x00, 0xff) AM_WRITE(sp0250_w) |
| 253 | AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(speech_p1_r, speech_p1_w) | |
| 254 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(speech_p2_w) | |
| 255 | AM_RANGE(I8039_t0, I8039_t0) AM_READ(speech_t0_r) | |
| 256 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(speech_t1_r) | |
| 253 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READWRITE(speech_p1_r, speech_p1_w) | |
| 254 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(speech_p2_w) | |
| 255 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_READ(speech_t0_r) | |
| 256 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(speech_t1_r) | |
| 257 | 257 | ADDRESS_MAP_END |
| 258 | 258 | |
| 259 | 259 | |
| r3115 | r3116 | |
| 889 | 889 | |
| 890 | 890 | static ADDRESS_MAP_START( usb_portmap, ADDRESS_SPACE_IO, 8 ) |
| 891 | 891 | AM_RANGE(0x00, 0xff) AM_READWRITE(usb_workram_r, usb_workram_w) |
| 892 | AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(usb_p1_r, usb_p1_w) | |
| 893 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(usb_p2_w) | |
| 894 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(usb_t1_r) | |
| 892 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READWRITE(usb_p1_r, usb_p1_w) | |
| 893 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(usb_p2_w) | |
| 894 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(usb_t1_r) | |
| 895 | 895 | ADDRESS_MAP_END |
| 896 | 896 | |
| 897 | 897 |
| r3115 | r3116 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | static const discrete_555_desc frogsZip555m = |
| 40 | 40 | { |
| 41 | DISC_555_T | |
| 41 | DISC_555_OUT | |
| 42 | 42 | 12, // B+ voltage of 555 |
| 43 | 43 | DEFAULT_555_VALUES |
| 44 | 44 | }; |
| r3115 | r3116 | |
| 48 | 48 | DISC_555_OUT_CAP | DISC_555_OUT_DC, |
| 49 | 49 | 12, // B+ voltage of 555 |
| 50 | 50 | DEFAULT_555_VALUES, |
| 51 | 12, // B+ voltage of the Constant Current source | |
| 52 | 51 | 0.6 // Q13 Vbe |
| 53 | 52 | }; |
| 54 | 53 | |
| r3115 | r3116 | |
| 220 | 219 | |
| 221 | 220 | |
| 222 | 221 | static const discrete_mixer_desc headon_mixer = |
| 223 | {DISC_MIXER_IS_RESISTOR, | |
| 224 | {RES_K(130), RES_K(130), RES_K(100), RES_K(100), RES_K(100), RES_K(10)}, // 130 = 390/3, Bonus Res is dummy | |
| 225 | {0,0,0,0,0}, // no variable resistors | |
| 226 | {0,0,0,0,CAP_N(470),0}, | |
| 227 | 0, RES_K(100), | |
| 228 | 0, | |
| 229 | CAP_U(1), // not in schematics, used to suppress DC | |
| 230 | 0, 1}; | |
| 222 | { | |
| 223 | DISC_MIXER_IS_RESISTOR, | |
| 224 | {RES_K(130), RES_K(130), RES_K(100), RES_K(100), RES_K(100), RES_K(10)}, // 130 = 390/3, Bonus Res is dummy | |
| 225 | {0,0,0,0,0}, // no variable resistors | |
| 226 | {0,0,0,0,CAP_N(470),0}, | |
| 227 | 0, RES_K(100), | |
| 228 | 0, | |
| 229 | CAP_U(1), // not in schematics, used to suppress DC | |
| 230 | 0, 1 | |
| 231 | }; | |
| 231 | 232 | |
| 232 | 233 | static const discrete_mixer_desc headon_crash_mixer = |
| 233 | {DISC_MIXER_IS_OP_AMP, | |
| 234 | {RES_K(50), RES_K(10)}, // Resistors, in fact variable resistors (100k) | |
| 235 | {0,0,0,0,0}, // no variable resistors | |
| 236 | {CAP_N(100),CAP_U(1)}, | |
| 237 | 0, RES_K(100), | |
| 238 | 0, | |
| 239 | CAP_U(1)*0, // not in schematics, used to suppress DC | |
| 240 | 0, 1}; | |
| 234 | { | |
| 235 | DISC_MIXER_IS_OP_AMP, | |
| 236 | {RES_K(50), RES_K(10)}, // Resistors, in fact variable resistors (100k) | |
| 237 | {0,0,0,0,0}, // no variable resistors | |
| 238 | {CAP_N(100),CAP_U(1)}, | |
| 239 | 0, RES_K(100), | |
| 240 | 0, | |
| 241 | CAP_U(1)*0, // not in schematics, used to suppress DC | |
| 242 | 0, 1 | |
| 243 | }; | |
| 241 | 244 | |
| 242 | 245 | static const discrete_inverter_osc_desc headon_inverter_osc_1 = |
| 243 | {DEFAULT_CD40XX_VALUES(12), | |
| 246 | { | |
| 247 | DEFAULT_CD40XX_VALUES(12), | |
| 244 | 248 | DISC_OSC_INVERTER_IS_TYPE4 |
| 245 | ||
| 249 | ||
| 246 | 250 | |
| 247 | 251 | static const discrete_inverter_osc_desc headon_inverter_osc_2 = |
| 248 | {DEFAULT_CD40XX_VALUES(12), | |
| 252 | { | |
| 253 | DEFAULT_CD40XX_VALUES(12), | |
| 249 | 254 | DISC_OSC_INVERTER_IS_TYPE5 | DISC_OSC_INVERTER_OUT_IS_LOGIC |
| 250 | ||
| 255 | ||
| 251 | 256 | |
| 252 | 257 | static const discrete_555_desc headon_555_bonus = |
| 253 | {DISC_555_OUT_DC | DISC_555_OUT_ENERGY, | |
| 254 | 12, | |
| 255 | 12-0.5,12*0.66,12*0.33 | |
| 256 | }; | |
| 258 | { | |
| 259 | DISC_555_OUT_ENERGY | DISC_555_OUT_DC, | |
| 260 | 12, | |
| 261 | DEFAULT_555_CHARGE, | |
| 262 | 12.0-0.5 | |
| 263 | }; | |
| 257 | 264 | |
| 258 | 265 | static const discrete_555_desc headon_555_crash = |
| 259 | {DISC_555_OUT_DC | DISC_555_TRIGGER_IS_LOGIC, | |
| 260 | 12, | |
| 261 | 12-0.5,12*0.66,12*0.33 | |
| 262 | }; | |
| 266 | { | |
| 267 | DISC_555_OUT_SQW | DISC_555_OUT_DC | DISC_555_TRIGGER_IS_LOGIC, | |
| 268 | 12, | |
| 269 | DEFAULT_555_CHARGE, | |
| 270 | 12.0-0.5 | |
| 271 | }; | |
| 263 | 272 | |
| 264 | 273 | static const discrete_555_cc_desc headon_555cc = |
| 265 | 274 | { |
| 266 | DISC_555_OUT_DC, | |
| 275 | DISC_555_OUT_SQW | DISC_555_OUT_DC, | |
| 267 | 276 | 12, // B+ voltage of 555 |
| 268 | 277 | DEFAULT_555_VALUES, |
| 269 | 12, // B+ voltage of the Constant Current source | |
| 270 | 278 | 0.6 // Q16, Q10 Vbe |
| 271 | 279 | }; |
| 272 | 280 | |
| r3115 | r3116 | |
| 274 | 282 | /* |
| 275 | 283 | * From : http://www.vego.nl/8/08/03/08_08_03.htm |
| 276 | 284 | * |
| 277 | * - voeding: -7 V, clock-frequentie: 2.267 Hz | |
| 278 | *- voeding: -8 V, clock-frequentie: 8.731 Hz | |
| 279 | *- voeding: -9 V, clock-frequentie: 16,38 kHz | |
| 280 | *- voeding: -10 V, clock-frequentie: 23,53 kHz | |
| 281 | *- voeding: -11 V, clock-frequentie: 32,56 kHz | |
| 282 | *- voeding: -12 V, clock-frequentie: 38,34 kHz | |
| 283 | *- voeding: -13 V, clock-frequentie: 40,00 kHz | |
| 284 | *- voeding: -14 V, clock-frequentie: 37,80 kHz | |
| 285 | *- voeding: -15 V, clock-frequentie: 33,17 kHz | |
| 285 | *- voeding: -7 V, clock-frequency: 2.267 Hz | |
| 286 | *- voeding: -8 V, clock-frequency: 8.731 Hz | |
| 287 | *- voeding: -9 V, clock-frequency: 16,38 kHz | |
| 288 | *- voeding: -10 V, clock-frequency: 23,53 kHz | |
| 289 | *- voeding: -11 V, clock-frequency: 32,56 kHz | |
| 290 | *- voeding: -12 V, clock-frequency: 38,34 kHz | |
| 291 | *- voeding: -13 V, clock-frequency: 40,00 kHz | |
| 292 | *- voeding: -14 V, clock-frequency: 37,80 kHz | |
| 293 | *- voeding: -15 V, clock-frequency: 33,17 kHz | |
| 286 | 294 | * |
| 287 | 295 | * However all other mame sources say 100kHz. |
| 288 | 296 | */ |
| r3115 | r3116 | |
| 305 | 313 | }; |
| 306 | 314 | |
| 307 | 315 | static const discrete_op_amp_filt_info headon_sallen_key_info = |
| 308 | { RES_K(15), RES_K(15), 0, 0, 0, | |
| 309 | CAP_N(470), CAP_N(47), 0 | |
| 310 | }; | |
| 316 | { | |
| 317 | RES_K(15), RES_K(15), 0, 0, 0, | |
| 318 | CAP_N(470), CAP_N(47), 0 | |
| 319 | }; | |
| 311 | 320 | |
| 312 | 321 | static DISCRETE_SOUND_START(headon) |
| 313 | 322 | /************************************************ |
| r3115 | r3116 | |
|---|---|---|
| 37 | 37 | /*****************************************************************************/ |
| 38 | 38 | |
| 39 | 39 | #include "driver.h" |
| 40 | #include "cpu/ | |
| 40 | #include "cpu/mcs48 | |
| 41 | 41 | #include "sound/ay8910.h" |
| 42 | 42 | #include "sound/samples.h" |
| 43 | 43 | #include "includes/vicdual.h" |
| r3115 | r3116 | |
| 289 | 289 | ADDRESS_MAP_END |
| 290 | 290 | |
| 291 | 291 | static ADDRESS_MAP_START( carnival_audio_io_map, ADDRESS_SPACE_IO, 8 ) |
| 292 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(carnival_music_port_t1_r) | |
| 293 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(carnival_music_port_1_w) | |
| 294 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(carnival_music_port_2_w) | |
| 292 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(carnival_music_port_t1_r) | |
| 293 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(carnival_music_port_1_w) | |
| 294 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(carnival_music_port_2_w) | |
| 295 | 295 | ADDRESS_MAP_END |
| 296 | 296 | |
| 297 | 297 |
| r3115 | r3116 | |
|---|---|---|
| 26 | 26 | DISC_555_OUT_SQW, |
| 27 | 27 | 5, // B+ voltage of 555 |
| 28 | 28 | DEFAULT_555_VALUES, |
| 29 | 5, // B+ voltage of the Constant Current source | |
| 30 | 29 | 0.7 // Q3 junction voltage |
| 31 | 30 | }; |
| 32 | 31 |
| r3115 | r3116 | |
|---|---|---|
| 42 | 42 | DISC_555_OUT_DC | DISC_555_OUT_SQW, |
| 43 | 43 | 5, // B+ voltage of 555 |
| 44 | 44 | DEFAULT_555_VALUES, |
| 45 | 5, // B+ voltage of the Constant Current source | |
| 46 | 45 | 0.7 // VBE 2N3644 (Si) |
| 47 | 46 | }; |
| 48 | 47 | |
| r3115 | r3116 | |
| 140 | 139 | &sprint2_motor_vco) |
| 141 | 140 | |
| 142 | 141 | /* QB-D of 7492 */ |
| 143 | DISCRETE_COUNTER_7492(NODE_23, 1, SPRINT2_ATTRACT_EN, NODE_22) | |
| 142 | DISCRETE_COUNTER_7492(NODE_23, 1, SPRINT2_ATTRACT_EN, NODE_22, DISC_CLK_ON_F_EDGE) | |
| 144 | 143 | |
| 145 | 144 | /* Mask the bits and XOR for clock input */ |
| 146 | 145 | DISCRETE_TRANSFORM2(NODE_24, 1, NODE_23, 1, "01&") |
| r3115 | r3116 | |
| 178 | 177 | &sprint2_motor_vco) |
| 179 | 178 | |
| 180 | 179 | /* QB-D of 7492 */ |
| 181 | DISCRETE_COUNTER_7492(NODE_43, 1, SPRINT2_ATTRACT_EN, NODE_42) | |
| 180 | DISCRETE_COUNTER_7492(NODE_43, 1, SPRINT2_ATTRACT_EN, NODE_42, DISC_CLK_ON_F_EDGE) | |
| 182 | 181 | |
| 183 | 182 | /* Mask the bits and XOR for clock input */ |
| 184 | 183 | DISCRETE_TRANSFORM2(NODE_44, 1, NODE_43, 1, "01&") |
| r3115 | r3116 | |
| 263 | 262 | &sprint2_motor_vco) |
| 264 | 263 | |
| 265 | 264 | /* QB-D of 7492 */ |
| 266 | DISCRETE_COUNTER_7492(NODE_23, 1, SPRINT2_ATTRACT_EN, NODE_22) | |
| 265 | DISCRETE_COUNTER_7492(NODE_23, 1, SPRINT2_ATTRACT_EN, NODE_22, DISC_CLK_ON_F_EDGE) | |
| 267 | 266 | |
| 268 | 267 | /* Mask the bits and XOR for clock input */ |
| 269 | 268 | DISCRETE_TRANSFORM2(NODE_24, 1, NODE_23, 1, "01&") |
| r3115 | r3116 | |
| 329 | 328 | DISC_555_OUT_DC | DISC_555_OUT_SQW, |
| 330 | 329 | 5, // B+ voltage of 555 |
| 331 | 330 | DEFAULT_555_VALUES, |
| 332 | 5, // B+ voltage of the Constant Current source | |
| 333 | 331 | 0.7 // Q1 junction voltage |
| 334 | 332 | }; |
| 335 | 333 | |
| r3115 | r3116 | |
| 381 | 379 | DISCRETE_DAC_R1(NODE_20, 1, DOMINOS_FREQ_DATA, DEFAULT_TTL_V_LOGIC_1, &dominos_tone_vco_dac) |
| 382 | 380 | DISCRETE_555_CC(NODE_21, 1, NODE_20, DOMINOS_R23, CAP_U(.01), 0, 0, 0, &dominos_tone_vco) |
| 383 | 381 | DISCRETE_COUNTER_7492(NODE_22, 1, DOMINOS_ATTRACT_EN, // IC D8, QB-QD |
| 384 | NODE_21) | |
| 382 | NODE_21, DISC_CLK_ON_F_EDGE) | |
| 385 | 383 | DISCRETE_TRANSFORM2(NODE_23, 1, NODE_22, 0x01, "01&") // IC D8, pin 11-QB |
| 386 | 384 | DISCRETE_SWITCH(NODE_24, 1, NODE_23, 0, // Enable gate C5 |
| 387 | 385 | DOMINOS_AMP_DATA) // IC C4 |
| r3115 | r3116 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "cpu/ | |
| 2 | #include "cpu/mcs48 | |
| 3 | 3 | #include "cpu/m6502/m6502.h" |
| 4 | 4 | #include "sound/nes_apu.h" |
| 5 | #include "sound/samples.h" | |
| 6 | 5 | #include "sound/discrete.h" |
| 7 | #include " | |
| 6 | #include "machine/latch8.h" | |
| 8 | 7 | |
| 9 | 8 | #include "sound/tms5110.h" |
| 10 | 9 | #include "sound/5110intf.h" |
| r3115 | r3116 | |
| 28 | 27 | * sound is completely overmodulated. |
| 29 | 28 | */ |
| 30 | 29 | |
| 31 | / | |
| 30 | /* FIXME: Review at a later time */ | |
| 32 | 31 | #define DK_REVIEW (1) |
| 33 | 32 | |
| 34 | #define ACTIVELOW_PORT_BIT(P,A,D) (((P) & (~(1 << (A)))) | (((D) ^ 1) << (A))) | |
| 35 | 33 | |
| 36 | /* Needed for dkongjr ... FIXME */ | |
| 37 | //#define I8035_T_R(N) ((portT >> (N)) & 1) | |
| 38 | #define I8035_T_R(M,N) ((soundlatch2_r(machine,0) >> (N)) & 1) | |
| 39 | #define I8035_T_W_AL(M,N,D) do { state->portT = ACTIVELOW_PORT_BIT(state->portT,N,D); soundlatch2_w(machine, 0, state->portT); } while (0) | |
| 40 | ||
| 41 | #define I8035_P1_R(M) (soundlatch3_r(M,0)) | |
| 42 | #define I8035_P2_R(M) (soundlatch4_r(M,0)) | |
| 43 | #define I8035_P1_W(M,D) soundlatch3_w(M,0,D) | |
| 44 | #define I8035_P2_W(M,D) soundlatch4_w(M,0,D) | |
| 45 | ||
| 46 | #define I8035_P1_W_AL(M,B,D) I8035_P1_W(M,ACTIVELOW_PORT_BIT(I8035_P1_R(M),B,(D))) | |
| 47 | #define I8035_P2_W_AL(M,B,D) I8035_P2_W(M,ACTIVELOW_PORT_BIT(I8035_P2_R(M),B,(D))) | |
| 48 | ||
| 49 | ||
| 50 | 34 | /**************************************************************** |
| 51 | 35 | * |
| 52 | 36 | * Discrete Sound defines |
| r3115 | r3116 | |
| 62 | 46 | #define DS_SOUND7_INV NODE_05 |
| 63 | 47 | #define DS_SOUND9_INV NODE_06 |
| 64 | 48 | #define DS_DAC NODE_07 |
| 65 | #define DS_D | |
| 49 | #define DS_D | |
| 66 | 50 | |
| 67 | 51 | #define DS_SOUND0 NODE_208 |
| 68 | 52 | #define DS_SOUND1 NODE_209 |
| r3115 | r3116 | |
| 201 | 185 | }; |
| 202 | 186 | |
| 203 | 187 | static const discrete_mixer_desc dkong_rc_jump_desc = |
| 204 | {DISC_MIXER_IS_RESISTOR, | |
| 205 | {1, DK_R49+DK_R51,NE555_INTERNAL_R,2*NE555_INTERNAL_R}, | |
| 206 | {NODE_26,0,0,0}, | |
| 207 | {0,0,0,0}, // no node capacitors | |
| 208 | 0, 0, | |
| 209 | DK_C24, | |
| 210 | 0, | |
| 211 | 0, 1}; | |
| 188 | { | |
| 189 | DISC_MIXER_IS_RESISTOR, | |
| 190 | {1, DK_R49+DK_R51,NE555_INTERNAL_R,2*NE555_INTERNAL_R}, | |
| 191 | {NODE_26,0,0,0}, | |
| 192 | {0,0,0,0}, /* no node capacitors */ | |
| 193 | 0, 0, | |
| 194 | DK_C24, | |
| 195 | 0, | |
| 196 | 0, 1 | |
| 197 | }; | |
| 212 | 198 | |
| 213 | 199 | static const discrete_mixer_desc dkong_rc_walk_desc = |
| 214 | {DISC_MIXER_IS_RESISTOR, | |
| 215 | {1, DK_R45+DK_R44,NE555_INTERNAL_R,2*NE555_INTERNAL_R}, | |
| 216 | {NODE_52,0,0,0}, | |
| 217 | {0,0,0,0}, // no node capacitors | |
| 218 | 0, 0, | |
| 219 | DK_C29, | |
| 220 | 0, | |
| 221 | 0, 1}; | |
| 200 | { | |
| 201 | DISC_MIXER_IS_RESISTOR, | |
| 202 | {1, DK_R45+DK_R44,NE555_INTERNAL_R,2*NE555_INTERNAL_R}, | |
| 203 | {NODE_52,0,0,0}, | |
| 204 | {0,0,0,0}, /* no node capacitors */ | |
| 205 | 0, 0, | |
| 206 | DK_C29, | |
| 207 | 0, | |
| 208 | 0, 1 | |
| 209 | }; | |
| 222 | 210 | |
| 223 | 211 | static const discrete_mixer_desc dkong_mixer_desc = |
| 224 | {DISC_MIXER_IS_RESISTOR, | |
| 225 | {DK_R2, DK_R24, DK_R1, DK_R14}, | |
| 226 | {0,0,0}, // no variable resistors | |
| 227 | {0,0,0}, // no node capacitors | |
| 212 | { | |
| 213 | DISC_MIXER_IS_RESISTOR, | |
| 214 | {DK_R2, DK_R24, DK_R1, DK_R14}, | |
| 215 | {0,0,0}, /* no variable resistors */ | |
| 216 | {0,0,0}, /* no node capacitors */ | |
| 228 | 217 | #if DK_REVIEW |
| 229 | | |
| 218 | | |
| 230 | 219 | #else |
| 231 | | |
| 220 | | |
| 232 | 221 | #endif |
| 233 | DK_C159, | |
| 234 | DK_C12, | |
| 235 | 0, 1}; | |
| 222 | DK_C159, | |
| 223 | DK_C12, | |
| 224 | 0, 1 | |
| 225 | }; | |
| 236 | 226 | |
| 237 | 227 | /* There is no load on the output for the jump circuit |
| 238 | 228 | * For the walk circuit, the voltage does not matter */ |
| 239 | 229 | |
| 240 | 230 | static const discrete_555_desc dkong_555_vco_desc = |
| 241 | {DISC_555_OUT_DC | DISC_555_OUT_ENERGY, | |
| 242 | DK_SUP_V, | |
| 243 | DK_SUP_V-0.5,DK_SUP_V*0.66,DK_SUP_V*0.33 | |
| 244 | }; | |
| 231 | { | |
| 232 | DISC_555_OUT_ENERGY | DISC_555_OUT_DC, | |
| 233 | DK_SUP_V, | |
| 234 | DEFAULT_555_CHARGE, | |
| 235 | DK_SUP_V - 0.5 | |
| 236 | }; | |
| 245 | 237 | |
| 246 | 238 | static const discrete_inverter_osc_desc dkong_inverter_osc_desc_jump = |
| 247 | {DEFAULT_CD40XX_VALUES(DK_SUP_V), | |
| 239 | { | |
| 240 | DEFAULT_CD40XX_VALUES(DK_SUP_V), | |
| 248 | 241 | DISC_OSC_INVERTER_IS_TYPE1 |
| 249 | ||
| 242 | ||
| 250 | 243 | |
| 251 | 244 | static const discrete_inverter_osc_desc dkong_inverter_osc_desc_walk = |
| 252 | {DEFAULT_CD40XX_VALUES(DK_SUP_V), | |
| 245 | { | |
| 246 | DEFAULT_CD40XX_VALUES(DK_SUP_V), | |
| 253 | 247 | DISC_OSC_INVERTER_IS_TYPE2 |
| 254 | ||
| 248 | ||
| 255 | 249 | |
| 256 | 250 | static const discrete_op_amp_filt_info dkong_sallen_key_info = |
| 257 | { RES_K(5.6), RES_K(5.6), 0, 0, 0, | |
| 258 | CAP_N(22), CAP_N(10), 0 | |
| 259 | }; | |
| 251 | { | |
| 252 | RES_K(5.6), RES_K(5.6), 0, 0, 0, | |
| 253 | CAP_N(22), CAP_N(10), 0 | |
| 254 | }; | |
| 260 | 255 | |
| 261 | 256 | static DISCRETE_SOUND_START(dkong2b) |
| 262 | 257 | |
| r3115 | r3116 | |
| 264 | 259 | /* Input register mapping for dkong */ |
| 265 | 260 | /************************************************/ |
| 266 | 261 | |
| 267 | / | |
| 262 | /* DISCRETE_INPUT_DATA */ | |
| 268 | 263 | DISCRETE_INPUT_NOT(DS_SOUND2_INV) |
| 269 | 264 | DISCRETE_INPUT_NOT(DS_SOUND1_INV) |
| 270 | 265 | DISCRETE_INPUT_NOT(DS_SOUND0_INV) |
| 271 | DISCRETE_INPUT_ | |
| 266 | DISCRETE_INPUT_NOT | |
| 272 | 267 | DISCRETE_INPUT_DATA(DS_DAC) |
| 273 | / | |
| 268 | /* Mixing - DAC */ | |
| 274 | 269 | DISCRETE_ADJUSTMENT_TAG(DS_ADJ_DAC, 0, 1, DISC_LINADJ, "VR2") |
| 275 | 270 | |
| 276 | 271 | /************************************************/ |
| r3115 | r3116 | |
| 286 | 281 | /************************************************/ |
| 287 | 282 | /* Noise */ |
| 288 | 283 | DISCRETE_LFSR_NOISE(NODE_11, 1, 1, CLOCK_2VF, 1.0, 0, 0.5, &dkong_lfsr) |
| 289 | DISCRETE_COUNTER(NODE_12, 1, 0, NODE_11, 7, DISC_COUNT_UP, 0, DISC_CLK_ON_R_EDGE) / | |
| 284 | DISCRETE_COUNTER(NODE_12, 1, 0, NODE_11, 7, DISC_COUNT_UP, 0, DISC_CLK_ON_R_EDGE) /* LS161, IC 3J */ | |
| 290 | 285 | DISCRETE_TRANSFORM3(NODE_13,1,NODE_12,3,DK_SUP_V,"01>2*") |
| 291 | 286 | |
| 292 | 287 | /* Stomp */ |
| r3115 | r3116 | |
| 296 | 291 | DISCRETE_TRANSFORM2(NODE_16, 1, NODE_15, 0.6, "01>") |
| 297 | 292 | DISCRETE_RCDISC2(NODE_17,NODE_16,DK_SUP_V,DK_R8+DK_R7,0.0,DK_R7,DK_C20) |
| 298 | 293 | |
| 299 | DISCRETE_DIODE_MIXER2(NODE_18, 1, DK_1N5553_V, NODE_13, NODE_13) // D3 | |
| 300 | DISCRETE_DIODE_MIXER2(NODE_20, 1, DK_1N5553_V, NODE_17, NODE_18) // D1, D2 | |
| 294 | DISCRETE_DIODE_MIXER2(NODE_18, 1, DK_1N5553_V, NODE_13, NODE_13) /* D3 */ | |
| 295 | DISCRETE_DIODE_MIXER2(NODE_20, 1, DK_1N5553_V, NODE_17, NODE_18) /* D1, D2 */ | |
| 301 | 296 | |
| 302 | 297 | DISCRETE_RCINTEGRATE(NODE_22,1,NODE_20,DK_R5, R_PARALLEL(DK_R4+DK_R3,DK_R6),0,DK_C19,DK_SUP_V,DISC_RC_INTEGRATE_TYPE1) |
| 303 | 298 | DISCRETE_MULTIPLY(DS_OUT_SOUND0,1,NODE_22,DK_R3/R_SERIE(DK_R3,DK_R4)) |
| r3115 | r3116 | |
| 305 | 300 | /************************************************/ |
| 306 | 301 | /* Jump */ |
| 307 | 302 | /************************************************/ |
| 308 | ||
| 303 | /* tt */ | |
| 309 | 304 | DISCRETE_MULTIPLY(NODE_24,1,DS_SOUND1,DK_SUP_V) |
| 310 | 305 | /* 4049B Inverter Oscillator build from 3 inverters */ |
| 311 | 306 | DISCRETE_INVERTER_OSC(NODE_25,1,0,DK_R38,DK_R39,DK_C26,0,&dkong_inverter_osc_desc_jump) |
| r3115 | r3116 | |
| 350 | 345 | /************************************************/ |
| 351 | 346 | |
| 352 | 347 | /* Signal decay circuit Q7, R20, C32 */ |
| 353 | DISCRETE_RCDISC(NODE_70, DS_DAC_DISCHARGE, 1, DK_R20, DK_C32) | |
| 354 | DISCRETE_TRANSFORM4(NODE_71, 1, DS_DAC, DK_SUP_V/256.0, NODE_70, DS_DAC_DISCHARGE, "01*3!2+*") | |
| 348 | DISCRETE_RCDISC(NODE_70, DS_DISCHARGE_INV, 1, DK_R20, DK_C32) | |
| 349 | DISCRETE_TRANSFORM4(NODE_71, 1, DS_DAC, DK_SUP_V/256.0, NODE_70, DS_DISCHARGE_INV, "01*3!2+*") | |
| 355 | 350 | |
| 356 | 351 | /* following the DAC are two opamps. The first is a current-to-voltage changer |
| 357 | 352 | * for the DAC08 which delivers a variable output current. |
| r3115 | r3116 | |
| 376 | 371 | |
| 377 | 372 | DISCRETE_MIXER4(NODE_288, 1, DS_OUT_SOUND0, DS_OUT_SOUND1, DS_OUT_DAC, DS_OUT_SOUND2, &dkong_mixer_desc) |
| 378 | 373 | |
| 379 | / | |
| 374 | /* Amplifier: internal amplifier */ | |
| 380 | 375 | DISCRETE_ADDER2(NODE_289,1,NODE_288,5.0*43.0/(100.0+43.0)) |
| 381 | 376 | DISCRETE_RCINTEGRATE(NODE_294,1,NODE_289,0,150,1000, CAP_U(33),DK_SUP_V,DISC_RC_INTEGRATE_TYPE3) |
| 382 | 377 | DISCRETE_CRFILTER(NODE_295,1,NODE_294, RES_K(50), DK_C13) |
| 383 | //DISCRETE_CRFILTER(NODE_295,1,NODE_294, 1000, DK_C13) | |
| 384 | // EZV20 equivalent filter circuit ... | |
| 378 | /*DISCRETE_CRFILTER(NODE_295,1,NODE_294, 1000, DK_C13) */ | |
| 379 | /* EZV20 equivalent filter circuit ... */ | |
| 385 | 380 | DISCRETE_CRFILTER(NODE_296,1,NODE_295, RES_K(1), CAP_U(4.7)) |
| 386 | 381 | #if DK_NO_FILTERS |
| 387 | 382 | DISCRETE_OUTPUT(NODE_288, 32767.0/5.0 * 10) |
| r3115 | r3116 | |
| 407 | 402 | #define RS_R8 RES_K(100) |
| 408 | 403 | #define RS_R9 RES_K(10) |
| 409 | 404 | #define RS_R14 RES_K(10) |
| 410 | #define RS_R15 RES_K(5.6) / | |
| 405 | #define RS_R15 RES_K(5.6) /* ???? */ | |
| 411 | 406 | #define RS_R16 RES_K(5.6) |
| 412 | 407 | #define RS_R18 RES_K(4.7) |
| 413 | 408 | #define RS_R22 RES_K(5.6) |
| 414 | 409 | #define RS_R23 RES_K(5.6) |
| 415 | 410 | #define RS_R25 RES_K(10) |
| 416 | 411 | #define RS_R26 RES_K(5.1) |
| 417 | #define RS_R27 RES_K(2) / | |
| 412 | #define RS_R27 RES_K(2) /* 10k in schematics - but will oscillate */ | |
| 418 | 413 | #define RS_R28 150 |
| 419 | 414 | #define RS_R29 RES_K(4.7) |
| 420 | 415 | #define RS_R30 RES_K(10) |
| r3115 | r3116 | |
| 433 | 428 | #define RS_R54 RES_K(1.2) |
| 434 | 429 | #define RS_R55 RES_K(10) |
| 435 | 430 | #define RS_R56 RES_K(12) |
| 436 | #define RS_R57 RES_K(4.3) / | |
| 431 | #define RS_R57 RES_K(4.3) /* ??? 43 */ | |
| 437 | 432 | #define RS_R58 RES_K(43) |
| 438 | 433 | #define RS_R59 RES_K(1.2) |
| 439 | 434 | #define RS_R60 RES_K(10) |
| r3115 | r3116 | |
| 472 | 467 | static const discrete_mixer_desc radarscp_mixer_desc = |
| 473 | 468 | {DISC_MIXER_IS_RESISTOR, |
| 474 | 469 | {RS_R14, RS_R25, RS_R2, RS_R42, RS_R1}, |
| 475 | {0,0,0,0,0}, // no variable resistors | |
| 476 | {0,0,0,0,0}, // no node capacitors | |
| 470 | {0,0,0,0,0}, /* no variable resistors */ | |
| 471 | {0,0,0,0,0}, /* no node capacitors */ | |
| 477 | 472 | 0, RS_VR2, |
| 478 | 473 | 0, |
| 479 | 474 | RS_C2, |
| r3115 | r3116 | |
| 483 | 478 | {DISC_MIXER_IS_RESISTOR, |
| 484 | 479 | {RS_R56+RS_R54,NE555_INTERNAL_R,R_PARALLEL(2*NE555_INTERNAL_R,RS_R55) }, |
| 485 | 480 | {0,0,0}, |
| 486 | {0,0,0,0}, / | |
| 481 | {0,0,0,0}, /* no node capacitors */ | |
| 487 | 482 | 0, 0, |
| 488 | 483 | RS_C51, |
| 489 | 484 | 0, |
| r3115 | r3116 | |
| 492 | 487 | static const discrete_mixer_desc radarscp_mixer_desc_7 = |
| 493 | 488 | {DISC_MIXER_IS_RESISTOR, |
| 494 | 489 | {RS_R63+RS_R59, NE555_INTERNAL_R,R_PARALLEL(2*NE555_INTERNAL_R,RS_R60)}, |
| 495 | {0,0,0}, // no variable resistors | |
| 496 | {0,0,0}, // no node capacitors | |
| 490 | {0,0,0}, /* no variable resistors */ | |
| 491 | {0,0,0}, /* no node capacitors */ | |
| 497 | 492 | 0, 0, |
| 498 | 493 | RS_C50, |
| 499 | 494 | 0, |
| r3115 | r3116 | |
| 502 | 497 | /* There is no load on the output for the jump circuit |
| 503 | 498 | * For the walk circuit, the voltage does not matter */ |
| 504 | 499 | |
| 505 | static const discrete_555_desc radarscp_555_vco_desc = | |
| 506 | {DISC_555_OUT_DC | DISC_555_OUT_ENERGY, | |
| 507 | DK_SUP_V, | |
| 508 | DK_SUP_V-0.5,DK_SUP_V*0.66,DK_SUP_V*0.33 | |
| 509 | }; | |
| 500 | #define radarscp_555_vco_desc dkong_555_vco_desc | |
| 510 | 501 | |
| 511 | 502 | static const discrete_inverter_osc_desc radarscp_inverter_osc_desc_0 = |
| 512 | 503 | {DEFAULT_CD40XX_VALUES(DK_SUP_V), |
| r3115 | r3116 | |
| 524 | 515 | /* Input register mapping for radarscp */ |
| 525 | 516 | /************************************************/ |
| 526 | 517 | |
| 527 | / | |
| 518 | /* DISCRETE_INPUT_DATA */ | |
| 528 | 519 | DISCRETE_INPUT_NOT(DS_SOUND0_INV) |
| 529 | 520 | DISCRETE_INPUT_NOT(DS_SOUND1_INV) |
| 530 | 521 | DISCRETE_INPUT_NOT(DS_SOUND2_INV) |
| 531 | 522 | DISCRETE_INPUT_NOT(DS_SOUND6_INV) |
| 532 | 523 | DISCRETE_INPUT_NOT(DS_SOUND7_INV) |
| 533 | DISCRETE_INPUT_ | |
| 524 | DISCRETE_INPUT_NOT | |
| 534 | 525 | DISCRETE_INPUT_DATA(DS_DAC) |
| 535 | 526 | |
| 536 | / | |
| 527 | /* Mixing - DAC */ | |
| 537 | 528 | DISCRETE_ADJUSTMENT_TAG(DS_ADJ_DAC, 0, 1, DISC_LINADJ, "VR2") |
| 538 | 529 | |
| 539 | 530 | /************************************************/ |
| r3115 | r3116 | |
| 548 | 539 | /************************************************/ |
| 549 | 540 | |
| 550 | 541 | DISCRETE_LFSR_NOISE(NODE_11, 1, 1, CLOCK_2VF, 1.0, 0, 0.5, &dkong_lfsr) |
| 551 | // Clear (1) from SOUND6 | |
| 552 | DISCRETE_COUNTER(NODE_12, 1, DS_SOUND6_INV, NODE_11, 15, DISC_COUNT_UP, 0, DISC_CLK_ON_R_EDGE) // LS161, IC 3J | |
| 553 | DISCRETE_TRANSFORM3(NODE_13,1,NODE_12,0x04,DK_SUP_V,"01&1=2*") //QC => SND02 | |
| 554 | DISCRETE_TRANSFORM3(NODE_14,1,NODE_12,0x02,DK_SUP_V,"01&1=2*") //QB => SND01 | |
| 542 | /* Clear (1) from SOUND6 */ | |
| 543 | DISCRETE_COUNTER(NODE_12, 1, DS_SOUND6_INV, NODE_11, 15, DISC_COUNT_UP, 0, DISC_CLK_ON_R_EDGE) /* LS161, IC 3J */ | |
| 544 | DISCRETE_TRANSFORM3(NODE_13,1,NODE_12,0x04,DK_SUP_V,"01&1=2*") /*QC => SND02 */ | |
| 545 | DISCRETE_TRANSFORM3(NODE_14,1,NODE_12,0x02,DK_SUP_V,"01&1=2*") /*QB => SND01 */ | |
| 555 | 546 | |
| 556 | 547 | /************************************************/ |
| 557 | 548 | /* SOUND2 */ |
| r3115 | r3116 | |
| 560 | 551 | /* C21 is discharged via Q5 BE */ |
| 561 | 552 | |
| 562 | 553 | DISCRETE_RCDISC_MODULATED(NODE_16,1,DS_SOUND2_INV,0,RS_R_NN01,0,0,RS_R9*2,RS_C20,DK_SUP_V) |
| 563 | DISCRETE_TRANSFORM2(NODE_17, 1, NODE_16, 0.6, "01>") / | |
| 554 | DISCRETE_TRANSFORM2(NODE_17, 1, NODE_16, 0.6, "01>") /* TR2 */ | |
| 564 | 555 | DISCRETE_RCDISC2(NODE_18,NODE_17,DK_SUP_V,RS_R8+RS_R7,0.0,RS_R7,RS_C19) |
| 565 | 556 | |
| 566 | DISCRETE_DIODE_MIXER2(NODE_19, 1, DK_1N5553_V, NODE_13, NODE_13) // D3 | |
| 567 | DISCRETE_DIODE_MIXER2(NODE_20, 1, DK_1N5553_V, NODE_18, NODE_19) // D1, D2 | |
| 557 | DISCRETE_DIODE_MIXER2(NODE_19, 1, DK_1N5553_V, NODE_13, NODE_13) /* D3 */ | |
| 558 | DISCRETE_DIODE_MIXER2(NODE_20, 1, DK_1N5553_V, NODE_18, NODE_19) /* D1, D2 */ | |
| 568 | 559 | |
| 569 | 560 | DISCRETE_RCINTEGRATE(NODE_22,1,NODE_20,RS_R5, R_PARALLEL(RS_R4+RS_R3,RS_R6),0,RS_C18,DK_SUP_V,DISC_RC_INTEGRATE_TYPE1) |
| 570 | 561 | DISCRETE_MULTIPLY(DS_OUT_SOUND2,1,NODE_22,RS_R3/R_SERIE(RS_R3,RS_R4)) |
| r3115 | r3116 | |
| 576 | 567 | /* C21 is discharged via Q5 BE */ |
| 577 | 568 | |
| 578 | 569 | DISCRETE_RCDISC_MODULATED(NODE_26,1,DS_SOUND1_INV,0,RS_R_NN02,0,0,RS_R32,RS_C31,DK_SUP_V) |
| 579 | DISCRETE_TRANSFORM2(NODE_27, 1, NODE_26, 0.6, "01>") / | |
| 570 | DISCRETE_TRANSFORM2(NODE_27, 1, NODE_26, 0.6, "01>") /* TR5 */ | |
| 580 | 571 | DISCRETE_RCDISC2(NODE_28,NODE_27,DK_SUP_V,RS_R31+RS_R30,0.0,RS_R30,RS_C30) |
| 581 | 572 | |
| 582 | DISCRETE_DIODE_MIXER2(NODE_29, 1, DK_1N5553_V, NODE_14, NODE_14) // D3 | |
| 583 | DISCRETE_DIODE_MIXER2(NODE_30, 1, DK_1N5553_V, NODE_28, NODE_29) // D1, D2 | |
| 573 | DISCRETE_DIODE_MIXER2(NODE_29, 1, DK_1N5553_V, NODE_14, NODE_14) /* D3 */ | |
| 574 | DISCRETE_DIODE_MIXER2(NODE_30, 1, DK_1N5553_V, NODE_28, NODE_29) /* D1, D2 */ | |
| 584 | 575 | |
| 585 | 576 | DISCRETE_RCINTEGRATE(NODE_31,1,NODE_30,RS_R28, R_PARALLEL(RS_R27+RS_R26,RS_R29),0,RS_C29,DK_SUP_V,DISC_RC_INTEGRATE_TYPE1) |
| 586 | 577 | DISCRETE_MULTIPLY(DS_OUT_SOUND1,1,NODE_31,RS_R26/R_SERIE(RS_R26,RS_R27)) |
| r3115 | r3116 | |
| 620 | 611 | /* DAC */ |
| 621 | 612 | /************************************************/ |
| 622 | 613 | /* Signal decay circuit Q7, R20, C32 */ |
| 623 | DISCRETE_RCDISC(NODE_170, DS_DAC_DISCHARGE, 1, RS_R40, RS_C40) | |
| 624 | DISCRETE_TRANSFORM4(NODE_171, 1, DS_DAC, DK_SUP_V/256.0, NODE_170, DS_DAC_DISCHARGE, "01*3!2+*") | |
| 614 | DISCRETE_RCDISC(NODE_170, DS_DISCHARGE_INV, 1, RS_R40, RS_C40) | |
| 615 | DISCRETE_TRANSFORM4(NODE_171, 1, DS_DAC, DK_SUP_V/256.0, NODE_170, DS_DISCHARGE_INV, "01*3!2+*") | |
| 625 | 616 | |
| 626 | 617 | /* following the DAC are two opamps. The first is a current-to-voltage changer |
| 627 | 618 | * for the DAC08 which delivers a variable output current. |
| r3115 | r3116 | |
| 642 | 633 | |
| 643 | 634 | DISCRETE_MIXER5(NODE_288, 1, DS_OUT_SOUND0, DS_OUT_SOUND1, DS_OUT_SOUND2, DS_OUT_SOUND7, DS_OUT_DAC, &radarscp_mixer_desc) |
| 644 | 635 | |
| 645 | / | |
| 636 | /* Amplifier: internal amplifier */ | |
| 646 | 637 | DISCRETE_ADDER2(NODE_289,1,NODE_288,5.0*43.0/(100.0+43.0)) |
| 647 | 638 | DISCRETE_RCINTEGRATE(NODE_294,1,NODE_289,0,150,1000, CAP_U(33),DK_SUP_V,DISC_RC_INTEGRATE_TYPE3) |
| 648 | 639 | DISCRETE_CRFILTER(NODE_295,1,NODE_294, 1000, DK_C13) |
| r3115 | r3116 | |
| 682 | 673 | #define JR_C14 CAP_U(4.7) |
| 683 | 674 | #define JR_C15 CAP_U(22) |
| 684 | 675 | #define JR_C16 CAP_U(3.3) |
| 685 | #define JR_C17 CAP_U(3.3) / | |
| 676 | #define JR_C17 CAP_U(3.3) /* ??? illegible */ | |
| 686 | 677 | #define JR_C18 CAP_N(22) |
| 687 | 678 | #define JR_C19 CAP_N(4.7) |
| 688 | 679 | #define JR_C20 CAP_U(0.12) |
| r3115 | r3116 | |
| 719 | 710 | static const discrete_mixer_desc dkongjr_mixer_desc = |
| 720 | 711 | {DISC_MIXER_IS_RESISTOR, |
| 721 | 712 | {JR_R5, JR_R3, JR_R6, JR_R4, JR_R25}, |
| 722 | {0,0,0,0,0}, // no variable resistors | |
| 723 | {0,0,0,0,0}, // no node capacitors | |
| 713 | {0,0,0,0,0}, /* no variable resistors */ | |
| 714 | {0,0,0,0,0}, /* no node capacitors */ | |
| 724 | 715 | 0, 0, |
| 725 | 716 | JR_C155, |
| 726 | 717 | JR_C161, |
| r3115 | r3116 | |
| 729 | 720 | static const discrete_mixer_desc dkongjr_s1_mixer_desc = |
| 730 | 721 | {DISC_MIXER_IS_RESISTOR, |
| 731 | 722 | {JR_R13, JR_R12}, |
| 732 | {0,0}, // no variable resistors | |
| 733 | {0,0}, // no node capacitors | |
| 734 | 0, RES_K(90), // Internal LS624 resistors ... | |
| 723 | {0,0}, /* no variable resistors */ | |
| 724 | {0,0}, /* no node capacitors */ | |
| 725 | 0, RES_K(90), /* Internal LS624 resistors ... */ | |
| 735 | 726 | JR_C24, |
| 736 | 727 | 0, |
| 737 | 728 | 0, 1}; |
| r3115 | r3116 | |
| 764 | 755 | DISCRETE_INPUT_NOT(DS_SOUND6_INV) |
| 765 | 756 | DISCRETE_INPUT_NOT(DS_SOUND7_INV) |
| 766 | 757 | DISCRETE_INPUT_NOT(DS_SOUND9_INV) |
| 767 | DISCRETE_INPUT_ | |
| 758 | DISCRETE_INPUT_NOT | |
| 768 | 759 | DISCRETE_INPUT_DATA(DS_DAC) |
| 769 | 760 | |
| 770 | 761 | /************************************************/ |
| r3115 | r3116 | |
| 820 | 811 | |
| 821 | 812 | DISCRETE_COUNTER(NODE_100,1,0,NODE_118,0xFFFF,DISC_COUNT_UP,0,DISC_CLK_BY_COUNT) |
| 822 | 813 | |
| 823 | DISCRETE_BITSET(NODE_101, NODE_100, 7) //LS157 2A | |
| 824 | DISCRETE_BITSET(NODE_102, NODE_100, 4) //LS157 2B | |
| 825 | DISCRETE_BITSET(NODE_103, NODE_100, 13) //LS157 3A | |
| 826 | DISCRETE_BITSET(NODE_104, NODE_100, 12) //LS157 3B | |
| 814 | DISCRETE_BITSET(NODE_101, NODE_100, 7) /*LS157 2A */ | |
| 815 | DISCRETE_BITSET(NODE_102, NODE_100, 4) /*LS157 2B */ | |
| 816 | DISCRETE_BITSET(NODE_103, NODE_100, 13) /*LS157 3A */ | |
| 817 | DISCRETE_BITSET(NODE_104, NODE_100, 12) /*LS157 3B */ | |
| 827 | 818 | |
| 828 | 819 | /* LS157 Switches */ |
| 829 | DISCRETE_SWITCH(NODE_105, 1, DS_SOUND7_INV, GND, NODE_113) // Switch 1 from LS624 | |
| 830 | DISCRETE_SWITCH(NODE_106, 1, DS_SOUND7_INV, NODE_101, NODE_102) // Switch 2 | |
| 831 | DISCRETE_SWITCH(NODE_107, 1, DS_SOUND7_INV, NODE_103, NODE_104) // Switch 3 | |
| 820 | DISCRETE_SWITCH(NODE_105, 1, DS_SOUND7_INV, GND, NODE_113) /* Switch 1 from LS624 */ | |
| 821 | DISCRETE_SWITCH(NODE_106, 1, DS_SOUND7_INV, NODE_101, NODE_102) /* Switch 2 */ | |
| 822 | DISCRETE_SWITCH(NODE_107, 1, DS_SOUND7_INV, NODE_103, NODE_104) /* Switch 3 */ | |
| 832 | 823 | |
| 833 | 824 | DISCRETE_LS123(NODE_110, DS_SOUND0_INV, JR_R8, JR_C14) |
| 834 | 825 | DISCRETE_TRANSFORM2(NODE_111, 1, TTL_HIGH, NODE_110, "01-") |
| r3115 | r3116 | |
| 848 | 839 | /* DAC */ |
| 849 | 840 | /************************************************/ |
| 850 | 841 | /* Signal decay circuit Q7, R20, C32 */ |
| 851 | DISCRETE_RCDISC(NODE_170, DS_DAC_DISCHARGE, 1, JR_R20, JR_C32) | |
| 852 | DISCRETE_TRANSFORM4(NODE_171, 1, DS_DAC, DK_SUP_V/256.0, NODE_170, DS_DAC_DISCHARGE, "01*3!2+*") | |
| 842 | DISCRETE_RCDISC(NODE_170, DS_DISCHARGE_INV, 1, JR_R20, JR_C32) | |
| 843 | DISCRETE_TRANSFORM4(NODE_171, 1, DS_DAC, DK_SUP_V/256.0, NODE_170, DS_DISCHARGE_INV, "01*3!2+*") | |
| 853 | 844 | |
| 854 | 845 | /* following the DAC are two opamps. The first is a current-to-voltage changer |
| 855 | 846 | * for the DAC08 which delivers a variable output current. |
| r3115 | r3116 | |
| 882 | 873 | * |
| 883 | 874 | ****************************************************************/ |
| 884 | 875 | |
| 885 | static SOUND_START( dkong ) | |
| 886 | { | |
| 887 | dkong_state *state = machine->driver_data; | |
| 888 | 876 | |
| 889 | state_save_register_global(state->page); | |
| 890 | state_save_register_global(state->mcustatus); | |
| 891 | state_save_register_global(state->portT); | |
| 892 | } | |
| 893 | 877 | |
| 894 | static SOUND_RESET( dkong ) | |
| 895 | { | |
| 896 | dkong_state *state = machine->driver_data; | |
| 897 | ||
| 898 | state->mcustatus = 0; | |
| 899 | state->page = 0x47; | |
| 900 | state->portT = 0; | |
| 901 | ||
| 902 | I8035_T_W_AL(machine,0,0); | |
| 903 | I8035_T_W_AL(machine,1,0); | |
| 904 | I8035_P1_W(machine,0xFF); | |
| 905 | I8035_P2_W(machine,0xFF); | |
| 906 | soundlatch_w(machine,0,0x0F); | |
| 907 | } | |
| 908 | ||
| 909 | static SOUND_RESET( dkongjr ) | |
| 910 | { | |
| 911 | SOUND_RESET_CALL(dkong); | |
| 912 | soundlatch_w(machine,0,0x00); | |
| 913 | } | |
| 914 | ||
| 915 | 878 | /**************************************************************** |
| 916 | 879 | * |
| 917 | 880 | * M58817 Speech |
| r3115 | r3116 | |
| 1006 | 969 | |
| 1007 | 970 | static WRITE8_HANDLER( M58817_command_w ) |
| 1008 | 971 | { |
| 1009 | logerror("PA Write %x\n", data); | |
| 1010 | ||
| 1011 | 972 | tms5110_ctl_w(machine, 0, data & 0x0f); |
| 1012 | 973 | tms5110_pdc_w(machine, 0, (data>>4) & 0x01); |
| 1013 | / | |
| 974 | /* FIXME 0x20 is CS */ | |
| 1014 | 975 | } |
| 1015 | 976 | |
| 977 | ||
| 1016 | 978 | /**************************************************************** |
| 1017 | 979 | * |
| 1018 | 980 | * I/O Handlers - static |
| 1019 | 981 | * |
| 1020 | 982 | ****************************************************************/ |
| 1021 | 983 | |
| 1022 | static READ8_HANDLER( dkong_sh_p1_r ) | |
| 1023 | { | |
| 1024 | return I8035_P1_R(machine); | |
| 1025 | } | |
| 1026 | ||
| 1027 | static READ8_HANDLER( dkong_sh_p2_r ) | |
| 1028 | { | |
| 1029 | return I8035_P2_R(machine); | |
| 1030 | } | |
| 1031 | ||
| 1032 | static READ8_HANDLER( dkong_sh_t0_r ) | |
| 1033 | { | |
| 1034 | return I8035_T_R(machine,0); | |
| 1035 | } | |
| 1036 | ||
| 1037 | static READ8_HANDLER( dkong_sh_t1_r ) | |
| 1038 | { | |
| 1039 | return I8035_T_R(machine,1); | |
| 1040 | } | |
| 1041 | ||
| 1042 | 984 | static WRITE8_HANDLER( dkong_voice_w ) |
| 1043 | 985 | { |
| 1044 | 986 | /* only provided for documentation purposes |
| r3115 | r3116 | |
| 1055 | 997 | return 0; |
| 1056 | 998 | } |
| 1057 | 999 | |
| 1058 | static READ8_HANDLER( dkong | |
| 1000 | static READ8_DEVICE_HANDLER( dkong | |
| 1059 | 1001 | { |
| 1060 | dkong_state *state = machine->driver_data; | |
| 1061 | UINT8 *SND = memory_region(machine, "sound"); | |
| 1002 | const device_config *devvp2 = devtag_get_device(device->machine, LATCH8, "virtual_p2"); | |
| 1003 | UINT8 *snd_rom = memory_region(device->machine, "sound"); | |
| 1004 | UINT8 page = latch8_r(devvp2,0) & 0x47; | |
| 1062 | 1005 | |
| 1063 | if ( | |
| 1006 | if ( | |
| 1064 | 1007 | { |
| 1065 | return ( | |
| 1008 | return ( | |
| 1066 | 1009 | } |
| 1067 | 1010 | else |
| 1068 | 1011 | { |
| 1069 | 1012 | /* printf("rom access at pc = %4x\n",activecpu_get_pc()); */ |
| 1070 | return ( | |
| 1013 | return (snd_rom[0x1000+( | |
| 1071 | 1014 | } |
| 1072 | 1015 | } |
| 1073 | 1016 | |
| 1074 | static RE | |
| 1017 | static WRITE | |
| 1075 | 1018 | { |
| 1076 | return soundlatch_r(machine,0) & 0x01F; | |
| 1077 | } | |
| 1078 | ||
| 1079 | static WRITE8_HANDLER( dkong_sh_p1_w ) | |
| 1080 | { | |
| 1081 | 1019 | discrete_sound_w(machine,DS_DAC,data); |
| 1082 | 1020 | } |
| 1083 | 1021 | |
| 1084 | 1022 | |
| 1085 | static READ8_HANDLER( radarsc1_sh_p1_r ) | |
| 1086 | { | |
| 1087 | int r; | |
| 1088 | ||
| 1089 | r = (I8035_P1_R(machine) & 0x80) | (tms5110_status_r(machine,0)<<6); | |
| 1090 | return r; | |
| 1091 | } | |
| 1092 | ||
| 1093 | static WRITE8_HANDLER( dkong_sh_p2_w ) | |
| 1094 | { | |
| 1095 | dkong_state *state = machine->driver_data; | |
| 1096 | ||
| 1097 | /* If P2.Bit7 -> is apparently an external signal decay or other output control | |
| 1098 | * If P2.Bit6 -> activates the external compressed sample ROM (not radarsc1) | |
| 1099 | * If P2.Bit5 -> Signal ANSN ==> Grid enable (radarsc1) | |
| 1100 | * If P2.Bit4 -> status code to main cpu | |
| 1101 | * P2.Bit2-0 -> select the 256 byte bank for external ROM | |
| 1102 | */ | |
| 1103 | ||
| 1104 | state->mcustatus = ((~data & 0x10) >> 4); | |
| 1105 | radarsc1_ansn_w(machine, 0, (data & 0x20) >> 5); | |
| 1106 | state->page = (data & 0x47); | |
| 1107 | ||
| 1108 | discrete_sound_w(machine,DS_DAC_DISCHARGE, (data & 0x80) ? 0 : 1 ); | |
| 1109 | } | |
| 1110 | ||
| 1111 | ||
| 1112 | 1023 | /**************************************************************** |
| 1113 | 1024 | * |
| 1114 | 1025 | * I/O Handlers - global |
| 1115 | 1026 | * |
| 1116 | 1027 | ****************************************************************/ |
| 1117 | 1028 | |
| 1118 | WRITE8_HANDLER( dkongjr_sh_test6_w ) | |
| 1119 | { | |
| 1120 | I8035_P2_W_AL(machine,6,data & 1); | |
| 1121 | } | |
| 1122 | ||
| 1123 | ||
| 1124 | WRITE8_HANDLER( dkongjr_sh_tuneselect_w ) | |
| 1125 | { | |
| 1126 | soundlatch_w(machine,offset,data); | |
| 1127 | } | |
| 1128 | ||
| 1129 | READ8_HANDLER( dkong_audio_status_r ) | |
| 1130 | { | |
| 1131 | dkong_state *state = machine->driver_data; | |
| 1132 | ||
| 1133 | return state->mcustatus; | |
| 1134 | } | |
| 1135 | ||
| 1136 | 1029 | WRITE8_HANDLER( dkong_audio_irq_w ) |
| 1137 | 1030 | { |
| 1138 | 1031 | if (data) |
| r3115 | r3116 | |
| 1141 | 1034 | cpunum_set_input_line(machine, 1, 0, CLEAR_LINE); |
| 1142 | 1035 | } |
| 1143 | 1036 | |
| 1144 | WRITE8_HANDLER( dkong_snd_disc_w ) | |
| 1145 | { | |
| 1146 | dkong_state *state = machine->driver_data; | |
| 1147 | 1037 | |
| 1148 | switch (offset) | |
| 1149 | { | |
| 1150 | case 0: | |
| 1151 | discrete_sound_w(machine,DS_SOUND0_INP,data & 1); | |
| 1152 | break; | |
| 1153 | case 1: | |
| 1154 | discrete_sound_w(machine,DS_SOUND1_INP,data & 1); | |
| 1155 | break; | |
| 1156 | case 2: | |
| 1157 | discrete_sound_w(machine,DS_SOUND2_INP,data & 1); | |
| 1158 | radarscp_snd02_w(machine, 0, data & 1); | |
| 1159 | break; | |
| 1160 | case 3: | |
| 1161 | if (state->hardware_type == HARDWARE_TRS01) | |
| 1162 | //SOUND3 ==> PA7 | |
| 1163 | I8035_P1_W_AL(machine,7,data & 1); | |
| 1164 | else | |
| 1165 | I8035_P2_W_AL(machine,5,data & 1); | |
| 1166 | break; | |
| 1167 | case 4: | |
| 1168 | I8035_T_W_AL(machine, 1, data & 1); | |
| 1169 | break; | |
| 1170 | case 5: | |
| 1171 | I8035_T_W_AL(machine, 0, data & 1); | |
| 1172 | break; | |
| 1173 | case 6: | |
| 1174 | discrete_sound_w(machine,DS_SOUND6_INP,data & 1); | |
| 1175 | break; | |
| 1176 | case 7: | |
| 1177 | discrete_sound_w(machine,DS_SOUND7_INP,data & 1); | |
| 1178 | break; | |
| 1179 | } | |
| 1180 | return; | |
| 1181 | } | |
| 1182 | ||
| 1183 | WRITE8_HANDLER( dkong_sh_tuneselect_w ) | |
| 1184 | { | |
| 1185 | soundlatch_w(machine,offset,data ^ 0x0f); | |
| 1186 | } | |
| 1187 | ||
| 1188 | WRITE8_HANDLER( dkongjr_snd_w1 ) | |
| 1189 | { | |
| 1190 | dkong_state *state = machine->driver_data; | |
| 1191 | ||
| 1192 | switch (offset) | |
| 1193 | { | |
| 1194 | case 0: /* climb */ | |
| 1195 | discrete_sound_w(machine,DS_SOUND0_INP,data & 1); | |
| 1196 | break; | |
| 1197 | case 1: /* jump */ | |
| 1198 | discrete_sound_w(machine,DS_SOUND1_INP,data & 1); | |
| 1199 | break; | |
| 1200 | case 2: /* land */ | |
| 1201 | discrete_sound_w(machine,DS_SOUND2_INP,data & 1); | |
| 1202 | break; | |
| 1203 | case 3: /* Port 3 write ==> PB 5 */ | |
| 1204 | I8035_P2_W_AL(machine,5,data & 1); | |
| 1205 | break; | |
| 1206 | case 4: /* Port 4 write */ | |
| 1207 | I8035_T_W_AL(machine,1, data & 1); | |
| 1208 | break; | |
| 1209 | case 5: /* Port 5 write */ | |
| 1210 | I8035_T_W_AL(machine,0, data & 1); | |
| 1211 | break; | |
| 1212 | case 6: /* Port 6 write ==> PB 4 */ | |
| 1213 | I8035_P2_W_AL(machine,4,data & 1); | |
| 1214 | break; | |
| 1215 | case 7: /* walk */ | |
| 1216 | discrete_sound_w(machine,DS_SOUND7_INP,data & 1); | |
| 1217 | break; | |
| 1218 | } | |
| 1219 | } | |
| 1220 | ||
| 1221 | WRITE8_HANDLER( dkongjr_snd_w2 ) | |
| 1222 | { | |
| 1223 | switch (offset) | |
| 1224 | { | |
| 1225 | case 0: /* S9 - drop */ | |
| 1226 | discrete_sound_w(machine,DS_SOUND9_INP,data & 1); | |
| 1227 | break; | |
| 1228 | } | |
| 1229 | } | |
| 1230 | ||
| 1231 | 1038 | /************************************* |
| 1232 | 1039 | * |
| 1233 | 1040 | * Sound CPU memory handlers |
| r3115 | r3116 | |
| 1239 | 1046 | ADDRESS_MAP_END |
| 1240 | 1047 | |
| 1241 | 1048 | static ADDRESS_MAP_START( dkong_sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1242 | AM_RANGE(0x00, 0xff) AM_READWRITE(dkong_sh_tune_r, dkong_voice_w) | |
| 1243 | AM_RANGE(I8039_bus, I8039_bus) AM_READWRITE(dkong_sh_tune_r, dkong_voice_w) | |
| 1244 | AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(dkong_sh_p1_r, dkong_sh_p1_w) | |
| 1245 | AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(dkong_sh_p2_r, dkong_sh_p2_w) | |
| 1246 | AM_RANGE(I8039_t0, I8039_t0) AM_READ(dkong_sh_t0_r) | |
| 1247 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(dkong_sh_t1_r) | |
| 1049 | AM_RANGE(0x00, 0xFF) AM_DEVREAD(LATCH8, "ls175.3d", dkong_tune_r) | |
| 1050 | AM_WRITE(dkong_voice_w) | |
| 1051 | AM_RANGE(MCS48_PORT_BUS, MCS48_PORT_BUS) AM_DEVREAD(LATCH8, "ls175.3d", dkong_tune_r) | |
| 1052 | AM_WRITE(dkong_voice_w) | |
| 1053 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(dkong_p1_w) /* only write to dac */ | |
| 1054 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_LATCH8_READWRITE("virtual_p2") | |
| 1055 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_LATCH8_READBIT("ls259.6h", 5) | |
| 1056 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_LATCH8_READBIT("ls259.6h", 4) | |
| 1248 | 1057 | ADDRESS_MAP_END |
| 1249 | 1058 | |
| 1250 | 1059 | static ADDRESS_MAP_START( dkongjr_sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1251 | AM_RANGE(0x00, 0xff) AM_READ(dkongjr_sh_tune_r) | |
| 1252 | AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(dkong_sh_p1_r, dkong_sh_p1_w) | |
| 1253 | AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(dkong_sh_p2_r, dkong_sh_p2_w) | |
| 1254 | AM_RANGE(I8039_t0, I8039_t0) AM_READ(dkong_sh_t0_r) | |
| 1255 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(dkong_sh_t1_r) | |
| 1060 | AM_RANGE(0x00, 0x00) AM_MIRROR(0xff) AM_LATCH8_READ("ls174.3d") | |
| 1061 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(dkong_p1_w) /* only write to dac */ | |
| 1062 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_LATCH8_READWRITE("virtual_p2") | |
| 1063 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_LATCH8_READBIT("ls259.6h", 5) | |
| 1064 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_LATCH8_READBIT("ls259.6h", 4) | |
| 1256 | 1065 | ADDRESS_MAP_END |
| 1257 | 1066 | |
| 1258 | 1067 | static ADDRESS_MAP_START( radarsc1_sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1259 | AM_RANGE(0x00, 0xff) AM_READ(soundlatch_r) | |
| 1260 | AM_RANGE(0x00, 0xff) AM_WRITE(dkong_sh_p1_w) // DAC here | |
| 1261 | AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(radarsc1_sh_p1_r, M58817_command_w) | |
| 1262 | AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(dkong_sh_p2_r, dkong_sh_p2_w) | |
| 1263 | AM_RANGE(I8039_t0, I8039_t0) AM_READ(dkong_sh_t0_r) | |
| 1264 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(dkong_sh_t1_r) | |
| 1068 | AM_RANGE(0x00, 0x00) AM_MIRROR(0xff) AM_DEVREAD(LATCH8, "ls175.3d", latch8_r) | |
| 1069 | AM_RANGE(0x00, 0xff) AM_WRITE(dkong_p1_w) /* DAC here */ | |
| 1070 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_LATCH8_READ("virtual_p1") | |
| 1071 | AM_WRITE(M58817_command_w) | |
| 1072 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_LATCH8_WRITE("virtual_p2") | |
| 1073 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_LATCH8_READBIT("ls259.6h", 5) | |
| 1074 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_LATCH8_READBIT("ls259.6h", 4) | |
| 1265 | 1075 | ADDRESS_MAP_END |
| 1266 | 1076 | |
| 1267 | 1077 | static ADDRESS_MAP_START( dkong3_sound1_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1268 | 1078 | AM_RANGE(0x0000, 0x01ff) AM_RAM |
| 1269 | AM_RANGE(0x4016, 0x4016) AM_READ(soundlatch_r) // overwrite default | |
| 1270 | AM_RANGE(0x4017, 0x4017) AM_READ(soundlatch2_r) | |
| 1079 | AM_RANGE(0x4016, 0x4016) AM_LATCH8_READ("latch1") /* overwrite default */ | |
| 1080 | AM_RANGE(0x4017, 0x4017) AM_LATCH8_READ("latch2") | |
| 1271 | 1081 | AM_RANGE(0x4000, 0x4017) AM_READ(nes_psg_0_r) |
| 1272 | 1082 | AM_RANGE(0x4000, 0x4017) AM_WRITE(nes_psg_0_w) |
| 1273 | 1083 | AM_RANGE(0xe000, 0xffff) AM_ROM |
| r3115 | r3116 | |
| 1275 | 1085 | |
| 1276 | 1086 | static ADDRESS_MAP_START( dkong3_sound2_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1277 | 1087 | AM_RANGE(0x0000, 0x01ff) AM_RAM |
| 1278 | AM_RANGE(0x4016, 0x4016) AM_READ( | |
| 1088 | AM_RANGE(0x4016, 0x4016) AM_LATCH8_READ(" | |
| 1279 | 1089 | AM_RANGE(0x4000, 0x4017) AM_READ(nes_psg_1_r) |
| 1280 | 1090 | AM_RANGE(0x4000, 0x4017) AM_WRITE(nes_psg_1_w) |
| 1281 | 1091 | AM_RANGE(0xe000, 0xffff) AM_ROM |
| r3115 | r3116 | |
| 1298 | 1108 | |
| 1299 | 1109 | MACHINE_DRIVER_START( dkong2b_audio ) |
| 1300 | 1110 | |
| 1111 | /* sound latches */ | |
| 1112 | ||
| 1113 | MDRV_LATCH8_ADD("ls175.3d") /* sound cmd latch */ | |
| 1114 | MDRV_LATCH8_MASKOUT(0xf0) | |
| 1115 | MDRV_LATCH8_INVERT(0x0F) | |
| 1116 | ||
| 1117 | MDRV_LATCH8_ADD("ls259.6h") | |
| 1118 | MDRV_LATCH8_DISCRETE_NODE(0, DS_SOUND0_INP) | |
| 1119 | MDRV_LATCH8_DISCRETE_NODE(1, DS_SOUND1_INP) | |
| 1120 | MDRV_LATCH8_DISCRETE_NODE(2, DS_SOUND2_INP) | |
| 1121 | MDRV_LATCH8_DISCRETE_NODE(6, DS_SOUND6_INP) | |
| 1122 | MDRV_LATCH8_DISCRETE_NODE(7, DS_SOUND7_INP) | |
| 1123 | ||
| 1124 | /* If P2.Bit7 -> is apparently an external signal decay or other output control | |
| 1125 | * If P2.Bit6 -> activates the external compressed sample ROM (not radarsc1) | |
| 1126 | * If P2.Bit5 -> Signal ANSN ==> Grid enable (radarsc1) | |
| 1127 | * If P2.Bit4 -> status code to main cpu | |
| 1128 | * P2.Bit2-0 -> select the 256 byte bank for external ROM | |
| 1129 | */ | |
| 1130 | ||
| 1131 | MDRV_LATCH8_ADD( "virtual_p2" ) /* virtual latch for port B */ | |
| 1132 | MDRV_LATCH8_INVERT( 0x20 ) /* signal is inverted */ | |
| 1133 | MDRV_LATCH8_DEVREAD(5, LATCH8, "ls259.6h", latch8_r, 3) | |
| 1134 | MDRV_LATCH8_DISCRETE_NODE(7, DS_DISCHARGE_INV) | |
| 1135 | ||
| 1301 | 1136 | MDRV_CPU_ADD("sound", I8035,I8035_CLOCK) |
| 1302 | 1137 | MDRV_CPU_PROGRAM_MAP(dkong_sound_map,0) |
| 1303 | 1138 | MDRV_CPU_IO_MAP(dkong_sound_io_map, 0) |
| 1304 | 1139 | |
| 1305 | MDRV_SOUND_START(dkong) | |
| 1306 | MDRV_SOUND_RESET(dkong) | |
| 1307 | ||
| 1308 | 1140 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1309 | 1141 | MDRV_SOUND_ADD("discrete", DISCRETE, 0) |
| 1310 | 1142 | MDRV_SOUND_CONFIG_DISCRETE(dkong2b) |
| r3115 | r3116 | |
| 1328 | 1160 | MDRV_CPU_MODIFY("sound") |
| 1329 | 1161 | MDRV_CPU_IO_MAP(radarsc1_sound_io_map, 0) |
| 1330 | 1162 | |
| 1163 | /* virtual_p2 is not read -see memory map-, all bits are output bits */ | |
| 1164 | MDRV_LATCH8_ADD( "virtual_p1" ) /* virtual latch for port A */ | |
| 1165 | MDRV_LATCH8_INVERT( 0x80 ) /* signal is inverted */ | |
| 1166 | MDRV_LATCH8_DEVREAD(7, LATCH8, "ls259.6h", latch8_r, 3) | |
| 1167 | MDRV_LATCH8_READ(6, tms5110_status_r, 0) | |
| 1168 | ||
| 1331 | 1169 | MDRV_SOUND_ADD("tms", M58817, XTAL_640kHz) |
| 1332 | 1170 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1333 | 1171 | |
| r3115 | r3116 | |
| 1335 | 1173 | |
| 1336 | 1174 | MACHINE_DRIVER_START( dkongjr_audio ) |
| 1337 | 1175 | |
| 1176 | /* sound latches */ | |
| 1177 | ||
| 1178 | MDRV_LATCH8_ADD("ls174.3d") | |
| 1179 | MDRV_LATCH8_MASKOUT(0xE0) | |
| 1180 | ||
| 1181 | MDRV_LATCH8_ADD( "ls259.6h") | |
| 1182 | MDRV_LATCH8_DISCRETE_NODE(0, DS_SOUND0_INP) | |
| 1183 | MDRV_LATCH8_DISCRETE_NODE(1, DS_SOUND1_INP) | |
| 1184 | MDRV_LATCH8_DISCRETE_NODE(2, DS_SOUND2_INP) | |
| 1185 | MDRV_LATCH8_DISCRETE_NODE(7, DS_SOUND7_INP) | |
| 1186 | ||
| 1187 | MDRV_LATCH8_ADD( "ls259.5h") | |
| 1188 | MDRV_LATCH8_DISCRETE_NODE(1, DS_SOUND9_INP) | |
| 1189 | ||
| 1190 | MDRV_LATCH8_ADD( "ls259.4h") | |
| 1191 | ||
| 1192 | MDRV_LATCH8_ADD( "virtual_p2" ) /* virtual latch for port B */ | |
| 1193 | MDRV_LATCH8_INVERT( 0x70 ) /* all signals are inverted */ | |
| 1194 | MDRV_LATCH8_DEVREAD(6, LATCH8, "ls259.4h", latch8_r, 1) | |
| 1195 | MDRV_LATCH8_DEVREAD(5, LATCH8, "ls259.6h", latch8_r, 3) | |
| 1196 | MDRV_LATCH8_DEVREAD(4, LATCH8, "ls259.6h", latch8_r, 6) | |
| 1197 | MDRV_LATCH8_DISCRETE_NODE(7, DS_DISCHARGE_INV) | |
| 1198 | ||
| 1338 | 1199 | MDRV_CPU_ADD("sound", I8035,I8035_CLOCK) |
| 1339 | 1200 | MDRV_CPU_PROGRAM_MAP(dkong_sound_map,0) |
| 1340 | 1201 | MDRV_CPU_IO_MAP(dkongjr_sound_io_map, 0) |
| 1341 | 1202 | |
| 1342 | MDRV_SOUND_START(dkong) | |
| 1343 | MDRV_SOUND_RESET(dkongjr) | |
| 1344 | ||
| 1345 | 1203 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1346 | 1204 | |
| 1347 | 1205 | MDRV_SOUND_ADD("discrete", DISCRETE, 0) |
| r3115 | r3116 | |
| 1360 | 1218 | MDRV_CPU_PROGRAM_MAP(dkong3_sound2_map, 0) |
| 1361 | 1219 | MDRV_CPU_VBLANK_INT("main", nmi_line_pulse) |
| 1362 | 1220 | |
| 1221 | /* sound latches */ | |
| 1222 | MDRV_LATCH8_ADD( "latch1") | |
| 1223 | MDRV_LATCH8_ADD( "latch2") | |
| 1224 | MDRV_LATCH8_ADD( "latch3") | |
| 1225 | ||
| 1363 | 1226 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1364 | 1227 | MDRV_SOUND_ADD("nes1", NES, N2A03_DEFAULTCLOCK) |
| 1365 | 1228 | MDRV_SOUND_CONFIG(nes_interface_1) |
| r3115 | r3116 | |
|---|---|---|
| 67 | 67 | |
| 68 | 68 | static void update_68k_interrupts(running_machine *machine) |
| 69 | 69 | { |
| 70 | int irqline = 0; | |
| 71 | ||
| 72 | if (mainflag) irqline = 1; | |
| 73 | if (irq68k) irqline = 3; | |
| 74 | ||
| 75 | if (irqline) | |
| 76 | cpunum_set_input_line(machine, hdcpu_sound, irqline, ASSERT_LINE); | |
| 77 | else | |
| 78 | cpunum_set_input_line(machine, hdcpu_sound, 7, CLEAR_LINE); | |
| 70 | cpunum_set_input_line(machine, hdcpu_sound, 1, mainflag ? ASSERT_LINE : CLEAR_LINE); | |
| 71 | cpunum_set_input_line(machine, hdcpu_sound, 3, irq68k ? ASSERT_LINE : CLEAR_LINE); | |
| 79 | 72 | } |
| 80 | 73 | |
| 81 | 74 |
| r3115 | r3116 | |
|---|---|---|
| 83 | 83 | DISC_555_OUT_DC | DISC_555_OUT_SQW, |
| 84 | 84 | 5, // B+ voltage of 555 |
| 85 | 85 | DEFAULT_555_VALUES, |
| 86 | 5, // B+ voltage of the Constant Current source | |
| 87 | 86 | 0.7 // Q1 junction voltage |
| 88 | 87 | }; |
| 89 | 88 | |
| r3115 | r3116 | |
| 191 | 190 | DISCRETE_COUNTER_7492(SPRINT4_PLAYER_MOTOR_NODE(4, _plr), /* IC D9, pins 11,9,8 */ \ |
| 192 | 191 | 1, /* ENAB */ \ |
| 193 | 192 | SPRINT4_ATTRACT_EN, /* RESET */ \ |
| 194 | SPRINT4_PLAYER_MOTOR_NODE(3, _plr)) /* CLK */ \ | |
| 193 | SPRINT4_PLAYER_MOTOR_NODE(3, _plr), /* CLK */ \ | |
| 194 | DISC_CLK_ON_F_EDGE) \ | |
| 195 | 195 | DISCRETE_TRANSFORM3(SPRINT4_PLAYER_MOTOR_NODE(5, _plr), /* IC B10, pin 3 */ \ |
| 196 | 196 | 1, /* ENAB */ \ |
| 197 | 197 | SPRINT4_PLAYER_MOTOR_NODE(4, _plr), /* INP0 */ \ |
| r3115 | r3116 | |
|---|---|---|
| 110 | 110 | DISC_555_OUT_DC | DISC_555_OUT_SQW, |
| 111 | 111 | 5, // B+ voltage of 555 |
| 112 | 112 | DEFAULT_555_VALUES, |
| 113 | 5, // B+ voltage of the Constant Current source | |
| 114 | 113 | 0.7 // Q2 junction voltage |
| 115 | 114 | }; |
| 116 | 115 | |
| r3115 | r3116 | |
| 222 | 221 | RES_M(1), 0, 0, // R28, no rGnd, no rDis |
| 223 | 222 | &firetrk_motor_vco) |
| 224 | 223 | DISCRETE_COUNTER_7492(NODE_23, 1, FIRETRUCK_ATTRACT_EN, // IC A9, QB-QD |
| 225 | NODE_22) | |
| 224 | NODE_22, DISC_CLK_ON_F_EDGE) | |
| 226 | 225 | DISCRETE_TRANSFORM2(NODE_24, 1, NODE_23, 0x04, "01&") // IC A9, pin 8 |
| 227 | 226 | DISCRETE_COUNTER(NODE_25, 1, FIRETRUCK_ATTRACT_EN, // IC A9, pin 12 |
| 228 | 227 | NODE_24, // from IC A9, pin 8 |
| r3115 | r3116 | |
| 337 | 336 | DISC_555_OUT_DC | DISC_555_OUT_SQW, |
| 338 | 337 | 5, // B+ voltage of 555 |
| 339 | 338 | DEFAULT_555_VALUES, |
| 340 | 5, // B+ voltage of the Constant Current source | |
| 341 | 339 | 0.7 // Q1 junction voltage |
| 342 | 340 | }; |
| 343 | 341 | |
| r3115 | r3116 | |
| 426 | 424 | RES_M(3.3), 0, 0, // R11, no rGnd, no rDis |
| 427 | 425 | &superbug_motor_vco) |
| 428 | 426 | DISCRETE_COUNTER_7492(NODE_23, 1, SUPERBUG_ATTRACT_EN, // IC A7, QB-QD |
| 429 | NODE_22) // from IC A6, pin 3 | |
| 430 | DISCRETE_TRANSFORM2(NODE_24, 1, NODE_23, 0x04, "01&") // IC A7, pin 8-QD | |
| 427 | NODE_22, DISC_CLK_ON_F_EDGE) // from IC A6, pin 3 | |
| 428 | DISCRETE_TRANSFORM2(NODE_24, 1, NODE_23, 0x04, "01&") // IC A7, pin 8-QD | |
| 431 | 429 | DISCRETE_TRANSFORM2(NODE_25, 1, NODE_23, 0x01, "01&") // IC A7, pin 11-QB |
| 432 | 430 | DISCRETE_LOGIC_XOR(NODE_26, 1, NODE_24, NODE_25) // Gate A9, pin 8 |
| 433 | 431 | DISCRETE_COUNTER(NODE_27, 1, SUPERBUG_ATTRACT_EN, // IC A7, pin 12-QA |
| r3115 | r3116 | |
| 498 | 496 | DISC_555_OUT_DC | DISC_555_OUT_SQW, |
| 499 | 497 | 5, // B+ voltage of 555 |
| 500 | 498 | DEFAULT_555_VALUES, |
| 501 | 5, // B+ voltage of the Constant Current source | |
| 502 | 499 | 0.7 // Q1 junction voltage |
| 503 | 500 | }; |
| 504 | 501 | |
| r3115 | r3116 | |
| 611 | 608 | RES_M(1), 0, 0, // R86, no rGnd, no rDis |
| 612 | 609 | &montecar_motor_vco) |
| 613 | 610 | DISCRETE_COUNTER_7492(NODE_23, 1, MONTECAR_ATTRACT_EN, // IC B/C9, QB-QD |
| 614 | NODE_22) | |
| 611 | NODE_22, DISC_CLK_ON_F_EDGE) | |
| 615 | 612 | DISCRETE_TRANSFORM2(NODE_24, 1, NODE_23, 0x04, "01&") // IC B/C9, pin 8-QD |
| 616 | 613 | DISCRETE_TRANSFORM2(NODE_25, 1, NODE_23, 0x01, "01&") // IC B/C9, pin 11-QB |
| 617 | 614 | DISCRETE_LOGIC_XOR(NODE_26, 1, NODE_24, NODE_25) // Gate A9, pin 11 |
| r3115 | r3116 | |
| 646 | 643 | RES_M(1), 0, 0, // R81, no rGnd, no rDis |
| 647 | 644 | &montecar_motor_vco) |
| 648 | 645 | DISCRETE_COUNTER_7492(NODE_43, 1, MONTECAR_ATTRACT_EN, // IC A/B9, QB-QD |
| 649 | NODE_42) | |
| 646 | NODE_42, DISC_CLK_ON_F_EDGE) | |
| 650 | 647 | DISCRETE_TRANSFORM2(NODE_44, 1, NODE_43, 0x04, "01&") // IC A/B9, pin 8-QD |
| 651 | 648 | DISCRETE_TRANSFORM2(NODE_45, 1, NODE_43, 0x01, "01&") // IC A/B9, pin 11-QB |
| 652 | 649 | DISCRETE_LOGIC_XOR(NODE_46, 1, NODE_44, NODE_45) // Gate A9, pin 6 |
| r3115 | r3116 | |
|---|---|---|
| 49 | 49 | COMBINE_DATA(&su_82); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | WRITE16_HANDLER(namcoc7x_soundram16_w) | |
| 53 | { | |
| 54 | COMBINE_DATA(namcoc7x_mcuram+offset); | |
| 55 | } | |
| 56 | ||
| 57 | READ16_HANDLER(namcoc7x_soundram16_r) | |
| 58 | { | |
| 59 | return namcoc7x_mcuram[offset]; | |
| 60 | } | |
| 61 | ||
| 62 | WRITE32_HANDLER(namcoc7x_soundram32_w) | |
| 63 | { | |
| 64 | namcoc7x_soundram16_w(machine, offset*2, data >> 16, mem_mask >> 16); | |
| 65 | namcoc7x_soundram16_w(machine, offset*2+1, data, mem_mask); | |
| 66 | } | |
| 67 | ||
| 68 | READ32_HANDLER(namcoc7x_soundram32_r) | |
| 69 | { | |
| 70 | return (namcoc7x_soundram16_r(machine, offset*2, mem_mask >> 16) << 16) | | |
| 71 | namcoc7x_soundram16_r(machine, offset*2+1, mem_mask); | |
| 72 | } | |
| 73 | ||
| 52 | 74 | void namcoc7x_sound_write16(UINT16 command, UINT32 offset) |
| 53 | 75 | { |
| 54 | 76 | namcoc7x_mcuram[offset] = command; |
| r3115 | r3116 | |
| 56 | 78 | |
| 57 | 79 | void namcoc7x_on_driver_init(running_machine *machine) |
| 58 | 80 | { |
| 59 | UINT8 *pROM = (UINT8 *)memory_region(machine, " | |
| 81 | UINT8 *pROM = (UINT8 *)memory_region(machine, "c7x | |
| 60 | 82 | int cpunum; |
| 61 | 83 | |
| 62 | // clear the | |
| 84 | // clear the two 16-bi | |
| 63 | 85 | // (prevents external init routines from getting called - they assume a |
| 64 | // RAM layout for a different BIOS and crash ours) | |
| 65 | memset(pROM, 0xff, 0x100); | |
| 86 | // ROM layout for a different BIOS and crash ours) | |
| 87 | memset(pROM, 0, 4); | |
| 66 | 88 | |
| 67 | 89 | // install speedup cheat |
| 68 | 90 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) |
| r3115 | r3116 | |
| 105 | 127 | ADDRESS_MAP_START( namcoc7x_mcu_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 106 | 128 | AM_RANGE(0x002000, 0x002fff) AM_READWRITE( c352_0_r, c352_0_w ) |
| 107 | 129 | AM_RANGE(0x004000, 0x00bfff) AM_RAM AM_BASE(&namcoc7x_mcuram) |
| 108 | AM_RANGE(0x00c000, 0x00ffff) AM_ROM AM_REGION("user4", 0x8c000) | |
| 109 | AM_RANGE(0x080000, 0x0fffff) AM_ROM AM_REGION("user4", 0) | |
| 110 | AM_RANGE(0x200000, 0x27ffff) AM_ROM AM_REGION("user4", 0) | |
| 111 | AM_RANGE(0x280000, 0x2fffff) AM_ROM AM_REGION("user4", 0) | |
| 130 | AM_RANGE(0x00c000, 0x00ffff) AM_ROM AM_REGION("c7x", 0x8c000) | |
| 131 | AM_RANGE(0x080000, 0x0fffff) AM_ROM AM_REGION("c7x", 0) | |
| 132 | AM_RANGE(0x200000, 0x27ffff) AM_ROM AM_REGION("c7x", 0) | |
| 133 | AM_RANGE(0x280000, 0x2fffff) AM_ROM AM_REGION("c7x", 0) | |
| 112 | 134 | AM_RANGE(0x301000, 0x301001) AM_NOP // watchdog? LEDs? |
| 113 | 135 | AM_RANGE(0x308000, 0x308003) AM_NOP // volume control IC? |
| 114 | 136 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 116 | 138 | ADDRESS_MAP_START( namcoc7x_mcu_share_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 117 | 139 | AM_RANGE(0x002000, 0x002fff) AM_READWRITE( c352_0_r, c352_0_w ) |
| 118 | 140 | AM_RANGE(0x004000, 0x00bfff) AM_READWRITE( c7x_shared_r, c7x_shared_w ) AM_BASE(&namcoc7x_mcuram) |
| 119 | AM_RANGE(0x00c000, 0x00ffff) AM_ROM AM_REGION("user4", 0x8c000) | |
| 120 | AM_RANGE(0x080000, 0x0fffff) AM_ROM AM_REGION("user4", 0) | |
| 121 | AM_RANGE(0x200000, 0x27ffff) AM_ROM AM_REGION("user4", 0) | |
| 122 | AM_RANGE(0x280000, 0x2fffff) AM_ROM AM_REGION("user4", 0) | |
| 141 | AM_RANGE(0x00c000, 0x00ffff) AM_ROM AM_REGION("c7x", 0x8c000) | |
| 142 | AM_RANGE(0x080000, 0x0fffff) AM_ROM AM_REGION("c7x", 0) | |
| 143 | AM_RANGE(0x200000, 0x27ffff) AM_ROM AM_REGION("c7x", 0) | |
| 144 | AM_RANGE(0x280000, 0x2fffff) AM_ROM AM_REGION("c7x", 0) | |
| 123 | 145 | AM_RANGE(0x301000, 0x301001) AM_NOP // watchdog? LEDs? |
| 124 | 146 | AM_RANGE(0x308000, 0x308003) AM_NOP // volume control IC? |
| 125 | 147 | ADDRESS_MAP_END |
| r3115 | r3116 | |
|---|---|---|
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "deprecat.h" |
| 12 | 12 | #include "streams.h" |
| 13 | #include "cpu/ | |
| 13 | #include "cpu/mcs48 | |
| 14 | 14 | #include "segag80r.h" |
| 15 | 15 | #include "machine/8255ppi.h" |
| 16 | 16 | #include "sound/samples.h" |
| r3115 | r3116 | |
| 799 | 799 | * |
| 800 | 800 | *************************************/ |
| 801 | 801 | |
| 802 | static ADDRESS_MAP_START( monsterb_7751_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 803 | AM_RANGE(0x0000, 0x03ff) AM_ROM | |
| 804 | ADDRESS_MAP_END | |
| 805 | ||
| 806 | 802 | static ADDRESS_MAP_START( monsterb_7751_portmap, ADDRESS_SPACE_IO, 8 ) |
| 807 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(n7751_t1_r) | |
| 808 | AM_RANGE(I8039_p2, I8039_p2) AM_READ(n7751_command_r) | |
| 809 | AM_RANGE(I8039_bus, I8039_bus) AM_READ(n7751_rom_r) | |
| 810 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(dac_0_data_w) | |
| 811 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(n7751_busy_w) | |
| 812 | AM_RANGE(I8039_p4, I8039_p6) AM_WRITE(n7751_rom_offset_w) | |
| 813 | AM_RANGE(I8039_p7, I8039_p7) AM_WRITE(n7751_rom_select_w) | |
| 803 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(n7751_t1_r) | |
| 804 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READ(n7751_command_r) | |
| 805 | AM_RANGE(MCS48_PORT_BUS, MCS48_PORT_BUS) AM_READ(n7751_rom_r) | |
| 806 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(dac_0_data_w) | |
| 807 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(n7751_busy_w) | |
| 808 | AM_RANGE(MCS48_PORT_P4, MCS48_PORT_P6) AM_WRITE(n7751_rom_offset_w) | |
| 809 | AM_RANGE(MCS48_PORT_P7, MCS48_PORT_P7) AM_WRITE(n7751_rom_select_w) | |
| 814 | 810 | ADDRESS_MAP_END |
| 815 | 811 | |
| 816 | 812 | |
| r3115 | r3116 | |
| 839 | 835 | |
| 840 | 836 | /* basic machine hardware */ |
| 841 | 837 | MDRV_CPU_ADD("audio", N7751, 6000000) |
| 842 | MDRV_CPU_PROGRAM_MAP(monsterb_7751_map,0) | |
| 843 | 838 | MDRV_CPU_IO_MAP(monsterb_7751_portmap,0) |
| 844 | 839 | |
| 845 | 840 | /* sound hardware */ |
| r3115 | r3116 | |
|---|---|---|
| 19 | 19 | |
| 20 | 20 | INTERRUPT_GEN( namcoc7x_interrupt ); |
| 21 | 21 | |
| 22 | WRITE16_HANDLER(namcoc7x_soundram16_w); | |
| 23 | READ16_HANDLER(namcoc7x_soundram16_r); | |
| 24 | WRITE32_HANDLER(namcoc7x_soundram32_w); | |
| 25 | READ32_HANDLER(namcoc7x_soundram32_r); | |
| 26 | ||
| 22 | 27 | void namcoc7x_sound_write16(UINT16 command, UINT32 offset); |
| 23 | 28 | void namcoc7x_on_driver_init(running_machine *machine); |
| 24 | 29 | void namcoc7x_set_host_ram(UINT32 *hostram); |
| r3115 | r3116 | |
|---|---|---|
| 77 | 77 | DISC_555_OUT_DC | DISC_555_OUT_SQW, |
| 78 | 78 | 5, // B+ voltage of 555 |
| 79 | 79 | DEFAULT_555_VALUES, |
| 80 | 5, // B+ voltage of the Constant Current source | |
| 81 | 80 | 0.7 // Q2 junction voltage |
| 82 | 81 | }; |
| 83 | 82 |
| r0 | r3116 | |
|---|---|---|
| 1 | /************************************************************************ | |
| 2 | * starshp1 Sound System Analog emulation | |
| 3 | * Aug 2008, Derrick Renaud | |
| 4 | ************************************************************************/ | |
| 5 | ||
| 6 | #include "driver.h" | |
| 7 | #include "starshp1.h" | |
| 8 | #include "sound/discrete.h" | |
| 9 | ||
| 10 | ||
| 11 | /* voltage out for each 1/256 step of MC1408 circuit */ | |
| 12 | #define MC1408_DAC(v_ref, r, rf) ((double)v_ref / (double)r * (double)rf / 256.0) | |
| 13 | ||
| 14 | #define OP_AMP_NON_INVERT_GAIN(ri, rf) ((double)rf / (double)ri + 1) | |
| 15 | ||
| 16 | /* vin --/\r1/\-- out --/\r2/\-- gnd */ | |
| 17 | #define RES_VOLTAGE_DIVIDER(r1, r2) ((double)r2 / ((double)r1 + (double)r2)) | |
| 18 | ||
| 19 | #define RES_2_PARALLEL(r1, r2) (1.0 / (1.0 / r1 + 1.0 / r2)) | |
| 20 | ||
| 21 | /* Discrete Sound Input Nodes */ | |
| 22 | /* see "starshp1.h" */ | |
| 23 | ||
| 24 | /* Nodes - Sounds */ | |
| 25 | #define STARSHP1_PHASOR_SND NODE_13 | |
| 26 | #define STARSHP1_NOISE_SND NODE_14 | |
| 27 | #define STARSHP1_MOTOR_SND NODE_15 | |
| 28 | #define STARSHP1_SL1_SND NODE_16 | |
| 29 | #define STARSHP1_SL2_SND NODE_17 | |
| 30 | ||
| 31 | /* Timing signals */ | |
| 32 | #define STARSHP1_HSYNC 15750 /* per manual */ | |
| 33 | #define STARSHP1_S1V STARSHP1_HSYNC / 2 | |
| 34 | #define STARSHP1_S128V STARSHP1_S1V / 128 | |
| 35 | ||
| 36 | /* R/C values */ | |
| 37 | #define STARSHP1_R4 RES_K(1) | |
| 38 | #define STARSHP1_R54 RES_K(47) | |
| 39 | #define STARSHP1_R55 RES_K(22) | |
| 40 | #define STARSHP1_R58 RES_K(1) | |
| 41 | #define STARSHP1_R59 RES_K(1) | |
| 42 | #define STARSHP1_R60 RES_K(6.8) | |
| 43 | #define STARSHP1_R61 RES_K(10) | |
| 44 | #define STARSHP1_R62 750 | |
| 45 | #define STARSHP1_R63 RES_K(22) | |
| 46 | #define STARSHP1_R64 RES_K(10) | |
| 47 | #define STARSHP1_R65 RES_K(3.3) | |
| 48 | #define STARSHP1_R66 RES_K(33) | |
| 49 | #define STARSHP1_R67 RES_K(1) | |
| 50 | #define STARSHP1_R68 RES_K(3.3) | |
| 51 | #define STARSHP1_R69 RES_K(330) | |
| 52 | #define STARSHP1_R70 RES_K(10) | |
| 53 | #define STARSHP1_R71 RES_K(6.8) | |
| 54 | #define STARSHP1_R72 RES_K(47) | |
| 55 | #define STARSHP1_R74 RES_K(100) | |
| 56 | #define STARSHP1_R75 RES_K(47) | |
| 57 | #define STARSHP1_R76 RES_K(5) | |
| 58 | #define STARSHP1_R123 RES_K(1) | |
| 59 | #define STARSHP1_R124 RES_K(1) | |
| 60 | #define STARSHP1_R126 RES_K(1) | |
| 61 | #define STARSHP1_R151 RES_K(10) | |
| 62 | #define STARSHP1_R152 RES_K(1.5) | |
| 63 | #define STARSHP1_C34 CAP_U(0.1) | |
| 64 | #define STARSHP1_C36 CAP_U(2.2) | |
| 65 | #define STARSHP1_C45 CAP_U(0.1) | |
| 66 | #define STARSHP1_C46 CAP_U(0.1) | |
| 67 | #define STARSHP1_C47 CAP_U(0.015) | |
| 68 | #define STARSHP1_C59 CAP_U(0.22) | |
| 69 | #define STARSHP1_C61 CAP_U(0.01) | |
| 70 | #define STARSHP1_C63 CAP_U(0.1) | |
| 71 | #define STARSHP1_C78 CAP_U(0.1) | |
| 72 | ||
| 73 | /* Convert DAC value to voltage out at IC E10, pin 4 */ | |
| 74 | #define STARSHP1_MC1408_GAIN MC1408_DAC(5.0, STARSHP1_R4, STARSHP1_R62) | |
| 75 | /* Gain at IC E10, pin 12 */ | |
| 76 | #define STARSHP1_TONE_PITCH_GAIN OP_AMP_NON_INVERT_GAIN(STARSHP1_R63, STARSHP1_R64) | |
| 77 | ||
| 78 | #define STARSHP1_NOISE_AMPLITUDE_GAIN RES_VOLTAGE_DIVIDER(STARSHP1_R124, STARSHP1_R123) | |
| 79 | ||
| 80 | /* tweak to apply compensation filter at pin 6 */ | |
| 81 | #define STARSHP1_FAKE_MC3340_COMPENSATION_R RES_K(6.2) | |
| 82 | ||
| 83 | /* Discrete info structures */ | |
| 84 | ||
| 85 | static const discrete_lfsr_desc starshp1_lfsr={ | |
| 86 | DISC_CLK_IS_FREQ, | |
| 87 | 16, /* Bit Length */ | |
| 88 | 0, /* Reset Value */ | |
| 89 | 13, /* Use Bit 0 as XOR input 0 */ | |
| 90 | 14, /* Use Bit 14 as XOR input 1 */ | |
| 91 | DISC_LFSR_XNOR, /* Feedback stage1 is XNOR */ | |
| 92 | DISC_LFSR_OR, /* Feedback stage2 is just stage 1 output OR with external feed */ | |
| 93 | DISC_LFSR_REPLACE, /* Feedback stage3 replaces the shifted register contents */ | |
| 94 | 0x000001, /* Everything is shifted into the first bit only */ | |
| 95 | 0, /* Output is not inverted */ | |
| 96 | 15 /* Output bit */ | |
| 97 | }; | |
| 98 | ||
| 99 | static const discrete_555_desc starshp1_556_c10 = | |
| 100 | { | |
| 101 | DISC_555_OUT_ENERGY, | |
| 102 | 5, /* B+ voltage of 555 */ | |
| 103 | DEFAULT_555_VALUES | |
| 104 | }; | |
| 105 | ||
| 106 | /* effect of 556 internal CV resistors at pin 3 */ | |
| 107 | static const discrete_mixer_desc starshp1_556_c10_cv = | |
| 108 | { | |
| 109 | DISC_MIXER_IS_RESISTOR, | |
| 110 | {STARSHP1_R61, RES_K(5)}, | |
| 111 | {0}, {0}, 0, RES_K(10), 0, 0, 0, 1 | |
| 112 | }; | |
| 113 | ||
| 114 | static const discrete_mixer_desc starshp1_566_a9_mix_r = | |
| 115 | { | |
| 116 | DISC_MIXER_IS_RESISTOR, | |
| 117 | {STARSHP1_R54, STARSHP1_R55}, | |
| 118 | {0}, {0}, 0, 0, 0, 0, 0, 1 | |
| 119 | }; | |
| 120 | ||
| 121 | static const discrete_566_desc starshp1_566_a9 = | |
| 122 | { | |
| 123 | DISC_566_OUT_TRIANGLE, | |
| 124 | 5, /* B+ */ | |
| 125 | -10, /* B- */ | |
| 126 | NODE_41 /* charge voltage */ | |
| 127 | }; | |
| 128 | ||
| 129 | static const discrete_mixer_desc starshp1_555_b10_mix_r = | |
| 130 | { | |
| 131 | DISC_MIXER_IS_RESISTOR, | |
| 132 | {STARSHP1_R65, STARSHP1_R68}, | |
| 133 | {0}, {0}, 0, 0, 0, 0, 0, 1 | |
| 134 | }; | |
| 135 | ||
| 136 | static const discrete_555_desc starshp1_555_b10 = | |
| 137 | { | |
| 138 | DISC_555_OUT_ENERGY, | |
| 139 | 5, /* B+ voltage of 555 */ | |
| 140 | NODE_50, /* charge voltage */ | |
| 141 | DEFAULT_TTL_V_LOGIC_1 /* cheat and use and anti-alias IC A10 level */ | |
| 142 | }; | |
| 143 | ||
| 144 | static const discrete_mixer_desc starshp1_final_mix = | |
| 145 | { | |
| 146 | DISC_MIXER_IS_RESISTOR, | |
| 147 | {STARSHP1_R66, STARSHP1_R126, STARSHP1_R59 + STARSHP1_R60, STARSHP1_R74, STARSHP1_R75}, | |
| 148 | {0}, /* no resistor nodes */ | |
| 149 | {0, STARSHP1_C78, STARSHP1_C36, 0, 0}, | |
| 150 | 0, | |
| 151 | STARSHP1_R76, | |
| 152 | 0, /* no cF */ | |
| 153 | STARSHP1_C63, | |
| 154 | 0, /* vRef */ | |
| 155 | 1 /* gain */ | |
| 156 | }; | |
| 157 | ||
| 158 | ||
| 159 | DISCRETE_SOUND_START( starshp1 ) | |
| 160 | /************************************************ | |
| 161 | * Input register mapping | |
| 162 | ************************************************/ | |
| 163 | // DISCRETE_INPUTX_DATA(STARSHP1_NOISE_AMPLITUDE, STARSHP1_MC1408_GAIN * STARSHP1_NOISE_AMPLITUDE_GAIN, 0, 0) | |
| 164 | /* Fake the MC1408, no where near correct */ | |
| 165 | DISCRETE_INPUTX_DATA(STARSHP1_NOISE_AMPLITUDE, -4.0/255, 4, 0) | |
| 166 | DISCRETE_INPUTX_DATA(STARSHP1_TONE_PITCH, STARSHP1_MC1408_GAIN * STARSHP1_TONE_PITCH_GAIN, 0, 0) | |
| 167 | DISCRETE_INPUTX_DATA(STARSHP1_MOTOR_SPEED, STARSHP1_MC1408_GAIN, 0, 0) | |
| 168 | DISCRETE_INPUT_LOGIC(STARSHP1_NOISE_FREQ) | |
| 169 | DISCRETE_INPUT_LOGIC(STARSHP1_SL2) | |
| 170 | DISCRETE_INPUT_LOGIC(STARSHP1_SL1) | |
| 171 | DISCRETE_INPUT_LOGIC(STARSHP1_KICKER) | |
| 172 | DISCRETE_INPUT_LOGIC(STARSHP1_PHASOR_ON) | |
| 173 | DISCRETE_INPUT_NOT (STARSHP1_ATTRACT) /* Inverted by Q9 */ | |
| 174 | /* when MOLVL is high, R58 is grounded, reducing the gain by 50% */ | |
| 175 | /* we will cheat and calculate that now */ | |
| 176 | #define STARSHP1_MOLVL_GAIN STARSHP1_MOLVL | |
| 177 | #define STARSHP1_MOLVL_GAIN_VAL RES_VOLTAGE_DIVIDER(STARSHP1_R59, STARSHP1_R58) | |
| 178 | DISCRETE_INPUTX_LOGIC(STARSHP1_MOLVL_GAIN, -STARSHP1_MOLVL_GAIN_VAL, STARSHP1_MOLVL_GAIN_VAL, 1) | |
| 179 | ||
| 180 | /************************************************ | |
| 181 | * Noise | |
| 182 | ************************************************/ | |
| 183 | DISCRETE_LFSR_NOISE(NODE_20, /* IC B9, pin 13 */ | |
| 184 | 1, /* ENAB */ | |
| 185 | STARSHP1_KICKER, /* IC B9 & C9, pin 9 */ | |
| 186 | STARSHP1_S1V, /* IC B9 & C9, pin 8 */ | |
| 187 | 1, /* 1 p/p */ | |
| 188 | 0, /* no feed */ | |
| 189 | 1.0 / 2, /* shift to 0/1 */ | |
| 190 | &starshp1_lfsr) | |
| 191 | /* calculate noise level */ | |
| 192 | DISCRETE_SWITCH( NODE_21, /* voltage at R151 & R152 junction */ | |
| 193 | NODE_20, | |
| 194 | STARSHP1_NOISE_FREQ, | |
| 195 | DEFAULT_TTL_V_LOGIC_1 * RES_VOLTAGE_DIVIDER(STARSHP1_R151, STARSHP1_R152), | |
| 196 | DEFAULT_TTL_V_LOGIC_1) | |
| 197 | /* fake MC3340 */ | |
| 198 | DISCRETE_MULTIPLY( NODE_22, | |
| 199 | 1, /* ENAB */ | |
| 200 | NODE_21, | |
| 201 | STARSHP1_NOISE_AMPLITUDE) | |
| 202 | DISCRETE_RCFILTER( NODE_23, | |
| 203 | 1, /* ENAB */ | |
| 204 | NODE_22, | |
| 205 | STARSHP1_FAKE_MC3340_COMPENSATION_R, | |
| 206 | STARSHP1_C61) | |
| 207 | /* when NOISE_FREQ is high (NOISE_FREQ_INV is low), C59 is in circuit */ | |
| 208 | DISCRETE_RCFILTER( NODE_24, | |
| 209 | 1, /* ENAB */ | |
| 210 | NODE_22, | |
| 211 | STARSHP1_FAKE_MC3340_COMPENSATION_R, | |
| 212 | STARSHP1_C61 + STARSHP1_C59) | |
| 213 | DISCRETE_SWITCH( STARSHP1_NOISE_SND, | |
| 214 | 1, /* ENAB */ | |
| 215 | STARSHP1_NOISE_FREQ, | |
| 216 | NODE_23, | |
| 217 | NODE_24) | |
| 218 | ||
| 219 | /************************************************ | |
| 220 | * Phasor | |
| 221 | ************************************************/ | |
| 222 | DISCRETE_555_ASTABLE(NODE_30, /* IC C10, pin 9 */ | |
| 223 | STARSHP1_PHASOR_ON, /* RESET */ | |
| 224 | STARSHP1_R70, | |
| 225 | STARSHP1_R69, | |
| 226 | STARSHP1_C46, | |
| 227 | &starshp1_556_c10) | |
| 228 | /* compensate for internal 555 CV resistors */ | |
| 229 | DISCRETE_MIXER2( NODE_31, | |
| 230 | 1, /* ENAB */ | |
| 231 | NODE_30, /* IC C10, pin 9 */ | |
| 232 | 5, /* 555 B+ */ | |
| 233 | &starshp1_556_c10_cv) | |
| 234 | DISCRETE_555_ASTABLE_CV(STARSHP1_PHASOR_SND, /* IC C10, pin 5 */ | |
| 235 | STARSHP1_PHASOR_ON, /* RESET */ | |
| 236 | STARSHP1_R68, | |
| 237 | STARSHP1_R67, | |
| 238 | STARSHP1_C45, | |
| 239 | NODE_31, /* IC C10, pin 3 */ | |
| 240 | &starshp1_556_c10) | |
| 241 | ||
| 242 | /************************************************ | |
| 243 | * Motor | |
| 244 | ************************************************/ | |
| 245 | DISCRETE_SQUAREWFIX(NODE_40, /* S128V signal */ | |
| 246 | 1, /* ENAB */ | |
| 247 | STARSHP1_S128V, | |
| 248 | DEFAULT_TTL_V_LOGIC_1, | |
| 249 | 50, /* DUTY */ | |
| 250 | DEFAULT_TTL_V_LOGIC_1 / 2, /* BIAS */ | |
| 251 | 0) /* PHASE */ | |
| 252 | DISCRETE_MIXER2( NODE_41, /* voltage at R54 & R55 junction */ | |
| 253 | 1, /* ENAB */ | |
| 254 | NODE_40, /* IC E10, pin 12 */ | |
| 255 | 5, /* 5V to R55 */ | |
| 256 | &starshp1_566_a9_mix_r) | |
| 257 | DISCRETE_566( NODE_42, /* IC A9, pin 4 */ | |
| 258 | 1, /* ENAB */ | |
| 259 | STARSHP1_MOTOR_SPEED, /* IC A9, pin 5 */ | |
| 260 | RES_2_PARALLEL(STARSHP1_R54, STARSHP1_R55), | |
| 261 | STARSHP1_C34, | |
| 262 | &starshp1_566_a9) | |
| 263 | DISCRETE_MULTIPLY( STARSHP1_MOTOR_SND, | |
| 264 | 1, /* ENAB */ | |
| 265 | NODE_42, | |
| 266 | STARSHP1_MOLVL_GAIN) | |
| 267 | ||
| 268 | /************************************************ | |
| 269 | * SL1, SL2 | |
| 270 | ************************************************/ | |
| 271 | DISCRETE_MIXER2( NODE_50, /* voltage at R65 & R71 junction */ | |
| 272 | 1, /* ENAB */ | |
| 273 | STARSHP1_TONE_PITCH, /* IC E10, pin 12 */ | |
| 274 | 10, /* 10V to R71 */ | |
| 275 | &starshp1_555_b10_mix_r) | |
| 276 | DISCRETE_555_ASTABLE(NODE_51, /* IC B10, pin 3 */ | |
| 277 | 1, /* RESET */ | |
| 278 | RES_2_PARALLEL(STARSHP1_R65, STARSHP1_R71), | |
| 279 | STARSHP1_R72, | |
| 280 | STARSHP1_C47, | |
| 281 | &starshp1_555_b10) | |
| 282 | /* use switch instead of logic AND, so we can switch between | |
| 283 | * 0V and the anti-aliased TTL level out that we set NODE_51 to. */ | |
| 284 | DISCRETE_SWITCH( STARSHP1_SL1_SND, /* IC A10, pin 11 */ | |
| 285 | 1, /* ENAB */ | |
| 286 | STARSHP1_SL1, | |
| 287 | 0, | |
| 288 | NODE_51) | |
| 289 | DISCRETE_SWITCH( STARSHP1_SL2_SND, /* IC A10, pin 8 */ | |
| 290 | 1, /* ENAB */ | |
| 291 | STARSHP1_SL2, | |
| 292 | 0, | |
| 293 | NODE_51) | |
| 294 | ||
| 295 | /************************************************ | |
| 296 | * Mixing and output | |
| 297 | ************************************************/ | |
| 298 | DISCRETE_MIXER5( NODE_90, | |
| 299 | STARSHP1_ATTRACT, /* ENAB */ | |
| 300 | STARSHP1_PHASOR_SND, | |
| 301 | STARSHP1_NOISE_SND, | |
| 302 | STARSHP1_MOTOR_SND, | |
| 303 | STARSHP1_SL1_SND, | |
| 304 | STARSHP1_SL2_SND, | |
| 305 | &starshp1_final_mix) | |
| 306 | ||
| 307 | /* set a gain that clips the noise some, just like the real board */ | |
| 308 | DISCRETE_OUTPUT(NODE_90, 110000) | |
| 309 | ||
| 310 | DISCRETE_SOUND_END |
| r3115 | r3116 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "cpu/ | |
| 2 | #include "cpu/mcs48 | |
| 3 | 3 | #include "sound/dac.h" |
| 4 | 4 | #include "sound/ay8910.h" |
| 5 | 5 | #include "sound/discrete.h" |
| r3115 | r3116 | |
| 23 | 23 | #define I8035_P1_R(M) (soundlatch3_r(M,0)) |
| 24 | 24 | #define I8035_P2_R(M) (soundlatch4_r(M,0)) |
| 25 | 25 | #define I8035_P1_W(M,D) soundlatch3_w(M,0,D) |
| 26 | #define I8035_P2_W(M,D) soundlatch4_w(M,0,D) | |
| 26 | #define I8035_P2_W(M,D) do { soundlatch4_w(M,0,D); cputag_set_input_line(machine, "audio", MCS48_INPUT_EA, ((D) & 0x20) ? ASSERT_LINE : CLEAR_LINE); } while (0) | |
| 27 | 27 | |
| 28 | ||
| 28 | 29 | #define I8035_P1_W_AH(M,B,D) I8035_P1_W(M,ACTIVEHIGH_PORT_BIT(I8035_P1_R(M),B,(D))) |
| 29 | 30 | #define I8035_P2_W_AH(M,B,D) I8035_P2_W(M,ACTIVEHIGH_PORT_BIT(I8035_P2_R(M),B,(D))) |
| 30 | 31 | |
| r3115 | r3116 | |
| 286 | 287 | return I8035_T_R(machine,1); |
| 287 | 288 | } |
| 288 | 289 | |
| 289 | static READ8_HANDLER( mario_sh_ea_r ) | |
| 290 | { | |
| 291 | #if USE_8039 | |
| 292 | return 1; | |
| 293 | #else | |
| 294 | int p2 = (I8035_P2_R(machine) >> 5) & 1; | |
| 295 | return p2 ^ 1; | |
| 296 | #endif | |
| 297 | } | |
| 298 | ||
| 299 | 290 | static READ8_HANDLER( mario_sh_tune_r ) |
| 300 | 291 | { |
| 301 | 292 | UINT8 *SND = memory_region(machine, "audio"); |
| r3115 | r3116 | |
| 336 | 327 | if (state->last == 1 && data == 0) |
| 337 | 328 | { |
| 338 | 329 | /* setting bit 0 high then low triggers IRQ on the sound CPU */ |
| 339 | cpu | |
| 330 | cputag_set_input_line_and_vector(machine, "audio",0,HOLD_LINE,0xff); | |
| 340 | 331 | } |
| 341 | 332 | |
| 342 | 333 | state->last = data; |
| r3115 | r3116 | |
| 368 | 359 | { |
| 369 | 360 | case 0: /* death */ |
| 370 | 361 | if (data) |
| 371 | cpu | |
| 362 | cputag_set_input_line(machine, "audio",0,ASSERT_LINE); | |
| 372 | 363 | else |
| 373 | cpu | |
| 364 | cputag_set_input_line(machine, "audio",0,CLEAR_LINE); | |
| 374 | 365 | break; |
| 375 | 366 | case 1: /* get coin */ |
| 376 | 367 | I8035_T_W_AH(machine,0,data & 1); |
| r3115 | r3116 | |
| 408 | 399 | |
| 409 | 400 | static ADDRESS_MAP_START( mario_sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| 410 | 401 | AM_RANGE(0x00, 0xff) AM_READWRITE(mario_sh_tune_r, mario_sh_sound_w) |
| 411 | AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(mario_sh_p1_r, mario_sh_p1_w) | |
| 412 | AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(mario_sh_p2_r, mario_sh_p2_w) | |
| 413 | AM_RANGE(I8039_t0, I8039_t0) AM_READ(mario_sh_t0_r) | |
| 414 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(mario_sh_t1_r) | |
| 415 | AM_RANGE(I8039_ea, I8039_ea) AM_READ(mario_sh_ea_r) /* only for documentation purposes right now */ | |
| 402 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READWRITE(mario_sh_p1_r, mario_sh_p1_w) | |
| 403 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READWRITE(mario_sh_p2_r, mario_sh_p2_w) | |
| 404 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_READ(mario_sh_t0_r) | |
| 405 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(mario_sh_t1_r) | |
| 416 | 406 | ADDRESS_MAP_END |
| 417 | 407 | |
| 418 | 408 | static ADDRESS_MAP_START( masao_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
|---|---|---|
| 65 | 65 | |
| 66 | 66 | static const discrete_555_desc tank8_555_m = |
| 67 | 67 | { |
| 68 | DISC_555_T | |
| 68 | DISC_555_OUT | |
| 69 | 69 | 5, // B+ voltage of 555 |
| 70 | 70 | DEFAULT_555_VALUES |
| 71 | 71 | }; |
| r3115 | r3116 | |
|---|---|---|
| 3151 | 3151 | static const discrete_555_desc invaders_thump_555 = |
| 3152 | 3152 | { |
| 3153 | 3153 | DISC_555_OUT_ENERGY | DISC_555_OUT_DC, |
| 3154 | 5, | |
| 3154 | 3155 | 5.0 - 0.6, /* 5V - diode drop */ |
| 3155 | DEFAULT_TTL_V_LOGIC_1, /* Output of F3 7411 buffer */ | |
| 3156 | DEFAULT_555_THRESHOLD, | |
| 3157 | DEFAULT_555_TRIGGER | |
| 3156 | DEFAULT_TTL_V_LOGIC_1 /* Output of F3 7411 buffer */ | |
| 3158 | 3157 | }; |
| 3159 | 3158 | |
| 3160 | 3159 | |
| r3115 | r3116 | |
| 3708 | 3707 | { |
| 3709 | 3708 | DISC_555_OUT_ENERGY | DISC_555_OUT_DC, |
| 3710 | 3709 | 5, /* B+ voltage of 555 */ |
| 3711 | 12, /* the OC buffer H2 converts the output voltage to 12V. */ | |
| 3712 | DEFAULT_555_THRESHOLD, DEFAULT_555_TRIGGER | |
| 3710 | DEFAULT_555_CHARGE, | |
| 3711 | 12 /* the OC buffer H2 converts the output voltage to 12V. */ | |
| 3713 | 3712 | }; |
| 3714 | 3713 | |
| 3715 | 3714 |
| r3115 | r3116 | |
|---|---|---|
| 124 | 124 | #include "fd1089.h" |
| 125 | 125 | |
| 126 | 126 | |
| 127 | /* 317-0013A FD1089B */ | |
| 128 | static const UINT8 key_0013A[0x2000] = | |
| 129 | { | |
| 130 | /* opcodes */ | |
| 131 | 0x69,0xec,0x94,0xf1,0xd8,0x7b,0x71,0xcd,0x2b,0xbd,0x62,0xaf,0x04,0x97,0x8c,0xfb, | |
| 132 | 0x07,0xed,0x12,0x14,0xd9,0xa2,0x19,0x5e,0x1e,0x9b,0xc4,0x3e,0x79,0xbc,0x38,0x18, | |
| 133 | 0x8f,0xe8,0x99,0x4f,0x03,0x03,0x0a,0x48,0x7a,0xf2,0xaf,0x67,0x97,0x99,0xae,0x0f, | |
| 134 | 0x89,0xcb,0x70,0x66,0x75,0xb8,0x98,0xeb,0xd4,0x0c,0x2b,0x99,0xba,0x0f,0xc6,0x7f, | |
| 135 | 0xcd,0x1a,0x95,0xc0,0x3f,0x94,0x54,0x8a,0xd7,0xf7,0x51,0x20,0xe8,0xcb,0x67,0xd1, | |
| 136 | 0xff,0xdb,0x28,0xa4,0x56,0x9d,0x44,0x8b,0x3f,0xc3,0x24,0x28,0x5e,0x2f,0xec,0xde, | |
| 137 | 0x59,0xc8,0xc1,0x12,0xd1,0x70,0xc7,0x27,0x6d,0x0c,0x21,0x82,0xcf,0x7f,0xf3,0x86, | |
| 138 | 0x9b,0xae,0x63,0x98,0x76,0x7c,0x92,0x1c,0x04,0xce,0xa7,0x75,0xe8,0x87,0xc4,0x08, | |
| 139 | 0xc7,0x8c,0x0d,0x38,0x44,0xc1,0xa7,0x6a,0x04,0x09,0xb6,0x01,0xaa,0x48,0x5d,0x62, | |
| 140 | 0xdb,0x64,0xc1,0xf1,0x3b,0x3f,0x05,0x11,0x6d,0xbd,0x4e,0x27,0x16,0xc3,0xc0,0x96, | |
| 141 | 0xd9,0x34,0x7e,0xc3,0x5b,0xf5,0xac,0x11,0x3f,0xea,0x6f,0xe5,0x2a,0xf6,0xeb,0xa2, | |
| 142 | 0xbf,0xfe,0x43,0xad,0xa3,0xe5,0x9c,0x6a,0x7a,0x90,0x19,0x3c,0xe7,0xe3,0xdf,0x88, | |
| 143 | 0x8f,0xc1,0x12,0xb1,0x15,0x0e,0xd5,0x1c,0x1e,0xaf,0x4d,0x2c,0x4d,0x88,0x9d,0x46, | |
| 144 | 0x47,0x7c,0xea,0xce,0xb0,0x70,0x57,0x27,0x2b,0x47,0x09,0xb6,0x5d,0xe6,0x23,0xde, | |
| 145 | 0xe9,0x31,0xca,0x04,0x74,0x0b,0x22,0x8b,0xa1,0x58,0x4e,0xd8,0x15,0xfe,0x73,0x4e, | |
| 146 | 0x73,0xde,0xb4,0x52,0x60,0xdf,0x36,0x48,0x80,0xe2,0x1c,0x93,0x76,0xce,0x8b,0x98, | |
| 147 | 0x56,0xa9,0x04,0xfd,0x97,0x38,0x23,0x16,0xb0,0x32,0x51,0x9b,0x33,0x60,0xab,0x1e, | |
| 148 | 0x46,0x98,0xdd,0x3f,0x9e,0xc5,0x23,0xae,0x7f,0xde,0x4b,0x2b,0xbd,0xec,0xb0,0x88, | |
| 149 | 0xbd,0x08,0xa5,0x73,0x5a,0x76,0x72,0x64,0x1a,0x5f,0xef,0xa5,0x91,0x98,0x2e,0xd9, | |
| 150 | 0x18,0x4e,0x4f,0x36,0x17,0x3b,0x82,0x80,0x06,0xae,0x08,0x0b,0x6e,0x83,0x31,0xbc, | |
| 151 | 0xe8,0x25,0x5e,0x07,0x1c,0x93,0xff,0xf1,0xc2,0x57,0x94,0x0f,0xa4,0x8f,0xaf,0x85, | |
| 152 | 0x98,0xe7,0xf0,0x07,0x89,0x9c,0x07,0xda,0x6f,0x7a,0xb5,0xd2,0x51,0xde,0xca,0x54, | |
| 153 | 0x49,0xb4,0x27,0x55,0x7f,0x78,0xbc,0x58,0x2c,0x38,0x8a,0x73,0x97,0x8f,0xa1,0x49, | |
| 154 | 0x1a,0xaa,0x22,0x11,0x1d,0x46,0x3e,0x8d,0x19,0xaf,0x34,0x12,0x95,0xc2,0x55,0x85, | |
| 155 | 0x2b,0xeb,0x02,0x5b,0x83,0x26,0xab,0x97,0x56,0x01,0xd1,0xcf,0x6c,0x97,0x05,0x27, | |
| 156 | 0x9d,0x96,0xe6,0x53,0xd2,0x39,0x25,0x99,0x04,0x4d,0x83,0xcb,0x3a,0x2f,0xd0,0x4f, | |
| 157 | 0x8e,0xcb,0xee,0x1a,0x29,0x9e,0xcb,0xb0,0x41,0xb4,0x69,0x25,0x21,0xa9,0xd9,0x1e, | |
| 158 | 0x20,0xab,0x3a,0xcf,0xa8,0x75,0xbd,0xfe,0x2f,0x54,0xa4,0xfd,0x25,0x3d,0xb3,0x73, | |
| 159 | 0x54,0xea,0x93,0x6f,0xde,0x1c,0xa1,0xee,0x4f,0x52,0x74,0xb8,0xc4,0x1e,0x2e,0xa5, | |
| 160 | 0xe8,0x1f,0x84,0x9e,0xfa,0x07,0xbb,0x9c,0xc4,0x95,0xa8,0xa7,0xa4,0x9b,0xaf,0xd8, | |
| 161 | 0x87,0xf8,0xc4,0x56,0xe8,0x9e,0x6c,0x5b,0xd4,0x8c,0xbb,0x2f,0xe7,0xd4,0x56,0x2b, | |
| 162 | 0x4f,0x95,0x72,0xb6,0xc8,0x01,0xd2,0x4a,0x9d,0x57,0xcc,0x6f,0xad,0xe9,0x44,0xbe, | |
| 163 | 0xe7,0x85,0xa7,0xba,0x76,0xeb,0x93,0x5e,0xc8,0xe6,0x73,0xe7,0x81,0x57,0x6c,0xba, | |
| 164 | 0x44,0x25,0xa2,0x3b,0xb5,0x31,0x39,0xcd,0x79,0x62,0x53,0xd4,0x34,0x9a,0x17,0xb6, | |
| 165 | 0x89,0xbd,0xa7,0xd4,0x1d,0xb0,0x27,0x95,0x93,0x57,0xbd,0x5b,0x90,0x95,0x8a,0x8a, | |
| 166 | 0xb8,0x4f,0xb5,0x87,0xae,0x68,0x5f,0xb6,0x16,0xc5,0xaf,0x7a,0x95,0x49,0xc7,0x38, | |
| 167 | 0xcf,0xd9,0xcb,0x53,0x67,0x59,0xe0,0x30,0x02,0xac,0xfb,0xdc,0x3c,0x36,0x35,0x87, | |
| 168 | 0xe7,0x16,0x63,0x3d,0xc8,0x64,0x47,0x04,0x21,0xa4,0xa6,0xde,0x37,0x5a,0x44,0xd1, | |
| 169 | 0x4e,0x0b,0xe6,0xe0,0xab,0x39,0x4e,0x0f,0x90,0x69,0x42,0x62,0x43,0x20,0x84,0xdc, | |
| 170 | 0x06,0xe0,0xda,0x83,0x1f,0x2f,0x06,0x5b,0xd1,0x8f,0xce,0x66,0x5f,0x86,0xf5,0xa9, | |
| 171 | 0x0f,0x97,0x3f,0x28,0x24,0x45,0x70,0xe7,0xe2,0x16,0x4c,0xeb,0x8d,0x8d,0x97,0x36, | |
| 172 | 0x69,0x2e,0x15,0xce,0xba,0x7d,0x8a,0xb5,0xc5,0xfe,0xba,0xf1,0xcc,0x35,0x6a,0x85, | |
| 173 | 0x14,0xa7,0x5c,0x74,0xe2,0xd6,0x55,0xc4,0x78,0x47,0x1a,0x78,0x1b,0x7f,0x6d,0x94, | |
| 174 | 0x10,0x00,0x14,0x1c,0x9a,0x50,0xd2,0x14,0xfc,0xf1,0x6a,0x80,0x7c,0x69,0xa2,0x64, | |
| 175 | 0x5d,0x3b,0x3d,0xc5,0xe3,0xeb,0xff,0xa5,0x52,0xfc,0xac,0x09,0xee,0xf4,0x08,0xf6, | |
| 176 | 0xfb,0x56,0xd7,0x6e,0xbd,0xa6,0xdd,0x77,0x78,0x68,0xdf,0x13,0x71,0x21,0x9f,0x48, | |
| 177 | 0xea,0x53,0xe2,0x19,0x28,0x83,0x6d,0x8a,0x70,0x35,0x02,0x9f,0x04,0xee,0x67,0x5b, | |
| 178 | 0x2a,0x30,0x5e,0xc4,0x24,0x81,0xad,0xde,0x38,0x63,0x17,0xab,0xa9,0x5c,0x5f,0x30, | |
| 179 | 0xbb,0xef,0x4b,0x71,0xb2,0xa0,0x9e,0x72,0xd2,0xf2,0x1c,0x38,0x5f,0x6b,0x89,0xc5, | |
| 180 | 0x9d,0x8e,0xa9,0x1f,0xd0,0xdf,0x41,0x48,0x3c,0xe2,0x13,0x46,0x25,0x1c,0xe4,0x1c, | |
| 181 | 0xd0,0x0f,0x78,0xcd,0x7f,0xde,0x5c,0xfc,0xf0,0x17,0x06,0x1d,0x93,0x89,0x1a,0x68, | |
| 182 | 0xb0,0x57,0xfb,0x82,0x2e,0xa6,0x0d,0x0f,0xee,0x99,0xb5,0xb2,0xd7,0x55,0x57,0x10, | |
| 183 | 0xcb,0xfe,0x56,0xcc,0xae,0xb7,0x17,0x8b,0x66,0xa4,0xfe,0xf0,0xd4,0xeb,0x6e,0xa0, | |
| 184 | 0xde,0xad,0xcb,0x3f,0x68,0x11,0x7a,0x70,0x56,0x39,0xdf,0xd8,0x8b,0x49,0x5d,0x1a, | |
| 185 | 0xeb,0x66,0x59,0xdb,0x5b,0xb4,0x36,0xbe,0xbf,0x56,0x59,0x68,0xfa,0x70,0x26,0x7c, | |
| 186 | 0xf1,0x28,0x00,0x9f,0x87,0xa0,0x4b,0x75,0xa1,0xfc,0x6c,0xa1,0x22,0x61,0xc7,0xc8, | |
| 187 | 0xef,0xf2,0xbf,0x8d,0xec,0xd4,0xb9,0x95,0xfc,0x2b,0x19,0x83,0x04,0x1a,0x42,0xfc, | |
| 188 | 0xe7,0xc6,0x98,0xa4,0x8a,0x52,0x80,0x1e,0xd0,0xe3,0x5e,0x0f,0x9e,0x9d,0x95,0x1a, | |
| 189 | 0xd7,0xa3,0x8a,0xe4,0x61,0x19,0xa0,0x10,0x1d,0x24,0x3c,0x43,0xf1,0xe8,0xc1,0x20, | |
| 190 | 0xc1,0x88,0x95,0x4c,0x70,0x29,0x19,0x6b,0xe3,0xef,0xb3,0x20,0xfe,0xfd,0xc7,0x10, | |
| 191 | 0xa4,0x77,0xb8,0xde,0xb9,0x82,0xeb,0x2f,0x22,0x42,0xc3,0xa7,0xc3,0xda,0xa5,0xe9, | |
| 192 | 0x7f,0x6f,0xf5,0x99,0x3b,0x24,0x16,0x5c,0xda,0x1e,0x6d,0xd6,0x41,0x80,0x5d,0xaa, | |
| 193 | 0x54,0x6f,0x4b,0x7d,0xf6,0x0f,0x9a,0xef,0x8d,0x43,0xd9,0x47,0x4a,0xec,0x1a,0x31, | |
| 194 | 0x90,0x27,0x07,0xf0,0xe5,0xba,0xa4,0xc7,0xcb,0x68,0xf5,0xfc,0xc8,0xf5,0xfe,0xd2, | |
| 195 | 0x5f,0x24,0xc3,0x8d,0x14,0xbb,0x48,0x71,0x6a,0x7d,0x92,0xc2,0xe7,0x2e,0xa3,0xc4, | |
| 196 | 0x0e,0x92,0x81,0xbb,0x63,0x6e,0x2e,0xeb,0x6a,0x84,0xb0,0x98,0xa8,0x99,0x0a,0x07, | |
| 197 | 0x9f,0x72,0x3f,0x7a,0xd4,0xd1,0x55,0x37,0xcb,0x7b,0x4f,0x80,0x09,0x35,0x31,0x9b, | |
| 198 | 0x10,0xc2,0xff,0xca,0x66,0xe5,0xbd,0x53,0x8d,0x64,0x6f,0x79,0x0b,0x02,0x19,0x80, | |
| 199 | 0x63,0x83,0xc0,0xab,0x19,0xab,0x66,0x1f,0x1f,0xc9,0x9d,0xf2,0x09,0x1d,0x71,0x60, | |
| 200 | 0x70,0x5f,0x33,0x4e,0x77,0xf2,0x88,0x9f,0x43,0x3a,0x14,0x38,0xf8,0x9d,0x7a,0xfd, | |
| 201 | 0xb9,0x7c,0x5f,0xd1,0xaa,0x3e,0x66,0x98,0xf0,0x45,0x34,0x37,0xaf,0xf5,0x6d,0x92, | |
| 202 | 0x0a,0xb3,0xb4,0x8d,0x26,0xe3,0xae,0x0a,0x27,0xe8,0xfe,0xf0,0x2f,0x27,0x48,0x21, | |
| 203 | 0x65,0x03,0x32,0x81,0xeb,0xe1,0x5e,0xf5,0xe6,0x24,0x70,0x61,0x79,0x31,0x0d,0xa8, | |
| 204 | 0xc9,0x6c,0xd8,0xaf,0xf9,0x38,0x77,0x5a,0x2e,0xf9,0x8b,0x8c,0x8b,0x15,0xba,0x29, | |
| 205 | 0x35,0xed,0xa8,0x16,0x50,0xe8,0xf9,0x37,0xff,0x68,0x50,0x6f,0x67,0xd1,0x51,0xa3, | |
| 206 | 0x26,0x20,0xb0,0x98,0x6c,0x20,0x9b,0x41,0x8d,0x94,0xa2,0xc1,0x4c,0x80,0x0b,0x9b, | |
| 207 | 0x6f,0xe9,0x19,0x53,0xb9,0xd1,0x10,0x6c,0xee,0x3d,0x34,0x6c,0xd2,0x32,0xc9,0xd6, | |
| 208 | 0x29,0xb2,0x13,0x2e,0xb7,0xc3,0x56,0xf8,0x41,0x68,0xd7,0xb9,0x89,0xa4,0xd8,0xf3, | |
| 209 | 0x54,0x7d,0x9e,0x2b,0x67,0xf6,0x6e,0xe5,0x84,0x13,0x8a,0xa6,0x71,0xd8,0x38,0xf0, | |
| 210 | 0xf0,0x49,0xbb,0x49,0xc7,0x6a,0x56,0x33,0xb9,0x3f,0x4f,0x34,0x8a,0xcc,0xe9,0xcf, | |
| 211 | 0xfd,0x15,0x68,0x88,0xd8,0x1f,0x10,0xe2,0xde,0xec,0x25,0x63,0xd3,0x81,0xeb,0x8e, | |
| 212 | 0x7c,0xe3,0xa6,0xe7,0x9b,0x14,0x9a,0xf2,0xf5,0x1a,0x0b,0x34,0x4e,0xf8,0x3e,0x2f, | |
| 213 | 0x6b,0xb2,0x75,0x68,0x0e,0x4b,0xf6,0x63,0xfc,0xc9,0x03,0xa5,0xfa,0x2f,0xe2,0xb0, | |
| 214 | 0xcb,0x81,0xd5,0x0a,0x32,0xc3,0x22,0x35,0xf5,0xf9,0x0c,0xb7,0xd7,0x28,0xd7,0x13, | |
| 215 | 0x9c,0x52,0xc7,0xcd,0x08,0x7c,0x20,0x69,0xdf,0xaa,0x26,0x6a,0xe5,0xe1,0x1d,0x56, | |
| 216 | 0xde,0x23,0x49,0xb0,0x8e,0x76,0xee,0xfd,0xb9,0xdd,0x50,0xbf,0x23,0x5b,0xb4,0x7b, | |
| 217 | 0x91,0xf6,0x5c,0xb5,0xc5,0xb1,0x8d,0xf2,0x85,0x90,0x8c,0xb4,0x93,0x97,0x9b,0x80, | |
| 218 | 0xb5,0xca,0x00,0xdb,0xae,0x2d,0xfe,0x48,0x41,0xc4,0xd9,0x4a,0x34,0x93,0xd4,0x67, | |
| 219 | 0x4a,0x9e,0x35,0x22,0x47,0xea,0x3f,0xff,0xef,0x79,0x36,0x81,0x06,0x50,0x5e,0x2e, | |
| 220 | 0x50,0x74,0xfc,0x89,0x91,0xe7,0x52,0x17,0x8d,0xaf,0xa5,0x5a,0x09,0xcf,0x39,0xd7, | |
| 221 | 0xc7,0x4b,0x53,0x12,0x8d,0x26,0x35,0x90,0x1d,0x66,0x25,0xd3,0x3d,0x0e,0x65,0x60, | |
| 222 | 0xaf,0x22,0x3b,0xbc,0x39,0xa6,0xea,0x6a,0x9e,0x9e,0xb5,0xed,0xa1,0x0f,0xe2,0xcb, | |
| 223 | 0x08,0xfb,0xb4,0x87,0x96,0x67,0x95,0x37,0x5b,0x00,0xfe,0x17,0x05,0x8a,0x82,0xf4, | |
| 224 | 0x1c,0x82,0x06,0xf1,0x05,0x8d,0x6e,0x33,0x24,0x4f,0x9c,0xdd,0xdc,0x6b,0x77,0x14, | |
| 225 | 0x92,0x86,0xe1,0xfc,0xa9,0x43,0xbf,0xb8,0x86,0x47,0xf4,0x6d,0x8d,0x36,0x65,0x3e, | |
| 226 | 0x21,0xb3,0xf5,0x50,0xa6,0x62,0x89,0xc6,0x81,0xe9,0x04,0xc5,0x16,0xe9,0x4b,0x71, | |
| 227 | 0xc8,0x09,0x42,0xed,0xfc,0xea,0xcc,0x5e,0x15,0x33,0xce,0xe7,0x78,0x86,0x2b,0xac, | |
| 228 | 0x89,0x87,0xc8,0xd3,0xab,0xdb,0x88,0x7e,0x43,0x26,0x50,0xd1,0xb4,0x0b,0x03,0xf1, | |
| 229 | 0x63,0x2f,0x86,0x02,0xb3,0x35,0xbd,0x27,0x09,0xc2,0x8b,0x85,0xc8,0x7a,0xd5,0x3f, | |
| 230 | 0x55,0x00,0x7e,0x7a,0x14,0xf8,0x6b,0x59,0x68,0x08,0x80,0x01,0xb6,0xd1,0xa0,0x95, | |
| 231 | 0x61,0xfa,0xaf,0x3b,0xce,0x25,0x92,0x14,0x60,0xf6,0x2d,0x46,0x7c,0x12,0x63,0xf5, | |
| 232 | 0x86,0x1c,0x19,0x44,0xe1,0xba,0x32,0x58,0xf2,0x8d,0x93,0x55,0x1c,0x3b,0x20,0x5e, | |
| 233 | 0xc4,0x68,0xbc,0x97,0x4d,0xb8,0x4b,0x25,0x1c,0xce,0xb3,0x2c,0x94,0x4e,0xd5,0xcf, | |
| 234 | 0x1a,0xdd,0x98,0x33,0x12,0x1f,0xde,0x7c,0xdf,0xb7,0x8b,0xcd,0xe6,0x4a,0x84,0x4a, | |
| 235 | 0x8a,0x7b,0xad,0x18,0x30,0x5e,0xf7,0xd0,0x53,0x19,0x7d,0x2b,0xae,0x05,0x2e,0xb9, | |
| 236 | 0x56,0x67,0x8d,0x3e,0x4e,0x81,0x1f,0x7f,0x99,0x98,0x66,0x3e,0x3d,0xf0,0xe7,0xb4, | |
| 237 | 0x31,0x81,0xbd,0x77,0xca,0x6a,0xb4,0xbf,0x69,0x6a,0x64,0xf0,0xb2,0x66,0xf0,0x6f, | |
| 238 | 0x4a,0x41,0x7d,0xa0,0xd5,0xe0,0x2e,0xe6,0xf6,0x26,0x28,0xa6,0x52,0xf8,0x8f,0x43, | |
| 239 | 0x8c,0x3a,0x86,0x22,0x49,0xcf,0x31,0xa6,0x2c,0x9c,0xb6,0x34,0xda,0x84,0x36,0x30, | |
| 240 | 0xf7,0x6c,0xd8,0xfd,0x26,0x37,0xbe,0xff,0x0c,0xca,0x0c,0x9c,0x4c,0x09,0xe7,0x35, | |
| 241 | 0x8b,0xd7,0x73,0x31,0x6c,0x18,0xd3,0xf2,0x94,0xb1,0x2b,0xdc,0xa6,0x86,0xa1,0x54, | |
| 242 | 0x47,0x7a,0x57,0xbe,0x1b,0x72,0x71,0x7d,0xc5,0x52,0x14,0xf6,0xea,0xfd,0x63,0x8c, | |
| 243 | 0x2d,0x57,0x83,0xa4,0x33,0x45,0x98,0xa1,0x9f,0xab,0xc5,0xe8,0x16,0x6c,0x2f,0xdd, | |
| 244 | 0x3c,0x6d,0xf9,0xe3,0xb4,0x92,0x48,0x5e,0x23,0xbd,0xb8,0xd4,0xac,0x4f,0x5d,0x96, | |
| 245 | 0x6b,0x90,0x88,0x37,0x74,0x94,0xff,0xbd,0x09,0xdd,0x84,0x2b,0x70,0xf0,0xdd,0x85, | |
| 246 | 0xeb,0x52,0xcc,0xcf,0xc0,0x86,0x17,0x0d,0x32,0x0f,0x81,0x44,0x85,0x73,0xce,0x76, | |
| 247 | 0xfd,0x35,0xc2,0xa8,0xde,0xd9,0x21,0xdf,0x6c,0xe3,0xaf,0x1d,0xeb,0xd7,0x30,0x68, | |
| 248 | 0x9f,0x39,0x68,0xc2,0xcc,0x8d,0x1b,0x31,0xb6,0x57,0x0e,0xb7,0xa2,0x1b,0x03,0x5a, | |
| 249 | 0xd2,0x5d,0xbf,0x1d,0x8c,0xa2,0x07,0x04,0x12,0x6c,0x9d,0x13,0xaa,0x41,0x47,0x4e, | |
| 250 | 0x96,0xa3,0xc8,0xb9,0x1c,0x18,0xe3,0x58,0x7f,0x22,0x5e,0x2f,0x03,0x47,0xfc,0x42, | |
| 251 | 0xeb,0x0a,0x81,0x96,0x7d,0xef,0xb1,0x2d,0xfc,0x7a,0x50,0x0d,0xac,0x2f,0x22,0x38, | |
| 252 | 0xd2,0x92,0xeb,0xb4,0xb0,0x27,0x70,0x83,0x8b,0x72,0x73,0xab,0xa7,0xf7,0xb9,0x2f, | |
| 253 | 0x49,0x3a,0x07,0x12,0xb3,0xc0,0x1f,0x5a,0x2b,0x0b,0xc7,0x0a,0xf3,0xa1,0xc1,0x26, | |
| 254 | 0x51,0x04,0xd3,0xb2,0x88,0xba,0xc0,0xb2,0xdb,0x45,0x4c,0x2b,0x90,0x2b,0x3a,0x1f, | |
| 255 | 0xea,0xef,0x50,0x93,0x2d,0x15,0x51,0x8c,0x9d,0x21,0x01,0x0c,0x7e,0x97,0x24,0x19, | |
| 256 | 0x14,0xfb,0x7f,0xb5,0xa4,0xd1,0xd4,0xe6,0x70,0x9d,0xe8,0xae,0xbd,0xe3,0x80,0x13, | |
| 257 | 0xd0,0x27,0x5e,0x18,0xeb,0xee,0x47,0xc1,0x54,0xba,0x00,0x12,0x4d,0x11,0x4c,0x0f, | |
| 258 | 0x1c,0x75,0xee,0xbc,0x03,0x6c,0xac,0x1d,0x48,0x78,0x49,0x36,0x2e,0x1f,0x89,0x0b, | |
| 259 | 0xf9,0xe4,0x30,0xa1,0xed,0x4b,0x02,0xfa,0x4e,0xd8,0xc3,0x1c,0x60,0x0f,0x37,0x09, | |
| 260 | 0x67,0x74,0x22,0xc7,0xa7,0x8b,0x48,0x58,0x65,0xd8,0x6d,0xc2,0xe3,0xdf,0x56,0x08, | |
| 261 | 0x66,0x24,0xc5,0x2e,0x33,0x2c,0x80,0x37,0x8c,0x79,0x49,0x29,0xb7,0x91,0xe6,0x07, | |
| 262 | 0xf7,0xf6,0x1a,0xd5,0x8f,0x2e,0xa8,0x98,0xc5,0xbb,0x56,0x52,0xdc,0x23,0xe7,0x08, | |
| 263 | 0x18,0xe9,0x1f,0xbe,0xbd,0x91,0xc2,0x79,0x0f,0x9f,0x94,0x3b,0x52,0x97,0x59,0x0a, | |
| 264 | 0xca,0xfd,0xd5,0xe8,0xbb,0x55,0xcc,0xdb,0x69,0x23,0x03,0xe5,0x19,0xeb,0x3c,0x0c, | |
| 265 | 0x0d,0x31,0x3c,0x53,0x8b,0x7a,0xc8,0xbe,0xd5,0x48,0xa2,0x51,0x31,0x21,0x90,0x10, | |
| 266 | 0xe1,0x87,0x41,0x90,0xb1,0xd1,0xd6,0x70,0x26,0x6a,0xa5,0x4b,0xe7,0x2f,0x11,0xc4, | |
| 267 | 0xd8,0x45,0x7f,0x80,0xdc,0xd0,0x52,0x22,0xd7,0xf3,0xef,0x4f,0xaf,0xd3,0xba,0xab, | |
| 268 | 0x45,0x93,0x16,0xd9,0x80,0x58,0x68,0x7d,0x42,0x46,0x13,0x3d,0x6f,0x80,0x7c,0xbb, | |
| 269 | 0xec,0x2a,0x06,0x9b,0x9d,0x69,0x16,0x82,0x65,0x61,0x0f,0x13,0x29,0x35,0x56,0xf3, | |
| 270 | 0xcc,0x0a,0x4f,0xc6,0x33,0x03,0x5d,0x2f,0x41,0x45,0xe5,0xd3,0xdb,0xf4,0x4a,0x55, | |
| 271 | 0xe5,0x33,0xf1,0x5a,0x42,0x27,0x3d,0x85,0xd7,0xf3,0x93,0x7b,0x87,0xbc,0x57,0xe0, | |
| 272 | 0x37,0xa5,0xec,0x57,0xca,0xd3,0xb7,0x85,0x25,0x69,0x1b,0x0d,0x2c,0x8c,0x7c,0x94, | |
| 273 | 0xc2,0x60,0xce,0x6a,0x46,0x88,0xfb,0x97,0x16,0x85,0xd0,0x54,0x71,0x15,0x51,0xe7, | |
| 274 | 0xd9,0xfb,0x82,0x93,0xd4,0xfd,0x67,0x9b,0xe4,0xde,0x04,0x45,0x8f,0x62,0x5d,0xd4, | |
| 275 | 0x58,0x4d,0x77,0x8c,0xc3,0x63,0x54,0xb1,0x54,0x68,0xfa,0x87,0x8f,0x20,0x6b,0x52, | |
| 276 | 0xf8,0x4f,0xad,0x56,0x13,0xb9,0xc2,0xd8,0x64,0x22,0xb0,0x1a,0x6f,0x4f,0x7a,0x61, | |
| 277 | 0xb8,0x02,0x24,0xf2,0xc4,0x01,0xb1,0x0f,0x15,0x0e,0x27,0xfe,0x31,0xef,0x89,0x02, | |
| 278 | 0x9a,0x67,0xdb,0x5e,0xd6,0x39,0x22,0x58,0x67,0x2b,0x60,0x33,0xd3,0x00,0x9a,0x33, | |
| 279 | 0x9d,0x7c,0xd4,0x9c,0x49,0x63,0x13,0xb2,0x5b,0x79,0x59,0xb9,0x57,0x82,0xac,0xf5, | |
| 280 | 0xc1,0x42,0x0e,0xaa,0x1d,0x7d,0x85,0x1c,0xef,0xf8,0x14,0x90,0xbb,0x75,0xbe,0x48, | |
| 281 | 0x05,0xba,0x89,0x8a,0x52,0x89,0x78,0x98,0x24,0xa8,0x8f,0xb8,0x01,0xd9,0xd2,0x2c, | |
| 282 | 0x6b,0xe2,0x45,0x3a,0xe8,0x86,0xec,0x25,0xfa,0x88,0xcb,0x31,0x27,0xae,0xe7,0xa2, | |
| 283 | 0xf2,0xbb,0x42,0xbc,0xdf,0x73,0xe1,0xc3,0x72,0x9a,0xc9,0xfb,0x2f,0xf4,0xfc,0xa8, | |
| 284 | 0x9a,0x45,0x80,0x0e,0x37,0x52,0x57,0x71,0x8a,0xdd,0x87,0x16,0x17,0xab,0x13,0x3f, | |
| 285 | 0x62,0x81,0xff,0x31,0xf0,0x21,0x4e,0x31,0x43,0x51,0x06,0x81,0xe1,0xd3,0x2a,0x67, | |
| 286 | 0x4c,0x6d,0xbe,0x26,0x0a,0xe2,0xc7,0x02,0x9d,0xf6,0x47,0x3e,0x8b,0x6d,0x43,0x20, | |
| 287 | 0x57,0x0a,0xbf,0xeb,0x85,0x93,0xc0,0xe3,0x99,0xcb,0x48,0x4c,0x17,0x77,0x5d,0x6b, | |
| 288 | 0x83,0x59,0x01,0x82,0x61,0x36,0x3a,0xd6,0x35,0xd2,0x0b,0xab,0x83,0xf2,0x77,0x46, | |
| 289 | 0xcf,0x58,0x84,0xe9,0x9e,0xca,0x35,0xda,0x72,0x0a,0x8e,0x5b,0xd1,0xde,0x93,0xb2, | |
| 290 | 0x3d,0x08,0x48,0x22,0x3c,0x4e,0xb1,0xee,0x50,0x73,0xd2,0x5c,0xff,0x3b,0xb0,0xaf, | |
| 291 | 0xcc,0x6a,0x4d,0x2b,0x3b,0xc4,0xae,0x14,0xd0,0x0d,0xd8,0xae,0x0f,0x09,0xcd,0x3d, | |
| 292 | 0x7c,0x7c,0x93,0x05,0x9b,0x2a,0x2c,0x4b,0xf0,0xd8,0x9e,0x51,0xff,0x48,0xec,0x5c, | |
| 293 | 0x4c,0x3f,0x1a,0xb1,0x5c,0x82,0x2c,0x92,0xb1,0xd3,0x25,0x45,0xd1,0xf8,0x0b,0x0d, | |
| 294 | 0x3e,0xb4,0xe2,0x2d,0x7e,0xca,0xac,0xeb,0x13,0x00,0x6e,0x8a,0x83,0x19,0x2c,0x4e, | |
| 295 | 0x51,0xd9,0xea,0x7b,0x01,0x04,0xad,0x55,0x17,0x5e,0x77,0x20,0x17,0xab,0x4e,0x20, | |
| 296 | 0x85,0xaf,0x34,0x99,0xe5,0x2f,0x2f,0xd0,0xbb,0xed,0x42,0x07,0x8b,0xae,0x70,0x83, | |
| 297 | 0xd9,0x37,0xbf,0x89,0x2a,0x4a,0x32,0x5b,0x00,0xad,0xcd,0x3f,0xe1,0x22,0x94,0x77, | |
| 298 | 0x4f,0x6f,0x8b,0x49,0xd0,0x57,0xb6,0xf8,0xe6,0x9d,0x19,0xc8,0x17,0x07,0xb9,0xfd, | |
| 299 | 0xe6,0x58,0x98,0xdb,0xd7,0x54,0xbb,0xa6,0x6e,0xbf,0x27,0xa2,0x2f,0x5d,0xde,0x13, | |
| 300 | 0x9e,0xf3,0xe6,0x3d,0x3f,0x43,0x41,0x64,0x96,0x12,0xf5,0xcd,0x27,0x24,0x05,0xba, | |
| 301 | 0x76,0x3e,0x75,0x70,0x08,0x22,0x49,0x34,0x5f,0x96,0x84,0x49,0x01,0x5c,0x2c,0xf2, | |
| 302 | 0x70,0x3a,0x45,0x75,0x32,0xf3,0xd1,0x15,0xc9,0x4b,0xd5,0x16,0xbb,0x06,0x55,0xbb, | |
| 303 | 0x8b,0xe7,0x55,0x4a,0xbd,0xb4,0xda,0x06,0xd5,0x31,0xe6,0x33,0x57,0x20,0x7f,0x16, | |
| 304 | 0xc7,0x46,0xa7,0xf1,0xa9,0x67,0x64,0x09,0x81,0x47,0xb9,0xa2,0xd3,0xab,0xa9,0x01, | |
| 305 | 0x24,0x55,0x3a,0x68,0xf6,0x0b,0x6f,0x1d,0xce,0x8f,0x4c,0x62,0x31,0xa7,0xd5,0x7d, | |
| 306 | 0xa1,0x15,0x0e,0xb1,0xa4,0x9f,0xfb,0x41,0xbd,0x08,0xa0,0x73,0x6f,0x14,0x02,0x8a, | |
| 307 | 0xde,0x42,0x55,0x2c,0x82,0xcf,0x52,0x21,0xb2,0xb6,0xd5,0x8f,0xf2,0x2f,0x28,0x00, | |
| 308 | 0xa9,0x79,0xb5,0x23,0x9b,0x96,0xbe,0x7c,0x8d,0x8c,0x88,0x8f,0x41,0x5e,0x58,0xe1, | |
| 309 | 0x7c,0x10,0xbd,0xec,0x63,0x81,0x7f,0x7d,0x96,0xed,0xbd,0x6c,0x97,0x27,0x5a,0xda, | |
| 310 | 0xca,0xd3,0x3b,0xee,0x92,0x96,0x43,0xca,0x54,0x14,0x57,0x92,0x73,0xf0,0x5b,0x6b, | |
| 311 | 0x54,0xcf,0x32,0x79,0x5a,0x55,0xc1,0xdf,0xea,0x25,0xeb,0xc2,0x68,0xe3,0x95,0x45, | |
| 312 | 0x37,0x34,0xa2,0x8d,0xbb,0xbc,0xf7,0xbe,0x5a,0x1e,0x78,0xfb,0x75,0xff,0x08,0x68, | |
| 313 | 0x73,0x02,0x8b,0x2a,0xb6,0xcc,0xe6,0x65,0xa2,0x01,0xfd,0x3c,0x9c,0x44,0xb3,0xd4, | |
| 314 | 0x08,0x39,0xed,0x50,0x49,0x86,0x8f,0xd5,0xc4,0xcc,0x7c,0x87,0xdc,0xb2,0x98,0x89, | |
| 315 | 0xf6,0xd9,0xc8,0x00,0x75,0xe8,0xf0,0x0f,0xbe,0x81,0xf3,0xdb,0x35,0x48,0xb6,0x87, | |
| 316 | 0x3d,0xe3,0x1d,0x38,0x3a,0xf3,0x0a,0x11,0x92,0x1e,0x64,0x37,0xa6,0x08,0x0d,0xce, | |
| 317 | 0xdd,0x55,0xea,0xf9,0x99,0xa7,0xde,0xdd,0x3e,0xa5,0xce,0x9d,0x31,0xf1,0x9d,0x5e, | |
| 318 | 0xd6,0x30,0x30,0x43,0x90,0x05,0x6a,0x71,0xc3,0x14,0x30,0x0c,0xd5,0x03,0x66,0x37, | |
| 319 | 0x28,0x74,0xef,0x16,0x20,0x0b,0xb0,0xce,0x22,0x6d,0x8c,0x83,0x91,0x3e,0x68,0x59, | |
| 320 | 0xd3,0x21,0x27,0x72,0x49,0xba,0xae,0xf5,0x59,0xaf,0xe0,0x04,0x67,0xa1,0xa2,0xc3, | |
| 321 | 0xd7,0x37,0xd8,0x58,0x0b,0x13,0x65,0xe4,0x6a,0xd9,0x2e,0x8e,0x56,0x2e,0x16,0x77, | |
| 322 | 0x33,0xb6,0x0c,0xf0,0x45,0x95,0x29,0x9d,0x6e,0x8a,0xdf,0xed,0x54,0x65,0xb4,0xa4, | |
| 323 | 0xf9,0x69,0x2b,0x86,0x62,0xda,0xc8,0x57,0x94,0xfc,0x0f,0xdb,0x91,0x13,0x84,0xd6, | |
| 324 | 0x5f,0x64,0xab,0x0c,0x00,0x31,0x08,0x42,0x7a,0xbf,0x1f,0x3a,0xd0,0x53,0x75,0xb9, | |
| 325 | 0x06,0x2f,0x8c,0x84,0x20,0x99,0xe9,0x5d,0x22,0xd3,0x11,0x0a,0x10,0x23,0x86,0x4e, | |
| 326 | 0xee,0xcc,0xce,0xed,0xc0,0x11,0x6c,0xaa,0x8a,0x38,0xe3,0x4b,0x50,0x84,0xb9,0x93, | |
| 327 | 0x17,0x39,0x71,0x46,0xe1,0x9b,0x8f,0x28,0xb3,0xee,0x97,0xfd,0x92,0x76,0x0d,0x89, | |
| 328 | 0x80,0x77,0x75,0x91,0x83,0x36,0x53,0xd7,0x9e,0xf5,0x2b,0x20,0xd4,0xf9,0x82,0x31, | |
| 329 | 0x2b,0x87,0xda,0xcc,0xa6,0xe1,0xb8,0xb7,0x49,0x4d,0xa1,0xb4,0x18,0x0e,0x17,0x89, | |
| 330 | 0x17,0x67,0xa0,0xf9,0x4a,0x9e,0xbf,0xc8,0xb5,0xf6,0xf7,0xb9,0x5d,0xb3,0xce,0x92, | |
| 331 | 0x44,0x19,0xc7,0x16,0x6f,0x6c,0x66,0x09,0xe3,0xf0,0x2f,0x2f,0xa2,0xe9,0xa6,0x4d, | |
| 332 | 0xb2,0x9b,0x4f,0x25,0x16,0x4a,0xae,0x7c,0xd1,0x3b,0x47,0x17,0xe9,0xb0,0x9f,0xb8, | |
| 333 | 0x61,0xef,0x38,0x24,0x3d,0x3a,0x97,0x20,0x81,0xd7,0x41,0x6f,0x31,0x08,0xb8,0xd4, | |
| 334 | 0x51,0x13,0x82,0x15,0xe5,0x3b,0x22,0xf5,0xf1,0xc4,0x1b,0x38,0x79,0xf2,0xf3,0xa2, | |
| 335 | 0x82,0x08,0x2d,0xf7,0x0e,0x4c,0x4d,0xfb,0x22,0x02,0xd7,0x72,0xc3,0x6c,0x4f,0x20, | |
| 336 | 0xf3,0xcf,0x39,0xc9,0xb8,0x6f,0x19,0x31,0x15,0x91,0x73,0x1d,0x0d,0x77,0xcc,0x4f, | |
| 337 | 0xa6,0x66,0xa6,0x8d,0xe3,0xa3,0x86,0x99,0xc8,0x70,0xf1,0x39,0x59,0x13,0x69,0x30, | |
| 338 | 0x9a,0xcf,0x74,0x41,0x8f,0xe8,0x95,0x32,0x3c,0xa1,0x4f,0xc6,0xa6,0xd9,0x0b,0x91, | |
| 339 | 0xe6,0x1f,0xf7,0xe6,0x2b,0xdc,0xfd,0x85,0x7a,0xf6,0x3e,0xd2,0x77,0x4f,0xe1,0x30, | |
| 340 | 0xc7,0xcb,0x08,0x04,0x0e,0x4f,0xd7,0xb1,0xef,0xbe,0x73,0x9c,0x0f,0xfd,0x00,0x28, | |
| 341 | 0x11,0xf0,0xa1,0xba,0x9a,0x7a,0x7a,0xb5,0x4e,0x80,0xb1,0x7e,0xd0,0xe5,0x68,0x79, | |
| 342 | 0xc4,0x8e,0xc3,0x09,0xd0,0x5f,0xe7,0x93,0x95,0x3a,0xf7,0x7a,0xba,0x06,0x18,0x23, | |
| 343 | 0xe0,0xa5,0x6e,0xf1,0xae,0xfc,0x1c,0x49,0xc6,0xee,0x47,0x8f,0xcc,0x60,0x12,0x26, | |
| 344 | 0x65,0x35,0xa2,0x73,0x35,0x52,0x1b,0xd9,0xdf,0x9b,0xa0,0xbd,0x08,0xf3,0x55,0x82, | |
| 345 | 0x54,0x3e,0x5f,0x8d,0x65,0x62,0xe2,0x41,0xe2,0x81,0xfd,0xda,0x59,0xfb,0x16,0x5d, | |
| 346 | 0x76,0x88,0xca,0x3f,0x2a,0x73,0x83,0xcd,0xdf,0x6c,0x63,0xfb,0xc3,0xb6,0x45,0x6b, | |
| 347 | 0xbc,0x75,0x8c,0xc1,0xab,0xcc,0x9d,0xa2,0x76,0xe0,0xdc,0xb2,0x01,0xd4,0xac,0x94, | |
| 348 | 0x30,0xcd,0x71,0xec,0xe6,0xee,0x91,0x60,0x07,0x5c,0x6d,0x91,0x78,0x3b,0x6c,0x26, | |
| 349 | 0x1d,0xae,0xf0,0xc1,0xd9,0xda,0x5d,0x06,0x91,0xe2,0x18,0x9a,0x28,0xeb,0x85,0x21, | |
| 350 | 0x83,0x18,0x07,0x3e,0x85,0x8e,0x03,0x96,0x13,0x71,0xdc,0xcc,0x11,0xe4,0xf7,0x85, | |
| 351 | 0x62,0x0b,0xb7,0x64,0xeb,0x0c,0x81,0x0e,0x8f,0x08,0xb9,0x27,0x33,0x26,0xc2,0x52, | |
| 352 | 0xba,0x88,0x00,0x33,0x09,0x52,0xd9,0x70,0x03,0xa9,0xae,0x32,0x20,0x4c,0x5c,0xe5, | |
| 353 | 0xfe,0xce,0x1d,0xe6,0xe2,0x1e,0x86,0x78,0x51,0x02,0x9b,0xde,0xcd,0x3d,0x60,0x5e, | |
| 354 | 0xdc,0x92,0xd9,0x3b,0x01,0xc7,0x0b,0xb8,0xbf,0x9f,0xf8,0x1b,0x9c,0xde,0xa5,0xa7, | |
| 355 | 0x1b,0x48,0x16,0xa0,0xc0,0xa1,0x50,0x4a,0x0f,0xad,0x55,0xea,0x8c,0x30,0x2b,0xc2, | |
| 356 | 0xbb,0xee,0xd5,0x17,0x20,0xac,0x56,0x2d,0x3f,0x2c,0xb4,0x49,0x9d,0x34,0xf2,0xad, | |
| 357 | 0xbc,0x86,0x14,0x9f,0x21,0xe8,0x1e,0x61,0x51,0x1c,0x14,0x39,0xce,0xe8,0xfa,0x6a, | |
| 358 | 0x1e,0x0f,0xd4,0x37,0xc4,0x54,0xa6,0xe6,0x43,0x7d,0x74,0xba,0x21,0x4d,0x43,0xf7, | |
| 359 | 0xe1,0x88,0x15,0xe1,0x07,0xf2,0xef,0xbc,0x17,0x4f,0xd6,0xcc,0x95,0x64,0xcd,0x56, | |
| 360 | 0x05,0xf3,0xd7,0x9c,0xeb,0xc1,0xfa,0xac,0xf2,0xe0,0x8d,0x68,0x4c,0x89,0xfc,0x18, | |
| 361 | 0xfa,0x78,0x32,0x9f,0x21,0x11,0xd2,0xe2,0xe4,0xb7,0x82,0xc4,0x68,0xce,0xe3,0x2a, | |
| 362 | 0xd0,0xbc,0x9b,0xf7,0x41,0xe2,0x4e,0x10,0xdf,0xa7,0x9f,0x59,0xcd,0x6c,0x33,0xb5, | |
| 363 | 0x2f,0x98,0xae,0x09,0x2b,0x8d,0xb3,0x38,0xe2,0xaf,0xe6,0x27,0x7b,0x63,0xec,0xb9, | |
| 364 | 0x17,0x0d,0x69,0xd3,0xdd,0x10,0x00,0x59,0xef,0xd1,0x56,0x2e,0x71,0xb3,0x0e,0x36, | |
| 365 | 0x89,0x1b,0xcd,0xcf,0xaa,0x7d,0x65,0x81,0x81,0x35,0x1e,0x00,0x6e,0x5d,0xb1,0xd2, | |
| 366 | 0x37,0xf9,0x61,0x7a,0x9f,0x0d,0x72,0x7b,0x6a,0x9d,0x28,0x5b,0x5c,0xae,0xc7,0x9d, | |
| 367 | 0x39,0x42,0x93,0xc5,0xc5,0x5e,0xd0,0x57,0xc4,0x07,0xc2,0xd7,0xfa,0xea,0x84,0x12, | |
| 368 | 0xdc,0xf0,0x37,0x81,0x98,0x50,0x95,0x7c,0x52,0xaf,0x83,0x27,0x6d,0xb0,0xe5,0xa7, | |
| 369 | 0x4e,0xf8,0x9e,0x20,0x59,0x2b,0x93,0xb5,0xf1,0xec,0xa7,0x8b,0x7a,0xdf,0xbf,0xc5, | |
| 370 | 0x59,0xaa,0xbe,0x88,0xf2,0xee,0x89,0xf8,0xa8,0x52,0x04,0x38,0xe0,0x77,0x12,0x6d, | |
| 371 | 0xfe,0x04,0x98,0xba,0x65,0x9b,0x79,0x44,0x79,0xe0,0x9a,0x2e,0x9f,0x78,0xde,0x9d, | |
| 372 | 0x3b,0x07,0x2a,0xb4,0xb0,0x30,0x61,0x98,0x63,0x98,0x68,0x6d,0xb7,0xe3,0x23,0x56, | |
| 373 | 0x11,0xb3,0x75,0x78,0xd4,0xaf,0x43,0xf6,0x65,0x79,0x70,0xf5,0x28,0xb6,0xe1,0x98, | |
| 374 | 0x80,0x09,0x7a,0x04,0xd2,0x16,0x1e,0x5d,0x81,0x83,0xb1,0xc6,0xf2,0xf2,0x18,0x63, | |
| 375 | 0x88,0x07,0x37,0x59,0xa8,0x67,0xf1,0xcc,0xb6,0xb6,0x2b,0xe0,0x15,0x97,0xc8,0xb7, | |
| 376 | 0x2a,0xae,0xad,0x78,0x58,0xa1,0xbe,0x45,0x04,0x11,0xde,0x42,0x91,0xa5,0xf1,0x95, | |
| 377 | 0x64,0xff,0xdd,0x5f,0xe0,0xc3,0x83,0xc7,0x6a,0x96,0xca,0xee,0x66,0x1c,0x94,0xfb, | |
| 378 | 0x37,0xf8,0xc5,0x10,0x42,0xcf,0x42,0x51,0xea,0x44,0xef,0xe3,0x94,0xfc,0xaf,0xea, | |
| 379 | 0xa3,0x9a,0x66,0x89,0x7c,0xc3,0xfa,0xe5,0x83,0x1b,0x4c,0x21,0x1b,0x45,0x43,0x62, | |
| 380 | 0xa9,0xe5,0xc1,0xcb,0x90,0xa1,0xaa,0x81,0x35,0x1a,0xe3,0xa8,0xfb,0xf7,0x50,0x63, | |
| 381 | 0x47,0xda,0xd4,0xd7,0x7c,0x67,0x54,0x27,0xff,0x43,0xb3,0x78,0x34,0x12,0xd6,0xed, | |
| 382 | 0x7e,0x77,0xa0,0xab,0x42,0x17,0xf6,0xd6,0xe3,0x95,0xbc,0x91,0xc6,0x96,0xd5,0x01, | |
| 383 | 0x4e,0xbd,0x26,0x49,0xe0,0xaf,0x92,0x8d,0xe0,0x10,0xfe,0xf3,0xb1,0x83,0x4d,0x9d, | |
| 384 | 0xb7,0xad,0x64,0xaf,0x58,0x31,0x27,0x4e,0xf5,0xb4,0x79,0x9e,0xf5,0xd9,0x3e,0xc2, | |
| 385 | 0xba,0x45,0x5b,0xdf,0xa8,0x9b,0xb4,0x18,0x24,0x80,0x2d,0x92,0x92,0x98,0xa8,0x70, | |
| 386 | 0x55,0x86,0x0c,0xd7,0xd2,0xef,0x3b,0xea,0x6c,0x76,0x19,0xcf,0x88,0xc0,0x8b,0xa7, | |
| 387 | ||
| 388 | /* data */ | |
| 389 | 0x62,0xef,0x86,0xe9,0x89,0x18,0x1a,0x73,0xf9,0x03,0xf8,0xe1,0xf7,0x35,0xe6,0x37, | |
| 390 | 0xc5,0x30,0xa6,0x79,0xa9,0x7a,0xfe,0xab,0xe6,0x95,0xb1,0xd1,0xc0,0x07,0x83,0xef, | |
| 391 | 0x7a,0x53,0x37,0x0a,0x5a,0xfc,0x93,0x24,0xa3,0x88,0x5a,0x42,0x99,0x7a,0x50,0x69, | |
| 392 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 393 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 394 | 0x80,0x56,0x3a,0x9b,0x9c,0xa0,0xda,0xde,0x32,0xdc,0xf5,0x34,0x84,0x8e,0x4f,0xa3, | |
| 395 | 0xd7,0x3b,0xad,0x2e,0x70,0x65,0xd1,0xd9,0x91,0x91,0x81,0xa7,0x80,0x44,0x7f,0x9e, | |
| 396 | 0x7f,0x00,0x91,0xc1,0xd4,0x4b,0x79,0x14,0xc2,0xa7,0xfd,0x9c,0x8c,0x9a,0xe0,0x5b, | |
| 397 | 0x78,0xa7,0xe6,0x56,0xc9,0x51,0xd3,0x91,0xc3,0x1e,0x6b,0x11,0xaa,0x91,0x72,0xd8, | |
| 398 | 0xc2,0x2e,0xac,0xec,0x4f,0x79,0xdd,0x4f,0x95,0xf6,0xc9,0x07,0xd9,0x29,0x35,0x17, | |
| 399 | 0x5d,0x97,0xe3,0x82,0x66,0xc2,0x98,0x4e,0x39,0x2f,0x19,0x7e,0x18,0x63,0x28,0x16, | |
| 400 | 0x49,0xe0,0x8b,0x1a,0x0f,0x2c,0x05,0x8e,0xad,0xc9,0x59,0x76,0x69,0x3d,0x4d,0xd6, | |
| 401 | 0x86,0x0b,0xa4,0xb3,0x48,0xb6,0x22,0x0f,0xf3,0xc4,0x8b,0xef,0xcb,0xb8,0xa3,0x58, | |
| 402 | 0x14,0x16,0x2e,0x4c,0x12,0x62,0xf0,0xd1,0x09,0x20,0xad,0xe9,0x3d,0xd4,0x2a,0x9a, | |
| 403 | 0xf3,0x03,0x29,0xe7,0x6d,0x2f,0x70,0xd4,0xf1,0xdd,0xc1,0x64,0xc1,0x92,0xe2,0x9d, | |
| 404 | 0x23,0xd0,0x95,0x82,0x59,0x1d,0xa0,0x17,0xa9,0xfb,0xc6,0x61,0x56,0xf0,0xca,0x62, | |
| 405 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 406 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 407 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 408 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 409 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 410 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 411 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 412 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 413 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 414 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 415 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 416 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 417 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 418 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 419 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 420 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 421 | 0xa4,0x7f,0x72,0x1f,0xd7,0x2b,0x81,0x9c,0x33,0x7a,0xbb,0xde,0xfc,0xef,0xe4,0xe7, | |
| 422 | 0x76,0x0e,0xc0,0xbd,0xe5,0x5b,0x14,0x62,0x8d,0x5a,0xa2,0xdc,0xb2,0x8f,0x2f,0x2e, | |
| 423 | 0x99,0x7f,0x7f,0x5b,0x84,0xac,0x57,0x69,0xb8,0x9b,0x79,0x5b,0x7a,0xd1,0xab,0x35, | |
| 424 | 0x0d,0xd0,0xaf,0xfb,0xb4,0x1e,0x4b,0xb1,0xb5,0x3d,0x42,0x5b,0x53,0xb3,0x58,0xfd, | |
| 425 | 0xd1,0x03,0x51,0x9c,0x75,0xb0,0xf0,0x3a,0x82,0x2a,0x32,0x44,0xb7,0xcc,0xbe,0xd0, | |
| 426 | 0x5d,0xeb,0x38,0x4a,0x83,0xaa,0x03,0x57,0x0c,0x2e,0x83,0x9b,0xdd,0x9b,0x1e,0xb9, | |
| 427 | 0xda,0x14,0x35,0x56,0xe6,0xbd,0x2f,0x15,0xe5,0xbb,0x6e,0x9b,0xbc,0x32,0x56,0x8c, | |
| 428 | 0x4f,0x45,0x4c,0x8b,0x81,0x19,0xb4,0x3c,0x37,0xd1,0xf1,0x45,0x55,0x92,0x68,0x47, | |
| 429 | 0xbe,0x80,0x7c,0xe9,0x56,0xbe,0x92,0xcc,0x02,0x71,0x0d,0x97,0xa6,0xbc,0x52,0xec, | |
| 430 | 0x25,0xc4,0xc5,0x6f,0x64,0xac,0xc9,0xc5,0x46,0x99,0xc2,0x92,0xb0,0xae,0x15,0x79, | |
| 431 | 0x86,0x10,0x26,0x1f,0xab,0xe3,0x59,0x27,0x04,0x4a,0x10,0x36,0x74,0x6a,0xb2,0xf0, | |
| 432 | 0xdf,0x66,0xa1,0xf8,0x2b,0x63,0x42,0xf3,0x3a,0x84,0xf8,0x84,0xf0,0xee,0x27,0x4f, | |
| 433 | 0x32,0xc4,0x35,0xfa,0xe4,0x2c,0x84,0x27,0xe9,0x47,0x78,0x7a,0x25,0x3b,0x76,0x98, | |
| 434 | 0x7e,0x2c,0xe1,0x24,0xd5,0x3d,0x1e,0xc4,0x11,0x93,0x91,0x19,0x14,0x52,0x9d,0xc9, | |
| 435 | 0xc2,0x9d,0xa7,0x78,0x00,0x98,0x12,0xca,0xb2,0x69,0x43,0x62,0xbb,0x31,0x9e,0xe4, | |
| 436 | 0x00,0x16,0x86,0xf5,0x64,0x3c,0x5f,0x39,0xcc,0xc7,0x8f,0x53,0x1b,0xda,0x77,0xe8, | |
| 437 | 0x36,0x99,0x7e,0x9b,0x01,0x29,0x05,0x11,0x5f,0xae,0x73,0xed,0x35,0x4b,0x2a,0xd4, | |
| 438 | 0x66,0x25,0x8e,0x6a,0xd7,0x5f,0x04,0x52,0x6b,0x1e,0xf0,0x30,0x07,0x85,0xb5,0xaa, | |
| 439 | 0x8f,0xb9,0xb8,0x61,0xe6,0x94,0x5f,0x77,0x33,0xfa,0xd5,0xfd,0x6d,0x70,0x33,0x54, | |
| 440 | 0x70,0xb9,0x7d,0xbf,0xc2,0x98,0xb7,0x84,0xe5,0xd3,0xe5,0xe6,0x5f,0x2d,0x0b,0x29, | |
| 441 | 0xb3,0x6a,0x2e,0x90,0x65,0x4e,0x50,0x61,0xf8,0x9d,0x76,0xdf,0xf2,0x1b,0xa5,0x4e, | |
| 442 | 0xd6,0x8c,0xdf,0xf3,0x28,0xb4,0x2a,0x10,0x6c,0x57,0x88,0xea,0x27,0x39,0xff,0xc5, | |
| 443 | 0xdb,0x1f,0x92,0xe6,0x0d,0xcb,0x45,0x8f,0x41,0x03,0x1c,0x06,0xfc,0x89,0x1b,0x8d, | |
| 444 | 0xc0,0x23,0x46,0x6a,0x13,0x93,0xa1,0xe0,0x77,0x9f,0x30,0x32,0x72,0x0a,0xf7,0xa6, | |
| 445 | 0x87,0x98,0xfa,0x7f,0x3a,0x0d,0x3d,0x01,0x0e,0x2d,0xc5,0x70,0x89,0xbc,0x94,0x10, | |
| 446 | 0x2e,0x7e,0xb0,0x25,0x81,0x37,0x1b,0xf4,0x06,0xab,0xdb,0xbf,0x42,0x9f,0xf3,0xcb, | |
| 447 | 0xb7,0xd5,0x66,0x5d,0xea,0x12,0x3a,0xb7,0x5f,0x1b,0x72,0x1f,0x9b,0xb2,0x12,0xd7, | |
| 448 | 0x20,0x9d,0x1e,0x25,0x74,0x9f,0x9a,0x4b,0x19,0x7b,0x8a,0x8f,0x95,0xf7,0xf2,0x34, | |
| 449 | 0x6b,0xd6,0xd7,0x7e,0x1f,0xdc,0x3b,0xb1,0x34,0xcd,0x23,0x11,0x30,0x6d,0x94,0xe2, | |
| 450 | 0x96,0x80,0x90,0x68,0xea,0xca,0x1d,0xe7,0xb0,0x10,0x3d,0xa4,0x6d,0x14,0xf6,0xe1, | |
| 451 | 0xa3,0x9b,0x4b,0xe3,0xd7,0x6a,0xf2,0x0c,0x83,0xaf,0xae,0x79,0xf0,0xed,0x55,0x21, | |
| 452 | 0x79,0xb9,0x8a,0xea,0x43,0x77,0xf1,0xb6,0x71,0x8a,0x2f,0x69,0x28,0x57,0xe8,0xe8, | |
| 453 | 0x8c,0x41,0xbf,0x17,0xc0,0xad,0x59,0xd9,0xe8,0xfe,0x5a,0x12,0x2a,0x99,0x65,0xa8, | |
| 454 | 0xa7,0xe2,0x1e,0x7c,0x86,0x3c,0x2a,0x75,0xe9,0x0c,0x2d,0x75,0xf4,0xb5,0xca,0x60, | |
| 455 | 0xcc,0x9c,0xa6,0x1b,0x95,0x24,0x64,0x8a,0x72,0xb2,0xa9,0x90,0x87,0xa9,0x19,0x12, | |
| 456 | 0xfa,0x6e,0x57,0xf3,0xec,0x65,0x07,0x18,0x84,0xf1,0xcf,0x64,0xe4,0x77,0x50,0xbc, | |
| 457 | 0x30,0x5a,0x31,0x04,0x8d,0xff,0x13,0xb0,0x3e,0x10,0x82,0xae,0x00,0xc3,0xb6,0x96, | |
| 458 | 0xb5,0x81,0x1e,0xec,0x21,0x50,0xff,0x34,0x08,0x33,0x9d,0xf3,0x2e,0x2d,0x3c,0xab, | |
| 459 | 0x58,0x44,0x21,0xe1,0x48,0x7b,0x8e,0x19,0xc4,0xd6,0xc9,0xd8,0x8e,0x59,0x14,0xa0, | |
| 460 | 0x6c,0x08,0xb5,0xf7,0x21,0xe7,0xef,0x5f,0x70,0xfa,0x06,0x5e,0x1f,0x45,0x3d,0x77, | |
| 461 | 0xf1,0xcc,0xda,0x2e,0xaa,0x94,0x20,0x06,0x0e,0x9f,0x53,0x85,0xe1,0xf2,0xb7,0x2e, | |
| 462 | 0xe7,0x92,0x90,0x85,0xe4,0x81,0x23,0x0e,0x9c,0xc5,0xb2,0x4e,0xd4,0x61,0x82,0xc7, | |
| 463 | 0x4e,0x58,0xd8,0xfe,0xcf,0xb0,0xf6,0x77,0x1c,0x6c,0x22,0xb7,0xf8,0x90,0x9e,0xab, | |
| 464 | 0x88,0xa1,0xb6,0xf0,0xf1,0xe4,0x8d,0x59,0x6f,0xbd,0x0b,0x0b,0x67,0xd1,0x15,0x2a, | |
| 465 | 0x3c,0xc3,0x8f,0xd9,0x53,0x38,0x5c,0x3c,0x0f,0xd3,0x61,0x79,0xd5,0x39,0x81,0xb1, | |
| 466 | 0x09,0x0e,0xa1,0x0b,0x0e,0xf5,0xa4,0xa8,0x48,0x92,0x6f,0xaf,0x1c,0x8b,0xe5,0x42, | |
| 467 | 0xee,0x81,0xeb,0x86,0x22,0x1b,0x65,0x9e,0x1a,0xfb,0x36,0xae,0x3d,0xc5,0x43,0xdc, | |
| 468 | 0xed,0x1e,0x6f,0x49,0x8f,0xaa,0x9f,0x1c,0x86,0x0c,0xb7,0x77,0x36,0xe9,0x9a,0x7e, | |
| 469 | 0x05,0xe4,0x2c,0x56,0x55,0xa2,0x52,0x23,0x8a,0xc6,0xf0,0x08,0x09,0xf5,0xe9,0x2a, | |
| 470 | 0x35,0xd3,0x22,0xac,0x73,0x03,0x7e,0xb3,0x27,0x2a,0xe2,0x63,0xb4,0xeb,0x32,0xdf, | |
| 471 | 0x7f,0xeb,0x51,0x4b,0xeb,0xcd,0x23,0xcc,0x5d,0x36,0x8e,0x86,0x39,0xc9,0x73,0x9c, | |
| 472 | 0xe2,0x2b,0xb9,0x33,0xbc,0x00,0x42,0x6e,0x2d,0xeb,0xf2,0x72,0x96,0x91,0xae,0x63, | |
| 473 | 0x5e,0x95,0x5a,0x64,0xe6,0x9c,0xd9,0x9a,0x95,0x49,0x0f,0x28,0xcd,0x41,0xe2,0x33, | |
| 474 | 0xf2,0x28,0x33,0xde,0x69,0xa1,0xe9,0x4e,0x96,0x51,0xe6,0xa6,0xdc,0xdb,0x0e,0x0b, | |
| 475 | 0xa0,0xe4,0x46,0xa1,0x45,0x0f,0x72,0x8b,0x30,0x01,0x75,0xee,0xc5,0x5d,0x34,0xed, | |
| 476 | 0x67,0xc8,0x92,0xad,0x7a,0xe6,0x74,0x51,0x63,0x5a,0xbd,0xfe,0x86,0xc9,0x52,0xd8, | |
| 477 | 0x46,0xd6,0x17,0x02,0x08,0x26,0xef,0xa0,0x30,0x5d,0xbf,0xd7,0x21,0x1d,0x6a,0xcb, | |
| 478 | 0x3f,0x0d,0xd5,0xa0,0xef,0xcf,0xe3,0x78,0x95,0x08,0x79,0x7a,0x94,0x5b,0x7b,0xc8, | |
| 479 | 0x51,0x6d,0xcc,0x86,0x2f,0xe1,0x50,0xda,0x93,0x5c,0xec,0xe5,0xe1,0x82,0x84,0xce, | |
| 480 | 0x7c,0xf6,0xfb,0xb6,0xc8,0x5c,0x36,0xc4,0x2a,0x59,0x19,0x1a,0x06,0x91,0x87,0xdc, | |
| 481 | 0xbf,0xa7,0x64,0x2f,0xba,0x6f,0xa5,0x0f,0x57,0x57,0xa8,0x37,0xd0,0xb0,0x16,0xd2, | |
| 482 | 0xd4,0xbe,0x72,0xa4,0x69,0xc5,0x41,0x72,0x92,0x0a,0x05,0xfe,0x52,0xcf,0x43,0x0d, | |
| 483 | 0xaf,0x59,0x7f,0x64,0xac,0xed,0x3e,0xc5,0x4d,0xcd,0x02,0xf6,0x96,0x3f,0x50,0xb9, | |
| 484 | 0x8b,0x86,0xad,0xd4,0x30,0xe5,0x9c,0x0a,0x89,0xa2,0xa0,0x1f,0x9a,0x00,0x3f,0xd7, | |
| 485 | 0x67,0x43,0xfc,0xf5,0xf5,0xaf,0x5b,0x3f,0x46,0x88,0xdf,0x78,0x5f,0x12,0x0e,0x65, | |
| 486 | 0x45,0x91,0x6b,0xc8,0xfa,0x49,0x7b,0x66,0x84,0x7f,0xc0,0x03,0xe6,0x75,0xbf,0x64, | |
| 487 | 0x24,0x70,0xfc,0x4b,0x41,0xb5,0xfc,0x7e,0x43,0x86,0x41,0xbf,0x2d,0x29,0x50,0xd4, | |
| 488 | 0x03,0xe0,0xae,0x7f,0xc9,0xf1,0xde,0x86,0x83,0x9f,0x63,0xac,0x36,0x2e,0xc3,0xb5, | |
| 489 | 0xe4,0xe2,0x81,0x65,0x92,0xff,0x21,0x80,0x45,0xc9,0x26,0xca,0xff,0x84,0x16,0x07, | |
| 490 | 0xc5,0x74,0x74,0xfb,0x9c,0xdd,0xc5,0x6a,0x87,0x03,0x8b,0x19,0x89,0x2b,0x4b,0xca, | |
| 491 | 0xa8,0x97,0x89,0x42,0xe7,0x8c,0xca,0x46,0x4a,0x4f,0x90,0x98,0xd5,0x23,0x60,0xfe, | |
| 492 | 0x8c,0x4b,0xbf,0x3b,0x73,0x0d,0x30,0x12,0x8e,0xac,0x36,0x49,0xe1,0x6b,0x57,0xa3, | |
| 493 | 0x70,0x90,0x16,0xe4,0xef,0xe9,0x5b,0x3b,0x49,0x1c,0x36,0x10,0x2e,0x2c,0xce,0x13, | |
| 494 | 0x42,0xfa,0x46,0xa7,0x28,0x6d,0xc3,0x30,0x84,0x67,0x68,0x14,0xfc,0xcc,0x5a,0x3d, | |
| 495 | 0xce,0x26,0x4a,0x9c,0x74,0xa8,0x1e,0x60,0x28,0xef,0x82,0x8c,0x2c,0x80,0x38,0x24, | |
| 496 | 0xc6,0xe0,0x06,0x2c,0x39,0x92,0xaf,0xa8,0xc8,0x19,0xf6,0x9d,0xb9,0xfb,0xa1,0x0d, | |
| 497 | 0x4f,0xbb,0x73,0xfd,0xce,0xdd,0x30,0x72,0x7a,0xe5,0x9c,0x6e,0x97,0x56,0x7b,0xf6, | |
| 498 | 0x69,0xb7,0x92,0x0f,0x35,0x89,0xa3,0xbc,0x3d,0x51,0x73,0x00,0xc6,0x93,0xc6,0xe1, | |
| 499 | 0x15,0xd3,0x61,0x62,0x6c,0x96,0x06,0x87,0x10,0x5e,0x7b,0x54,0x46,0xb0,0x83,0xcd, | |
| 500 | 0x51,0x11,0xe1,0xf6,0x74,0x04,0x5b,0xd3,0xf5,0x0c,0xb4,0x68,0x17,0xaf,0xb0,0xb9, | |
| 501 | 0x1e,0x70,0x13,0xcb,0x4e,0xd3,0xa0,0xa0,0xeb,0x5c,0x1e,0x3d,0x39,0x8e,0x4e,0xa7, | |
| 502 | 0x7c,0xf0,0xf5,0xe1,0xf8,0x03,0xd7,0xee,0xf2,0x4c,0xb3,0x2c,0xd5,0x04,0x46,0x74, | |
| 503 | 0xbc,0xb8,0x7b,0x9e,0x57,0x81,0xb4,0x4f,0x89,0x83,0x58,0x2a,0x37,0xe1,0xc9,0xd4, | |
| 504 | 0x44,0xc0,0x6c,0xf1,0x95,0x44,0xa4,0x24,0x0d,0x90,0xd5,0x12,0x91,0xc8,0x65,0x5e, | |
| 505 | 0x05,0x11,0xb6,0xad,0x4c,0x8f,0x2c,0xa3,0x4a,0x65,0x2c,0xe2,0xe5,0xb8,0x19,0x11, | |
| 506 | 0xff,0xab,0x59,0xd2,0x7c,0x63,0x4d,0xca,0x41,0x03,0x5b,0x9c,0x31,0xb0,0xe7,0xed, | |
| 507 | 0x31,0x8e,0x54,0x60,0x25,0xc0,0x07,0x9a,0xf0,0x6b,0x64,0x3f,0x77,0xb2,0xce,0xf2, | |
| 508 | 0x9d,0xba,0xa9,0x57,0x47,0xa6,0x5b,0x13,0x59,0x9b,0x45,0xca,0xb6,0xbd,0xce,0x1f, | |
| 509 | 0x42,0x2f,0x57,0xb7,0xe2,0x15,0x47,0x36,0x7a,0x95,0x00,0x3f,0xed,0xd0,0xe6,0x76, | |
| 510 | 0x20,0xed,0x5e,0x80,0xf6,0x0e,0xcc,0x01,0x54,0x57,0x93,0x9c,0x1e,0xed,0x18,0xf6, | |
| 511 | 0x37,0xf4,0xbe,0xb2,0x83,0x8f,0xea,0x75,0xe8,0xe2,0x00,0xe3,0x47,0x13,0x63,0x9f, | |
| 512 | 0x87,0x43,0x77,0x4d,0x89,0x99,0xa1,0x92,0x34,0x37,0x45,0x12,0x6a,0x41,0xc6,0x71, | |
| 513 | 0x0f,0xdc,0x89,0x51,0x09,0x2c,0xf2,0x59,0x39,0x54,0x64,0x2b,0x86,0x79,0x43,0x6b, | |
| 514 | 0xd1,0xbe,0xf4,0xbe,0x01,0x48,0xdb,0xc8,0xf8,0x3b,0x5b,0x2c,0x9a,0xba,0xd9,0x8f, | |
| 515 | 0xcc,0xe9,0xb8,0x94,0x72,0xed,0x5d,0xe0,0x6f,0xea,0x2c,0x17,0xa8,0x03,0x88,0xdc, | |
| 516 | 0x00,0x5d,0xd5,0xd3,0x5c,0x1b,0x78,0xa2,0x9f,0x62,0xd5,0xea,0xae,0x56,0x4f,0x52, | |
| 517 | 0x6d,0x1a,0x4b,0x7c,0xbf,0xd3,0x2d,0x0c,0x89,0xa4,0x58,0xa7,0xae,0xb2,0x30,0xf0, | |
| 518 | 0x13,0x20,0x1a,0x8d,0x9b,0x13,0x7a,0x1f,0x2b,0xae,0xb3,0x4c,0xa6,0x16,0x2a,0xb8, | |
| 519 | 0xf2,0x6f,0x42,0x07,0xf0,0xdc,0x60,0xdb,0x86,0x82,0xe8,0xdb,0x98,0x84,0x3d,0xa9, | |
| 520 | 0x09,0x07,0xc3,0xea,0xbe,0x2e,0xdf,0x41,0x9b,0x1e,0xf5,0x53,0x83,0xfb,0x68,0xc3, | |
| 521 | 0x5a,0xe8,0x9d,0x36,0x05,0x09,0xf8,0x4f,0x68,0x83,0xdb,0xb3,0x66,0x7a,0xad,0x06, | |
| 522 | 0xe4,0x12,0xd0,0xeb,0xc5,0x6d,0xa9,0x06,0xee,0xb2,0x9b,0xfd,0x43,0x03,0x0b,0x71, | |
| 523 | 0xa7,0x84,0x5c,0x09,0xff,0x5b,0xf3,0x67,0x2e,0xa9,0x33,0x2f,0x18,0x95,0x81,0x06, | |
| 524 | 0xa3,0x55,0xff,0x2b,0x00,0xb5,0x22,0x52,0x0e,0x73,0x7d,0x9a,0x37,0x55,0x14,0x47, | |
| 525 | 0xfe,0x1e,0xec,0x9c,0xe7,0x92,0x07,0xdf,0x76,0x75,0x6b,0x54,0x2f,0x8b,0x1a,0x3d, | |
| 526 | 0x96,0x98,0x1a,0xdf,0x2f,0x61,0x6d,0x7e,0x7e,0xa8,0x19,0x5e,0x07,0x32,0x21,0xc4, | |
| 527 | 0x4e,0xc4,0x89,0xf2,0xd8,0x20,0x54,0x2e,0x27,0x0c,0x88,0xba,0xc1,0x4a,0x28,0xdc, | |
| 528 | 0x28,0xa0,0x38,0xd7,0xe2,0xd1,0xbd,0xef,0x71,0xa1,0xb9,0x67,0x5b,0xd3,0x31,0x85, | |
| 529 | 0x23,0x2d,0x29,0x8c,0x4d,0x72,0xa6,0xc0,0x5d,0x66,0xaa,0x65,0xd7,0xce,0x3b,0xbf, | |
| 530 | 0x3f,0x6c,0x5b,0x13,0x19,0x05,0x10,0xa3,0xe9,0x5d,0x5c,0xb4,0x33,0x39,0x45,0x8b, | |
| 531 | 0x7b,0x5b,0xbd,0xcb,0x08,0xc9,0x2d,0x2d,0xa9,0x7b,0x87,0xc9,0x66,0xbb,0x70,0x86, | |
| 532 | 0x64,0xed,0x8c,0x45,0xc6,0x74,0x7e,0xed,0xb1,0xb5,0xeb,0x60,0x49,0x13,0x76,0x82, | |
| 533 | 0xb1,0xf3,0xc4,0x39,0x0d,0xb8,0x78,0x66,0x82,0xc7,0x37,0xef,0x34,0x84,0xa5,0xb8, | |
| 534 | 0x46,0x52,0x65,0xa5,0xdd,0x95,0x1c,0x99,0x1d,0xb3,0x6d,0x78,0x29,0x0d,0xfd,0x27, | |
| 535 | 0x25,0x0a,0x6f,0x8a,0x37,0x0c,0x68,0x84,0x80,0x77,0x8c,0xfa,0x26,0xb0,0x7e,0xcf, | |
| 536 | 0x4d,0x1b,0xe2,0xe8,0x19,0x1b,0x5d,0x28,0xad,0x15,0x93,0x74,0x2d,0x6c,0x27,0xb0, | |
| 537 | 0xbe,0x85,0xbe,0xbf,0x84,0xc3,0xfc,0x86,0xa2,0x8b,0x84,0xe8,0x3d,0x41,0xfa,0xca, | |
| 538 | 0x78,0x48,0x03,0x0f,0x78,0x04,0x43,0x9c,0x60,0xdb,0x5d,0x54,0x55,0x2e,0xf6,0x1c, | |
| 539 | 0x7b,0x64,0xb1,0xd8,0xf5,0xdf,0x33,0x6b,0xe8,0x03,0x20,0xba,0x77,0x35,0x1b,0xa8, | |
| 540 | 0xc7,0xd9,0xc8,0x1a,0xfb,0x52,0xcc,0xf4,0x38,0x04,0xcb,0x19,0xa2,0x55,0x69,0x6d, | |
| 541 | 0x5c,0xa7,0x48,0xd5,0x8a,0x5e,0x0f,0x35,0x52,0xdf,0x60,0x70,0xd5,0x8d,0xdf,0x6b, | |
| 542 | 0x3a,0xce,0x31,0x09,0xa3,0x03,0xfa,0x2f,0x34,0x92,0xdd,0xc1,0x12,0xdf,0x7f,0xa2, | |
| 543 | 0x61,0x4e,0x83,0xb7,0x44,0x41,0x8e,0xe3,0xe0,0x1f,0x44,0x0a,0x58,0x4a,0x48,0x12, | |
| 544 | 0xd1,0x26,0x3e,0xdd,0x6e,0x19,0xcc,0x4f,0x54,0x84,0x93,0x4d,0xa6,0xce,0x3a,0xbb, | |
| 545 | 0x89,0x58,0x62,0x7c,0x21,0x89,0xb2,0x74,0x91,0xc3,0xcc,0x89,0xfe,0x6a,0x54,0x9c, | |
| 546 | 0x8b,0xe3,0xf0,0x94,0x5d,0x92,0x41,0x53,0x98,0xda,0xed,0xbd,0x5f,0x20,0x98,0xb7, | |
| 547 | 0xd6,0xc7,0xe6,0x25,0x22,0x34,0x79,0xea,0x67,0xcb,0xf8,0xeb,0xc8,0xef,0x05,0x0b, | |
| 548 | 0x6a,0x04,0x45,0x2f,0x71,0x70,0x5b,0x3a,0x00,0x94,0xeb,0x11,0x3b,0xd7,0x9b,0x98, | |
| 549 | 0x47,0x9a,0x0d,0xb2,0x48,0x44,0xe5,0x44,0x61,0x37,0xc8,0x31,0xb7,0xd7,0x5a,0x5e, | |
| 550 | 0x6d,0x89,0x3e,0xae,0xa8,0xb1,0x18,0x06,0x8b,0xb2,0x8e,0x4a,0x3b,0xf1,0x41,0x5d, | |
| 551 | 0xdc,0xd1,0xd8,0x23,0x91,0xb7,0xf5,0x81,0x7f,0x07,0x3c,0x5b,0xc9,0x24,0x52,0x95, | |
| 552 | 0x94,0x72,0xdb,0x11,0x03,0x56,0x7a,0xb6,0x3b,0x34,0xd4,0x66,0x60,0x6f,0x8c,0x05, | |
| 553 | 0x95,0x6c,0x47,0x78,0xfe,0x8f,0xa8,0xa3,0xc1,0x3b,0x54,0x69,0xff,0xd4,0xef,0xaf, | |
| 554 | 0xdf,0xbf,0x1c,0x59,0x83,0x60,0x7f,0x4a,0x0f,0x1a,0xbe,0x66,0xa8,0x52,0x7a,0x92, | |
| 555 | 0x72,0x6b,0x5a,0xb2,0x90,0xca,0x00,0xa9,0x26,0xd3,0x10,0x5c,0x5a,0xe9,0x2f,0xae, | |
| 556 | 0x4e,0x70,0x01,0x84,0x26,0xcd,0x29,0xc1,0x07,0x64,0x4c,0x4a,0x14,0x98,0x0d,0x03, | |
| 557 | 0x72,0xce,0x11,0xcf,0x45,0x6a,0xfb,0x93,0xb0,0xce,0x70,0x32,0xd8,0x61,0x14,0x91, | |
| 558 | 0xe0,0x85,0x8a,0x93,0xed,0x9f,0x77,0x1d,0x23,0x12,0x7e,0x12,0xa5,0x43,0x44,0x57, | |
| 559 | 0x97,0x95,0x6c,0xd0,0x1e,0x6d,0x9b,0x60,0x5e,0x2e,0x74,0xec,0x7a,0x3d,0x9c,0x57, | |
| 560 | 0x97,0xfe,0xb7,0x86,0xd9,0xd4,0x68,0x5d,0x62,0x24,0x54,0xbf,0x59,0x51,0x1e,0x90, | |
| 561 | 0xe0,0xc0,0x6b,0xb5,0x1c,0xd4,0xde,0x12,0x30,0xf2,0x1c,0x8a,0x41,0x7e,0xc9,0x02, | |
| 562 | 0x72,0xdb,0x88,0x5d,0xe8,0x6e,0xfe,0x80,0xc6,0x9a,0xce,0x4f,0x31,0xc4,0x9d,0xad, | |
| 563 | 0x4d,0x4f,0x0e,0x7e,0x3d,0xa0,0xc6,0xa8,0x26,0x1a,0x69,0x0c,0x2b,0x22,0x9a,0x91, | |
| 564 | 0x71,0x1c,0xfd,0x19,0x1b,0x6b,0x37,0x88,0x4e,0x74,0xec,0xc3,0x2e,0x9a,0xbf,0xae, | |
| 565 | 0x87,0x23,0xca,0xb3,0x25,0x08,0x77,0x4c,0xa6,0x59,0x73,0x39,0x2b,0x0e,0x03,0x94, | |
| 566 | 0xc1,0x16,0xb8,0x72,0xcd,0x15,0x74,0xfa,0xb2,0xae,0x1b,0x4e,0xd5,0x86,0x92,0x93, | |
| 567 | 0x99,0x70,0xf4,0x03,0xa6,0x16,0x4d,0x98,0x24,0x8c,0x71,0x01,0x8e,0x18,0xe2,0x01, | |
| 568 | 0xe8,0xfc,0x26,0x5b,0x36,0x7e,0xc0,0xd5,0x7c,0xe1,0x33,0x32,0xbe,0x69,0x05,0x36, | |
| 569 | 0x00,0x5a,0xb9,0xa5,0x47,0xf8,0xd3,0x43,0x95,0x87,0xd7,0xd4,0xf0,0x4b,0x49,0x1c, | |
| 570 | 0x5a,0x88,0xad,0xe0,0xd9,0x83,0x87,0xe2,0x70,0x7e,0x5b,0xe7,0x22,0xbe,0xae,0xb4, | |
| 571 | 0xf5,0x88,0x02,0x0b,0xec,0x1e,0xdc,0xb2,0x0b,0xc6,0xc1,0x6b,0x56,0xc2,0x33,0xfc, | |
| 572 | 0xd1,0x58,0xb8,0x28,0x80,0xcb,0xd3,0xb3,0x67,0x5f,0x07,0x60,0x8b,0x58,0xda,0xf5, | |
| 573 | 0xee,0xfa,0xcf,0x35,0x95,0x89,0x6a,0xe4,0x85,0x49,0x2f,0xc6,0xc0,0x7e,0xa2,0xa0, | |
| 574 | 0x4c,0x6c,0x47,0x34,0x2b,0x57,0xa2,0x47,0x63,0x84,0x37,0x9d,0xf7,0x35,0x8b,0xfb, | |
| 575 | 0xeb,0xb0,0x20,0x23,0x43,0x37,0x7b,0xdb,0x03,0x10,0x21,0xe6,0x2f,0x7d,0x94,0x07, | |
| 576 | 0xcb,0xc4,0x5a,0x04,0xdb,0x28,0xf6,0xa0,0x63,0xed,0xeb,0x9f,0x67,0x56,0xbf,0xc5, | |
| 577 | 0xeb,0xa9,0xf5,0xd6,0xf4,0x29,0x11,0x96,0x84,0x1b,0x97,0xc9,0xa1,0xc1,0x0b,0x33, | |
| 578 | 0x4d,0x60,0xf1,0x98,0x8e,0x3c,0xcd,0xbc,0x67,0x99,0x23,0x64,0xdb,0xbc,0x78,0x52, | |
| 579 | 0xf0,0xe7,0x4e,0x4c,0xa9,0x60,0x2a,0x14,0x0a,0x69,0x91,0x70,0x17,0x48,0x05,0x22, | |
| 580 | 0xd4,0x02,0xc6,0x67,0x14,0xd6,0x9d,0x53,0xed,0x75,0x20,0x5e,0xe4,0xc3,0x74,0xe9, | |
| 581 | 0x9e,0xa5,0xbd,0x5b,0xbe,0xff,0x1e,0x16,0xe9,0xb4,0xbc,0x7e,0xc3,0xa9,0xba,0xf8, | |
| 582 | 0xef,0xc1,0x3d,0xe8,0x11,0xe1,0x69,0xb1,0xcf,0xed,0x61,0xb8,0xca,0xc8,0x49,0x60, | |
| 583 | 0xa9,0x56,0x46,0x0e,0x0e,0x7d,0x7c,0x26,0x9d,0x1e,0x0e,0x0b,0xfb,0x20,0x21,0x21, | |
| 584 | 0xcc,0x65,0xd8,0xce,0xb3,0xd1,0x58,0x73,0x55,0x49,0xc5,0x77,0x55,0xb0,0x42,0x3b, | |
| 585 | 0x58,0xec,0xf4,0x26,0x01,0xde,0xfe,0x9a,0xf5,0x6d,0x84,0xfb,0xd8,0x7a,0xac,0xae, | |
| 586 | 0x4d,0xec,0x98,0x17,0xf9,0xa5,0x6c,0x99,0x7f,0x89,0x4d,0x99,0x84,0x7d,0x5f,0x7a, | |
| 587 | 0xab,0x65,0xc5,0xa1,0x99,0x24,0xa4,0x72,0xf1,0x9f,0x1f,0x50,0x58,0xb9,0x5b,0x9f, | |
| 588 | 0x72,0x57,0x7b,0xc4,0xe2,0x5c,0xa4,0x23,0x4d,0xad,0xf9,0x1f,0x56,0x2e,0xa0,0x1d, | |
| 589 | 0xa2,0xc2,0xba,0x81,0xd4,0x4e,0x6d,0xae,0x91,0xb5,0xdd,0x08,0x7d,0xdc,0x2d,0xf4, | |
| 590 | 0x3b,0xa6,0x82,0xd6,0x70,0xf8,0x00,0x11,0xbf,0xb6,0xca,0x0a,0xcd,0xc3,0x04,0x24, | |
| 591 | 0x3d,0x03,0xd3,0xc4,0xb4,0x5b,0x5b,0x4e,0xd6,0xaf,0xbf,0x25,0x46,0xe2,0x24,0xad, | |
| 592 | 0xa8,0xd9,0xae,0x4b,0xa1,0x78,0x80,0x63,0xd5,0xa2,0xbe,0x58,0xe7,0x3b,0x8d,0x8f, | |
| 593 | 0x7c,0x28,0x11,0x6c,0x38,0x4d,0x6d,0x51,0xbe,0x8d,0xc6,0xa5,0xb2,0xcd,0x3f,0xca, | |
| 594 | 0xb9,0xf0,0xfd,0x25,0x77,0xdb,0x23,0x19,0x8f,0x72,0xd6,0x0b,0xa6,0x98,0x3a,0x5e, | |
| 595 | 0x5f,0x32,0x72,0x77,0x5f,0x23,0xa3,0xb9,0x4a,0x50,0xf0,0x89,0xc3,0x9c,0x7e,0x4b, | |
| 596 | 0x6e,0xec,0x70,0x62,0xf0,0x23,0xeb,0x33,0xed,0x26,0x13,0x21,0x08,0x28,0xc1,0xcf, | |
| 597 | 0x08,0xa3,0xe7,0xbc,0x3d,0x44,0xfc,0x72,0x23,0x8f,0xc4,0xf3,0xfe,0x08,0x03,0x45, | |
| 598 | 0x13,0x33,0x7d,0x6b,0xa4,0x94,0xf7,0x68,0xf6,0xaf,0x33,0x42,0x4e,0x09,0xf7,0xfc, | |
| 599 | 0xee,0x24,0x05,0x9a,0x1c,0x85,0x23,0x20,0x1a,0xb1,0x13,0x92,0x2e,0x2a,0x9b,0xf4, | |
| 600 | 0x9b,0x76,0x7e,0x4a,0xa4,0x18,0x7f,0x98,0x8f,0x93,0x64,0xe2,0x9f,0x6d,0xf0,0x2d, | |
| 601 | 0x18,0x29,0xe7,0x7b,0x3e,0x4b,0x0d,0xd1,0x55,0x57,0x26,0x34,0xa1,0xd1,0xf6,0xa6, | |
| 602 | 0x66,0x3d,0x42,0x2d,0xe9,0x1f,0xcc,0xcc,0x6c,0xfb,0x59,0x87,0x34,0x56,0xae,0x61, | |
| 603 | 0x86,0xb2,0x8d,0x60,0xa4,0x94,0xbc,0x87,0xd4,0x01,0x03,0x6d,0xbf,0xe1,0x37,0xab, | |
| 604 | 0xc0,0xa6,0x14,0x71,0xab,0xdd,0x04,0x8d,0xe7,0x12,0x2f,0x0e,0xc2,0x2f,0x9a,0x38, | |
| 605 | 0xbf,0xf7,0x49,0x4f,0x62,0x2e,0x41,0x97,0x2f,0x99,0x84,0x54,0xaa,0xfa,0x18,0xca, | |
| 606 | 0x57,0x16,0x00,0x3d,0xba,0xb1,0x3f,0xf2,0x57,0x90,0xdb,0x2b,0xb3,0x75,0xd7,0x2e, | |
| 607 | 0x50,0x26,0x37,0x3d,0xb3,0x65,0xff,0x9e,0x61,0xf8,0x33,0x93,0xdc,0xa1,0xd7,0x62, | |
| 608 | 0xaa,0x26,0xef,0x4e,0x4e,0x4a,0x7f,0x9b,0x4b,0xd1,0x8b,0x8d,0x27,0x7f,0x18,0x68, | |
| 609 | 0x65,0x18,0x28,0x70,0x89,0x60,0xc0,0xe9,0x17,0x1b,0xe5,0x17,0x93,0x0d,0x99,0x3e, | |
| 610 | 0x81,0xfa,0xe2,0xa2,0x65,0xa7,0xc3,0x88,0xc3,0xd6,0xaa,0x8e,0xb1,0xe6,0x88,0x8b, | |
| 611 | 0x8d,0xe3,0xac,0xe0,0x61,0x09,0xba,0x71,0x53,0xbd,0x57,0x21,0x84,0x63,0x27,0xd5, | |
| 612 | 0x1b,0x5e,0xcd,0x71,0x3a,0x12,0xee,0xd8,0x05,0xe5,0x2d,0xee,0xa1,0x39,0x2f,0x98, | |
| 613 | 0x32,0x72,0x97,0xba,0xdb,0xf5,0x0a,0x37,0xc1,0x25,0x2c,0xf4,0x07,0x68,0xa0,0xd4, | |
| 614 | 0xd2,0x1f,0x0b,0xbc,0x46,0xb0,0x10,0x90,0x86,0x7f,0x54,0x33,0xb6,0xf0,0x7a,0x8a, | |
| 615 | 0xfb,0x65,0x27,0x78,0x79,0x45,0xfe,0xe1,0x53,0xf2,0xa4,0xab,0xae,0xd1,0xbd,0xb8, | |
| 616 | 0xae,0x45,0xec,0xec,0x75,0xb2,0xd6,0x2c,0x2a,0x7e,0x1e,0x5c,0xef,0x0a,0x69,0x5f, | |
| 617 | 0xe9,0xbd,0x5a,0x19,0x3b,0xf9,0x96,0x70,0x0a,0x22,0xc1,0x45,0x79,0x9d,0x7e,0x7f, | |
| 618 | 0xad,0xce,0x72,0x00,0xc9,0x18,0xe3,0xcb,0x92,0x39,0x6f,0x2a,0x2b,0x97,0x85,0x8a, | |
| 619 | 0x4e,0x1a,0x67,0x70,0xc1,0xc5,0x5b,0x61,0x46,0x9c,0xa4,0xdf,0xa3,0xa3,0x85,0x70, | |
| 620 | 0x9b,0xde,0x44,0x97,0xf2,0x52,0x24,0xd7,0x6c,0x01,0x69,0xb6,0xcc,0xf0,0x57,0xb7, | |
| 621 | 0xd8,0x24,0x32,0x5e,0x54,0x9f,0x3e,0x2f,0x02,0x66,0xbf,0xae,0xa7,0x7e,0xf9,0x5f, | |
| 622 | 0x07,0xea,0x31,0xc6,0xe6,0xad,0xa9,0x67,0x09,0xcd,0xa6,0xc7,0x32,0x4d,0x6d,0x68, | |
| 623 | 0x27,0x31,0x56,0x58,0x6d,0x37,0x72,0x05,0x0c,0xef,0x6e,0xb1,0x5c,0x99,0x2c,0x83, | |
| 624 | 0xc2,0xda,0x93,0x9d,0xa2,0x56,0x85,0x23,0x5f,0xb0,0xe6,0x3a,0x5e,0x8d,0x9c,0x06, | |
| 625 | 0x03,0x91,0x88,0xaa,0xb1,0x5f,0x90,0x4b,0xcc,0x9b,0x98,0x0c,0xb9,0xad,0xc9,0x2b, | |
| 626 | 0x0c,0xd5,0xb1,0x1c,0x71,0x7f,0x13,0x8f,0x72,0xed,0x74,0x49,0x12,0x64,0x56,0x0f, | |
| 627 | 0x57,0x29,0x3f,0xa3,0x44,0x7f,0xb1,0xcb,0xdd,0xa9,0x32,0x4a,0x26,0xed,0x44,0xe3, | |
| 628 | 0x23,0x8e,0x6d,0x5c,0xd9,0xd0,0x2f,0x78,0x4a,0xf6,0x10,0xfb,0x7b,0x46,0x93,0xa9, | |
| 629 | 0x71,0x03,0x3c,0x46,0x2e,0x71,0x8f,0x96,0xb7,0xd5,0x10,0x5d,0x11,0x71,0x43,0x60, | |
| 630 | 0x3f,0x8a,0xac,0x61,0x44,0x64,0xcf,0x25,0x26,0x44,0x31,0x71,0xe8,0x6c,0x54,0x07, | |
| 631 | 0x8e,0x22,0xbe,0xad,0x1c,0xa8,0xf1,0x25,0x96,0x44,0x73,0x35,0x00,0x39,0xc6,0xa0, | |
| 632 | 0x5e,0xca,0x70,0x29,0xb4,0x3d,0xf4,0x96,0x06,0xd5,0xd5,0xaa,0x59,0xd6,0x99,0x29, | |
| 633 | 0xaf,0x84,0xc3,0xd7,0x0e,0x23,0xd7,0x78,0x78,0xf7,0x59,0xd1,0xf3,0x45,0xcd,0xa4, | |
| 634 | 0x81,0x4f,0xb7,0xb6,0x28,0x5a,0x9c,0xcb,0xeb,0xab,0xfe,0xa8,0xcd,0x84,0x62,0x0f, | |
| 635 | 0xd4,0x2b,0x4d,0xc6,0x03,0xe2,0x41,0x90,0x5e,0xef,0xc4,0x30,0xe9,0x94,0x58,0x6c, | |
| 636 | 0xa8,0x17,0x83,0x07,0xa0,0xbb,0xc8,0xc5,0xd3,0xc4,0xaa,0x6a,0x46,0x76,0xaf,0xba, | |
| 637 | 0xfe,0x15,0x5a,0x79,0xfd,0xe5,0x2f,0x6b,0x49,0x2a,0xb2,0x54,0xe4,0x28,0x67,0xf8, | |
| 638 | 0xd4,0x24,0xd2,0x1b,0x1b,0x60,0x78,0x82,0xbf,0x21,0xdb,0xef,0xc3,0xac,0x80,0x28, | |
| 639 | 0x2b,0x43,0xec,0xef,0xfb,0x2c,0xa1,0x0a,0x37,0xaa,0x25,0x3b,0xe3,0x00,0xfa,0x48, | |
| 640 | 0x03,0x74,0xa6,0xf4,0x9b,0x49,0xac,0x03,0xaf,0xc3,0x8f,0x39,0x44,0x26,0xd5,0x5a, | |
| 641 | 0x5c,0xb6,0x01,0x2a,0xfd,0xb7,0x97,0x6d,0x29,0x6d,0x1b,0xe7,0xe6,0x1c,0x11,0x5c, | |
| 642 | 0x36,0x08,0xfd,0x91,0x1f,0x76,0x64,0x48,0xa4,0xa8,0xc8,0x46,0xc8,0xe4,0xae,0x50, | |
| 643 | 0x91,0x6c,0x9b,0x28,0x02,0x86,0x11,0x94,0x1f,0x74,0x96,0x57,0xec,0x7c,0xac,0x34, | |
| 644 | 0x6d,0xe1,0xd9,0xf1,0xa7,0xe7,0xa0,0x51,0x9c,0xd1,0x84,0x18,0x51,0xe5,0x0b,0x0a, | |
| 645 | }; | |
| 646 | ||
| 647 | ||
| 648 | /* 317-0018 FD1089A */ | |
| 649 | static const UINT8 key_0018[0x2000] = | |
| 650 | { | |
| 651 | /* opcodes */ | |
| 652 | 0xbb,0x44,0x3e,0x54,0x0a,0xf1,0xd4,0xe9,0x01,0xb9,0xa7,0x8e,0x8c,0x47,0x24,0x71, | |
| 653 | 0x96,0x48,0xb7,0xbc,0x0c,0x68,0xcb,0x9c,0xda,0x53,0xce,0x3c,0xec,0xb4,0x29,0xc9, | |
| 654 | 0x2d,0x38,0x4b,0x6f,0x8a,0x8b,0x9e,0x59,0xee,0x58,0x8f,0xb5,0x46,0x4c,0x8a,0xad, | |
| 655 | 0x7e,0x13,0xfa,0x6d,0x82,0x58,0x4c,0x22,0x3d,0xc9,0xec,0xf8,0x9c,0x0f,0x45,0x1b, | |
| 656 | 0x8b,0xd9,0xc4,0xb6,0xf5,0xd1,0xd5,0xf6,0xc7,0xa4,0xe3,0x07,0xed,0xfd,0x5b,0x14, | |
| 657 | 0x53,0x8a,0xa9,0x4a,0xe4,0xf5,0x38,0xd5,0x8c,0xea,0x75,0xe1,0x39,0x16,0xcc,0x99, | |
| 658 | 0xd5,0x25,0xa9,0x2a,0x4d,0xc3,0x77,0xbf,0x8d,0x9b,0xa3,0x85,0x80,0x5a,0x99,0xa8, | |
| 659 | 0x13,0xac,0xc4,0x54,0x31,0x3d,0x91,0xb4,0xc8,0xb8,0x6b,0xf5,0xc2,0xca,0xc0,0x43, | |
| 660 | 0x0b,0x1e,0xfa,0xc9,0x91,0x61,0x86,0xb4,0x3e,0x3f,0xcf,0x30,0xff,0x64,0x42,0x68, | |
| 661 | 0xbf,0x7b,0x4b,0x89,0x6b,0x31,0x55,0xbf,0xef,0x31,0xcd,0x35,0x36,0x29,0x1f,0x19, | |
| 662 | 0x2e,0xc3,0xb7,0x94,0xc0,0xab,0x00,0xd5,0xdb,0x8f,0x67,0x06,0x69,0x19,0x57,0x54, | |
| 663 | 0x57,0xf5,0x3e,0xeb,0x91,0xd1,0x86,0xf6,0x02,0x57,0x9b,0xa2,0x97,0x34,0xeb,0x1a, | |
| 664 | 0x3c,0x13,0xe0,0x8c,0xdc,0xa1,0xe6,0x22,0x64,0x8a,0x6b,0x08,0xc0,0x7a,0xd9,0x6c, | |
| 665 | 0xdb,0x1c,0x9d,0x78,0xa2,0x1d,0x22,0x59,0x01,0x28,0xd5,0x3a,0xe4,0xeb,0x22,0x48, | |
| 666 | 0x36,0x10,0x75,0xaf,0xe4,0x43,0x39,0x9b,0xd9,0x32,0xdb,0x37,0x03,0x87,0xc6,0xb0, | |
| 667 | 0x4c,0xef,0x68,0x31,0xa0,0x15,0x2b,0xe7,0xed,0xa6,0x7b,0xfe,0x1d,0x4e,0xc6,0xa2, | |
| 668 | 0x1c,0xb8,0x76,0xfe,0xd8,0x92,0xf7,0x3f,0x3b,0x85,0xb7,0x91,0x31,0xf3,0x82,0x20, | |
| 669 | 0xa7,0xf2,0x8f,0x72,0x9e,0xda,0x62,0x94,0xa0,0x39,0x47,0x92,0x79,0x9a,0x88,0x79, | |
| 670 | 0xf5,0x89,0x73,0x54,0xe1,0x92,0x52,0x2f,0x08,0x42,0x73,0x16,0x36,0x24,0x21,0x15, | |
| 671 | 0x37,0xc4,0xa9,0x39,0xd8,0xae,0x55,0x8c,0xe3,0x6e,0x73,0x1c,0x26,0x90,0x4e,0xf4, | |
| 672 | 0x6c,0xa1,0x32,0x20,0x81,0x2c,0x6b,0xad,0x32,0xbd,0x46,0xa6,0x49,0xe0,0x0d,0x16, | |
| 673 | 0x94,0x22,0x0e,0x0b,0xde,0x0d,0x94,0x91,0xf3,0x2f,0xeb,0xb2,0x9f,0x13,0x60,0x7c, | |
| 674 | 0xaf,0x45,0x3d,0xf9,0xed,0x51,0xd0,0x37,0x27,0xc4,0x64,0x41,0x28,0x29,0x45,0x24, | |
| 675 | 0xbd,0x0c,0xc0,0xea,0xb0,0xf9,0x1f,0xa1,0xcf,0x7c,0xb0,0x54,0xe4,0x21,0xbe,0x0f, | |
| 676 | 0xbd,0x75,0x95,0xde,0x26,0x03,0x81,0xcd,0xe9,0x57,0xcf,0xe9,0xd3,0xfd,0xc9,0x3d, | |
| 677 | 0xb1,0x82,0xbd,0xd5,0x4e,0x70,0xf6,0xbd,0x76,0x55,0xc0,0x01,0xf6,0xbc,0x68,0xae, | |
| 678 | 0x98,0x31,0x38,0xcf,0x2a,0x41,0x7e,0x70,0x77,0x76,0x85,0x9d,0x4b,0x5e,0x99,0x62, | |
| 679 | 0x72,0x84,0x06,0xcc,0xb8,0x74,0x19,0xe5,0xea,0xba,0x1d,0xbb,0xd3,0xe3,0x5e,0x59, | |
| 680 | 0x3f,0x79,0x28,0xcc,0xfa,0x0a,0xc7,0x1e,0xd0,0x21,0x87,0x5d,0x8e,0x4a,0xb5,0x93, | |
| 681 | 0xfe,0x12,0x9c,0xce,0xee,0x03,0x88,0x1a,0x2a,0xab,0xc5,0x81,0x7c,0x95,0x9f,0x11, | |
| 682 | 0xb1,0x4d,0x63,0xd4,0x96,0x60,0x5c,0xd8,0xf6,0x58,0xd6,0x28,0x9d,0xc3,0x1d,0xd1, | |
| 683 | 0x57,0x2c,0x7d,0xdd,0xf1,0x1f,0x43,0x5a,0x35,0x28,0xb9,0x53,0xf1,0xd4,0x2d,0xd4, | |
| 684 | 0xf0,0xad,0xea,0xe9,0xfe,0x41,0x3d,0x9f,0xe7,0x1b,0x70,0x00,0x78,0xc7,0xd1,0x1a, | |
| 685 | 0x7c,0xd2,0xab,0xf8,0xbf,0xc6,0x4a,0xa6,0x0d,0x31,0xfa,0x31,0x32,0x9e,0x07,0xa3, | |
| 686 | 0xfb,0x99,0xbe,0x0a,0x32,0xaf,0x6a,0x71,0xa5,0x6a,0x57,0xe4,0x1f,0x58,0xd1,0x6f, | |
| 687 | 0x6c,0x04,0x24,0x1f,0x59,0xfa,0x9d,0xfe,0xb0,0xc6,0x86,0x1a,0x3f,0xf5,0x2d,0x7e, | |
| 688 | 0xd1,0x11,0xdd,0x37,0x32,0xa8,0xe2,0x4f,0x2f,0x45,0x89,0xd4,0x92,0x74,0x1d,0xd1, | |
| 689 | 0x29,0xc2,0xe9,0x52,0xbf,0xb9,0x3b,0x63,0x20,0xe7,0x5f,0x10,0x18,0xd7,0x9f,0x66, | |
| 690 | 0x74,0x15,0x49,0x6f,0xff,0x2e,0xa7,0x39,0x75,0x02,0xcb,0x0b,0x8c,0xd0,0x46,0x76, | |
| 691 | 0x36,0xd3,0x49,0x6d,0x1e,0x78,0x01,0xdb,0xf1,0x2b,0x9a,0xad,0x5b,0x57,0x59,0xe3, | |
| 692 | 0xa5,0x00,0xb4,0x97,0x3f,0xb8,0x30,0xa6,0x9f,0xd2,0xd7,0xdd,0x51,0x98,0xb7,0x06, | |
| 693 | 0xe2,0x58,0xdb,0xef,0xdc,0x5d,0x4f,0x63,0xcd,0xf3,0x20,0x2f,0x77,0xd6,0xb1,0x6c, | |
| 694 | 0xe6,0xaa,0x1c,0xad,0x07,0x42,0x0e,0xe8,0x46,0xcb,0x75,0xca,0x0f,0x71,0x3b,0xff, | |
| 695 | 0xcd,0x60,0x4c,0x32,0xe0,0xd8,0x37,0x92,0xb0,0x39,0x6c,0xc7,0xbd,0x64,0x24,0x69, | |
| 696 | 0x53,0x62,0x2b,0x06,0xbe,0x58,0xa4,0x0a,0x8e,0x8b,0xeb,0x50,0x49,0x7f,0xe5,0xec, | |
| 697 | 0xad,0x1e,0x3e,0x4a,0xe6,0x55,0xa2,0xd5,0x1f,0x0f,0xbc,0xfa,0x86,0x39,0x39,0x24, | |
| 698 | 0x44,0xbf,0xc5,0xc0,0x88,0x8d,0x0b,0x3a,0x7c,0x8e,0xb8,0xfe,0x4d,0xaf,0x78,0x77, | |
| 699 | 0x27,0xdc,0xf6,0x12,0x35,0x00,0xdf,0x3b,0xa4,0x08,0xdf,0x5d,0x9f,0xe0,0xa2,0xe5, | |
| 700 | 0x54,0x73,0xd3,0x3f,0xed,0xae,0x1f,0xd6,0x96,0x7d,0x31,0x17,0x7d,0xcb,0xb7,0x6e, | |
| 701 | 0xcc,0x85,0x5a,0x46,0xb0,0x97,0xc9,0x0d,0x54,0xed,0xae,0x2c,0xe5,0x72,0xb6,0x12, | |
| 702 | 0x8f,0x13,0x8d,0x29,0x7e,0xbb,0xde,0xde,0xdd,0x57,0x56,0x9d,0xd9,0xd3,0xa1,0xd1, | |
| 703 | 0x9d,0x1b,0x6b,0xe7,0x56,0x1a,0x5f,0x4b,0x30,0xbd,0x29,0x68,0x57,0xf0,0x77,0xab, | |
| 704 | 0xf6,0x9e,0xf3,0x80,0x3a,0xb4,0x4a,0x52,0x4f,0x1e,0x27,0x8e,0x60,0xc8,0x38,0xa0, | |
| 705 | 0x9b,0x9d,0x27,0xf3,0x29,0x8a,0xa0,0xf5,0x39,0x7a,0x50,0x0f,0xf5,0x5a,0xe3,0xb0, | |
| 706 | 0x8a,0x16,0x05,0x42,0x23,0x9a,0x61,0x32,0xed,0xd1,0xa5,0xec,0x14,0xa8,0x7a,0xdb, | |
| 707 | 0xc4,0x0a,0x8f,0x6c,0x28,0xe5,0x8e,0x0b,0x6d,0x23,0x24,0x23,0xbf,0xb0,0xfc,0x21, | |
| 708 | 0x49,0x7a,0xc3,0x71,0x38,0x6b,0x25,0x7e,0xb8,0x70,0xce,0xb5,0xf4,0x74,0x69,0x82, | |
| 709 | 0x19,0x64,0xa3,0x50,0x53,0x2c,0x27,0x8c,0xcd,0xb7,0xa3,0xa2,0xb5,0xf3,0xc1,0xfe, | |
| 710 | 0x34,0xc9,0x2d,0x0b,0x79,0x28,0x95,0x36,0xae,0xfa,0xa3,0xeb,0x00,0x2c,0x03,0x95, | |
| 711 | 0x9b,0xaa,0x63,0xa1,0xaa,0x5f,0x6d,0x7a,0x5a,0x38,0xce,0x8e,0xd6,0x21,0x31,0x47, | |
| 712 | 0x4c,0x05,0x43,0x12,0xe6,0xd1,0xb0,0x5a,0xd0,0x71,0x24,0x8c,0x38,0xd0,0x4a,0x14, | |
| 713 | 0x48,0xdc,0xcf,0x5d,0x2d,0x7e,0x5f,0xd4,0x12,0xa5,0xa5,0xe5,0x24,0x3b,0x4e,0xfc, | |
| 714 | 0x8f,0x2d,0x05,0x84,0x7f,0x66,0x78,0xea,0x1f,0xd4,0x51,0x99,0x9c,0x61,0x3d,0xff, | |
| 715 | 0x21,0xf9,0xe7,0x86,0xdb,0x8a,0xfc,0x9a,0xf6,0xfe,0x28,0xa9,0x9e,0x41,0x16,0x1d, | |
| 716 | 0xfb,0x5a,0xe2,0x91,0x45,0x9c,0xbd,0xf0,0xe4,0x7c,0x0b,0xdb,0xe2,0x81,0x2e,0xef, | |
| 717 | 0x78,0xe0,0xb9,0x7a,0x0f,0x7e,0x6c,0x78,0x42,0xf1,0x38,0x99,0xd9,0x7e,0x39,0xce, | |
| 718 | 0x1c,0xd4,0x65,0x4a,0x6e,0x77,0xdc,0xa8,0xcc,0xda,0x0a,0x70,0x3a,0xde,0x0d,0x5c, | |
| 719 | 0x6e,0x95,0xb3,0x56,0xce,0x7a,0x77,0x6e,0x51,0x8e,0x08,0x15,0x69,0xcd,0x83,0x38, | |
| 720 | 0x5a,0xc5,0x92,0xfc,0x25,0xb3,0x0e,0x37,0xfc,0x84,0x01,0x6f,0x41,0xd7,0xa3,0xd8, | |
| 721 | 0xfe,0x41,0x74,0x62,0x43,0xe8,0xeb,0xe6,0x99,0x22,0x2a,0x13,0x2b,0xdd,0xdb,0x56, | |
| 722 | 0x27,0x03,0xab,0x1a,0xb6,0x81,0x46,0xcc,0x07,0x42,0x57,0xd8,0x44,0x33,0x8b,0xaa, | |
| 723 | 0x9a,0xd5,0xe7,0x98,0xf5,0xe0,0xbb,0x1d,0x80,0xf2,0xc0,0x2f,0x24,0xd7,0x84,0x1a, | |
| 724 | 0xeb,0x5b,0x92,0x2b,0xe3,0x4b,0x77,0xad,0x17,0x72,0xbd,0xeb,0x93,0x9c,0xf2,0x34, | |
| 725 | 0x63,0x95,0xa0,0xd1,0x93,0x29,0x56,0x0f,0x30,0x25,0x9d,0x3b,0x45,0x53,0x02,0xa0, | |
| 726 | 0xde,0x81,0x12,0x8a,0x07,0x7a,0x58,0x45,0xcd,0x0b,0x60,0x1d,0x3a,0xfe,0xb6,0x5f, | |
| 727 | 0x5c,0x21,0xe6,0x56,0x3e,0x3f,0x7d,0x4e,0xec,0x24,0x05,0x93,0x72,0x9c,0x0c,0x71, | |
| 728 | 0xdd,0x74,0x1d,0x35,0x37,0x76,0xc5,0x29,0x98,0xec,0xef,0x3d,0x92,0xf1,0xd9,0x74, | |
| 729 | 0xc7,0xe4,0x14,0x0f,0x25,0x72,0x0e,0x3a,0x95,0x46,0x31,0x23,0x06,0x0e,0xea,0xf4, | |
| 730 | 0x62,0x73,0xa4,0xda,0x96,0x24,0xcc,0x00,0x8d,0xcb,0xce,0x93,0x34,0x15,0x16,0xbf, | |
| 731 | 0x77,0xae,0x0f,0xb0,0x42,0x41,0x26,0x91,0x80,0x7b,0xc6,0x8f,0x1e,0x08,0x5d,0xd5, | |
| 732 | 0x08,0x94,0x54,0x91,0x29,0xca,0x1a,0xec,0x6e,0x56,0x19,0x15,0xc3,0xe6,0xbe,0x36, | |
| 733 | 0x13,0x24,0x75,0x7c,0x4b,0xbd,0xaa,0x13,0x57,0x5c,0xc8,0x27,0x22,0xaf,0x3b,0xe3, | |
| 734 | 0x99,0x60,0x71,0x73,0xa8,0x1b,0xd4,0x05,0x3b,0x8e,0xd1,0xc3,0x3d,0x63,0xd3,0xda, | |
| 735 | 0x9b,0x46,0x48,0x75,0x8d,0x91,0x3f,0x53,0x18,0x1f,0xea,0x9f,0xb7,0xac,0xaf,0x50, | |
| 736 | 0x34,0xc3,0xd8,0x70,0x5d,0xf1,0xb3,0x0d,0xfd,0xc0,0x8b,0x32,0xe0,0xbe,0xac,0xec, | |
| 737 | 0xd2,0x76,0x62,0x45,0x9f,0x74,0xfa,0x4b,0x14,0x44,0xbe,0x09,0xfb,0x72,0xfc,0x8b, | |
| 738 | 0x22,0x8b,0xff,0xdd,0x54,0x1a,0x13,0x0b,0x5e,0xab,0x85,0x22,0x0a,0xca,0x9f,0x2c, | |
| 739 | 0x26,0x03,0xaf,0x37,0x7d,0xe3,0x00,0x4f,0xdb,0xf4,0xde,0x7e,0x0c,0xc4,0x96,0xd1, | |
| 740 | 0xdc,0xde,0x72,0x55,0x18,0xcf,0xc0,0x15,0x8b,0x21,0xcb,0x1d,0x01,0x62,0xdf,0x79, | |
| 741 | 0x46,0x1d,0x48,0x36,0x26,0xde,0x52,0x5e,0x6e,0x31,0x4a,0xff,0xe9,0xa2,0x7b,0x24, | |
| 742 | 0x63,0xbe,0x31,0xd9,0xa8,0x10,0xb8,0x2b,0x84,0x24,0x5d,0x24,0xc3,0x86,0x6a,0xd2, | |
| 743 | 0x32,0xc2,0x2d,0x4d,0x3b,0x91,0x33,0x5c,0xd6,0x23,0xb2,0x0b,0x04,0xea,0xb9,0x46, | |
| 744 | 0x70,0x53,0x76,0xf8,0xc7,0xca,0x12,0x0e,0xb5,0xba,0xbc,0x74,0xe5,0x90,0x9e,0x15, | |
| 745 | 0x05,0xb8,0xe5,0xde,0xbe,0x9d,0xbd,0xbb,0xbf,0xac,0x52,0x97,0xb2,0x51,0xcf,0x60, | |
| 746 | 0x44,0xf8,0x60,0xff,0x21,0x0c,0x33,0x63,0xf4,0xfa,0x72,0x76,0x6a,0x2d,0x4a,0x25, | |
| 747 | 0x2f,0x12,0xe6,0x5b,0xee,0x15,0x73,0x06,0x54,0xa2,0x1d,0x10,0x0d,0x24,0x10,0x65, | |
| 748 | 0xc4,0x08,0x77,0xf3,0x26,0xba,0x7f,0xa4,0xdf,0xa5,0x54,0x64,0x9b,0x36,0x21,0x21, | |
| 749 | 0x05,0xd9,0x13,0xc5,0xca,0xf9,0x56,0x3c,0x95,0x03,0x15,0x74,0x13,0x63,0x7d,0x57, | |
| 750 | 0xf0,0x85,0xba,0xd2,0xd8,0xd4,0xf7,0xd0,0x76,0xbd,0x62,0x3e,0x77,0xab,0x24,0x08, | |
| 751 | 0x87,0x0b,0x6c,0x1a,0x51,0x49,0x64,0x5f,0x82,0xd1,0x39,0xc4,0xc6,0x0e,0x17,0x35, | |
| 752 | 0xc8,0x6d,0x29,0x9d,0x36,0x5a,0x9c,0xe9,0xb9,0xaa,0xfd,0x85,0x6e,0x97,0x42,0xc3, | |
| 753 | 0x32,0x19,0x27,0xdc,0x3c,0x7d,0xb9,0x9d,0x18,0x0e,0x03,0xd1,0x52,0x17,0x11,0x43, | |
| 754 | 0x77,0xe6,0xef,0xc2,0x12,0xc7,0xa9,0x17,0xaf,0x04,0x4c,0x0f,0xda,0xeb,0xe3,0x77, | |
| 755 | 0x1f,0xc6,0x7a,0x1a,0x0b,0xe3,0x1d,0xc4,0x29,0x8d,0xd8,0x41,0x05,0x11,0xb8,0x5e, | |
| 756 | 0x2b,0xb9,0xc7,0xe5,0x27,0xd3,0x13,0xa4,0x85,0xaa,0xa7,0x66,0xd2,0x8a,0x8f,0xf7, | |
| 757 | 0x99,0xbf,0xd8,0x24,0x66,0x96,0x8c,0xb7,0xc5,0x59,0xb9,0x7e,0x43,0x56,0x6a,0x44, | |
| 758 | 0x6a,0xd8,0xac,0xd5,0xc8,0x2b,0x89,0xfd,0xe8,0x9c,0x0e,0x89,0x56,0x75,0x48,0x43, | |
| 759 | 0x9e,0x04,0x42,0xf9,0x4d,0x94,0x08,0x76,0xee,0x71,0xa7,0x86,0x0d,0xe8,0x29,0xf6, | |
| 760 | 0x36,0x43,0x9c,0x91,0xf5,0xd0,0x0b,0x22,0xd6,0xda,0x82,0x77,0x66,0xad,0x0d,0x5b, | |
| 761 | 0x30,0x95,0xb8,0x9b,0xc0,0xde,0xe1,0x38,0x28,0x80,0x29,0x57,0xb9,0xa9,0x5d,0x15, | |
| 762 | 0x4b,0xe7,0x69,0x1d,0x4c,0x65,0x38,0x1d,0x25,0x51,0xb8,0xbf,0x45,0xd4,0xd3,0x4d, | |
| 763 | 0x72,0x3b,0x08,0xbf,0x75,0x24,0x59,0xe3,0x85,0xa5,0xfc,0x45,0xee,0xcb,0xbe,0x71, | |
| 764 | 0xfd,0xa0,0x6c,0xf3,0xfd,0x32,0xd1,0x57,0x39,0x8c,0xb9,0x2a,0x00,0xbb,0xf0,0xf7, | |
| 765 | 0x9b,0xc9,0x42,0x4a,0x57,0xc4,0x7c,0xaf,0x81,0xb6,0x68,0xb3,0x64,0xad,0xd4,0xe0, | |
| 766 | 0x4c,0xb5,0x8b,0xc4,0x85,0xd8,0x5a,0xea,0x5b,0x24,0x8c,0x83,0x6f,0x76,0xc8,0xcf, | |
| 767 | 0x63,0xf4,0xbe,0xf9,0x07,0xa5,0x1b,0x6d,0x88,0x76,0x8b,0x96,0x11,0x52,0xb9,0xe1, | |
| 768 | 0xd0,0x27,0x52,0xb9,0xef,0xdf,0x02,0x8c,0x9a,0x66,0x74,0xc4,0xfe,0xaa,0x56,0xce, | |
| 769 | 0x47,0x95,0x51,0x15,0xa1,0x13,0x14,0x06,0x38,0x12,0x49,0x0d,0x37,0x7c,0x9d,0x95, | |
| 770 | 0xca,0x3e,0xbc,0x0b,0x1f,0x43,0x51,0xdb,0x60,0x79,0x09,0x71,0xba,0xc9,0x90,0x38, | |
| 771 | 0x58,0x22,0x91,0x9d,0x68,0x6e,0xb9,0x0b,0x13,0x9a,0xb4,0xf0,0x88,0x92,0x2d,0xb6, | |
| 772 | 0xf1,0x41,0xd1,0xc9,0x7b,0x94,0x4c,0x97,0x52,0x77,0x4a,0x8a,0xa1,0xd5,0x76,0x0e, | |
| 773 | 0x95,0x9b,0x7d,0x91,0x5a,0xb5,0x0a,0x7d,0x1b,0x0e,0xca,0x3f,0x05,0x93,0x69,0x42, | |
| 774 | 0x44,0x30,0x93,0xf3,0x04,0xd1,0xf3,0xbe,0x70,0x61,0x36,0x0f,0xb4,0xcd,0x08,0x51, | |
| 775 | 0xfe,0x00,0x14,0xf1,0x78,0xe8,0x07,0x5a,0x4f,0x6f,0x8d,0xfa,0xaf,0x81,0x51,0x3b, | |
| 776 | 0xc3,0x0b,0x01,0x89,0xb8,0xf9,0x46,0x52,0xb9,0x37,0xcf,0x00,0xf4,0xb1,0x46,0xff, | |
| 777 | 0x93,0x52,0x58,0xbd,0xc3,0x06,0xb0,0xa4,0xaf,0xbb,0xfc,0x21,0x84,0x5b,0xe6,0x9f, | |
| 778 | 0x6e,0xd3,0x1a,0x8b,0x98,0x0e,0x45,0x51,0x2f,0xf9,0x13,0x5d,0x5f,0x80,0x30,0x1a, | |
| 779 | 0x54,0x8f,0x47,0xf5,0x39,0x11,0x05,0x59,0x3b,0xf3,0x16,0xb4,0x85,0x21,0x26,0x70, | |
| 780 | 0x45,0x86,0xe0,0xf9,0xa5,0x0f,0xf1,0xbd,0xd1,0xa8,0x04,0x26,0xf6,0x3c,0xc6,0xa0, | |
| 781 | 0xeb,0xbf,0x52,0x1a,0x72,0x45,0xc3,0x10,0xf1,0x7e,0xd3,0xbf,0x74,0x36,0x0c,0x73, | |
| 782 | 0x07,0x39,0xfc,0x78,0xb6,0x53,0x2e,0x1b,0x8e,0x50,0x2e,0xa6,0x99,0xfd,0x89,0x67, | |
| 783 | 0xe5,0x25,0xc9,0xa9,0x7e,0x94,0x7c,0xb8,0x6e,0x16,0x2d,0xe0,0xc2,0x78,0x68,0x6e, | |
| 784 | 0x84,0xf8,0x5f,0x59,0x87,0xe6,0xcf,0x87,0x3c,0x4d,0xba,0xa7,0xc5,0x8c,0x1c,0xaf, | |
| 785 | 0x87,0x84,0xb9,0xad,0xc8,0x08,0xad,0xe8,0x91,0xcf,0xce,0x6e,0xee,0xa5,0xaa,0x88, | |
| 786 | 0xec,0x57,0xcc,0x83,0x95,0xaf,0xc0,0xac,0xf7,0x7b,0x13,0x4e,0x1d,0x86,0x4f,0xb5, | |
| 787 | 0x13,0x9c,0x02,0x2d,0xe6,0x89,0xb7,0x02,0xa0,0x1a,0xfa,0x81,0x4f,0x19,0x58,0xf5, | |
| 788 | 0xfe,0x54,0x5b,0xaa,0xb9,0x96,0x91,0xec,0x8c,0xac,0x85,0x07,0x84,0x60,0xc3,0x48, | |
| 789 | 0xac,0x80,0xd7,0xf9,0x0f,0xd6,0x4e,0x68,0xbc,0x30,0xb2,0xe0,0xbc,0x5a,0x91,0xae, | |
| 790 | 0x1c,0x1e,0x76,0x1c,0xe9,0x49,0xee,0x78,0x2e,0xa8,0x83,0x0d,0xf7,0x06,0xc3,0x27, | |
| 791 | 0x50,0x2f,0x38,0x12,0x45,0xf0,0x70,0x1a,0xe3,0x13,0xf6,0x8c,0x35,0x66,0x57,0xb2, | |
| 792 | 0x47,0xb4,0x1d,0xda,0x25,0xc9,0xd6,0x50,0xdb,0x71,0x0d,0x5e,0x75,0x78,0x4e,0x51, | |
| 793 | 0x00,0xab,0x25,0x76,0x87,0xd5,0x1f,0x18,0x16,0xc2,0xc6,0x83,0xb9,0x3e,0xa8,0x03, | |
| 794 | 0x7d,0x15,0x50,0xe5,0x6c,0x14,0x4b,0x73,0x94,0x05,0x23,0xfb,0x00,0xb6,0x66,0xc8, | |
| 795 | 0xbc,0xf3,0x9e,0x27,0xd5,0x86,0x59,0x62,0x55,0x3c,0x22,0xc7,0x4a,0xe2,0x86,0xa0, | |
| 796 | 0xbf,0x43,0x0f,0x3b,0xc0,0x2b,0x4b,0xe3,0x5a,0x66,0xc5,0xe5,0x97,0xc1,0x09,0x8b, | |
| 797 | 0x85,0x06,0xa3,0x23,0x2f,0x03,0x20,0xf8,0xa1,0x83,0x0a,0x56,0xe7,0x52,0xef,0x89, | |
| 798 | 0x0d,0x3d,0x5a,0xde,0x20,0x0e,0xd8,0x9f,0x2b,0x93,0xf3,0x1a,0x3a,0x97,0x39,0x9a, | |
| 799 | 0x59,0xe6,0x34,0x6b,0x94,0x4c,0x72,0xda,0xf8,0x96,0x7f,0x31,0x90,0x8e,0xe5,0xbe, | |
| 800 | 0x68,0x02,0x31,0xcc,0x8c,0xbd,0xf0,0xa7,0x08,0x8b,0xad,0x9c,0xe9,0x39,0xf4,0xf5, | |
| 801 | 0x39,0x91,0x51,0x00,0x06,0x61,0x51,0x08,0x5b,0x74,0x7f,0x59,0x44,0x96,0x66,0x3f, | |
| 802 | 0xce,0x94,0x94,0x06,0x04,0x38,0x95,0xfb,0xf1,0x50,0xf3,0x69,0xa3,0xa7,0x3c,0x9c, | |
| 803 | 0x26,0x09,0xfa,0xe0,0x84,0x42,0xbb,0x82,0xca,0x1f,0x0b,0xcc,0x05,0x6b,0x74,0x0c, | |
| 804 | 0x55,0xea,0x7c,0x2d,0x7a,0x6a,0xc3,0x31,0x7e,0xbd,0x7f,0xfd,0x4d,0x8f,0x1d,0xbf, | |
| 805 | 0xd4,0x8b,0x09,0xa1,0xff,0x5e,0xae,0xcf,0xba,0xb3,0x79,0x77,0xf0,0x37,0xd6,0xc3, | |
| 806 | 0x8f,0x96,0x30,0xdf,0x80,0x7c,0xf4,0xf9,0xb2,0x94,0x8e,0x3b,0x0f,0x8b,0x6a,0xd1, | |
| 807 | 0x84,0x0c,0xf3,0xe9,0xfc,0xc5,0x96,0xad,0x64,0x60,0xbe,0x4a,0xa8,0x89,0xd8,0xeb, | |
| 808 | 0xb4,0xee,0x50,0xbe,0x73,0x39,0x92,0xec,0xd2,0x16,0x09,0xa4,0xbd,0x33,0x22,0x10, | |
| 809 | 0x1f,0x3a,0x49,0x5d,0xe5,0xd8,0xe9,0xb7,0xfb,0xb8,0x6f,0x49,0x4c,0x87,0x47,0xdf, | |
| 810 | 0xd2,0x99,0xe8,0x5b,0x1d,0x9f,0x43,0x0e,0x5b,0x83,0x96,0x06,0x58,0xd2,0x30,0x4f, | |
| 811 | 0xe0,0x17,0x5a,0xf3,0xbf,0xdd,0x61,0x00,0xc2,0xb3,0x92,0x80,0xb3,0x22,0x37,0x81, | |
| 812 | 0x60,0xb8,0x9e,0x0e,0x94,0xff,0x13,0x34,0x1b,0x85,0xe0,0xfd,0xc2,0xd5,0x52,0x77, | |
| 813 | 0x53,0x7c,0xb6,0xad,0x9c,0x04,0x57,0xab,0x68,0xfb,0x81,0x7d,0x83,0xec,0x80,0x30, | |
| 814 | 0xba,0x63,0xa1,0xce,0xd7,0xec,0x2e,0x65,0xa8,0x13,0x75,0x00,0xf8,0x65,0xc1,0xab, | |
| 815 | 0x93,0x6d,0x5f,0x73,0x45,0xb7,0x99,0x62,0xdb,0xcf,0xbc,0x86,0x1f,0x41,0x15,0xea, | |
| 816 | 0xdf,0x9a,0xef,0x9a,0xe6,0x64,0x74,0x8b,0xd9,0x2d,0x01,0xab,0x8b,0x3c,0xc4,0xc4, | |
| 817 | 0xa8,0xd8,0xe7,0xc0,0xdc,0x6f,0x96,0x8b,0xd3,0x6b,0xff,0x13,0x38,0x39,0x4c,0x42, | |
| 818 | 0xb8,0x44,0xa9,0x05,0xfe,0xf9,0x44,0x47,0xb7,0xc4,0x47,0xf5,0x8f,0x10,0xde,0xfb, | |
| 819 | 0x32,0x4a,0x37,0x44,0x4b,0xde,0x7c,0xbe,0x87,0x38,0xda,0x52,0x92,0xc3,0x7c,0xef, | |
| 820 | 0x17,0xec,0x90,0x7f,0xc3,0x1f,0x3f,0xef,0x42,0xc7,0xb8,0x2b,0x3f,0x51,0x25,0x1e, | |
| 821 | 0x67,0x28,0xb3,0xb5,0x66,0xba,0x8e,0xdc,0xe8,0x71,0xe1,0x7e,0x98,0xb9,0xd9,0x88, | |
| 822 | 0x23,0x00,0xa2,0xe6,0x34,0xb0,0x67,0x83,0x78,0x36,0x55,0x4d,0x9b,0xfd,0x98,0x2d, | |
| 823 | 0x49,0x72,0x5c,0x12,0x2d,0x01,0xcc,0xe6,0xf4,0x16,0x15,0x96,0x4a,0x1c,0x62,0x0d, | |
| 824 | 0xda,0x80,0xe0,0x39,0x51,0xad,0xbb,0x04,0x5b,0x11,0x1f,0x5a,0xa3,0x16,0x37,0x29, | |
| 825 | 0xd7,0x28,0x30,0x5b,0xa0,0xb5,0x36,0xdc,0xad,0x27,0x74,0x9a,0xa8,0xea,0x17,0x7f, | |
| 826 | 0x3e,0x6c,0x4b,0x77,0x1a,0x17,0x3b,0x70,0xea,0x58,0x14,0x54,0x58,0x9a,0x02,0x10, | |
| 827 | 0x10,0x4a,0x30,0x8f,0xbf,0xd4,0xcb,0xbe,0x11,0xa4,0xff,0x89,0xb2,0x25,0xf8,0xdc, | |
| 828 | 0x4d,0xc4,0xe1,0xa2,0x90,0xec,0xe7,0xc8,0x24,0x0b,0x35,0x3a,0xb8,0x8b,0xf9,0xe3, | |
| 829 | 0xf6,0xd8,0x5d,0xb0,0x8b,0x60,0x8d,0x8d,0x22,0x8d,0xb7,0x65,0x68,0xcb,0x05,0x25, | |
| 830 | 0x09,0x88,0xa3,0xb9,0xb1,0x2e,0xbf,0x0c,0x0b,0x2a,0x83,0x0b,0xc4,0xe7,0x1b,0xa2, | |
| 831 | 0xa5,0x52,0x51,0x3f,0xfb,0x58,0xcc,0x20,0x1f,0x48,0x7c,0xb1,0x9d,0x6c,0x6c,0xbd, | |
| 832 | 0x02,0x12,0xa8,0x10,0xd8,0x86,0x3c,0x76,0xad,0x12,0x35,0xbb,0x0d,0x03,0x9e,0xac, | |
| 833 | 0x82,0xa6,0x82,0x14,0x99,0x46,0xf0,0xbf,0xdf,0x2f,0xf1,0x79,0xdf,0xad,0x92,0x0e, | |
| 834 | 0x25,0x0d,0xe0,0x4b,0x3d,0x99,0xe6,0xfa,0xb3,0x9f,0xb0,0xe9,0x14,0x6a,0x4a,0xe4, | |
| 835 | 0xeb,0x47,0xc0,0xb5,0xc4,0x80,0x1f,0x29,0x2b,0x62,0x72,0x0d,0xac,0x3a,0xc5,0x2c, | |
| 836 | 0xd4,0x53,0x24,0x52,0x2e,0xf9,0x9b,0x4b,0x45,0x79,0x36,0xe4,0xa8,0x1d,0x02,0xe7, | |
| 837 | 0xe0,0x33,0x0a,0x22,0x7a,0x06,0x5a,0x60,0x03,0xe2,0xfe,0x6d,0x06,0x13,0x03,0x15, | |
| 838 | 0x0f,0xe6,0x73,0x25,0xaa,0xa5,0x5c,0x68,0x63,0x9e,0xc9,0xaa,0xc7,0x1c,0xc6,0xb7, | |
| 839 | 0x61,0x6b,0x60,0x5b,0xbd,0xd8,0xa1,0x63,0x67,0xad,0x97,0x99,0xeb,0x38,0x4d,0xcb, | |
| 840 | 0xd6,0xc4,0xcf,0xc4,0xb3,0x9d,0x2a,0x50,0x0d,0x0f,0x68,0x3c,0x73,0x67,0x97,0x52, | |
| 841 | 0x6e,0xf0,0xc2,0x60,0x8b,0xf6,0xf5,0x31,0x57,0xc5,0x3c,0x91,0x5d,0xa9,0xa3,0x4d, | |
| 842 | 0x29,0xee,0x37,0x2f,0x47,0xe1,0x03,0x05,0x44,0xcd,0x13,0x9a,0xaa,0xfe,0x73,0xba, | |
| 843 | 0x07,0xc0,0x2f,0x31,0xe6,0x5f,0x54,0xcc,0xd3,0x28,0xed,0x56,0x5a,0x66,0x06,0x9a, | |
| 844 | 0x72,0xaf,0x1d,0x45,0xc6,0x74,0x18,0xbd,0x71,0x49,0x95,0x1e,0x56,0x4b,0x4e,0x1d, | |
| 845 | 0x86,0x48,0x2c,0x1f,0x42,0xbd,0x4a,0x3a,0xfb,0xd8,0xf0,0x34,0x54,0x76,0x98,0x81, | |
| 846 | 0x1e,0x24,0xec,0x48,0x5a,0x21,0xc4,0x5e,0x3a,0x59,0x2c,0x48,0x1f,0x6b,0x5b,0x3d, | |
| 847 | 0x9b,0xa3,0xbc,0x20,0x6f,0x00,0xe8,0x89,0x8d,0x2e,0xa8,0xbc,0x16,0x8b,0xf7,0xaf, | |
| 848 | 0x5c,0x25,0xfd,0x07,0xe1,0xb9,0x14,0x1a,0x55,0xb5,0xc5,0xee,0x9a,0x36,0xcb,0x37, | |
| 849 | 0x08,0x65,0xab,0x66,0x68,0x71,0xe8,0x86,0x06,0xd6,0xca,0xc4,0x6e,0xe1,0x5b,0xee, | |
| 850 | 0x2c,0xdc,0xa9,0xcf,0xcc,0x15,0xbf,0x33,0xdb,0xd7,0xa9,0xe6,0xe4,0x6f,0x74,0xb4, | |
| 851 | 0x73,0x27,0x2b,0x6a,0x14,0x4d,0xd9,0xd2,0x54,0x2c,0x8c,0xba,0xbd,0x10,0x50,0xed, | |
| 852 | 0xdd,0x45,0x2f,0x38,0x3f,0x17,0x36,0x65,0x6f,0xd3,0x72,0x42,0xf9,0xc4,0xee,0x9a, | |
| 853 | 0x6a,0x36,0xb6,0x39,0x4d,0x75,0xd7,0xeb,0x2e,0xcd,0x5b,0x7c,0x99,0x8b,0x50,0xb9, | |
| 854 | 0x1a,0xf9,0xc1,0x6d,0x3d,0x65,0xba,0x64,0x8f,0x1a,0x47,0x6a,0x9b,0x65,0x74,0x4b, | |
| 855 | 0xed,0x90,0x4e,0xd4,0x11,0xe9,0xe0,0xd0,0x94,0xba,0x36,0x0b,0x00,0x51,0x5c,0x51, | |
| 856 | 0xe3,0xfa,0x5e,0x6e,0xc8,0xff,0x49,0x2e,0x3b,0xae,0x28,0x5e,0xc8,0x51,0x07,0xc9, | |
| 857 | 0xfc,0x36,0xf2,0x3b,0x62,0xa9,0xf5,0x80,0x86,0xf4,0x1d,0x65,0xf4,0x64,0x74,0xb4, | |
| 858 | 0x38,0x46,0x08,0x3b,0xde,0xe5,0xe4,0xc5,0x73,0x8d,0x15,0x1e,0x82,0x8a,0xa5,0x13, | |
| 859 | 0x97,0x29,0xa2,0x6e,0x3e,0xb4,0x16,0xfd,0x04,0x79,0x0f,0x8b,0x73,0xc3,0x99,0xe4, | |
| 860 | 0x19,0xde,0xbe,0xd4,0x81,0x17,0x8c,0x28,0x37,0xb8,0x0d,0xaa,0xc8,0x0f,0x4f,0x28, | |
| 861 | 0xbe,0x67,0x5d,0x6d,0xa7,0x0c,0x44,0x46,0x0e,0x4b,0x0e,0x7d,0x7f,0x6e,0xc9,0xe0, | |
| 862 | 0x86,0xc3,0x80,0x39,0xb0,0x95,0x3f,0x56,0x87,0x30,0x12,0x03,0x99,0xe0,0x06,0x0a, | |
| 863 | 0x71,0xf2,0x25,0x39,0x9b,0xb0,0x7d,0x5a,0xa4,0x68,0x19,0x3b,0x16,0x65,0x05,0xa7, | |
| 864 | 0x7f,0xf3,0x4e,0x6b,0x6a,0x5f,0xfe,0x51,0x63,0xf3,0x23,0x27,0xf7,0xfd,0xc8,0xb8, | |
| 865 | 0xb0,0xc8,0xf9,0xd0,0x1c,0xa0,0xc2,0x3b,0xc6,0xd1,0x30,0xc5,0x3a,0xa8,0x4d,0x3b, | |
| 866 | 0x04,0x70,0x27,0x68,0xb1,0x75,0xc9,0x18,0xcb,0x03,0x80,0x2a,0x93,0x32,0x18,0x22, | |
| 867 | 0x27,0x29,0x84,0x22,0xa5,0x9c,0xb0,0xd4,0x79,0xb8,0x87,0xe5,0x0e,0xa9,0xf6,0x01, | |
| 868 | 0xd2,0x9a,0xe8,0xd3,0x2e,0xb8,0x4a,0x08,0x91,0x2f,0x08,0x4c,0x65,0x2b,0x0e,0x4a, | |
| 869 | 0x17,0xd7,0x47,0xaf,0x13,0x60,0xa0,0x27,0xc4,0xf1,0x04,0x5d,0x97,0xb8,0x61,0xfe, | |
| 870 | 0xf8,0xdf,0xa1,0xb6,0x52,0x92,0xb0,0x31,0x12,0xff,0x7c,0x1a,0xa4,0x50,0xef,0x1e, | |
| 871 | 0x73,0xb1,0xf6,0xe8,0xec,0x50,0x7c,0x25,0x7b,0x57,0x6e,0x81,0x8b,0xf3,0xb8,0xa8, | |
| 872 | 0x8a,0x4f,0x45,0x45,0xe1,0x98,0x03,0x05,0xff,0xfa,0xdc,0x94,0x4e,0xa0,0xbc,0x9d, | |
| 873 | 0x3b,0xb8,0x90,0xcd,0x32,0x6c,0x44,0xd0,0x9e,0xe8,0xc4,0x51,0xac,0xe7,0x82,0x90, | |
| 874 | 0x59,0x06,0x54,0x43,0xc4,0x6e,0x2a,0xe3,0x38,0x2b,0xcf,0xfe,0x02,0x47,0x10,0x1f, | |
| 875 | 0x6c,0xd0,0xb7,0xd2,0xc4,0xd1,0x92,0xa4,0x54,0x56,0x6c,0x1f,0x6a,0x6b,0x11,0xd1, | |
| 876 | 0x52,0x1c,0x4d,0x45,0x56,0x76,0xed,0x07,0xc4,0x84,0xbc,0xa4,0xe6,0x51,0x85,0xa6, | |
| 877 | 0x0a,0xec,0x17,0x9b,0x7c,0x5e,0x3b,0x0e,0x86,0xb4,0xbe,0x8b,0x75,0xfb,0x6d,0x9e, | |
| 878 | 0x96,0x3e,0x13,0xd4,0x34,0x89,0x7c,0xb7,0x9b,0xe8,0x74,0xd5,0x17,0x68,0xc7,0xb9, | |
| 879 | 0xf5,0x13,0x42,0xef,0x7f,0xf7,0xaf,0x04,0x03,0x1f,0xdc,0x82,0xcc,0x97,0x94,0xf7, | |
| 880 | 0x26,0x6c,0xa4,0xee,0x5e,0xa8,0xd6,0xf3,0xbe,0x59,0xf8,0x93,0x94,0x8a,0xd5,0x58, | |
| 881 | 0x2b,0x47,0x39,0xd0,0xcf,0x9c,0xf0,0x86,0xcd,0x96,0xc7,0x06,0x6f,0x88,0xdc,0x03, | |
| 882 | 0xa6,0x01,0x95,0xd4,0xd4,0xfd,0xf4,0x77,0x8e,0x0a,0xf6,0xc9,0x92,0x2f,0x77,0x6b, | |
| 883 | 0x6a,0x5b,0xe1,0x8b,0x01,0x39,0xa1,0x53,0x44,0x76,0x22,0xf0,0x1f,0xbd,0xd1,0x8d, | |
| 884 | 0x7e,0xbc,0x1a,0x57,0x4c,0x1d,0x69,0x7a,0x76,0x8c,0x29,0x21,0xe7,0xb7,0xc7,0x7a, | |
| 885 | 0x8d,0x48,0xae,0xaf,0x52,0xeb,0x4c,0xec,0x22,0x4e,0x0b,0x5e,0xea,0x1b,0x57,0x31, | |
| 886 | 0x96,0xff,0x9e,0x91,0x12,0xa5,0x4a,0xa9,0x49,0xba,0xc7,0xa6,0x29,0xea,0x83,0xb4, | |
| 887 | 0x9b,0xe1,0xe8,0xfe,0x8e,0x4a,0x63,0xb1,0xec,0xd2,0x5f,0xf9,0xa2,0x25,0x49,0x02, | |
| 888 | 0x9b,0xee,0x8d,0xf7,0xc4,0xda,0x97,0x05,0x09,0x95,0xd2,0x57,0x56,0xca,0xab,0x1a, | |
| 889 | 0x96,0x26,0x8d,0x7a,0xb6,0x55,0xe6,0xa3,0xa2,0x02,0x20,0xc0,0x45,0xda,0xa7,0xfe, | |
| 890 | 0x8c,0x89,0xe8,0x89,0x63,0xba,0x50,0x8c,0xb5,0x1b,0x48,0x34,0x6f,0x55,0x3f,0xad, | |
| 891 | 0x7d,0x17,0x9f,0x22,0xca,0x0b,0xd5,0xc0,0x43,0xde,0x4c,0xb3,0xd4,0x3c,0x71,0x26, | |
| 892 | 0x69,0xd0,0xb0,0x46,0xed,0x47,0x74,0x3f,0x4d,0x4d,0x2b,0x3d,0x74,0x8d,0x3f,0x6b, | |
| 893 | 0x4f,0xb4,0x1c,0xf6,0xca,0x6e,0x2f,0x09,0xd1,0x66,0xe4,0xd2,0x4f,0x49,0xa7,0x7b, | |
| 894 | 0x31,0xc3,0xe3,0x30,0x63,0x80,0x05,0x1f,0xd0,0x2b,0x79,0x72,0x65,0x71,0xab,0x55, | |
| 895 | 0x0e,0xfd,0x06,0xf6,0xb7,0x7c,0xf6,0x7f,0x4b,0x9a,0xe9,0x1d,0xb7,0x03,0x49,0xfb, | |
| 896 | 0xe6,0x62,0x83,0x46,0xc5,0x64,0x02,0x2a,0xc9,0x2f,0x2b,0x4c,0xf2,0x00,0x8e,0x95, | |
| 897 | 0xa2,0x84,0xff,0x77,0xa5,0x46,0xc8,0xfc,0xc8,0xd2,0x36,0x32,0xd5,0xb4,0x96,0x24, | |
| 898 | 0x9a,0x79,0x33,0xde,0xe2,0xac,0x59,0x6c,0x79,0xd8,0x54,0xda,0x2c,0x8b,0x71,0x35, | |
| 899 | 0xc5,0x51,0xfa,0x88,0x12,0xb4,0x3d,0xdf,0xde,0x42,0x85,0x46,0xf5,0x86,0x1e,0xc9, | |
| 900 | 0x23,0x0b,0x55,0x75,0x35,0x60,0xc5,0xe3,0xcd,0xed,0x18,0xc1,0x23,0x76,0x1c,0xd2, | |
| 901 | 0xe0,0x4a,0xfd,0x03,0xb0,0xd3,0xe7,0xc0,0x3d,0x20,0x66,0xe1,0xe3,0xf3,0x7b,0x78, | |
| 902 | 0x2a,0xc3,0x18,0x53,0xa0,0xdc,0x4a,0x3e,0xd0,0x8a,0x1b,0x03,0x46,0x1a,0x99,0x6f, | |
| 903 | 0x8e,0xd6,0xce,0x4f,0x34,0x0c,0xc8,0x6e,0xc5,0x07,0x93,0x98,0xcc,0x13,0x39,0x9a, | |
| 904 | 0xd5,0x7d,0xc8,0x3e,0x6c,0x8f,0x4a,0x52,0x1d,0x97,0xcd,0xa1,0x75,0xe0,0x5c,0xf7, | |
| 905 | 0xfe,0xb6,0x04,0x20,0x46,0x65,0xcf,0xe8,0xd8,0x3a,0xcb,0x1c,0x41,0x80,0x03,0x87, | |
| 906 | 0x0b,0x83,0x83,0xf5,0xc4,0x8f,0x57,0x32,0xf7,0xf0,0x8c,0x0a,0x30,0xf2,0x2c,0x4a, | |
| 907 | 0xc3,0x09,0x0e,0x5c,0x0f,0xad,0xa9,0x72,0xf2,0x4e,0xe4,0x3f,0x0b,0xcb,0x38,0x37, | |
| 908 | ||
| 909 | /* data */ | |
| 910 | 0xa6,0x4d,0x14,0x3d,0x1c,0xc9,0xce,0xda,0x6d,0x8b,0x6a,0x24,0x66,0x1f,0x32,0x26, | |
| 911 | 0xd1,0x11,0x74,0xec,0x7c,0xee,0x7b,0x82,0x32,0x41,0x93,0xf4,0xc0,0x96,0x09,0x4f, | |
| 912 | 0xf0,0x79,0x27,0x9e,0x90,0x76,0x3b,0xec,0x6b,0x1a,0x90,0x48,0x4d,0xef,0x72,0xbb, | |
| 913 | 0x02,0x83,0x2e,0x52,0x56,0x61,0x0e,0x1a,0x16,0x16,0x60,0x1e,0x0d,0x2c,0x6f,0x6a, | |
| 914 | 0x07,0x31,0x87,0x0a,0xd0,0xb0,0xf4,0x0b,0x34,0x35,0x03,0x77,0x00,0x4c,0xfe,0x5c, | |
| 915 | 0xff,0x81,0x33,0xc5,0xfd,0x61,0xed,0xbe,0xc6,0x77,0x78,0x54,0x26,0x4f,0x21,0x91, | |
| 916 | 0xea,0x75,0x32,0x83,0xdc,0x75,0xf9,0x35,0xca,0xdc,0xc1,0xb3,0x7f,0x35,0xd6,0x09, | |
| 917 | 0xc7,0x0b,0x84,0x44,0x6f,0xed,0x18,0x6f,0x41,0x64,0xdd,0x96,0x0b,0xfd,0x1f,0xc5, | |
| 918 | 0x98,0x45,0x2a,0x08,0xb4,0xc7,0x4a,0x6b,0x2c,0x0f,0xcb,0xfb,0xca,0xa9,0xfa,0xc3, | |
| 919 | 0x5c,0x21,0x22,0xcf,0xad,0x04,0x8f,0x2b,0x89,0xdd,0x8d,0xe3,0xbc,0x38,0x68,0x04, | |
| 920 | 0x13,0xa1,0x6d,0x99,0x58,0xa4,0xe7,0xae,0x59,0xce,0x22,0x4f,0xe1,0xaa,0x6a,0x88, | |
| 921 | 0xbd,0xc3,0x0b,0x66,0xb7,0xa8,0x52,0xf3,0x9d,0xe2,0x89,0x3d,0x39,0xfe,0xfe,0x4f, | |
| 922 | 0x59,0x89,0xfc,0x35,0xc9,0x0e,0xd0,0xfc,0x53,0x19,0xc4,0xae,0xc5,0x36,0x26,0x59, | |
| 923 | 0xe9,0xf2,0x41,0x08,0x8d,0xd7,0x61,0xc7,0x7c,0x73,0xd2,0xa3,0x83,0x51,0xe0,0xa6, | |
| 924 | 0x6c,0xfd,0xd8,0xde,0x05,0x03,0x05,0x56,0x19,0xf0,0xb3,0x1a,0x74,0x4f,0x2e,0x37, | |
| 925 | 0xe2,0xac,0xc2,0xb7,0x2f,0x93,0xbc,0xa8,0x28,0x90,0x66,0x15,0x98,0x2f,0x0e,0x0a, | |
| 926 | 0x4b,0xfd,0xff,0x93,0x0d,0x85,0x85,0xbc,0xaa,0x53,0xed,0x92,0xef,0x20,0x1f,0xa8, | |
| 927 | 0x6d,0x9f,0x17,0x8a,0xb9,0x9f,0xa2,0xc4,0xd0,0x8d,0xef,0x41,0x5d,0xd5,0x28,0xee, | |
| 928 | 0x0d,0xe3,0x7a,0xb7,0x8c,0x22,0x10,0x88,0x85,0xff,0x17,0x4c,0xa5,0xe5,0xbb,0xf0, | |
| 929 | 0x98,0x42,0x28,0x60,0x09,0x80,0x89,0x87,0xa5,0x0b,0x0b,0x52,0x18,0x51,0xda,0xad, | |
| 930 | 0x0e,0xbc,0x21,0x83,0x32,0xb8,0x0d,0xc1,0x31,0xb3,0xca,0x53,0xb6,0x17,0x83,0x24, | |
| 931 | 0x6e,0x51,0x65,0x21,0x05,0xcc,0x9c,0x36,0x27,0xf5,0x53,0x4f,0x7f,0x38,0xb8,0x57, | |
| 932 | 0xba,0x01,0xf4,0x3b,0x84,0xbb,0x36,0xe6,0x88,0xd3,0xa8,0x45,0x73,0xb4,0x77,0x44, | |
| 933 | 0xf1,0xcc,0xcf,0xcf,0xad,0x84,0xdb,0xd1,0x54,0x4b,0xc8,0x37,0x92,0x8b,0xc1,0xed, | |
| 934 | 0x13,0xb2,0xf4,0xde,0x82,0x29,0x8b,0xf7,0x8c,0x5f,0xb2,0x24,0xdc,0xbe,0x97,0x51, | |
| 935 | 0x1f,0xb2,0x64,0x69,0x01,0xa9,0x46,0x59,0x2e,0x0d,0x68,0x0c,0x51,0x4b,0xf7,0x6f, | |
| 936 | 0x17,0xce,0x1f,0x6e,0x2c,0x04,0x0c,0xf5,0x3b,0x57,0xe9,0xef,0xf1,0x33,0xe3,0x49, | |
| 937 | 0xfa,0x05,0x25,0xee,0x01,0x39,0xdc,0xcc,0xb4,0x3b,0x34,0xcd,0xbc,0x76,0x59,0xdd, | |
| 938 | 0xc8,0x57,0x76,0xea,0x82,0x4a,0xb8,0xde,0x97,0xbb,0x4b,0xa6,0xb2,0x15,0x5a,0x2d, | |
| 939 | 0x81,0xc4,0x13,0x60,0xae,0x36,0x9f,0x2b,0xe5,0xd5,0x2d,0x79,0xd3,0x0e,0xe7,0x38, | |
| 940 | 0x24,0x4c,0xfa,0x52,0x84,0xfd,0x91,0xb3,0x9e,0x8b,0xd9,0x48,0x20,0x62,0xfe,0xfd, | |
| 941 | 0xb3,0xef,0x2c,0xbe,0x06,0x9e,0x8e,0x76,0xc3,0xdb,0x51,0x12,0x97,0x11,0xa1,0x7e, | |
| 942 | 0x2d,0xad,0xa9,0xa5,0x32,0x1b,0x96,0x74,0x52,0xc6,0x94,0xd7,0x39,0x1c,0xce,0xb9, | |
| 943 | 0x92,0x86,0x71,0x08,0x0a,0x73,0xa9,0xad,0x4c,0x4d,0xa1,0x97,0x06,0x81,0x87,0xb0, | |
| 944 | 0xe2,0x7a,0x84,0xe5,0x8c,0xa6,0xc7,0x22,0xb2,0x6e,0x7a,0x52,0xfe,0x41,0xca,0x62, | |
| 945 | 0x1c,0x89,0xe3,0x3d,0xba,0xb3,0xf0,0xd1,0x82,0x2b,0x1e,0x08,0x21,0x5c,0x98,0xce, | |
| 946 | 0x42,0xb3,0x8c,0x11,0x92,0x9c,0x24,0xbb,0xbd,0x82,0x8c,0xb8,0x6f,0xd2,0xf2,0xf6, | |
| 947 | 0x53,0xf8,0x80,0x5f,0x16,0x60,0x63,0xe0,0x64,0x75,0xc6,0x64,0xe8,0xa4,0xd6,0xd9, | |
| 948 | 0x4f,0x58,0xbf,0x28,0x44,0xfe,0xad,0x84,0xac,0x07,0xd0,0xd1,0x1d,0xb4,0x3e,0xb2, | |
| 949 | 0x0c,0xfb,0x90,0xf1,0x05,0x26,0xd3,0x5c,0x94,0x83,0x12,0xbe,0x46,0x5d,0xcf,0x07, | |
| 950 | 0x69,0x1e,0x2c,0xa3,0xcd,0x61,0xb1,0xd8,0xee,0x35,0x4a,0x55,0x39,0xc5,0xe2,0xc4, | |
| 951 | 0x1a,0x3f,0x66,0xd2,0xfd,0xcc,0xc2,0x2b,0x4d,0x9b,0xe2,0x7a,0x67,0x58,0x1d,0xc1, | |
| 952 | 0x03,0x05,0xfb,0xdd,0x15,0x32,0x94,0x1e,0xe8,0xeb,0xb4,0x12,0xc8,0x3c,0x27,0x44, | |
| 953 | 0x02,0x32,0xb9,0xed,0xc3,0x95,0x10,0xdb,0xc7,0x02,0x45,0x02,0x98,0x7f,0x7d,0xcf, | |
| 954 | 0x61,0xf8,0x63,0xae,0x4f,0x4d,0x29,0x4b,0x0b,0x57,0x5e,0x44,0xce,0x14,0x32,0xf7, | |
| 955 | 0x95,0x50,0x2f,0xaf,0x6c,0xd7,0xe3,0xb8,0x5f,0x75,0xd9,0x5f,0x7b,0xf6,0x9d,0xee, | |
| 956 | 0xcb,0x27,0xbc,0xb3,0x5a,0xd3,0xc0,0xf9,0x37,0xc6,0x37,0x0c,0x6b,0xcc,0xac,0x38, | |
| 957 | 0x03,0xb2,0xab,0xca,0x0c,0x42,0xc0,0x0d,0x91,0x4a,0x78,0x4c,0x9e,0x95,0x5d,0xd6, | |
| 958 | 0x3f,0xef,0xfd,0xf4,0x81,0x25,0xe3,0xf3,0x6e,0x01,0x9c,0x20,0x14,0x51,0xb2,0xc6, | |
| 959 | 0x7e,0xe0,0xb3,0x31,0xb8,0x7a,0x29,0xad,0xcf,0xeb,0xa2,0x86,0xcd,0x00,0xa9,0x09, | |
| 960 | 0xc0,0x83,0xcb,0x81,0xb3,0x42,0x92,0x3a,0xb2,0x08,0x8c,0x80,0xc9,0xa2,0x44,0x9f, | |
| 961 | 0x05,0xda,0x46,0xe4,0x71,0x7e,0x1e,0x99,0x19,0x58,0x59,0x0c,0x09,0x36,0x81,0x88, | |
| 962 | 0x4d,0xe4,0x24,0x5a,0xf1,0x2c,0xcd,0xcc,0x02,0xdc,0x09,0x2c,0x8b,0xbe,0x62,0xc5, | |
| 963 | 0x98,0xa0,0x66,0xe3,0x35,0x4d,0x9f,0xd2,0x6e,0x92,0x9b,0xde,0x50,0x39,0xe5,0x54, | |
| 964 | 0xe6,0x10,0x0a,0x7f,0x3c,0xe2,0x94,0xaa,0x5e,0x7b,0x11,0x24,0x58,0xa7,0x0c,0x36, | |
| 965 | 0x37,0x32,0x11,0x2d,0x05,0xe9,0xac,0x56,0xd0,0x97,0x6a,0xfc,0xa3,0x08,0xd6,0x6b, | |
| 966 | 0x8a,0x08,0x7b,0xef,0x92,0x63,0xe7,0xd5,0xc5,0xe6,0xa6,0x68,0x31,0x5c,0x42,0xf3, | |
| 967 | 0xe1,0x90,0x49,0xc4,0xe1,0x51,0x45,0x27,0x3e,0x68,0xc4,0x66,0x02,0xa2,0x52,0xcf, | |
| 968 | 0x3b,0xcc,0x79,0xac,0xf4,0xb1,0xc6,0x4b,0x39,0x1d,0xc6,0xf7,0x17,0xdc,0x04,0xfd, | |
| 969 | 0x98,0xbb,0x0c,0xa7,0xca,0x84,0x6a,0x43,0xb8,0x05,0xab,0x1c,0x6e,0x09,0x5a,0x7e, | |
| 970 | 0xf8,0x5c,0x02,0xb5,0x62,0xcb,0x31,0x0e,0xb9,0x20,0x73,0xd3,0x08,0x29,0x52,0x52, | |
| 971 | 0x5b,0xb1,0x5c,0xd6,0xbe,0x84,0x1b,0xab,0x3d,0x6e,0x1d,0x1e,0xe5,0x3c,0xee,0x79, | |
| 972 | 0xc1,0xb8,0x18,0x0a,0xdd,0xb0,0x28,0x1c,0x45,0xef,0xab,0xfb,0x05,0x42,0x2c,0xf4, | |
| 973 | 0x2a,0x73,0x37,0x51,0xbe,0x50,0x58,0x60,0xcf,0xa3,0x1c,0x6c,0x68,0x3a,0x0e,0xc1, | |
| 974 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 975 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 976 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 977 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 978 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 979 | 0x96,0xe1,0xb9,0xab,0x63,0x62,0xab,0x76,0xdd,0x8a,0x70,0x6f,0x0e,0x26,0x92,0xe1, | |
| 980 | 0x04,0x01,0x9f,0x18,0xcb,0xe7,0x21,0x60,0x6d,0xa4,0xa6,0x06,0xf8,0x05,0xba,0x54, | |
| 981 | 0x76,0x8e,0xad,0x34,0x55,0x0b,0x4e,0x3f,0x5d,0xaf,0xf8,0xe7,0x45,0x26,0x19,0x58, | |
| 982 | 0xf9,0x1b,0x1b,0xbd,0x64,0x3b,0x6a,0x43,0x73,0x32,0x74,0x16,0x12,0xac,0xa3,0x61, | |
| 983 | 0x2c,0x54,0x63,0x51,0xae,0xd7,0x22,0x12,0x84,0xe0,0x4a,0xcf,0x99,0x1c,0x48,0xb5, | |
| 984 | 0xda,0x37,0x87,0xf0,0x33,0xdd,0x74,0xab,0x90,0xb9,0x7b,0x14,0xdc,0x78,0x08,0x54, | |
| 985 | 0x04,0xc6,0x86,0x9a,0xf3,0x4e,0x62,0x10,0x97,0xbd,0x07,0xe3,0xd9,0xbf,0xe3,0x3f, | |
| 986 | 0xa8,0xff,0x60,0x4f,0xee,0x2a,0xea,0x8e,0x70,0x8e,0x9b,0xed,0x2d,0x06,0xd6,0x61, | |
| 987 | 0x79,0xb8,0x27,0xf4,0x20,0x30,0xd8,0xb4,0xef,0xfa,0x37,0xab,0xb1,0xa2,0x8f,0xe7, | |
| 988 | 0x32,0xb5,0x2c,0x74,0x3e,0xbe,0x5a,0x5c,0xa1,0x49,0x65,0xad,0x28,0xe2,0x9a,0x71, | |
| 989 | 0x9d,0x15,0x44,0xb6,0xce,0x6f,0xae,0x87,0x86,0x7a,0x27,0xf1,0x91,0xc4,0xf8,0xfe, | |
| 990 | 0xbc,0xd8,0x6e,0xbc,0xd1,0x43,0xd6,0x36,0x9e,0x8f,0x7b,0x78,0xee,0x4a,0xa9,0x8e, | |
| 991 | 0x8d,0xff,0xac,0x85,0x48,0x3a,0xd1,0x67,0xe9,0x87,0x63,0x42,0x3e,0x72,0xad,0x21, | |
| 992 | 0x12,0x88,0xfd,0x10,0x31,0x54,0x9f,0x1c,0x67,0x62,0xdd,0x4f,0x81,0x3e,0x05,0xb7, | |
| 993 | 0x4a,0x74,0x61,0x5f,0xe5,0x9a,0xc1,0x19,0xea,0x35,0xea,0x12,0x01,0x86,0x1c,0x17, | |
| 994 | 0xd8,0xf9,0x82,0x13,0x19,0xfa,0x49,0xf3,0x71,0xf4,0x9d,0xa3,0x8b,0x54,0xa9,0x0e, | |
| 995 | 0x14,0x86,0x9a,0x21,0xb8,0xf6,0x9c,0xc8,0x23,0x0f,0xda,0xef,0x00,0x3d,0x81,0x81, | |
| 996 | 0xfc,0xee,0xbd,0x6a,0xc2,0x8c,0xb9,0x98,0x00,0x84,0xa3,0xf5,0x60,0x41,0xa4,0x6e, | |
| 997 | 0x8e,0x31,0xeb,0xef,0x38,0xbd,0xa2,0x63,0x08,0x54,0xf6,0xb7,0xaa,0x60,0x13,0xd6, | |
| 998 | 0xcc,0x4e,0x24,0xae,0x18,0x8a,0x56,0x29,0x3b,0x7f,0xd4,0x33,0xe0,0x9a,0xcc,0xba, | |
| 999 | 0xb4,0x47,0x68,0xa8,0x63,0xf1,0xd4,0xea,0x99,0x06,0x3e,0x6b,0x01,0xef,0xd0,0x18, | |
| 1000 | 0x48,0x1b,0xb7,0xdd,0x1a,0xf4,0x1e,0xa5,0x22,0xe7,0x32,0x5e,0x0d,0x5f,0x1f,0xf1, | |
| 1001 | 0x87,0xca,0x11,0x9c,0x65,0xf1,0x7a,0xcd,0xf9,0x02,0x8c,0x91,0x0c,0xac,0x83,0xb5, | |
| 1002 | 0x29,0x3c,0x6a,0x03,0xdd,0xfd,0x4c,0x49,0xb2,0x3a,0x38,0x52,0x36,0x42,0x37,0xea, | |
| 1003 | 0xf4,0x5e,0x56,0xde,0x78,0xdb,0xa2,0xf8,0x4e,0x06,0x26,0x06,0x02,0x2a,0xee,0xd3, | |
| 1004 | 0x21,0x93,0x06,0x2b,0x36,0x8d,0x7a,0xda,0xcd,0x64,0x57,0xad,0x72,0x65,0xa8,0x6e, | |
| 1005 | 0xb1,0xdb,0x78,0xeb,0x17,0x12,0xd6,0xef,0x2f,0x56,0xcb,0x47,0x84,0xf3,0x64,0xbd, | |
| 1006 | 0xa5,0x36,0xae,0x1f,0x1b,0x69,0xb4,0x37,0x73,0xda,0x82,0xd3,0x3a,0xd4,0x24,0xbf, | |
| 1007 | 0xfb,0xa4,0xa7,0xc5,0x42,0x94,0x15,0xb2,0x9b,0xf2,0x7c,0x53,0x92,0x09,0xe7,0x73, | |
| 1008 | 0xb4,0x25,0x62,0xde,0x8c,0x92,0xfa,0x61,0xa6,0x9c,0xb9,0xc6,0x8e,0x90,0xad,0xdb, | |
| 1009 | 0xd0,0xb9,0xe1,0x6b,0xf9,0x62,0x61,0x42,0x94,0xda,0x39,0x2c,0x2c,0x6a,0x76,0xf5, | |
| 1010 | 0x50,0x5f,0x23,0x6a,0x89,0x06,0x4c,0x56,0x64,0x9b,0x05,0x00,0x8c,0x54,0xdc,0xb5, | |
| 1011 | 0xaa,0xf1,0x5b,0x85,0x05,0x9e,0x6e,0x1b,0x0a,0x89,0x00,0x25,0x25,0xdc,0xfe,0x4c, | |
| 1012 | 0xc2,0xc4,0x54,0x3f,0x4c,0x6c,0xee,0xa8,0x30,0x01,0xb7,0x34,0xd9,0xaf,0x9c,0x8f, | |
| 1013 | 0xb4,0xa2,0x88,0x64,0x2d,0x05,0x69,0x60,0xb0,0x05,0x28,0x2f,0xa8,0xcd,0xb4,0x7d, | |
| 1014 | 0x82,0x8b,0xf7,0xf5,0xaa,0x68,0xde,0x43,0x8b,0x93,0x55,0x15,0x92,0x36,0x47,0x15, | |
| 1015 | 0x2b,0x7e,0xa1,0xf0,0xc1,0x97,0x4f,0x52,0xc1,0xad,0x3d,0xe6,0x97,0xeb,0x56,0x59, | |
| 1016 | 0xae,0x7d,0x87,0x56,0x74,0x91,0xbb,0x8b,0x52,0x51,0xdf,0xa2,0xb7,0xea,0xdf,0x47, | |
| 1017 | 0x0d,0x87,0xa7,0x28,0xc1,0x55,0x22,0xef,0x3f,0x80,0x3d,0x48,0xf2,0x34,0xe3,0xe1, | |
| 1018 | 0x47,0x9c,0x02,0x64,0xaa,0xe5,0x84,0x7e,0x86,0x3b,0x55,0xda,0x48,0xc9,0x63,0x25, | |
| 1019 | 0x5c,0xbc,0x98,0x0b,0x2d,0x90,0x01,0xa2,0xd5,0xa0,0x5b,0x63,0xc5,0xf4,0x74,0x8d, | |
| 1020 | 0xfa,0x98,0x18,0xae,0xc0,0x98,0x13,0x51,0x64,0x01,0x32,0x02,0x30,0xde,0xaf,0x16, | |
| 1021 | 0x1d,0x75,0x9b,0x05,0x56,0x8b,0x2d,0x7e,0xac,0x01,0x12,0xec,0x4b,0xc3,0xf5,0xbc, | |
| 1022 | 0x5e,0xbc,0x83,0x5a,0x12,0xd9,0x68,0x31,0x92,0x06,0x4f,0xae,0x0c,0x2e,0xe5,0x3d, | |
| 1023 | 0xaa,0x3e,0xd6,0x49,0x99,0x22,0xce,0x3f,0x04,0xc5,0x78,0x8b,0x18,0x15,0x81,0x98, | |
| 1024 | 0x01,0xfb,0x95,0xd3,0xea,0x66,0x5f,0xa8,0x00,0x0b,0xde,0x1b,0xa3,0x6c,0x2c,0x10, | |
| 1025 | 0x63,0x48,0x61,0x86,0x6f,0x6b,0x08,0xc9,0xd4,0xa1,0xad,0x25,0x9c,0xb6,0xdc,0xe7, | |
| 1026 | 0xd5,0x77,0x21,0x59,0x8a,0xaf,0x09,0xc9,0xc7,0x2a,0x1e,0x82,0x98,0xb4,0xee,0xd1, | |
| 1027 | 0x0a,0x19,0x04,0x00,0x27,0x26,0xec,0x5d,0xfd,0xa6,0x33,0x33,0x97,0x65,0x63,0xce, | |
| 1028 | 0x01,0x2f,0x0a,0x7a,0x48,0xd0,0xb3,0x83,0x76,0x15,0xea,0x36,0x99,0xc8,0x3c,0xdd, | |
| 1029 | 0xbc,0xb7,0x33,0xc6,0xeb,0xad,0x5d,0x3d,0x32,0x76,0x45,0x8c,0x9e,0xdf,0x77,0x00, | |
| 1030 | 0x39,0xb2,0x7f,0xe6,0x11,0xbd,0xea,0x89,0x31,0xcb,0x42,0x35,0xa6,0xa8,0x15,0x36, | |
| 1031 | 0x7a,0x21,0xee,0xd9,0xbb,0x00,0x59,0x68,0x73,0x13,0xe3,0x31,0xb0,0x25,0x16,0x7f, | |
| 1032 | 0x7e,0x02,0x80,0x9f,0xe7,0x76,0xac,0xdb,0xf9,0x4e,0x26,0x81,0xbe,0x55,0x7b,0xdb, | |
| 1033 | 0x44,0x56,0x35,0x37,0x96,0x1f,0xe2,0xe0,0xc1,0x7c,0x0d,0x23,0xcf,0x37,0x42,0x4a, | |
| 1034 | 0xce,0x1e,0x0d,0xa3,0xc9,0xfb,0xfb,0x79,0xcc,0x9c,0x96,0x18,0xe3,0xcd,0x6c,0xcc, | |
| 1035 | 0x1b,0x58,0x08,0xe2,0x7e,0x0b,0xf6,0xa4,0x1a,0xb0,0xc3,0x60,0xfa,0x15,0xf9,0x61, | |
| 1036 | 0x2a,0x05,0x26,0xf3,0xb7,0x4d,0xd5,0x63,0xab,0xb7,0x92,0xfb,0x14,0x11,0xea,0x09, | |
| 1037 | 0xfd,0x26,0x67,0xd8,0x72,0xc2,0x97,0xb4,0x7f,0xb1,0x05,0xea,0x31,0xbf,0x3d,0xc4, | |
| 1038 | 0x93,0xb9,0xcb,0x90,0xb0,0x6a,0x3c,0x99,0x96,0x9e,0x1a,0x2b,0x51,0x21,0xf3,0x92, | |
| 1039 | 0xb8,0xe3,0x99,0xdb,0x08,0x07,0x7b,0xf3,0x17,0xdd,0xb3,0xb3,0xd2,0x12,0xac,0x47, | |
| 1040 | 0x25,0x51,0xd3,0xdd,0xfc,0x48,0x94,0x9f,0x42,0xa1,0x5b,0xba,0xe4,0x08,0x93,0x59, | |
| 1041 | 0xcd,0x2b,0xa9,0xaa,0xea,0xb4,0x08,0xd6,0x27,0x4f,0x1d,0x0c,0x70,0xaa,0x54,0x76, | |
| 1042 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1043 | 0xb0,0x6f,0x19,0x41,0xd4,0x4b,0xd7,0x99,0xc8,0xe9,0xfb,0xa9,0x77,0xf6,0xf1,0x9e, | |
| 1044 | 0xce,0x1e,0x25,0xa4,0xb9,0x0d,0x02,0xe6,0x24,0x6e,0xf4,0x91,0xfa,0xee,0x69,0xd1, | |
| 1045 | 0x28,0x38,0xcb,0xd2,0x99,0xfa,0x87,0xbf,0x3a,0xde,0x08,0xc4,0xf7,0x90,0xbc,0x0f, | |
| 1046 | 0xbc,0xbe,0x0d,0xca,0x74,0x12,0x67,0x22,0x0c,0x39,0x37,0x43,0x6f,0xde,0xe9,0x58, | |
| 1047 | 0x8b,0xae,0xe9,0x8e,0x4a,0x55,0xa2,0x11,0x98,0x7e,0x81,0x0c,0x63,0xd6,0xf2,0xac, | |
| 1048 | 0x95,0x09,0x61,0x1d,0x1b,0xc3,0x39,0x8a,0xe0,0xaf,0xe6,0x20,0xd1,0x7a,0xd6,0x0b, | |
| 1049 | 0xda,0xd0,0x73,0x76,0xe6,0x5c,0x2a,0x8e,0xe3,0xcb,0x66,0x7f,0xbb,0xc9,0x95,0x75, | |
| 1050 | 0x5a,0x01,0x20,0x9b,0xad,0x20,0x76,0x1e,0xa0,0xd2,0x01,0x29,0x1f,0xc2,0x2e,0xea, | |
| 1051 | 0x15,0x9d,0x69,0x8b,0x6f,0x0f,0x1d,0x38,0x19,0xc3,0xb7,0x1e,0xfe,0x67,0xa3,0x6a, | |
| 1052 | 0x0b,0xa5,0x4c,0x45,0x2c,0x29,0x20,0xde,0x4c,0xa0,0x88,0x5f,0x59,0xb6,0xf3,0xf4, | |
| 1053 | 0x3c,0x17,0xcb,0xcb,0xe4,0x6e,0x7d,0x0e,0x3b,0x68,0x74,0xea,0x2e,0xb1,0x1d,0x8a, | |
| 1054 | 0xa8,0xf4,0xe4,0x1c,0x97,0xde,0x35,0xc9,0xe5,0x1b,0x7b,0xc0,0x7e,0x56,0x23,0x2b, | |
| 1055 | 0x50,0x3c,0x99,0x37,0x45,0x79,0x48,0x10,0x49,0xb9,0x9d,0xe1,0x4a,0xa7,0x04,0xd7, | |
| 1056 | 0x32,0xf0,0xe8,0x1e,0xed,0x3f,0xb6,0xe1,0x69,0x41,0xda,0x4d,0x90,0xa2,0xc0,0x8e, | |
| 1057 | 0x4f,0x0e,0xd3,0xd0,0x91,0x30,0x80,0x3e,0x43,0xb5,0x32,0x05,0x51,0x49,0x56,0x50, | |
| 1058 | 0xa7,0x97,0x58,0x4c,0x30,0x4c,0xa4,0x25,0xd9,0x14,0xa5,0x07,0x8e,0x9a,0xc8,0x1d, | |
| 1059 | 0x3a,0x8c,0x79,0x94,0xca,0x93,0x23,0x98,0x2a,0x5e,0x33,0x54,0x45,0x97,0x15,0xf5, | |
| 1060 | 0x08,0xeb,0x34,0xa7,0x5f,0x05,0xfd,0x95,0x35,0x93,0xdc,0xec,0x77,0x3f,0x3d,0xd8, | |
| 1061 | 0x11,0xb5,0x8b,0x84,0xef,0xa2,0x33,0x1d,0xfc,0xb2,0xa0,0xcf,0x25,0x91,0x3f,0xc6, | |
| 1062 | 0xf1,0x83,0x8d,0x87,0x7f,0xc5,0x9b,0xe7,0xe1,0xc5,0x82,0x6a,0xe1,0x0f,0x8f,0x1e, | |
| 1063 | 0x4d,0x2f,0x0d,0x0e,0xf0,0xb2,0x47,0x46,0x96,0x23,0x8c,0xd2,0x0b,0x0d,0x25,0xbe, | |
| 1064 | 0x1b,0xfe,0x5f,0x17,0x93,0x82,0x87,0xe8,0x3d,0x23,0xe8,0x3d,0xe7,0x6f,0xce,0x22, | |
| 1065 | 0x5c,0xf0,0x85,0xa3,0x69,0x34,0x59,0xcd,0xd8,0xc7,0x97,0xab,0x77,0x33,0x8a,0x49, | |
| 1066 | 0x11,0x05,0x7e,0xb3,0x72,0xca,0xbf,0xf5,0x66,0x0d,0x99,0x1c,0xb9,0x5a,0x59,0x32, | |
| 1067 | 0x38,0x3e,0x49,0x45,0xae,0x43,0xb7,0x60,0xe7,0xf7,0xee,0x90,0xaf,0xe4,0x3b,0xc5, | |
| 1068 | 0xf1,0xdc,0xc8,0x52,0xa2,0x9b,0x0c,0xde,0x45,0xf0,0x39,0x56,0x87,0x46,0x7b,0xa6, | |
| 1069 | 0x14,0x0b,0xfe,0xba,0x97,0xa8,0xed,0x7d,0xbd,0x8c,0x75,0xdc,0x31,0x21,0xc1,0xc2, | |
| 1070 | 0xa1,0xd4,0xfe,0x1c,0xb7,0x11,0x58,0xd6,0x20,0x43,0xfb,0xdc,0x87,0xd7,0x12,0x19, | |
| 1071 | 0x99,0x39,0xca,0x7a,0x02,0xd4,0x4f,0xeb,0x6d,0x15,0xcc,0x57,0x88,0x68,0x6e,0xab, | |
| 1072 | 0xfc,0x38,0x61,0xd3,0x78,0xf2,0xd0,0xbb,0xa6,0x02,0xe8,0x4e,0x33,0xd3,0xd5,0x78, | |
| 1073 | 0xcb,0xd3,0xc2,0x27,0x19,0x6b,0xdc,0x45,0xca,0x0a,0x4f,0xbf,0x8a,0x1a,0x47,0x81, | |
| 1074 | 0x04,0x08,0xef,0x76,0xe5,0x96,0xa2,0x01,0x2d,0x57,0x0f,0xfa,0x80,0x7c,0xeb,0x9f, | |
| 1075 | 0xea,0x53,0x44,0xba,0xf5,0x27,0x25,0x19,0x2f,0x44,0x9b,0x88,0x23,0xf6,0xb0,0xd1, | |
| 1076 | 0x5d,0x8a,0x72,0xc2,0x69,0x4a,0xec,0x25,0xd3,0x84,0x2a,0xc8,0x28,0x83,0x38,0x76, | |
| 1077 | 0xf3,0x93,0x22,0xfc,0xc0,0x01,0xf5,0x24,0x1b,0x17,0xbb,0xbc,0x90,0x23,0x82,0x8f, | |
| 1078 | 0xac,0x70,0x55,0x69,0xf9,0x4a,0x41,0x16,0x05,0xfd,0x50,0x62,0x5b,0xd6,0x90,0x1a, | |
| 1079 | 0x88,0x20,0x0c,0x09,0x16,0x27,0xd0,0xfb,0x93,0x37,0xe8,0xbc,0x8a,0x9c,0x61,0x18, | |
| 1080 | 0x87,0xa2,0x45,0xdc,0x16,0x96,0xa2,0xd3,0xc3,0xc3,0x83,0xc8,0x1b,0x75,0xf4,0x8a, | |
| 1081 | 0xa9,0xf8,0x02,0xe2,0xf9,0x99,0xb7,0x9d,0x97,0xa2,0x21,0x88,0x0f,0x61,0x4b,0x6e, | |
| 1082 | 0xee,0x21,0x41,0x1b,0xbe,0x2e,0x0f,0x5b,0x0d,0xd4,0xc2,0xfb,0x66,0x60,0x65,0xc5, | |
| 1083 | 0x56,0x1d,0x03,0x87,0x67,0x56,0xaa,0x0c,0x27,0x59,0x66,0x20,0x21,0x72,0x41,0x90, | |
| 1084 | 0xe1,0xeb,0x49,0x26,0xf3,0x12,0x89,0xb0,0xe3,0x32,0x0d,0xf9,0x3e,0x97,0xe1,0xcd, | |
| 1085 | 0x8f,0x8d,0x11,0xf8,0x62,0x60,0xaa,0x47,0x43,0x5d,0xb6,0x84,0xbe,0xcf,0x43,0x7d, | |
| 1086 | 0x60,0x02,0x5d,0xfd,0xb3,0x42,0x0e,0xd1,0x45,0xdb,0x63,0xc3,0xa1,0x1a,0x69,0xa1, | |
| 1087 | 0x54,0x49,0x2b,0x35,0xe8,0xb6,0xb5,0x4d,0xeb,0xac,0x13,0xb5,0xe8,0x78,0x52,0x37, | |
| 1088 | 0x6b,0x64,0x7c,0xa0,0x00,0xbe,0x9f,0xbd,0x33,0xd0,0xc6,0x59,0x91,0xe8,0xfd,0x87, | |
| 1089 | 0xd2,0xb5,0xbd,0x02,0x57,0x7b,0x47,0xdf,0xe2,0x9a,0x2d,0xca,0xde,0x3d,0x5a,0x71, | |
| 1090 | 0xb8,0x92,0xbc,0x7e,0xdb,0xc2,0x3c,0x9d,0xb5,0xfc,0xc9,0x7c,0xb0,0x6a,0x4d,0xc5, | |
| 1091 | 0x38,0x39,0xb5,0x25,0xbb,0x95,0xed,0x47,0xa3,0xa9,0xe0,0xd8,0x5c,0xa2,0x7b,0x84, | |
| 1092 | 0x54,0xac,0xaa,0xf7,0xf5,0xf2,0x59,0xdc,0xac,0xa1,0x73,0xe0,0xe4,0xe5,0xe5,0xaf, | |
| 1093 | 0x0a,0xea,0x9a,0xf4,0x8a,0xdb,0x7f,0x5c,0xcf,0xe5,0x80,0x92,0x47,0x33,0x89,0x44, | |
| 1094 | 0x5c,0xf2,0x85,0x1c,0x7a,0x4e,0x61,0xc7,0x0e,0x73,0x09,0xf0,0x84,0x8c,0x68,0x44, | |
| 1095 | 0x48,0xc6,0x6b,0x6f,0xc5,0x4d,0xfd,0x1c,0x68,0x4c,0x0c,0xf9,0x9d,0xf0,0x82,0xaf, | |
| 1096 | 0xd0,0x65,0x4c,0xed,0x6c,0xd6,0x55,0x5d,0xdd,0x70,0x8a,0xac,0x91,0x5f,0xd7,0x86, | |
| 1097 | 0xf2,0xce,0x28,0x96,0x6d,0xea,0x68,0x89,0x6d,0xdf,0x84,0x0b,0x60,0xd9,0x67,0xc7, | |
| 1098 | 0xb0,0x03,0xfe,0x6a,0xc9,0x8a,0x35,0xa0,0x18,0x99,0xf8,0x14,0x09,0x5e,0x32,0x73, | |
| 1099 | 0x08,0x03,0xd0,0x69,0x80,0xb4,0xbe,0xa2,0xde,0x9f,0xe7,0xc9,0x8e,0xee,0x38,0x8b, | |
| 1100 | 0xfb,0xcd,0x9d,0x93,0x93,0x6a,0x02,0x8e,0xbf,0xef,0x52,0x28,0xee,0x88,0x79,0x0d, | |
| 1101 | 0x8a,0x63,0x65,0xe8,0x00,0xaa,0x00,0x66,0xbb,0x8a,0x37,0x33,0x29,0x2e,0xf6,0xfa, | |
| 1102 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1103 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1104 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1105 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1106 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1107 | 0xb3,0xc4,0x28,0x68,0xc8,0x75,0xba,0x29,0xd2,0x70,0x97,0xe8,0x3e,0xdf,0xad,0x52, | |
| 1108 | 0x78,0xef,0xe6,0x13,0xeb,0xcc,0x2e,0xd7,0x04,0xa1,0x73,0x49,0x2f,0x9b,0x9f,0x16, | |
| 1109 | 0xd7,0xe6,0x9f,0xe9,0x6a,0xad,0x5e,0x70,0x51,0x1d,0xc9,0x54,0xfb,0x62,0xcc,0x44, | |
| 1110 | 0xd2,0xa8,0x52,0xea,0x43,0x1a,0x49,0xf3,0xb9,0xe5,0x9a,0x0b,0xa1,0x34,0x34,0xdd, | |
| 1111 | 0x67,0x34,0x01,0x16,0x77,0x11,0xee,0x62,0x3c,0xf7,0xe7,0x6d,0x23,0x11,0xd7,0xe2, | |
| 1112 | 0x98,0x8c,0xab,0x6d,0x06,0x94,0x4f,0xbc,0xda,0x54,0xae,0x79,0x80,0xf9,0xb5,0x51, | |
| 1113 | 0x63,0xaf,0x50,0xef,0xf0,0xa1,0x6a,0x01,0x93,0xfc,0xf0,0x31,0xb8,0xec,0xce,0x2b, | |
| 1114 | 0xca,0x9c,0xf0,0x9d,0x36,0x39,0x41,0x30,0x67,0xef,0xae,0x93,0xca,0xea,0x22,0x71, | |
| 1115 | 0xcb,0x55,0x8b,0x75,0xd6,0x5d,0xd3,0x4b,0x56,0x2d,0xe6,0xa1,0xb8,0xf3,0xb1,0x21, | |
| 1116 | 0x68,0xd9,0x20,0x78,0xd1,0x0b,0x1f,0x51,0x60,0xb7,0x9a,0x59,0x81,0x07,0x7c,0x3c, | |
| 1117 | 0x9f,0x27,0xb1,0xa6,0x27,0x45,0x27,0x42,0x85,0x8b,0xc8,0xbd,0x25,0x26,0x81,0xc2, | |
| 1118 | 0x72,0x41,0x3d,0xff,0xd9,0x09,0xe9,0x1e,0xc5,0xaa,0x71,0xcb,0xa3,0x4f,0xc1,0xb4, | |
| 1119 | 0xdf,0x26,0xc4,0x83,0xe5,0x59,0x67,0xe4,0x20,0x14,0x96,0x85,0xfd,0x84,0x3c,0x10, | |
| 1120 | 0xe8,0xd5,0x46,0x32,0x4c,0x33,0xa0,0x96,0x96,0xc9,0x35,0xe9,0x32,0xc4,0xf2,0xd7, | |
| 1121 | 0x8b,0x50,0xc3,0x0c,0x0e,0x98,0x93,0x33,0x27,0xc9,0x4f,0xf9,0x42,0x0f,0xe3,0x0a, | |
| 1122 | 0xca,0x96,0x3b,0x11,0x2c,0x89,0x42,0xbb,0xd3,0x15,0xe5,0xb4,0x2c,0x65,0x0f,0xa7, | |
| 1123 | 0xa3,0xa6,0xad,0x41,0xa4,0x04,0xab,0x2e,0x9a,0xab,0xf5,0x19,0xf2,0xc6,0x76,0xaf, | |
| 1124 | 0x18,0x82,0x1b,0x9c,0x77,0x0b,0xd0,0x8b,0x7c,0x8c,0x17,0xe0,0x66,0x96,0x31,0x7b, | |
| 1125 | 0xea,0xd9,0x33,0x28,0xdc,0x14,0xe8,0x74,0x87,0x53,0x1b,0xe9,0x37,0xa2,0x9b,0x15, | |
| 1126 | 0x38,0x0d,0x31,0x83,0xd6,0xa1,0xaa,0xbf,0x5e,0x68,0xd3,0x56,0x1b,0x70,0x77,0xd2, | |
| 1127 | 0x59,0xc4,0x62,0xc1,0x64,0x71,0x60,0xae,0x88,0x81,0x3e,0x25,0x12,0x02,0xc6,0xb2, | |
| 1128 | 0x4c,0xff,0xc6,0xe2,0x84,0x84,0x09,0x3f,0x05,0x9d,0x5b,0x57,0x1c,0x57,0x89,0xb5, | |
| 1129 | 0x13,0xbc,0x5d,0xe5,0x38,0xda,0xa5,0x74,0xd6,0xbc,0x2c,0xec,0x39,0x6e,0xbe,0xdb, | |
| 1130 | 0xad,0xfd,0x27,0xcc,0x7e,0x73,0x34,0x4b,0xf9,0xde,0xaf,0xe5,0x69,0x49,0x66,0x24, | |
| 1131 | 0x1a,0xc0,0x24,0x96,0x58,0x4f,0xb5,0xc6,0x6f,0x03,0xe6,0xec,0x59,0xfb,0xfd,0x87, | |
| 1132 | 0xeb,0xd6,0x80,0xdd,0xca,0x41,0x86,0x58,0x21,0x27,0xba,0x65,0x1d,0x75,0xc9,0x6f, | |
| 1133 | 0xea,0x17,0x5e,0xe3,0xb3,0xf8,0x27,0x2d,0xa5,0x06,0xcd,0xb8,0xec,0x2a,0xff,0xf1, | |
| 1134 | 0xb4,0x53,0x67,0x44,0x28,0x6b,0xb2,0x1d,0x75,0x5f,0x8c,0xe7,0xc6,0x1a,0xa0,0x0f, | |
| 1135 | 0x48,0x8a,0x9b,0x01,0x27,0x99,0x29,0x28,0x8f,0x33,0xf6,0xf1,0xab,0x46,0xad,0xc7, | |
| 1136 | 0xa8,0xbc,0xfa,0x18,0xb2,0x81,0x8b,0x4e,0xf4,0x83,0x0a,0xd5,0x9b,0xac,0x24,0x1b, | |
| 1137 | 0xd3,0xe8,0x84,0x8a,0xc7,0x25,0xd8,0x8f,0xa4,0x4d,0xca,0x95,0x96,0x4d,0x06,0x09, | |
| 1138 | 0xc8,0x10,0x3a,0x57,0x67,0x83,0x10,0xeb,0x9f,0x92,0x34,0x30,0x9c,0x29,0x54,0x93, | |
| 1139 | 0x89,0x33,0x1a,0x7f,0x93,0x9d,0x32,0x62,0xe5,0x53,0x4a,0xa6,0xad,0x0c,0xb7,0x15, | |
| 1140 | 0x51,0x25,0x03,0x49,0x72,0xbb,0x2e,0xd6,0x48,0xdc,0x5d,0xb8,0xae,0x83,0xae,0x87, | |
| 1141 | 0xfc,0x3d,0x6b,0x4e,0xfd,0x94,0xe2,0x19,0x7d,0x16,0x5e,0xf4,0x48,0x4d,0x2b,0xeb, | |
| 1142 | 0x2a,0xc7,0x96,0x0b,0xf0,0x0f,0xe9,0x5f,0x64,0xb2,0x72,0xf3,0x54,0x3a,0x7c,0xd3, | |
| 1143 | 0x8b,0x35,0x53,0x0b,0xd5,0x2e,0x43,0xa7,0xff,0xb1,0x99,0xb4,0xd3,0x4a,0xa0,0x3d, | |
| 1144 | 0x1f,0x86,0xa4,0x4e,0xae,0xef,0xf1,0xf3,0x4c,0x13,0xd3,0x39,0xc6,0x7d,0x96,0x2a, | |
| 1145 | 0xe6,0xba,0x87,0xd4,0x7a,0x54,0xf1,0x42,0x4d,0xd9,0x20,0x80,0x2b,0xd3,0x60,0x9b, | |
| 1146 | 0xe0,0xd0,0xfd,0x9d,0x39,0x5c,0x44,0x94,0x01,0x01,0x80,0x8b,0x03,0x4c,0xfd,0x8e, | |
| 1147 | 0x0d,0xca,0x07,0xaa,0xeb,0x06,0xea,0xe9,0x67,0x8c,0xf3,0x59,0x4f,0xe8,0x6c,0x05, | |
| 1148 | 0x6e,0xa7,0xa3,0xf9,0x8f,0x54,0xe3,0x41,0x81,0x7a,0x79,0xe9,0x0d,0xa7,0xaf,0xfe, | |
| 1149 | 0x01,0x67,0xd3,0x8b,0x27,0x44,0x30,0x9c,0x4d,0xcc,0x12,0x3d,0x3e,0x89,0xc5,0x7a, | |
| 1150 | 0xc7,0x09,0x95,0x60,0xb2,0xd8,0xcf,0xfa,0xcd,0x80,0xbe,0x54,0xe3,0x8e,0xae,0x7a, | |
| 1151 | 0xc0,0x8f,0xeb,0x78,0x30,0x0e,0xc1,0x5b,0xff,0x97,0x7d,0x2d,0xfa,0xb6,0x69,0xfc, | |
| 1152 | 0xec,0xf8,0xd3,0xd3,0xa1,0xe8,0x06,0xbe,0xe5,0x11,0x4f,0xca,0x84,0x01,0xf8,0x02, | |
| 1153 | 0x4b,0x44,0x4f,0x71,0x05,0x64,0x9e,0x25,0x7e,0xef,0x33,0x2a,0x82,0x6f,0x5a,0x8a, | |
| 1154 | 0xdd,0x72,0x5d,0x52,0x5b,0x84,0x8a,0x8f,0xb5,0x34,0xd2,0x43,0x00,0x83,0x6c,0xb9, | |
| 1155 | 0xf2,0x5b,0x22,0x8f,0x37,0x29,0x20,0xb0,0x7a,0x59,0x93,0x0a,0x69,0x57,0xa7,0x87, | |
| 1156 | 0xad,0x8e,0x88,0x13,0xf5,0x6b,0x61,0x9c,0xeb,0x5a,0x5f,0x0c,0x3c,0xc6,0xae,0x50, | |
| 1157 | 0x93,0x1d,0x79,0x53,0x9e,0xc8,0xed,0x02,0x07,0x36,0x36,0x49,0x7a,0xd1,0x80,0x13, | |
| 1158 | 0xa4,0x06,0xf6,0x4e,0x31,0x74,0x55,0xf5,0x0e,0xc9,0x75,0x31,0xa3,0x9f,0xe1,0xb4, | |
| 1159 | 0xa9,0x42,0xa5,0x4b,0xae,0xff,0xce,0x3f,0x7e,0x05,0x74,0x38,0xb7,0x84,0x8c,0x47, | |
| 1160 | 0xe9,0x90,0x74,0x1a,0x81,0x54,0x17,0x5b,0xeb,0xfd,0x62,0xb7,0x92,0xb7,0x41,0xda, | |
| 1161 | 0xe3,0xad,0x9f,0x6f,0x4a,0x0c,0x6a,0x23,0x33,0x00,0x8b,0xa1,0x09,0xb4,0xf1,0x97, | |
| 1162 | 0x39,0x55,0x86,0xaf,0x2e,0x0f,0x37,0x95,0x55,0x0e,0xef,0xf7,0x1a,0x7d,0x9c,0x7f, | |
| 1163 | 0xe9,0x89,0x28,0xd9,0x2d,0x5d,0x7f,0xb3,0x53,0x27,0x8f,0xb7,0xc7,0x11,0x42,0x92, | |
| 1164 | 0xf4,0x47,0x84,0xef,0x47,0xf7,0x43,0x7b,0x2c,0x4b,0x69,0xe2,0x0e,0x6f,0xe2,0xd0, | |
| 1165 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1166 | }; | |
| 1167 | ||
| 1168 | ||
| 1169 | /* 317-0021 FD1089A */ | |
| 1170 | static const UINT8 key_0021[0x2000] = | |
| 1171 | { | |
| 1172 | /* opcodes */ | |
| 1173 | 0x03,0xa4,0xe5,0xdf,0xd0,0xca,0x5f,0x56,0x5a,0xa6,0xbb,0x0b,0xac,0x06,0x86,0x49, | |
| 1174 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1175 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1176 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1177 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1178 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1179 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1180 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1181 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1182 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1183 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1184 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1185 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1186 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1187 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1188 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1189 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1190 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1191 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1192 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1193 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1194 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1195 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1196 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1197 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1198 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1199 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1200 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1201 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1202 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1203 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1204 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1205 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1206 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1207 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1208 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1209 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1210 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1211 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1212 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1213 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1214 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1215 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1216 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1217 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1218 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1219 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1220 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1221 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1222 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1223 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1224 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1225 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1226 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1227 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1228 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1229 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1230 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1231 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1232 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1233 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1234 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1235 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1236 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1237 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1238 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1239 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1240 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1241 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1242 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1243 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1244 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1245 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1246 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1247 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1248 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1249 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1250 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1251 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1252 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1253 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1254 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1255 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1256 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1257 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1258 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1259 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1260 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1261 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1262 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1263 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1264 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1265 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1266 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1267 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1268 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1269 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1270 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1271 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1272 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1273 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1274 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1275 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1276 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1277 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1278 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1279 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1280 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1281 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1282 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1283 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1284 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1285 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1286 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1287 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1288 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1289 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1290 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1291 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1292 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1293 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1294 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1295 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1296 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1297 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1298 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1299 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1300 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1301 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1302 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1303 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1304 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1305 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1306 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1307 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1308 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1309 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1310 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1311 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1312 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1313 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1314 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1315 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1316 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1317 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1318 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1319 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1320 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1321 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1322 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1323 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1324 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1325 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1326 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1327 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1328 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1329 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1330 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1331 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1332 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1333 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1334 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1335 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1336 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1337 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1338 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1339 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1340 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1341 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1342 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1343 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1344 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1345 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1346 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1347 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1348 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1349 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1350 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1351 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1352 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1353 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1354 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1355 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1356 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1357 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1358 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1359 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1360 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1361 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1362 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1363 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1364 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1365 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1366 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1367 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1368 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1369 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1370 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1371 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1372 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1373 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1374 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1375 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1376 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1377 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1378 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1379 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1380 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1381 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1382 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1383 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1384 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1385 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1386 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1387 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1388 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1389 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1390 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1391 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1392 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1393 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1394 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1395 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1396 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1397 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1398 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1399 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1400 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1401 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1402 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1403 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1404 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1405 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1406 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1407 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1408 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1409 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1410 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1411 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1412 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1413 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1414 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1415 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1416 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1417 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1418 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1419 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1420 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1421 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1422 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1423 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1424 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1425 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1426 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1427 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1428 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1429 | ||
| 1430 | /* data */ | |
| 1431 | 0xb6,0xc6,0x4b,0x8b,0x67,0x8c,0xa0,0x77,0x3c,0xa9,0x30,0x2f,0x21,0xc8,0x65,0xe1, | |
| 1432 | 0x01,0x96,0xab,0xb7,0xc9,0xbf,0x70,0xdd,0x65,0xef,0x1e,0x81,0xc0,0xd1,0x22,0xcd, | |
| 1433 | 0xc7,0x12,0xe7,0xee,0x66,0x5d,0xda,0x0f,0x89,0x60,0x67,0x5d,0x1b,0xc5,0xfa,0x04, | |
| 1434 | 0x09,0x38,0x92,0x33,0x46,0x6d,0x80,0x37,0xe1,0x0c,0x3b,0x94,0x8f,0xa9,0x0f,0x54, | |
| 1435 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1436 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1437 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1438 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1439 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1440 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1441 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1442 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1443 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1444 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1445 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1446 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1447 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1448 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1449 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1450 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1451 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1452 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1453 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1454 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1455 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1456 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1457 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1458 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1459 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1460 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1461 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1462 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1463 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1464 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1465 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1466 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1467 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1468 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1469 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1470 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1471 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1472 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1473 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1474 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1475 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1476 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1477 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1478 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1479 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1480 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1481 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1482 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1483 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1484 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1485 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1486 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1487 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1488 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1489 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1490 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1491 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1492 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1493 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1494 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1495 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1496 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1497 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1498 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1499 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1500 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1501 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1502 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1503 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1504 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1505 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1506 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1507 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1508 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1509 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1510 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1511 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1512 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1513 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1514 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1515 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1516 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1517 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1518 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1519 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1520 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1521 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1522 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1523 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1524 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1525 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1526 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1527 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1528 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1529 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1530 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1531 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1532 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1533 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1534 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1535 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1536 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1537 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1538 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1539 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1540 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1541 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1542 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1543 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1544 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1545 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1546 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1547 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1548 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1549 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1550 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1551 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1552 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1553 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1554 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1555 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1556 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1557 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1558 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1559 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1560 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1561 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1562 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1563 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1564 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1565 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1566 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1567 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1568 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1569 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1570 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1571 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1572 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1573 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1574 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1575 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1576 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1577 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1578 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1579 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1580 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1581 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1582 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1583 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1584 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1585 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1586 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1587 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1588 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1589 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1590 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1591 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1592 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1593 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1594 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1595 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1596 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1597 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1598 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1599 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1600 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1601 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1602 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1603 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1604 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1605 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1606 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1607 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1608 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1609 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1610 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1611 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1612 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1613 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1614 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1615 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1616 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1617 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1618 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1619 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1620 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1621 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1622 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1623 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1624 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1625 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1626 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1627 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1628 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1629 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1630 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1631 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1632 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1633 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1634 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1635 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1636 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1637 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1638 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1639 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1640 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1641 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1642 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1643 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1644 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1645 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1646 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1647 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1648 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1649 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1650 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1651 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1652 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1653 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1654 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1655 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1656 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1657 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1658 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1659 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1660 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1661 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1662 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1663 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1664 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1665 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1666 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1667 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1668 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1669 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1670 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1671 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1672 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1673 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1674 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1675 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1676 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1677 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1678 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1679 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1680 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1681 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1682 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1683 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1684 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1685 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1686 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 1687 | }; | |
| 1688 | ||
| 1689 | ||
| 1690 | /* 317-0022 FD1089A */ | |
| 1691 | static const UINT8 key_0022[0x2000] = | |
| 1692 | { | |
| 1693 | /* opcodes */ | |
| 1694 | 0x55,0xfc,0x8e,0x41,0x02,0x3d,0x55,0xde,0xb0,0x30,0xa1,0x72,0x90,0xb2,0xb1,0xcf, | |
| 1695 | 0x0d,0x78,0x79,0x29,0x9c,0x33,0xed,0xb4,0xb2,0x9a,0x01,0xa4,0xc1,0x60,0xa8,0x2c, | |
| 1696 | 0x3d,0x38,0xd7,0x82,0x9c,0xd7,0x82,0xd8,0x50,0xf1,0x9d,0x63,0xcf,0x3a,0x1c,0x56, | |
| 1697 | 0x8b,0x29,0x66,0x12,0xf2,0x5b,0xe7,0x5f,0xf8,0x01,0x28,0x75,0x14,0x17,0x48,0x36, | |
| 1698 | 0x8c,0xe7,0x35,0xd4,0x76,0x0b,0xae,0xd1,0xba,0x6f,0x41,0x01,0x0c,0x4c,0x4d,0x86, | |
| 1699 | 0xf5,0x2d,0x00,0xd3,0xca,0xed,0x59,0xa9,0xb2,0xb6,0x26,0x1b,0xa3,0x02,0x06,0x8c, | |
| 1700 | 0x65,0x9d,0x66,0xaf,0x8d,0xa0,0x87,0x85,0x81,0x76,0x76,0x62,0x7a,0xda,0x11,0xe7, | |
| 1701 | 0x7c,0xd6,0x08,0x08,0x5f,0xc4,0xd8,0x07,0xc8,0x50,0xd1,0x76,0x2f,0x73,0x10,0x38, | |
| 1702 | 0xdb,0x78,0x84,0x7f,0xe0,0xfa,0xed,0xce,0x26,0xe3,0xd7,0xf7,0x64,0x6d,0xa2,0x1d, | |
| 1703 | 0x20,0x24,0x7c,0xb3,0xb1,0xe1,0x64,0x7a,0x3c,0xcf,0x29,0x86,0xb9,0x69,0x67,0x38, | |
| 1704 | 0xed,0x79,0x8f,0x44,0x70,0x19,0xdf,0xab,0xa8,0xb4,0x65,0xc1,0xcc,0x05,0x00,0x28, | |
| 1705 | 0xe2,0x17,0x5e,0xd2,0xbf,0x42,0xfd,0x02,0x0c,0x33,0x2d,0x4a,0x3f,0xe3,0x0c,0x8e, | |
| 1706 | 0x9d,0x9e,0x88,0xfe,0x3e,0xfd,0x5f,0x1e,0x07,0xeb,0x21,0xc1,0xb1,0xa3,0x2b,0x08, | |
| 1707 | 0xc0,0xae,0xac,0x67,0x8b,0xe9,0xa4,0x9f,0x3a,0x7c,0xdf,0xc4,0xc2,0xe3,0xfd,0x38, | |
| 1708 | 0xea,0xe8,0x6d,0xad,0x48,0xa6,0x6c,0x26,0x43,0x86,0x09,0xf5,0x12,0x45,0x23,0xbd, | |
| 1709 | 0xbb,0xeb,0x68,0x70,0x14,0xd4,0x57,0x52,0xc4,0xaa,0x3e,0xf3,0x42,0x68,0x3c,0x37, | |
| 1710 | 0xd3,0x57,0x3f,0x51,0x8f,0x14,0x05,0xc3,0x5c,0x87,0x1e,0x5e,0xf1,0xec,0xe8,0x47, | |
| 1711 | 0xd3,0xcd,0x91,0xef,0x5a,0x04,0x17,0x19,0xac,0xbd,0x4a,0xd7,0xbf,0x71,0xc7,0x8c, | |
| 1712 | 0x5a,0xec,0xfe,0xea,0x14,0x47,0x2c,0xf4,0x52,0xec,0x60,0xfd,0x4c,0x98,0x7a,0xa6, | |
| 1713 | 0x08,0x54,0x26,0xe3,0x5d,0x7a,0xe4,0xf5,0xf0,0xb5,0x03,0x70,0x39,0x00,0xa0,0x35, | |
| 1714 | 0x7e,0xa5,0xaa,0x78,0xd5,0x3e,0xe0,0xbb,0x25,0xb7,0xd0,0xd0,0x25,0x49,0xd9,0xda, | |
| 1715 | 0x5b,0x7f,0x29,0x4b,0x1d,0x34,0xbe,0xe6,0x92,0x92,0x68,0xbe,0xb0,0x14,0xc5,0x34, | |
| 1716 | 0x3f,0x83,0x43,0xfb,0xd4,0xfb,0x20,0x17,0xd5,0xe7,0x6c,0xd8,0x7b,0xff,0x05,0xe3, | |
| 1717 | 0xca,0x50,0x98,0x29,0x9a,0x34,0xa6,0xec,0x90,0x54,0x7b,0xc0,0x24,0xac,0x37,0x87, | |
| 1718 | 0x9c,0x86,0xc9,0x73,0x0f,0x7d,0xee,0x07,0x62,0x7b,0x35,0x16,0x4d,0xba,0xfd,0xc1, | |
| 1719 | 0x56,0xc6,0x75,0x7b,0xd3,0x78,0x9a,0x08,0xec,0xfb,0x3b,0x78,0x95,0xca,0xf7,0x30, | |
| 1720 | 0x97,0xaf,0x3c,0xe1,0x87,0xc4,0x49,0x8d,0xcc,0x75,0x2c,0x88,0x9d,0x7b,0xc3,0x74, | |
| 1721 | 0xff,0xe1,0xbe,0x43,0xca,0x01,0x9b,0x38,0xa4,0x87,0xa8,0xe5,0x04,0x6d,0x03,0x2d, | |
| 1722 | 0x2f,0xfc,0x9c,0x43,0x3d,0xd0,0x30,0xa8,0x13,0xd3,0x4f,0x2f,0x6a,0x56,0xfc,0xc6, | |
| 1723 | 0xa0,0x75,0x80,0x7e,0xd0,0xa9,0x7d,0xba,0xf8,0xc2,0x07,0x6f,0x94,0x5d,0x80,0x64, | |
| 1724 | 0x6e,0xe9,0x9a,0x2f,0xa1,0xa5,0x58,0x37,0x97,0x9f,0x0c,0xb3,0x0a,0xb6,0x59,0xa9, | |
| 1725 | 0x05,0x98,0x31,0xef,0xe3,0xc4,0xd7,0x2c,0x4e,0x88,0xde,0xd7,0x41,0x03,0x27,0x35, | |
| 1726 | 0x06,0x23,0xe6,0x5e,0x37,0xa7,0x9c,0x38,0xbf,0x1d,0x1d,0x7a,0xd9,0xe3,0x8b,0xa9, | |
| 1727 | 0x0f,0x29,0x58,0x1d,0x3c,0xec,0x47,0xfc,0x89,0xfc,0x6a,0x3c,0x72,0xf7,0x24,0xa4, | |
| 1728 | 0xc2,0x4a,0x27,0xcb,0x92,0x35,0x76,0x16,0x4d,0xc7,0x63,0xbd,0xad,0xdd,0x92,0xc6, | |
| 1729 | 0xbe,0x26,0xf3,0x08,0xd9,0x22,0xcb,0x28,0xa9,0x1d,0xaa,0x9e,0x29,0x37,0x75,0xb0, | |
| 1730 | 0xa3,0x5e,0x5d,0x74,0xb2,0x51,0xe5,0xd1,0x3f,0x9e,0xdf,0x7e,0x86,0xa4,0x6e,0x01, | |
| 1731 | 0x12,0x91,0x04,0xb0,0xbb,0x64,0x64,0xb2,0xae,0xeb,0xa0,0xfd,0x65,0xc4,0x1c,0x59, | |
| 1732 | 0xa9,0x5f,0x88,0x5a,0x96,0xfa,0xe8,0x69,0x97,0xa2,0x8f,0xbc,0x64,0x38,0x1f,0x58, | |
| 1733 | 0x0a,0x69,0x89,0x15,0xe3,0xb3,0x12,0x98,0x98,0x66,0x4b,0x59,0x25,0x9f,0x17,0x9e, | |
| 1734 | 0xd5,0x4d,0xa8,0x7e,0x2f,0x81,0xde,0x53,0xd4,0x74,0x76,0x48,0x99,0xa5,0xcc,0xa8, | |
| 1735 | 0xad,0x84,0x36,0x4f,0x0f,0xd5,0xdc,0x67,0x8d,0xab,0xb2,0x6b,0xc6,0x67,0x81,0x25, | |
| 1736 | 0x28,0xbd,0xde,0xaf,0xf2,0xaf,0x30,0x75,0x32,0x8f,0xae,0x30,0xc7,0x00,0x5d,0xeb, | |
| 1737 | 0x5f,0xf4,0x15,0x01,0x78,0xae,0x7c,0x1b,0x62,0xc0,0x09,0x36,0x3b,0x0d,0x01,0x9a, | |
| 1738 | 0xf0,0xc7,0x7c,0xe3,0x42,0x72,0x5f,0xfb,0xbd,0xde,0x62,0x1d,0xc2,0x2f,0x0c,0xd3, | |
| 1739 | 0x7d,0xd8,0xb1,0xf7,0xee,0x9b,0x7a,0xb4,0xe4,0x8a,0x5c,0x85,0xfc,0x07,0x1e,0x34, | |
| 1740 | 0xa5,0xc6,0x56,0xdc,0x1e,0xc9,0x6b,0xe7,0x76,0x62,0x94,0x0f,0x8a,0x34,0xd7,0x5f, | |
| 1741 | 0x09,0x32,0x0a,0x32,0x72,0x9d,0xd4,0x32,0x13,0x08,0xac,0x5a,0x0a,0x57,0xd7,0xf4, | |
| 1742 | 0x47,0xba,0x6d,0x9a,0x88,0xb6,0x54,0x37,0x5b,0x1c,0x43,0x06,0x1f,0x0e,0xbf,0x91, | |
| 1743 | 0x01,0x00,0x20,0xb3,0x02,0xb4,0x8c,0x95,0xef,0x3c,0xf9,0xb4,0x66,0xfb,0x2e,0xd8, | |
| 1744 | 0xd7,0xa4,0xc2,0x1d,0x7f,0x38,0x1a,0xed,0x6d,0x0a,0x6e,0x02,0x80,0xbd,0xc4,0x68, | |
| 1745 | 0x67,0x44,0xf3,0x78,0x9f,0xe0,0xa0,0xdd,0x77,0x25,0x43,0x92,0x0e,0xf5,0x22,0xe1, | |
| 1746 | 0x53,0x82,0x53,0x65,0x02,0x4e,0xbd,0x07,0xad,0x2d,0x17,0x03,0xaf,0x41,0xe7,0xe4, | |
| 1747 | 0x39,0xfd,0x83,0x83,0x49,0x22,0x12,0x0a,0xad,0xc3,0x8a,0xf6,0x04,0x43,0xb2,0x0f, | |
| 1748 | 0xbc,0x55,0x21,0x72,0x13,0xfa,0x3d,0x87,0x19,0x86,0x3d,0x0a,0xab,0x9a,0x26,0x04, | |
| 1749 | 0x79,0x2a,0xcf,0xd2,0x00,0x78,0xe0,0x1c,0x90,0x16,0xce,0xdf,0x46,0xe7,0xe0,0x63, | |
| 1750 | 0x12,0x1d,0x2d,0x44,0xb1,0x3b,0x9a,0x6b,0xb2,0x13,0xdf,0x15,0x74,0xc8,0x82,0xca, | |
| 1751 | 0x26,0xcd,0xd9,0x66,0xc5,0xe3,0x0c,0x13,0x20,0x1e,0x0f,0x4c,0xd6,0xdf,0xab,0xdb, | |
| 1752 | 0x55,0xda,0x75,0xda,0xdb,0x10,0xd4,0xb5,0x78,0xd5,0xff,0x25,0x0a,0xcb,0xfb,0x35, | |
| 1753 | 0x3f,0xe4,0xa0,0x96,0x63,0x94,0xf0,0x5d,0xda,0x4d,0x3f,0xb2,0x2d,0x13,0x78,0x85, | |
| 1754 | 0x8c,0xfa,0x36,0x93,0x7b,0xeb,0x63,0x6c,0xcd,0x9b,0x3a,0x6d,0xa3,0x91,0x45,0xc6, | |
| 1755 | 0x71,0x24,0x5e,0x74,0xf8,0x7a,0xb1,0x46,0x4c,0x89,0xb6,0xdb,0xcf,0x17,0x3b,0xa2, | |
| 1756 | 0x33,0xbd,0x57,0xd8,0x7b,0xdf,0x77,0x8c,0xf9,0xb5,0x54,0x9d,0x50,0x45,0xfa,0xb9, | |
| 1757 | 0x72,0x65,0xc2,0x5f,0xa3,0xbc,0x57,0xdd,0x73,0xc1,0xb3,0x52,0xc6,0xb9,0x22,0xac, | |
| 1758 | 0xcf,0xbc,0x3d,0xaa,0x10,0xb0,0xef,0xd9,0x5a,0x4c,0x73,0x9a,0xd2,0x15,0x53,0x1a, | |
| 1759 | 0xe9,0x63,0x6a,0x57,0x62,0x5c,0xe2,0x21,0x4f,0xf6,0x35,0x15,0x13,0xf8,0x2e,0xa3, | |
| 1760 | 0x60,0xf9,0xe8,0x08,0x39,0x5e,0xcd,0x54,0xf1,0x5f,0x97,0x64,0x29,0x02,0x52,0xe7, | |
| 1761 | 0xd5,0x1e,0x57,0x5c,0x36,0x58,0x52,0x12,0xe0,0x28,0x3b,0x26,0xb4,0xd4,0x5f,0x87, | |
| 1762 | 0xe6,0x72,0x58,0xf4,0xf8,0xe9,0x0f,0xfb,0xbc,0xf0,0xc1,0xfb,0x55,0x0c,0xf6,0x22, | |
| 1763 | 0x35,0x95,0x8a,0x6f,0x1f,0xb2,0xa7,0xb0,0x26,0x57,0xc7,0x83,0xab,0x4c,0xb6,0x58, | |
| 1764 | 0x61,0x28,0x8d,0x6d,0x4c,0x51,0xb7,0xcf,0xbc,0xfd,0xef,0x5f,0x56,0x34,0x3f,0xc9, | |
| 1765 | 0x0b,0xca,0x01,0x8e,0x1d,0x68,0xe1,0xfa,0x20,0x83,0xd8,0x2e,0xf6,0x62,0x31,0x16, | |
| 1766 | 0xd1,0x1c,0x87,0x72,0x34,0x96,0xc4,0xd1,0xf2,0x88,0x22,0x90,0x2c,0x78,0x2c,0xde, | |
| 1767 | 0x55,0xbc,0xbd,0xba,0x31,0x7b,0x00,0xf2,0xd0,0xac,0x6d,0x25,0x97,0x15,0xd1,0xc1, | |
| 1768 | 0x37,0x4c,0x46,0x05,0xb2,0xb8,0x35,0xff,0x5c,0x90,0x5a,0x8e,0xd7,0xd9,0xbf,0x60, | |
| 1769 | 0x15,0x6b,0xbf,0xf3,0x59,0xec,0x04,0x97,0x35,0xd2,0x88,0x69,0x8c,0x65,0x96,0x59, | |
| 1770 | 0x91,0xb9,0xc9,0x25,0xc5,0xb7,0x0c,0x5a,0xfb,0x14,0x97,0x59,0x57,0x57,0xf7,0x4e, | |
| 1771 | 0x4a,0xd7,0x05,0x39,0x96,0xb9,0xed,0xe9,0x4f,0xf5,0x28,0xfb,0xd7,0x51,0x81,0xde, | |
| 1772 | 0xe0,0x64,0x12,0xd1,0x6d,0x93,0x47,0xe3,0xd0,0x16,0xd9,0xf0,0xac,0xf3,0xd4,0xaa, | |
| 1773 | 0xf3,0x00,0x91,0x8c,0xe8,0xe4,0xbb,0xe8,0x1e,0x16,0x4c,0xd9,0x76,0xdb,0x90,0x50, | |
| 1774 | 0x24,0x4b,0x20,0x0b,0xa9,0x4c,0xe8,0x98,0xd9,0x94,0x20,0x55,0xd6,0xab,0x55,0x72, | |
| 1775 | 0x12,0xe6,0x61,0xed,0x4f,0x6b,0x6e,0x93,0xa2,0x33,0xf6,0x05,0x6b,0x02,0xc4,0xaf, | |
| 1776 | 0x5d,0x6f,0xf3,0xd2,0x7b,0xe2,0xed,0x7a,0x17,0x90,0x6d,0x87,0xd5,0x80,0x7c,0xa8, | |
| 1777 | 0xa5,0x89,0x76,0x5a,0xcc,0x50,0x06,0xec,0xda,0x4d,0x25,0x7d,0xb4,0xc6,0x1e,0xfb, | |
| 1778 | 0x8b,0xd1,0x8b,0x25,0xe2,0x55,0x58,0x89,0x8b,0x09,0xbe,0x86,0xa9,0x72,0x48,0x4a, | |
| 1779 | 0xae,0xe8,0xd1,0xd4,0x5d,0x91,0x83,0xf2,0xc8,0x64,0xd8,0x43,0x52,0x26,0x9c,0x34, | |
| 1780 | 0xae,0x6f,0xe8,0x06,0xdd,0xa5,0x27,0xc6,0x33,0xfe,0x14,0x52,0x52,0x82,0xb9,0x5a, | |
| 1781 | 0x2b,0x05,0x70,0x5b,0x03,0x30,0xe5,0xa5,0x6b,0x78,0x11,0x55,0x46,0x24,0x3f,0x5a, | |
| 1782 | 0xc6,0x4b,0x0a,0x74,0x6e,0xd2,0x5c,0x2f,0x10,0x71,0x6f,0xeb,0xd0,0xae,0xcf,0xd6, | |
| 1783 | 0x1e,0xdf,0x55,0xef,0xbe,0x2b,0x2c,0x05,0xc3,0x89,0xcf,0xb4,0x8e,0xbf,0x07,0x6e, | |
| 1784 | 0xd3,0x63,0xf1,0x6e,0x94,0xdc,0xf5,0xc5,0x23,0x61,0xcf,0x51,0x22,0xf7,0x89,0xc0, | |
| 1785 | 0x86,0x76,0x7e,0x91,0x8f,0x84,0x58,0x11,0xd0,0x97,0x11,0x61,0x2c,0xf7,0xf5,0x6e, | |
| 1786 | 0xd5,0xb8,0x9d,0xf6,0x4e,0xc3,0xf4,0x89,0x6a,0xcd,0x34,0x84,0x4a,0x5d,0xe9,0x16, | |
| 1787 | 0x62,0xca,0xec,0x3f,0x74,0x39,0x69,0xcb,0x92,0xa2,0xd9,0x5a,0x1e,0xcb,0x07,0x5b, | |
| 1788 | 0xcc,0x4b,0x0e,0x0b,0x9e,0x87,0x57,0x79,0xe6,0xb7,0x9f,0x84,0x47,0xe1,0xee,0xda, | |
| 1789 | 0xb4,0xdb,0xa0,0xfa,0x6e,0x4c,0x5f,0x32,0x08,0xaa,0x25,0xa1,0x66,0x3d,0x3e,0x35, | |
| 1790 | 0xb8,0x1a,0x43,0xac,0x83,0x28,0x20,0x96,0x98,0x1d,0x0e,0x51,0x19,0x81,0x98,0x0b, | |
| 1791 | 0x7a,0xa9,0x98,0xc2,0x7d,0xbb,0x3a,0x46,0x34,0xb0,0xf7,0x34,0x02,0x4c,0x9a,0xfc, | |
| 1792 | 0x99,0x26,0x3e,0xdb,0xfd,0xa6,0x4d,0xe1,0x7e,0x01,0x82,0xeb,0xc0,0x3e,0xe6,0xa8, | |
| 1793 | 0xb6,0x33,0xd6,0x97,0xa1,0x88,0xfa,0x07,0x15,0xb2,0x4e,0x15,0xf4,0xf7,0x1c,0xb0, | |
| 1794 | 0x70,0x70,0xfe,0x97,0x0b,0x01,0xe0,0x58,0x99,0x62,0xfb,0x52,0x3c,0x18,0xda,0xb3, | |
| 1795 | 0x66,0x7b,0x58,0x79,0xdb,0xb1,0x9f,0x74,0xab,0xb1,0x29,0x42,0x3a,0xc2,0x51,0x3b, | |
| 1796 | 0xf6,0x83,0xdf,0xaf,0x39,0xd7,0xfc,0xea,0x3f,0x79,0x86,0x8d,0x0f,0x73,0x2a,0x8c, | |
| 1797 | 0x80,0x1f,0x69,0x29,0x38,0x29,0x8f,0xf6,0xad,0x8a,0xbc,0xd6,0x26,0x8d,0xdf,0xfb, | |
| 1798 | 0xb9,0xcd,0xb5,0xe8,0x4e,0x34,0xcd,0x6f,0x9a,0xfc,0x86,0xb3,0x24,0xb1,0x0f,0x27, | |
| 1799 | 0x42,0x2c,0x65,0x8c,0x1b,0x98,0x57,0xf6,0xa6,0x70,0x84,0xc6,0xa9,0x7d,0x5a,0xb0, | |
| 1800 | 0xba,0xdc,0x18,0xb5,0xf5,0xcc,0x29,0x71,0x84,0x54,0xae,0x55,0x93,0x60,0x36,0xc1, | |
| 1801 | 0x7d,0x6e,0x04,0x5c,0xec,0xcc,0xaa,0x9c,0xda,0x98,0x0b,0xc8,0x93,0xc2,0x5a,0xf7, | |
| 1802 | 0xb0,0x07,0x18,0x0f,0x1c,0xf7,0x19,0xc6,0x12,0xef,0x7e,0xa3,0x1b,0x1f,0xbb,0xfd, | |
| 1803 | 0x14,0x84,0x91,0xf9,0x25,0xee,0x14,0x8f,0xca,0xfa,0xa6,0x85,0xcd,0x17,0xf9,0x72, | |
| 1804 | 0x49,0x84,0x10,0xbb,0xa7,0x4f,0x3d,0x98,0xa4,0x57,0x23,0x0e,0x48,0x4a,0xb4,0xf6, | |
| 1805 | 0xef,0xa7,0x34,0xf4,0x43,0xbc,0x33,0x7f,0x3f,0xa8,0x95,0xdf,0x2c,0x59,0x8d,0x29, | |
| 1806 | 0xa7,0x8e,0x9d,0x44,0x98,0xd5,0x96,0xe6,0x3b,0x8c,0x9d,0x97,0x1a,0xe3,0x23,0xab, | |
| 1807 | 0x0f,0xd7,0xeb,0x4b,0x46,0x38,0x07,0x6c,0x38,0xa4,0xda,0xd6,0xb1,0x88,0x16,0x1d, | |
| 1808 | 0xc9,0x24,0xbe,0xaa,0xed,0x87,0x25,0xb2,0xd7,0x8e,0xec,0x3c,0x91,0xe9,0x07,0x1e, | |
| 1809 | 0x75,0x15,0xb7,0x00,0x2e,0x61,0x90,0x57,0xb7,0xec,0x73,0x69,0x5a,0xa4,0x94,0x4f, | |
| 1810 | 0xb1,0x48,0x75,0xed,0xa8,0x66,0xe8,0xfb,0x78,0x5d,0x10,0xfe,0xac,0x5b,0x5f,0x4e, | |
| 1811 | 0x1f,0x5f,0x98,0x11,0xfb,0x37,0xce,0x3e,0xbb,0x81,0x62,0x9a,0x28,0xad,0x07,0xbd, | |
| 1812 | 0x5e,0xf9,0xc1,0x0d,0xc7,0x73,0xe0,0xc0,0x1e,0xf9,0x09,0xdd,0x6d,0x3b,0x2d,0x3b, | |
| 1813 | 0x0f,0xb6,0x8e,0x80,0xad,0xba,0xc0,0x22,0x43,0x64,0xa5,0x68,0x1b,0xa3,0x6f,0x68, | |
| 1814 | 0xd0,0x36,0xa1,0x0a,0x4c,0xac,0x0e,0x03,0xc9,0x62,0xd7,0xda,0xd3,0x87,0x6f,0xe5, | |
| 1815 | 0x43,0x1a,0x9a,0x4b,0x44,0xe9,0x68,0x03,0x51,0x93,0x3e,0xd3,0x34,0x86,0xcc,0x51, | |
| 1816 | 0x07,0x01,0x17,0xe4,0x35,0x12,0x70,0xc2,0x7a,0x98,0x7a,0xf3,0xde,0x41,0x27,0x4c, | |
| 1817 | 0xbc,0x8b,0xba,0x74,0xc0,0xc6,0xc5,0xe1,0xe3,0x10,0x2b,0xda,0x71,0x56,0x1f,0x76, | |
| 1818 | 0x03,0x59,0x22,0x9b,0x84,0xa5,0x07,0xff,0x2f,0x9b,0xf2,0x29,0x8d,0x67,0x53,0x70, | |
| 1819 | 0x7b,0x0a,0xef,0xf9,0x21,0x50,0xd7,0xbc,0xfb,0xd9,0x6e,0x7f,0xd3,0x13,0x66,0xd8, | |
| 1820 | 0xc4,0x3d,0xc2,0x2f,0x38,0x66,0xd4,0xb9,0xe9,0x6b,0x3f,0x7c,0xe2,0xfb,0xf5,0x51, | |
| 1821 | 0x7e,0x95,0x39,0xdc,0x67,0x87,0x9e,0x94,0x98,0xf0,0x05,0xc1,0x5a,0xbd,0xa2,0x78, | |
| 1822 | 0x4a,0xaf,0xf6,0xa0,0x50,0x53,0xd5,0xef,0xa8,0x08,0x61,0xed,0xdc,0xfb,0x0c,0xee, | |
| 1823 | 0xc7,0x2d,0x98,0x1b,0x92,0x6b,0x1a,0x69,0xb9,0x53,0xf2,0xa0,0x07,0x55,0xd3,0x54, | |
| 1824 | 0x95,0xae,0xc0,0xee,0xce,0x6d,0x0b,0xa3,0x6c,0x72,0x58,0x7a,0x7b,0x69,0x97,0x49, | |
| 1825 | 0x54,0xd2,0x0d,0xb8,0xa2,0xfb,0x4a,0x3b,0x60,0x03,0x33,0x1b,0xd8,0xd9,0xf9,0x6e, | |
| 1826 | 0xa5,0x3a,0x1f,0x19,0xb0,0xb5,0x77,0xd3,0x35,0xa8,0x24,0x24,0xbe,0x43,0x98,0x61, | |
| 1827 | 0x26,0x84,0x96,0xb1,0x97,0x39,0x30,0x0b,0x8c,0x01,0xc9,0x34,0xce,0x4a,0x14,0xc4, | |
| 1828 | 0x79,0x52,0x12,0x21,0xf8,0x29,0x17,0x81,0x03,0xac,0xc5,0xeb,0xa7,0x8b,0x0d,0x36, | |
| 1829 | 0x3e,0x43,0x34,0x08,0x71,0x24,0xcb,0xd7,0x3c,0x4b,0xb5,0xea,0xea,0xa8,0x24,0x57, | |
| 1830 | 0x13,0xf8,0x9b,0x06,0xa4,0xca,0xec,0xac,0xd7,0x7d,0x3b,0xd0,0x35,0xf8,0xc8,0x9a, | |
| 1831 | 0x10,0xe7,0xbb,0x30,0xbc,0x1b,0xa0,0x72,0xe3,0xf5,0x3d,0x2a,0xf3,0x29,0x28,0x72, | |
| 1832 | 0x2b,0xb9,0xc8,0xb6,0x99,0xf7,0x53,0xaf,0x1b,0x85,0xd1,0x68,0x61,0x58,0x17,0x3c, | |
| 1833 | 0xe9,0xaf,0xcc,0xd4,0x01,0x20,0x66,0x2d,0xc7,0x8b,0x2c,0x8f,0x2b,0x23,0x35,0x96, | |
| 1834 | 0xea,0x6b,0x67,0x2c,0x94,0x36,0x78,0x8c,0x86,0xa5,0xef,0xf0,0x2c,0x23,0x22,0xcf, | |
| 1835 | 0x8d,0x39,0x5d,0xf2,0xda,0x29,0x6c,0xf8,0x75,0xb9,0x19,0x50,0x12,0x7f,0x7f,0x37, | |
| 1836 | 0xb3,0xe3,0x08,0xbc,0xaa,0x19,0x6e,0xbe,0x9a,0x2a,0xbc,0xeb,0x76,0xeb,0x4d,0xc2, | |
| 1837 | 0x7f,0x04,0xcb,0x91,0x48,0xe9,0x31,0x77,0xb5,0xe3,0xc9,0x62,0xf6,0x07,0x2d,0x11, | |
| 1838 | 0x90,0x3c,0x48,0x11,0x54,0x38,0x55,0xc3,0x64,0x82,0xde,0x54,0x34,0x71,0xbe,0xc2, | |
| 1839 | 0x86,0x2b,0x1e,0xdd,0x6c,0xa6,0x7b,0x42,0x49,0xa9,0x9d,0x61,0xcf,0xcb,0xa0,0x77, | |
| 1840 | 0x02,0x72,0xee,0x94,0x32,0xd4,0x41,0x95,0x03,0xf8,0xa5,0x29,0x68,0xb4,0x73,0xcf, | |
| 1841 | 0xa2,0xb0,0x56,0xd6,0x45,0x60,0x49,0x5b,0x33,0x0d,0x96,0x4d,0x9e,0xcc,0xd8,0x6b, | |
| 1842 | 0x08,0x85,0xf8,0x43,0x45,0xec,0x32,0x34,0x77,0x8a,0x11,0x6c,0x10,0xb4,0x6d,0xea, | |
| 1843 | 0xd4,0x91,0x73,0x7c,0xd3,0x18,0x9d,0xc0,0x71,0x0e,0xb4,0x26,0x61,0x0b,0xd5,0xec, | |
| 1844 | 0xa4,0x75,0x68,0x1f,0x8e,0x82,0x29,0xa0,0xc0,0x39,0x21,0x1b,0x2e,0x71,0xad,0x11, | |
| 1845 | 0x1a,0xd0,0x75,0xce,0x16,0xcc,0x76,0x73,0x05,0xac,0xf8,0xec,0x19,0x86,0x96,0xf9, | |
| 1846 | 0xd5,0x42,0x3c,0x29,0x0b,0x95,0x24,0xd9,0xde,0x05,0xd7,0x38,0xc1,0xeb,0x31,0x45, | |
| 1847 | 0x75,0x6b,0x5c,0xce,0x0e,0x7d,0xd3,0x72,0xed,0xe6,0x60,0x9f,0xc6,0x3f,0x1d,0x94, | |
| 1848 | 0x9a,0xec,0x76,0x5f,0xbd,0x24,0x24,0xdf,0xd1,0xef,0x32,0xc2,0xc8,0x22,0xfb,0x86, | |
| 1849 | 0xe5,0x63,0x28,0x7b,0xba,0x2b,0xb6,0xbe,0x2a,0xbe,0xed,0x3f,0x68,0x34,0x69,0xbc, | |
| 1850 | 0xf5,0x73,0x14,0xc2,0xa5,0x31,0x29,0xb2,0x99,0xf5,0x32,0xb8,0x45,0x15,0x09,0xd4, | |
| 1851 | 0x6a,0xb9,0xd9,0xd5,0x1c,0xd6,0x1d,0x58,0xbd,0x33,0x9f,0xcc,0xff,0x66,0x7a,0x70, | |
| 1852 | 0xe5,0xd7,0x18,0x53,0xc1,0xba,0x33,0x51,0x36,0x18,0xd7,0x1c,0x36,0xc6,0x5c,0x30, | |
| 1853 | 0x05,0x6b,0x6f,0xdc,0x33,0x7e,0x0a,0x3e,0xa4,0x45,0x77,0x46,0x8b,0xd6,0x50,0xb2, | |
| 1854 | 0x6a,0x18,0x80,0x10,0x12,0xc1,0x42,0xbe,0xa8,0x58,0x20,0xec,0x9d,0x34,0xf5,0x98, | |
| 1855 | 0xb4,0x7b,0xea,0x8f,0xff,0x23,0x7c,0x72,0xe1,0xf3,0x73,0xad,0x0c,0x82,0xeb,0x81, | |
| 1856 | 0x83,0x36,0x4e,0xfa,0x99,0x45,0x56,0xf8,0xef,0xb6,0x0f,0x2a,0x79,0x5f,0xd2,0x0d, | |
| 1857 | 0x78,0xe7,0x4b,0xf0,0x80,0xc5,0x72,0xf2,0x72,0x3f,0x94,0x01,0x82,0x6b,0x4b,0xdc, | |
| 1858 | 0x32,0x31,0x80,0x11,0x54,0x45,0x70,0xff,0x0b,0x30,0xa3,0xd4,0xc9,0x47,0xf5,0x8f, | |
| 1859 | 0x51,0xb1,0x90,0xfe,0xb6,0x64,0xee,0xc0,0x59,0x28,0xdb,0x42,0xed,0x92,0x70,0xc5, | |
| 1860 | 0x76,0x09,0x18,0x56,0x44,0xc3,0x8e,0xd3,0xfc,0xc7,0xdc,0xec,0x8f,0xec,0x5c,0x1e, | |
| 1861 | 0x3f,0xd7,0xba,0xb9,0xa0,0x01,0xef,0xda,0x94,0xae,0x46,0x70,0x4d,0xf5,0x5a,0x3b, | |
| 1862 | 0x4e,0xbe,0x14,0xc7,0x6a,0xbd,0xb1,0x74,0xc2,0x7b,0xb9,0x70,0xc9,0x4e,0x08,0xba, | |
| 1863 | 0x43,0x5b,0xc9,0x21,0x9a,0x74,0x41,0x25,0xd0,0xd6,0x8c,0xa2,0x95,0x08,0x3d,0xbc, | |
| 1864 | 0x50,0x76,0x65,0xc4,0x35,0xd9,0xe2,0x5d,0x4d,0x3c,0x62,0x79,0x6d,0xfa,0x64,0x5b, | |
| 1865 | 0x3b,0xbd,0x35,0x95,0x30,0x7f,0xf6,0x0a,0x90,0x8b,0x94,0xed,0x73,0x7c,0xcd,0xbf, | |
| 1866 | 0xbf,0x3c,0x31,0x53,0x2a,0x06,0x1d,0xcd,0x3b,0x64,0xc0,0x9d,0x48,0x30,0x1a,0x88, | |
| 1867 | 0x79,0x96,0xf7,0x9f,0xc3,0x0f,0xf7,0x45,0xed,0x66,0x89,0x2c,0x8d,0xb5,0xea,0x56, | |
| 1868 | 0x0b,0x68,0x29,0x18,0x9b,0x38,0x25,0x12,0x46,0x31,0x8c,0x37,0xe1,0xac,0xdd,0xca, | |
| 1869 | 0x13,0x54,0x66,0x5e,0x53,0x23,0x46,0xd4,0xe7,0x65,0x6b,0x60,0xe5,0xb3,0x93,0x83, | |
| 1870 | 0x34,0xf9,0x4e,0x11,0x8a,0x6f,0xfa,0x2c,0x6e,0xa2,0xc5,0x46,0x37,0x6c,0xad,0x21, | |
| 1871 | 0x0b,0xf7,0x82,0xd2,0xe0,0xbd,0xe1,0xb8,0x7d,0x89,0x3a,0x89,0x79,0x76,0xca,0x45, | |
| 1872 | 0x39,0xee,0xa1,0x3f,0xf6,0xac,0x9c,0x1b,0xb4,0xb9,0x6a,0xc9,0x4a,0x71,0x8a,0x8e, | |
| 1873 | 0x5f,0x7f,0x4b,0xfa,0x6a,0xdc,0xca,0xf2,0xb1,0xd2,0xf6,0xa7,0x4a,0xfe,0x8e,0x9c, | |
| 1874 | 0x1c,0x49,0x20,0xa3,0xde,0xed,0x0b,0xdf,0x16,0x75,0x7d,0xc2,0x1a,0xbc,0x74,0x0f, | |
| 1875 | 0x11,0xec,0xc0,0xd8,0xf1,0x7f,0xff,0x80,0x82,0x41,0x9f,0xba,0x59,0x4b,0xde,0x87, | |
| 1876 | 0xdc,0x08,0xcc,0x3b,0x44,0x33,0x47,0x78,0x95,0xd6,0xfc,0x2f,0xa7,0x4b,0x6c,0xa5, | |
| 1877 | 0x1f,0x3e,0xe3,0x6b,0x75,0xa8,0x81,0x64,0xef,0xd4,0x35,0xc2,0xa4,0x5d,0xbc,0x08, | |
| 1878 | 0x79,0x2d,0xa5,0x08,0x26,0x7e,0x50,0xe5,0x31,0xdc,0xe9,0x12,0xf1,0x20,0x70,0x50, | |
| 1879 | 0x8b,0x75,0xb3,0xb3,0xf7,0x55,0x51,0x9c,0xfa,0x8c,0xb8,0xbf,0x2c,0x34,0x27,0x1e, | |
| 1880 | 0xf3,0xb6,0xac,0x0b,0x86,0xce,0x25,0x28,0xea,0x86,0x42,0x6a,0xf7,0x39,0x81,0x10, | |
| 1881 | 0x53,0x91,0x30,0xb0,0x75,0x88,0x6d,0x2a,0xa2,0x6a,0x28,0xb1,0xf2,0xd0,0x1e,0xc8, | |
| 1882 | 0x4a,0xa5,0xdf,0x42,0x63,0x23,0xc8,0xc1,0xd6,0x09,0x36,0xbb,0x97,0x9f,0xe6,0x79, | |
| 1883 | 0x92,0x5a,0x62,0xf0,0xd7,0x0c,0xe7,0x6c,0x85,0x98,0xf4,0x30,0xa3,0x08,0x7e,0xf8, | |
| 1884 | 0x3f,0xae,0xbc,0x7d,0x38,0x2d,0xb4,0xcb,0x3c,0x78,0x3c,0x3b,0xca,0xd0,0xfb,0x78, | |
| 1885 | 0x30,0xc8,0x68,0x7c,0x8d,0x44,0xc8,0x93,0xcf,0x74,0x33,0x56,0xb5,0xdd,0x8f,0xb1, | |
| 1886 | 0xcd,0x50,0x93,0xdd,0x75,0xef,0xc4,0x65,0xdd,0x2e,0x7a,0x23,0x02,0xcf,0xdb,0x43, | |
| 1887 | 0xb4,0xe4,0xdd,0x3e,0x91,0xd0,0x47,0xdf,0x06,0x45,0xb0,0x41,0x53,0x47,0x7d,0xce, | |
| 1888 | 0x87,0x26,0xe6,0x41,0x7f,0x86,0xf1,0xa3,0xeb,0x5a,0x75,0x51,0x48,0xe3,0x17,0xf3, | |
| 1889 | 0xe5,0xb5,0x4f,0x85,0xe1,0xb2,0x63,0x51,0x2a,0x0c,0x69,0xf1,0x7f,0x45,0x48,0x51, | |
| 1890 | 0x6e,0x31,0xb7,0xaa,0x56,0xf2,0x3c,0x87,0x65,0xfa,0x2d,0xc3,0x9a,0x0c,0xb1,0x88, | |
| 1891 | 0xc3,0x3b,0xbe,0x50,0x7e,0xe8,0x1c,0xe7,0x3b,0xc7,0x60,0x66,0x38,0xd9,0xf0,0x38, | |
| 1892 | 0x83,0x72,0x05,0x18,0xfa,0x33,0xa3,0x10,0x4d,0x10,0xa2,0x7a,0xf9,0x4b,0xa7,0x02, | |
| 1893 | 0x4e,0x76,0x2a,0xa1,0x69,0x74,0x71,0xa2,0x39,0x77,0x93,0xa0,0x7d,0x02,0x75,0x85, | |
| 1894 | 0xc4,0xe7,0xcf,0x8b,0x6b,0x49,0x27,0x3e,0xa1,0x9b,0xd3,0x77,0x65,0x9e,0xfb,0x61, | |
| 1895 | 0x85,0x66,0x93,0x77,0xa0,0x54,0x64,0x82,0x24,0x1c,0x03,0x9f,0x50,0xbf,0xd7,0x36, | |
| 1896 | 0x32,0x91,0x17,0x03,0xa9,0x34,0xc8,0x10,0x63,0x9a,0xc2,0xb8,0xde,0x06,0xab,0xa5, | |
| 1897 | 0x6a,0x0a,0xfa,0xd1,0x25,0x89,0xf4,0x88,0xfc,0xb6,0xb1,0x63,0xb0,0x12,0x16,0x4d, | |
| 1898 | 0xcd,0x71,0xdb,0x80,0xb4,0xf4,0x87,0x88,0x91,0x0f,0x6e,0x3f,0x65,0x83,0xb9,0xce, | |
| 1899 | 0xfc,0x64,0x5d,0xb1,0xf6,0x14,0x21,0xb2,0xc1,0x45,0x9b,0xec,0x9d,0xfa,0x32,0xc8, | |
| 1900 | 0x96,0x85,0x1d,0x03,0x8c,0x89,0x62,0xa5,0x2d,0xf8,0xd7,0x0a,0xf8,0x16,0x23,0xdc, | |
| 1901 | 0x3b,0x73,0xbd,0x16,0x15,0xf3,0xea,0x01,0x74,0xc9,0xc2,0x39,0x16,0x76,0x2b,0xa9, | |
| 1902 | 0x8b,0xce,0xdc,0x8a,0x31,0xf3,0x5a,0x67,0x35,0x57,0xfd,0x1a,0x98,0xbd,0xeb,0xcf, | |
| 1903 | 0x27,0x37,0x1a,0xff,0x80,0x28,0x51,0x76,0x13,0x42,0x27,0x4c,0x1d,0x88,0x01,0xee, | |
| 1904 | 0xad,0x4d,0x17,0x16,0xa3,0x32,0x6f,0xce,0xab,0x2b,0xe0,0x70,0x45,0x79,0x0f,0xa7, | |
| 1905 | 0xbf,0xb0,0x74,0x6e,0x38,0xb1,0x55,0x0f,0x9f,0xb0,0xc8,0x24,0xb1,0x2f,0xb4,0x99, | |
| 1906 | 0xfd,0x00,0xd0,0xa7,0xe1,0x46,0xa2,0xd9,0x8e,0x73,0x80,0x0a,0xff,0x4a,0x91,0x64, | |
| 1907 | 0x05,0xde,0xcb,0x61,0x3e,0x90,0xf6,0xcd,0x18,0x13,0xa6,0xc1,0xd1,0x6b,0x44,0xa8, | |
| 1908 | 0x79,0xe8,0x06,0x3d,0xed,0x2f,0xf1,0x8a,0xdd,0x31,0xdc,0xe9,0xc6,0x30,0x6f,0x06, | |
| 1909 | 0xf8,0xc0,0x1f,0xda,0x90,0xc3,0x33,0xb0,0x7e,0x6b,0xc2,0x23,0x7f,0x3b,0xb1,0x1d, | |
| 1910 | 0x22,0x06,0xb8,0xd8,0xc6,0xed,0x5d,0xe0,0x9a,0x63,0xf6,0x0e,0x9b,0x2c,0xab,0x8d, | |
| 1911 | 0x98,0x58,0x70,0xd8,0x30,0x4c,0x0e,0xb9,0xd1,0xb8,0x1a,0x4a,0xba,0xa1,0xfb,0xf6, | |
| 1912 | 0xf9,0x58,0xe8,0x78,0x6c,0x80,0xe6,0xdb,0xc3,0x0b,0xcd,0x77,0x7c,0x3c,0x43,0xf9, | |
| 1913 | 0xe5,0xa5,0xbe,0x5a,0x1c,0x29,0x86,0xe6,0x11,0xfb,0xb0,0x36,0x81,0x9c,0x22,0x35, | |
| 1914 | 0xfc,0xdf,0x94,0x1e,0xdf,0xe8,0x8d,0x7a,0x5a,0x27,0x61,0x26,0x6a,0x61,0x39,0x4a, | |
| 1915 | 0xde,0xa7,0x0a,0x62,0x56,0x5c,0x9b,0x38,0x3e,0x32,0x82,0xe7,0xd6,0x2b,0x26,0xd8, | |
| 1916 | 0x2c,0x9c,0xbe,0xc8,0x1f,0x25,0x50,0xbf,0x5d,0xb9,0xb2,0x19,0x65,0x9b,0x8b,0x80, | |
| 1917 | 0x85,0x5e,0x52,0xef,0xdc,0xe3,0x4c,0xaf,0x58,0x5e,0x91,0x5d,0xb8,0x50,0x07,0xe1, | |
| 1918 | 0x89,0x8d,0x65,0x77,0x2c,0x37,0x30,0xa9,0xce,0xc0,0xc0,0x51,0x6d,0xea,0x3b,0x9b, | |
| 1919 | 0xd9,0xca,0x97,0x00,0xaf,0xbf,0x9b,0x4c,0x5f,0x7f,0xde,0x98,0x26,0x0a,0xc5,0x4f, | |
| 1920 | 0x14,0xb3,0x88,0x2b,0x06,0x1e,0x2d,0x38,0xab,0x3b,0x8b,0xcf,0x82,0x4f,0x47,0x9b, | |
| 1921 | 0xda,0xea,0xd9,0x97,0xd0,0xf1,0x87,0x0d,0x53,0x95,0x67,0x97,0x22,0x59,0x60,0x21, | |
| 1922 | 0xcb,0x0f,0x29,0xe4,0xad,0xda,0x47,0x6b,0xf6,0x2c,0x13,0x91,0xa5,0xc8,0xb1,0x80, | |
| 1923 | 0x88,0xc0,0x18,0xb3,0x3d,0x77,0x0f,0xf3,0x34,0xa0,0x2d,0x5c,0xab,0x3c,0xd8,0x59, | |
| 1924 | 0xaf,0x9f,0x46,0xa2,0x21,0x6a,0x7f,0x44,0xad,0x91,0x57,0x99,0xd4,0x56,0x77,0x4a, | |
| 1925 | 0xe2,0x4b,0x54,0x53,0xf8,0x53,0x35,0xfe,0x02,0xa0,0x31,0xe6,0xc0,0xb5,0x2d,0xf5, | |
| 1926 | 0xc1,0x64,0xe1,0x65,0x62,0xd0,0xd3,0xc2,0xd2,0x6c,0x59,0xe5,0x10,0xf9,0x9b,0xf9, | |
| 1927 | 0xea,0x8b,0x8d,0x79,0xff,0x83,0xf8,0x2f,0xbd,0x95,0x71,0x35,0x63,0xc3,0x5f,0xf7, | |
| 1928 | 0xff,0x5f,0xf9,0x2e,0x70,0x0b,0x44,0xe5,0x64,0xbb,0x18,0x76,0x59,0xb1,0x1b,0x8d, | |
| 1929 | 0x9f,0x80,0xc3,0x24,0x54,0x09,0x58,0x84,0x65,0x7f,0xee,0x49,0x93,0x65,0x6e,0x5d, | |
| 1930 | 0x6a,0x8e,0x8d,0xfb,0x4b,0x1b,0xd2,0xad,0x62,0x80,0x94,0x4d,0xaf,0x7f,0xf9,0x06, | |
| 1931 | 0x01,0x29,0xf6,0x53,0xf5,0xe3,0x54,0xfe,0xfa,0x5e,0xa9,0x22,0x4f,0x9d,0x5a,0x29, | |
| 1932 | 0x03,0xf2,0x9f,0xcd,0xf3,0x00,0x7e,0x19,0xce,0xba,0xcd,0x68,0x13,0x61,0x33,0x64, | |
| 1933 | 0x10,0x88,0x27,0x08,0xe3,0x13,0xee,0x9e,0x7c,0x32,0xa0,0xc0,0x99,0x6a,0x23,0x59, | |
| 1934 | 0xc8,0x8c,0x2e,0xa4,0x67,0xba,0x46,0x2b,0xa6,0x68,0xc3,0xc9,0x83,0x58,0xca,0xa7, | |
| 1935 | 0xcb,0x9c,0x54,0x42,0x1f,0x97,0x25,0x62,0xeb,0xfb,0xd5,0x23,0x70,0xcc,0xc9,0xef, | |
| 1936 | 0xba,0x5a,0x39,0x80,0xa9,0x49,0x2b,0xe2,0xec,0x8c,0x76,0x6e,0x00,0x64,0xbf,0xcf, | |
| 1937 | 0x34,0x65,0x7e,0x00,0xa7,0x71,0xf9,0x4b,0x47,0xb9,0x46,0x4b,0xd3,0xc2,0x4c,0xe9, | |
| 1938 | 0xd9,0x5d,0xc2,0x61,0xb8,0xad,0x2d,0x3e,0x9e,0x24,0xe5,0x58,0x8a,0x85,0x10,0xdc, | |
| 1939 | 0x4a,0xe3,0xa5,0x44,0x7d,0x9f,0x69,0x59,0x90,0x6d,0xf4,0x37,0xc4,0x4e,0xac,0x49, | |
| 1940 | 0x26,0x96,0xc7,0x47,0x94,0xe6,0x4d,0x3e,0xbe,0x32,0x12,0x88,0x21,0xbc,0xbf,0xce, | |
| 1941 | 0x0d,0x16,0xc9,0x0c,0x9f,0x22,0x77,0x8d,0xc7,0x15,0xe0,0xe9,0x42,0x6f,0xe9,0x0d, | |
| 1942 | 0x9f,0x03,0x4a,0x33,0x3d,0xf4,0x89,0xe4,0x4a,0xb5,0xfc,0xfc,0xc5,0x07,0xca,0xa5, | |
| 1943 | 0x7d,0xfd,0xea,0x5a,0x0e,0xfb,0x22,0xe5,0xea,0xb2,0x08,0x60,0x4c,0x24,0x03,0x37, | |
| 1944 | 0x45,0xa5,0x4a,0x23,0xb3,0xd7,0xe2,0x2f,0x44,0xac,0xa3,0xb6,0x77,0x67,0x33,0x61, | |
| 1945 | 0x99,0x9a,0x08,0x2d,0xcb,0x28,0x6a,0x62,0xfa,0x44,0x6d,0x9c,0xe4,0x6f,0xfa,0xc5, | |
| 1946 | 0x19,0x7d,0xc6,0x18,0xf6,0x8f,0x58,0x1f,0xab,0x19,0x07,0xb4,0x35,0xdc,0xf8,0x02, | |
| 1947 | 0x63,0xec,0x23,0x84,0xd4,0xab,0x4e,0x04,0xf7,0xcb,0x10,0x9d,0x09,0x4f,0xce,0xb9, | |
| 1948 | 0x19,0x89,0xc0,0x12,0x06,0x1c,0xec,0xb3,0x7e,0xfa,0x28,0xf7,0x00,0x66,0x1b,0x88, | |
| 1949 | 0xda,0xf3,0x3c,0x61,0x2b,0x82,0xd0,0xcc,0xe1,0x47,0xef,0x63,0xba,0xc3,0x7f,0x11, | |
| 1950 | ||
| 1951 | /* data */ | |
| 1952 | 0xfa,0x24,0xd8,0xde,0xfa,0xc2,0x72,0x30,0xa2,0x00,0xeb,0x34,0xb6,0x1e,0xc0,0x61, | |
| 1953 | 0x11,0xf0,0x05,0x0c,0x46,0x48,0xcf,0x88,0xe9,0xfc,0x30,0x29,0x8f,0xe0,0x3f,0x43, | |
| 1954 | 0xcb,0xc6,0x0d,0x2b,0x31,0x84,0xb0,0x34,0x55,0xee,0x3b,0xb3,0xcc,0xd6,0xc3,0xfa, | |
| 1955 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1956 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1957 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1958 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1959 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1960 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1961 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1962 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1963 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1964 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1965 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1966 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1967 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1968 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1969 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1970 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1971 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1972 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1973 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1974 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1975 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1976 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1977 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1978 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1979 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1980 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1981 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1982 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1983 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1984 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1985 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1986 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1987 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1988 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1989 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1990 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1991 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1992 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1993 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1994 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1995 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1996 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1997 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1998 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 1999 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2000 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2001 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2002 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2003 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2004 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2005 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2006 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2007 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2008 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2009 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2010 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2011 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2012 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2013 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2014 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2015 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2016 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2017 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2018 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2019 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2020 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2021 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2022 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2023 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2024 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2025 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2026 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2027 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2028 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2029 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2030 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2031 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2032 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2033 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2034 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2035 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2036 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2037 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2038 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2039 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2040 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2041 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2042 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2043 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2044 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2045 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2046 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2047 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2048 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2049 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2050 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2051 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2052 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2053 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2054 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2055 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2056 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2057 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2058 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2059 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2060 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2061 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2062 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2063 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2064 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2065 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2066 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2067 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2068 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2069 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2070 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2071 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2072 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2073 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2074 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2075 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2076 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2077 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2078 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2079 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2080 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2081 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2082 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2083 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2084 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2085 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2086 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2087 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2088 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2089 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2090 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2091 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2092 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2093 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2094 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2095 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2096 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2097 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2098 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2099 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2100 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2101 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2102 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2103 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2104 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2105 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2106 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2107 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2108 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2109 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2110 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2111 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2112 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2113 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2114 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2115 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2116 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2117 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2118 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2119 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2120 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2121 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2122 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2123 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2124 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2125 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2126 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2127 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2128 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2129 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2130 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2131 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2132 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2133 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2134 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2135 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2136 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2137 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2138 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2139 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2140 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2141 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2142 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2143 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2144 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2145 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2146 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2147 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2148 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2149 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2150 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2151 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2152 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2153 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2154 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2155 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2156 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2157 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2158 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2159 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2160 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2161 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2162 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2163 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2164 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2165 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2166 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2167 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2168 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2169 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2170 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2171 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2172 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2173 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2174 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2175 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2176 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2177 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2178 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2179 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2180 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2181 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2182 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2183 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2184 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2185 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2186 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2187 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2188 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2189 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2190 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2191 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2192 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2193 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2194 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2195 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2196 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2197 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2198 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2199 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2200 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2201 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2202 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2203 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2204 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2205 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2206 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2207 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 2208 | }; | |
| 2209 | ||
| 2210 | ||
| 2211 | /* 317-0024 FD1089B */ | |
| 2212 | static const UINT8 key_0024[0x2000] = | |
| 2213 | { | |
| 2214 | /* opcodes */ | |
| 2215 | 0xa7,0x54,0x38,0xa4,0x33,0xb6,0x24,0x8d,0x07,0x9d,0x45,0xca,0xbc,0x66,0xb7,0x36, | |
| 2216 | 0xf1,0x6c,0x95,0xad,0x3f,0x0c,0xfb,0x0c,0x44,0xa1,0x06,0x2e,0x9c,0x87,0xd1,0xf0, | |
| 2217 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2218 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2219 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2220 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2221 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2222 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2223 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2224 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2225 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2226 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2227 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2228 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2229 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2230 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2231 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2232 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2233 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2234 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2235 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2236 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2237 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2238 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2239 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2240 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2241 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2242 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2243 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2244 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2245 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2246 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2247 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2248 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2249 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2250 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2251 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2252 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2253 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2254 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2255 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2256 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2257 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2258 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2259 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2260 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2261 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2262 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2263 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2264 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2265 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2266 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2267 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2268 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2269 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2270 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2271 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2272 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2273 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2274 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2275 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2276 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2277 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2278 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2279 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2280 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2281 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2282 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2283 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2284 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2285 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2286 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2287 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2288 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2289 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2290 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2291 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2292 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2293 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2294 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2295 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2296 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2297 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2298 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2299 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2300 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2301 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2302 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2303 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2304 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2305 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2306 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2307 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2308 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2309 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2310 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2311 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2312 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2313 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2314 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2315 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2316 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2317 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2318 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2319 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2320 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2321 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2322 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2323 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2324 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2325 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2326 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2327 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2328 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2329 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2330 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2331 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2332 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2333 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2334 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2335 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2336 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2337 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2338 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2339 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2340 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2341 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2342 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2343 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2344 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2345 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2346 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2347 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2348 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2349 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2350 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2351 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2352 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2353 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2354 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2355 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2356 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2357 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2358 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2359 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2360 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2361 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2362 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2363 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2364 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2365 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2366 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2367 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2368 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2369 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2370 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2371 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2372 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2373 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2374 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2375 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2376 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2377 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2378 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2379 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2380 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2381 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2382 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2383 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2384 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2385 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2386 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2387 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2388 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2389 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2390 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2391 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2392 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2393 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2394 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2395 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2396 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2397 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2398 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2399 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2400 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2401 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2402 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2403 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2404 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2405 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2406 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2407 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2408 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2409 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2410 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2411 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2412 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2413 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2414 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2415 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2416 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2417 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2418 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2419 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2420 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2421 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2422 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2423 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2424 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2425 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2426 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2427 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2428 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2429 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2430 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2431 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2432 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2433 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2434 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2435 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2436 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2437 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2438 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2439 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2440 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2441 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2442 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2443 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2444 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2445 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2446 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2447 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2448 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2449 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2450 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2451 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2452 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2453 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2454 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2455 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2456 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2457 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2458 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2459 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2460 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2461 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2462 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2463 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2464 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2465 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2466 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2467 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2468 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2469 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2470 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2471 | ||
| 2472 | /* data */ | |
| 2473 | 0x3e,0x82,0x66,0x32,0x8d,0xed,0x09,0x45,0x24,0xb8,0x13,0xb5,0xfe,0x9d,0xfe,0xbe, | |
| 2474 | 0x19,0x59,0x47,0x9c,0x70,0xa8,0x6a,0x8b,0xfe,0x46,0xe3,0xc7,0xc1,0xef,0x2e,0x8c, | |
| 2475 | 0xb3,0x5e,0xc7,0x16,0xd2,0x51,0x2a,0xa0,0x18,0x83,0xd3,0x68,0x82,0xaf,0x3d,0xa9, | |
| 2476 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2477 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2478 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2479 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2480 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2481 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2482 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2483 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2484 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2485 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2486 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2487 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2488 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2489 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2490 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2491 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2492 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2493 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2494 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2495 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2496 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2497 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2498 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2499 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2500 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2501 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2502 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2503 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2504 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2505 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2506 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2507 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2508 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2509 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2510 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2511 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2512 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2513 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2514 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2515 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2516 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2517 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2518 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2519 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2520 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2521 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2522 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2523 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2524 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2525 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2526 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2527 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2528 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2529 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2530 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2531 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2532 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2533 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2534 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2535 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2536 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2537 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2538 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2539 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2540 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2541 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2542 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2543 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2544 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2545 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2546 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2547 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2548 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2549 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2550 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2551 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2552 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2553 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2554 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2555 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2556 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2557 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2558 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2559 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2560 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2561 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2562 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2563 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2564 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2565 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2566 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2567 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2568 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2569 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2570 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2571 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2572 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2573 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2574 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2575 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2576 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2577 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2578 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2579 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2580 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2581 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2582 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2583 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2584 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2585 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2586 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2587 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2588 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2589 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2590 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2591 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2592 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2593 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2594 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2595 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2596 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2597 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2598 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2599 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2600 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2601 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2602 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2603 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2604 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2605 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2606 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2607 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2608 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2609 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2610 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2611 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2612 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2613 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2614 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2615 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2616 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2617 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2618 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2619 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2620 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2621 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2622 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2623 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2624 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2625 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2626 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2627 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2628 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2629 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2630 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2631 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2632 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2633 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2634 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2635 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2636 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2637 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2638 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2639 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2640 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2641 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2642 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2643 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2644 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2645 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2646 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2647 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2648 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2649 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2650 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2651 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2652 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2653 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2654 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2655 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2656 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2657 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2658 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2659 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2660 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2661 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2662 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2663 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2664 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2665 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2666 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2667 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2668 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2669 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2670 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2671 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2672 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2673 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2674 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2675 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2676 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2677 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2678 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2679 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2680 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2681 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2682 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2683 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2684 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2685 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2686 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2687 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2688 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2689 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2690 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2691 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2692 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2693 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2694 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2695 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2696 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2697 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2698 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2699 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2700 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2701 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2702 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2703 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2704 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2705 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2706 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2707 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2708 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2709 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2710 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2711 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2712 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2713 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2714 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2715 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2716 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2717 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2718 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2719 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2720 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2721 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2722 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2723 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2724 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2725 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2726 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2727 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2728 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2729 | }; | |
| 2730 | ||
| 2731 | ||
| 2732 | /* 317-0027 FD1089B */ | |
| 2733 | /* 317-0028 FD1089A */ | |
| 2734 | static const UINT8 key_0027_0028[0x2000] = | |
| 2735 | { | |
| 2736 | /* opcodes */ | |
| 2737 | 0xf9,0xac,0xe2,0x07,0x65,0x2c,0x87,0xa9,0xdd,0x99,0x8b,0xa9,0x44,0x16,0x4f,0xac, | |
| 2738 | 0x80,0xc8,0x3a,0x55,0x72,0xd2,0xae,0x49,0x01,0x58,0x0f,0x2c,0x0e,0x80,0xc2,0xa1, | |
| 2739 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2740 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2741 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2742 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2743 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2744 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2745 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2746 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2747 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2748 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2749 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2750 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2751 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2752 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2753 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2754 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2755 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2756 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2757 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2758 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2759 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2760 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2761 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2762 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2763 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2764 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2765 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2766 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2767 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2768 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2769 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2770 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2771 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2772 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2773 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2774 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2775 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2776 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2777 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2778 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2779 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2780 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2781 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2782 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2783 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2784 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2785 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2786 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2787 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2788 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2789 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2790 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2791 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2792 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2793 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2794 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2795 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2796 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2797 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2798 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2799 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2800 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2801 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2802 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2803 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2804 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2805 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2806 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2807 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2808 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2809 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2810 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2811 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2812 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2813 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2814 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2815 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2816 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2817 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2818 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2819 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2820 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2821 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2822 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2823 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2824 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2825 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2826 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2827 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2828 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2829 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2830 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2831 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2832 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2833 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2834 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2835 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2836 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2837 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2838 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2839 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2840 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2841 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2842 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2843 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2844 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2845 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2846 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2847 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2848 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2849 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2850 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2851 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2852 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2853 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2854 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2855 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2856 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2857 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2858 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2859 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2860 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2861 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2862 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2863 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2864 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2865 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2866 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2867 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2868 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2869 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2870 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2871 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2872 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2873 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2874 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2875 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2876 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2877 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2878 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2879 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2880 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2881 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2882 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2883 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2884 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2885 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2886 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2887 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2888 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2889 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2890 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2891 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2892 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2893 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2894 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2895 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2896 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2897 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2898 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2899 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2900 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2901 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2902 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2903 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2904 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2905 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2906 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2907 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2908 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2909 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2910 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2911 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2912 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2913 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2914 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2915 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2916 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2917 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2918 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2919 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2920 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2921 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2922 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2923 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2924 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2925 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2926 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2927 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2928 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2929 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2930 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2931 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2932 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2933 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2934 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2935 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2936 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2937 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2938 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2939 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2940 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2941 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2942 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2943 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2944 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2945 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2946 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2947 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2948 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2949 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2950 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2951 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2952 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2953 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2954 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2955 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2956 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2957 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2958 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2959 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2960 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2961 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2962 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2963 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2964 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2965 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2966 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2967 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2968 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2969 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2970 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2971 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2972 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2973 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2974 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2975 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2976 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2977 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2978 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2979 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2980 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2981 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2982 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2983 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2984 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2985 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2986 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2987 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2988 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2989 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2990 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2991 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2992 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2993 | ||
| 2994 | /* data */ | |
| 2995 | 0x82,0xe1,0xf4,0x85,0x20,0x9e,0xbe,0xac,0x97,0x3f,0x84,0xf8,0x6d,0x87,0x4b,0xad, | |
| 2996 | 0x25,0x3a,0x15,0x0f,0x43,0x1c,0xe7,0x62,0x4b,0xf1,0xc6,0xea,0xc1,0x7d,0xb4,0xeb, | |
| 2997 | 0x29,0x85,0xb7,0xaa,0x07,0xad,0xd3,0x1d,0x21,0xad,0xd8,0x11,0x33,0x8e,0xff,0xf9, | |
| 2998 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 2999 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3000 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3001 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3002 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3003 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3004 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3005 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3006 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3007 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3008 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3009 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3010 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3011 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3012 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3013 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3014 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3015 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3016 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3017 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3018 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3019 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3020 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3021 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3022 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3023 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3024 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3025 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3026 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3027 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3028 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3029 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3030 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3031 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3032 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3033 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3034 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3035 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3036 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3037 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3038 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3039 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3040 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3041 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3042 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3043 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3044 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3045 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3046 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3047 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3048 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3049 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3050 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3051 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3052 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3053 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3054 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3055 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3056 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3057 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3058 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3059 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3060 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3061 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3062 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3063 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3064 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3065 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3066 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3067 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3068 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3069 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3070 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3071 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3072 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3073 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3074 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3075 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3076 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3077 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3078 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3079 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3080 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3081 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3082 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3083 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3084 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3085 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3086 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3087 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3088 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3089 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3090 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3091 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3092 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3093 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3094 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3095 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3096 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3097 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3098 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3099 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3100 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3101 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3102 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3103 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3104 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3105 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3106 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3107 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3108 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3109 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3110 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3111 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3112 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3113 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3114 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3115 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3116 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3117 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3118 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3119 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3120 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3121 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3122 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3123 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3124 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3125 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3126 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3127 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3128 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3129 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3130 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3131 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3132 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3133 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3134 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3135 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3136 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3137 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3138 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3139 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3140 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3141 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3142 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3143 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3144 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3145 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3146 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3147 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3148 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3149 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3150 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3151 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3152 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3153 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3154 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3155 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3156 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3157 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3158 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3159 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3160 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3161 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3162 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3163 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3164 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3165 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3166 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3167 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3168 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3169 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3170 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3171 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3172 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3173 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3174 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3175 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3176 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3177 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3178 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3179 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3180 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3181 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3182 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3183 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3184 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3185 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3186 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3187 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3188 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3189 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3190 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3191 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3192 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3193 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3194 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3195 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3196 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3197 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3198 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3199 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3200 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3201 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3202 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3203 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3204 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3205 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3206 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3207 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3208 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3209 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3210 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3211 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3212 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3213 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3214 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3215 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3216 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3217 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3218 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3219 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3220 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3221 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3222 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3223 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3224 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3225 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3226 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3227 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3228 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3229 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3230 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3231 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3232 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3233 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3234 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3235 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3236 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3237 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3238 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3239 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3240 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3241 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3242 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3243 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3244 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3245 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3246 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3247 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3248 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3249 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3250 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 3251 | }; | |
| 3252 | ||
| 3253 | ||
| 3254 | /* 317-0033 FD1089A */ | |
| 3255 | /* 317-0037 FD1089B */ | |
| 3256 | static const UINT8 key_0033_0037[0x2000] = | |
| 3257 | { | |
| 3258 | /* opcodes */ | |
| 3259 | 0x4b,0x04,0x8b,0x6a,0x97,0xa3,0xea,0xc4,0xb3,0x94,0xd0,0x88,0xcd,0xc6,0xe8,0x22, | |
| 3260 | 0x0f,0x23,0xdf,0xfe,0xa5,0x98,0x60,0x87,0xbd,0x10,0x19,0x2a,0x81,0x78,0xb4,0x52, | |
| 3261 | 0x1e,0xbc,0xdd,0x6c,0xbf,0xc8,0x42,0xe4,0x92,0x87,0x8d,0x26,0xc0,0xe6,0x6a,0x9d, | |
| 3262 | 0x78,0x10,0xd1,0xed,0x87,0xce,0xb6,0x0d,0xe4,0x26,0x33,0x6c,0x8e,0xb2,0xdd,0xfd, | |
| 3263 | 0x31,0x39,0xf9,0xe2,0x2c,0xb7,0x7d,0x6b,0x8b,0x54,0x0f,0x1b,0x0c,0x6b,0x03,0xa2, | |
| 3264 | 0x1d,0x84,0x60,0xe3,0xdb,0x58,0xdb,0xef,0x14,0xd3,0xd9,0x06,0x45,0x0d,0x70,0x9c, | |
| 3265 | 0x9c,0x4f,0x66,0x51,0xf6,0x13,0x2f,0xf7,0xe0,0x02,0xf2,0x8f,0x99,0xf7,0x84,0x4a, | |
| 3266 | 0x0d,0xfa,0x6a,0x8c,0xdb,0x46,0xda,0xe4,0x4f,0x43,0xba,0x14,0x68,0x8b,0x9f,0x0e, | |
| 3267 | 0xd2,0xe7,0xce,0xf3,0xeb,0x51,0x3c,0x15,0xc1,0xf4,0x91,0xf6,0x11,0x27,0x20,0x46, | |
| 3268 | 0x49,0x74,0xf0,0xe7,0x85,0x96,0xb5,0xeb,0x95,0x75,0xd6,0x94,0xf5,0x2c,0x68,0x52, | |
| 3269 | 0xd2,0x02,0x30,0xc8,0x0b,0x73,0xa5,0xc7,0x2c,0x28,0xea,0x4f,0x74,0xf9,0xd7,0x94, | |
| 3270 | 0xcf,0xf1,0xf0,0xf6,0xdb,0x49,0x6b,0x06,0xe6,0x6b,0x2d,0x87,0xed,0xf0,0xcd,0x6a, | |
| 3271 | 0x9e,0xa1,0x8e,0xd0,0x56,0x78,0x68,0x0b,0x23,0x9f,0xff,0x9c,0xc1,0x6f,0xa9,0x35, | |
| 3272 | 0xa0,0x71,0x6b,0xb7,0xdc,0x60,0xfc,0x34,0x42,0x24,0xbf,0xee,0x50,0xd7,0xcc,0x55, | |
| 3273 | 0x35,0xc2,0xe7,0x0b,0xcc,0x60,0x86,0xe2,0xa4,0x59,0xcf,0xdc,0xfa,0x87,0x96,0x29, | |
| 3274 | 0xbc,0xf4,0x62,0x2c,0x87,0xd9,0x67,0x75,0xa9,0x9f,0x8c,0xc7,0x1f,0xe1,0x67,0x13, | |
| 3275 | 0x96,0x67,0x3b,0x79,0x6d,0x2b,0xff,0x4d,0xb0,0x56,0x59,0x0f,0x1e,0x43,0x9e,0x70, | |
| 3276 | 0x23,0x7a,0xd3,0x53,0xde,0xb5,0xae,0xc9,0x1b,0xde,0x95,0x13,0x58,0x0e,0x9c,0xa3, | |
| 3277 | 0xc3,0x8e,0x8a,0x1a,0x39,0xd8,0xd4,0x4a,0x48,0x96,0x9f,0x35,0x2d,0xa1,0xc1,0x0b, | |
| 3278 | 0xd5,0x03,0xbf,0x2e,0xdf,0xf4,0xd0,0x30,0x98,0xdf,0xd8,0xd3,0xfc,0x5e,0x6c,0x07, | |
| 3279 | 0xbb,0x38,0xd4,0xee,0x30,0x69,0x03,0xdb,0x6a,0x19,0x9f,0x4d,0x27,0xa3,0xff,0xf8, | |
| 3280 | 0xd3,0x8f,0x27,0xbc,0x8c,0x97,0xcd,0xaa,0x20,0xa4,0x56,0x05,0x0c,0xd1,0xd8,0x3e, | |
| 3281 | 0x7d,0x66,0x19,0xf6,0x52,0xdd,0x8d,0xfe,0x18,0xe0,0x5b,0x59,0x0b,0x47,0x58,0x38, | |
| 3282 | 0x1b,0x1e,0x09,0xfc,0xe3,0x9c,0xa4,0x37,0xb2,0x2c,0x0f,0xaa,0x86,0x67,0xde,0x47, | |
| 3283 | 0x0b,0x16,0x58,0x30,0x9f,0x34,0x72,0xb5,0x50,0xe9,0xd2,0x58,0xdb,0x8f,0xcc,0xcb, | |
| 3284 | 0xae,0xaf,0x66,0xf0,0xe6,0x04,0x57,0xd7,0x50,0x76,0x03,0xc3,0x6b,0x20,0x80,0x24, | |
| 3285 | 0x64,0x49,0x93,0x9d,0x17,0x6d,0xb3,0xfe,0x13,0x35,0x03,0x4a,0x96,0x79,0x5b,0xb1, | |
| 3286 | 0x8c,0x44,0x3f,0x96,0x93,0xcf,0xe5,0x8a,0xf9,0x84,0x32,0x4e,0xbb,0xfc,0xbc,0xd4, | |
| 3287 | 0x87,0x00,0xc9,0x3d,0xba,0x8a,0x4e,0xdb,0x62,0xc4,0xf0,0x2f,0x3c,0x07,0x05,0xeb, | |
| 3288 | 0xb5,0xdc,0x92,0xf0,0xec,0xfe,0x4d,0x50,0xad,0x55,0x9c,0x4c,0x77,0xfb,0x94,0x56, | |
| 3289 | 0x76,0x39,0xfa,0x10,0x88,0x8a,0x44,0x4a,0x3b,0x96,0x97,0x07,0xcc,0x37,0xca,0x77, | |
| 3290 | 0x29,0x77,0x61,0xfc,0xef,0x8f,0x91,0x29,0x6c,0xe8,0x41,0xbe,0x9d,0x1d,0x06,0xac, | |
| 3291 | 0x30,0xf6,0x26,0x16,0x81,0x6d,0x95,0x4d,0xa0,0xab,0xfa,0xd1,0x48,0x0b,0xaa,0x56, | |
| 3292 | 0xe9,0x15,0xaa,0xbc,0x9e,0x83,0xb0,0x15,0x36,0x3f,0x21,0xa2,0x2e,0x62,0x14,0xd5, | |
| 3293 | 0xb4,0x35,0x4d,0x4f,0xa5,0x32,0x41,0xe2,0x8f,0x03,0x18,0x8f,0xaf,0x81,0xa5,0x88, | |
| 3294 | 0xf3,0xb6,0x6e,0x2f,0xf7,0xda,0xaa,0x14,0x0b,0x59,0x3d,0xf9,0x2b,0xca,0xbc,0xd1, | |
| 3295 | 0x04,0xf7,0x6f,0xbb,0xf4,0xdb,0x49,0x0a,0x0a,0x9e,0xf0,0x01,0x9b,0xbb,0x0d,0x48, | |
| 3296 | 0x5a,0xae,0x54,0xfc,0x95,0x7e,0x26,0xeb,0x35,0x93,0xc4,0x92,0x55,0x00,0x9f,0x1f, | |
| 3297 | 0x3d,0x8b,0x5a,0x6e,0x67,0xab,0xc6,0x0f,0x7d,0x84,0xe4,0x3e,0x57,0xec,0xe6,0xe8, | |
| 3298 | 0x01,0x68,0x2d,0xac,0xb2,0x2e,0x4b,0xd6,0xd5,0x24,0x01,0x64,0x03,0xde,0x41,0x04, | |
| 3299 | 0x05,0xa3,0x2c,0x13,0xd6,0x68,0x14,0x9f,0x9e,0xd2,0x7b,0x65,0xb7,0x38,0x11,0xd3, | |
| 3300 | 0xaa,0x9d,0xb8,0x06,0x32,0xb9,0x83,0xcc,0x37,0xf0,0xb1,0xa1,0xd4,0x58,0xb6,0xb5, | |
| 3301 | 0x51,0xb6,0x31,0xe4,0x27,0x80,0xf6,0xbb,0x02,0xdc,0x05,0x78,0xb9,0x9f,0x8f,0x09, | |
| 3302 | 0x57,0x4e,0xf7,0x0c,0x15,0x1f,0xce,0xcd,0x5d,0xf7,0xd5,0x4a,0xc8,0x6c,0xfd,0x31, | |
| 3303 | 0x1f,0xc4,0x69,0xdf,0x5c,0xf4,0x6a,0x61,0xa9,0xa1,0x81,0x76,0x5f,0x21,0x60,0x8b, | |
| 3304 | 0x07,0x79,0xe9,0xbc,0x5c,0x5f,0x2c,0xd9,0x46,0x39,0x6b,0x5d,0xdf,0x1c,0x18,0x77, | |
| 3305 | 0x70,0xcd,0xd4,0x05,0x74,0xc2,0x72,0x93,0x93,0x20,0xf1,0x5f,0xa7,0xbe,0x84,0x57, | |
| 3306 | 0xba,0x1f,0x8d,0x18,0x05,0x7b,0x9c,0xef,0xf1,0xb6,0x74,0xdb,0x19,0x66,0x06,0x89, | |
| 3307 | 0x45,0xd1,0x73,0x56,0x6f,0xeb,0x0c,0x4f,0xc0,0x5b,0x54,0x33,0x93,0x76,0xfc,0x6e, | |
| 3308 | 0x70,0x41,0xe5,0x1e,0x11,0x72,0x20,0x11,0x60,0x6e,0xf1,0xc5,0x76,0x4c,0xc6,0x66, | |
| 3309 | 0x9c,0xd0,0x44,0xd2,0x4c,0x6f,0x3a,0x96,0x30,0x50,0xaa,0xf1,0x21,0x49,0xc6,0xd0, | |
| 3310 | 0x29,0xdd,0xef,0xd0,0x81,0x44,0xb7,0x3e,0x92,0x61,0xe0,0x19,0xf6,0xcc,0x5a,0x0d, | |
| 3311 | 0x76,0xc9,0x48,0x79,0x0d,0x4f,0xfa,0x69,0xe4,0x01,0xf3,0x9b,0x53,0x37,0xe3,0x7d, | |
| 3312 | 0xe5,0xf4,0xad,0x2c,0x53,0xf0,0x61,0x76,0x86,0x8f,0x42,0xd8,0x99,0xe8,0xc1,0x80, | |
| 3313 | 0xd4,0xbe,0x7f,0x4b,0xb1,0x89,0x4d,0xc6,0xda,0x6d,0x2e,0x30,0x27,0x53,0x75,0xa4, | |
| 3314 | 0x87,0x1d,0x34,0x88,0x78,0x1e,0xb9,0x3e,0xf9,0x18,0x03,0x5f,0x9e,0xfb,0xbe,0xb4, | |
| 3315 | 0xae,0xe9,0x48,0x38,0x1e,0x34,0xaf,0x13,0x93,0x5d,0xb0,0x9f,0x63,0x16,0xb9,0x66, | |
| 3316 | 0x94,0x41,0xe6,0x20,0xdb,0xee,0x07,0xb9,0x9d,0x60,0x98,0x48,0xf0,0x07,0xc6,0x18, | |
| 3317 | 0x99,0x86,0x70,0xa2,0x0e,0xad,0x22,0x8f,0x75,0x7f,0x1b,0xb9,0xa2,0x2d,0x47,0x2a, | |
| 3318 | 0x1d,0x18,0x44,0x1c,0x18,0xd1,0x60,0xf6,0x7c,0x1b,0x98,0x54,0xdc,0xe7,0x9a,0xfe, | |
| 3319 | 0x7f,0x56,0xc3,0xee,0x59,0xba,0x21,0x4e,0x11,0x94,0x70,0x77,0xfc,0x96,0x20,0xf2, | |
| 3320 | 0x20,0xa1,0x4d,0x7a,0x31,0xc7,0xc4,0xf7,0x96,0x49,0x03,0x83,0x64,0x9a,0x39,0x67, | |
| 3321 | 0x60,0x59,0x41,0x1e,0x00,0x59,0xaa,0x50,0x69,0x9c,0xb1,0xd7,0x71,0x52,0x44,0xbd, | |
| 3322 | 0x9e,0xde,0x00,0x3b,0x25,0xd0,0x33,0xba,0xeb,0xeb,0xda,0xd5,0x86,0x1f,0xa2,0x54, | |
| 3323 | 0x3c,0x8f,0xea,0x31,0x01,0x8c,0xbe,0x95,0x7c,0x97,0xdd,0xdb,0x01,0x61,0xb3,0x8b, | |
| 3324 | 0x98,0xcd,0x5f,0x5f,0xf4,0xec,0xad,0x41,0x7b,0xff,0x1b,0x4a,0x44,0x78,0xd7,0xc3, | |
| 3325 | 0x12,0xf8,0xbe,0x27,0x5d,0x51,0x5e,0x1e,0x49,0x84,0xf4,0x81,0xac,0xc3,0x6d,0x5c, | |
| 3326 | 0x0c,0x70,0x68,0xe7,0x9d,0x1b,0x32,0x8b,0x46,0x86,0xc7,0xe2,0x9c,0xa4,0xd7,0xb6, | |
| 3327 | 0xe4,0x94,0xbd,0xff,0x14,0xaa,0x88,0xe9,0xd2,0x65,0xf6,0xcb,0x72,0x79,0x73,0x30, | |
| 3328 | 0xfb,0xc5,0x1d,0xd1,0x22,0x5d,0xc2,0x97,0x4c,0x81,0xdf,0x9d,0x8f,0xa2,0xa1,0x2b, | |
| 3329 | 0xb1,0x63,0xe7,0xbb,0x27,0x95,0x3e,0xf7,0x16,0x39,0xe2,0xb8,0x53,0x81,0xc3,0x07, | |
| 3330 | 0x66,0xce,0x7c,0x1e,0x82,0xb2,0x5c,0x67,0x8d,0xee,0x61,0x7b,0x1e,0x74,0x37,0x23, | |
| 3331 | 0x79,0x65,0x3c,0x5a,0x94,0x13,0x7e,0x48,0x14,0x00,0xba,0x47,0x4f,0xdc,0x5e,0xe1, | |
| 3332 | 0x4b,0x8a,0x87,0xce,0xbd,0x1a,0x02,0xfa,0x0a,0xce,0x4e,0x7c,0x47,0x19,0x98,0x9f, | |
| 3333 | 0x3c,0x9a,0xbc,0xdc,0x5c,0x25,0x49,0xdc,0xce,0xba,0x7d,0x7a,0x66,0x8a,0x44,0xbe, | |
| 3334 | 0xab,0xf8,0x3c,0xe2,0xd2,0x95,0xb3,0x4f,0xc1,0x22,0xa6,0xa0,0x0c,0x90,0xc3,0x9d, | |
| 3335 | 0xfa,0x03,0x67,0x7f,0xc9,0xa0,0xb3,0x42,0x67,0x2b,0x4f,0x98,0x8b,0x75,0x9d,0x87, | |
| 3336 | 0x1a,0x9d,0x58,0xc3,0x23,0x6f,0x68,0xb3,0xe8,0x6a,0xe7,0x6b,0xdb,0xba,0x1f,0xb3, | |
| 3337 | 0x9e,0x3d,0x88,0xfe,0x01,0x81,0xcd,0x72,0x06,0xc4,0xc8,0xe5,0xe0,0xf1,0x80,0xdd, | |
| 3338 | 0xee,0xa8,0x31,0x8f,0xc4,0x36,0x44,0xe0,0x21,0x98,0x51,0x66,0xf9,0x7c,0x23,0x66, | |
| 3339 | 0x6c,0x3e,0xb3,0xd7,0xcb,0xee,0x2a,0x5d,0x99,0x47,0xe3,0x4d,0x87,0xb9,0x66,0xae, | |
| 3340 | 0x76,0x5f,0x6d,0x35,0x78,0x08,0xe2,0x48,0xce,0x31,0xde,0xfb,0xea,0x08,0xaa,0x15, | |
| 3341 | 0x6d,0x6a,0xc1,0x0b,0x29,0xe5,0xcb,0x02,0x1f,0xb6,0xa2,0xd0,0x81,0xcb,0x4f,0xfb, | |
| 3342 | 0xb0,0xc1,0x0d,0xb7,0x3f,0xe5,0x44,0xeb,0xed,0x36,0x8e,0x2c,0xad,0x60,0xb5,0xbf, | |
| 3343 | 0xa1,0xc1,0xb1,0x9a,0x19,0x68,0xae,0x63,0x98,0x10,0x03,0x6e,0xce,0x28,0x3b,0xc2, | |
| 3344 | 0x9e,0xcd,0x0f,0x14,0x19,0xcd,0x68,0xc9,0x7f,0xa5,0x61,0xf7,0x44,0x83,0x42,0x64, | |
| 3345 | 0x08,0x43,0x85,0x84,0x9d,0x75,0xd4,0x7e,0x04,0x55,0x08,0x27,0x6e,0xd0,0x2a,0x04, | |
| 3346 | 0x3f,0x85,0x74,0x4c,0x05,0xc0,0x50,0xe2,0x85,0x7f,0x57,0x5e,0xae,0x70,0x52,0x04, | |
| 3347 | 0xa2,0xf1,0x3c,0xca,0xb3,0x0d,0x3d,0x55,0x62,0x84,0xaf,0xfb,0x62,0xc3,0x1c,0xc2, | |
| 3348 | 0x92,0xe7,0x3c,0x5e,0x05,0xbe,0xfb,0x36,0xfd,0xc5,0x70,0x5f,0xea,0x29,0xe6,0x9f, | |
| 3349 | 0x6f,0xc9,0xd6,0x6a,0x5d,0x31,0xe9,0xe7,0xb4,0x9f,0xfa,0xea,0xa8,0x01,0x11,0xfa, | |
| 3350 | 0x99,0xf5,0x68,0x4c,0x18,0xc7,0x68,0xc5,0xe8,0x75,0xac,0xfc,0xfa,0xad,0xfc,0x34, | |
| 3351 | 0x6f,0xcc,0x52,0x65,0x99,0xdf,0xd8,0x33,0xf9,0xa5,0xe7,0xf4,0x41,0x8b,0x09,0xae, | |
| 3352 | 0x52,0xad,0xf6,0x15,0x3e,0xdb,0x99,0x90,0x47,0x90,0x0b,0x33,0xdd,0xfb,0x96,0xc5, | |
| 3353 | 0xa2,0xfa,0xb2,0xbb,0x68,0x19,0x0a,0x3b,0x31,0x96,0x78,0x19,0x2d,0x5f,0x03,0xdc, | |
| 3354 | 0xbf,0x11,0xe7,0xb9,0x77,0xfa,0x8d,0x95,0x18,0x16,0x8d,0x06,0x92,0x15,0xb2,0x51, | |
| 3355 | 0x08,0x53,0xf5,0x6d,0xcb,0xdd,0x80,0xfd,0x5c,0x72,0xab,0x59,0x6c,0x7e,0x01,0x85, | |
| 3356 | 0xde,0x1f,0x3c,0x37,0xc3,0x23,0x43,0xd5,0x5c,0x08,0x32,0x73,0x1b,0xfa,0x51,0xd8, | |
| 3357 | 0xa1,0xd7,0x1b,0x79,0xc0,0x2d,0x38,0x7b,0x7a,0x38,0x82,0xb4,0xff,0xe8,0x02,0xaa, | |
| 3358 | 0xb1,0xd9,0xf3,0x91,0x22,0x58,0xbd,0x50,0x14,0x64,0xfa,0x7c,0x77,0xa9,0x74,0x5a, | |
| 3359 | 0x6d,0x86,0x24,0xe0,0x49,0x07,0x33,0xb4,0x8a,0xea,0xfb,0x2a,0xe4,0x9d,0x06,0x49, | |
| 3360 | 0x37,0x3d,0x0d,0xc6,0x94,0x98,0xfa,0x06,0x3e,0x2b,0xe5,0x1f,0xa6,0x24,0x19,0xd7, | |
| 3361 | 0x6d,0x60,0x0f,0xa2,0x64,0x6c,0x71,0xa7,0x8e,0x87,0x18,0xbb,0x1c,0x9d,0x0d,0x63, | |
| 3362 | 0x6f,0x4d,0x8a,0xd6,0x19,0xe3,0xf9,0xf7,0xdb,0x5e,0xf3,0x5e,0xa7,0x6a,0x42,0x4f, | |
| 3363 | 0x9f,0x65,0xde,0xc0,0x13,0x5d,0xf2,0x56,0x85,0x0f,0xd7,0x67,0xa7,0xe9,0x17,0xf9, | |
| 3364 | 0x5b,0x08,0x6b,0xc0,0xb1,0x39,0xbc,0x23,0xec,0xfb,0x24,0x37,0x7c,0x7a,0xed,0xc1, | |
| 3365 | 0x04,0x95,0x90,0x38,0x54,0xd8,0xb6,0xbf,0x6f,0x82,0x3a,0x2e,0x85,0x7f,0x24,0x09, | |
| 3366 | 0xf9,0x6d,0xae,0x86,0x5c,0x9a,0x41,0x8a,0x6f,0x03,0x78,0xac,0x24,0x56,0x1b,0x2f, | |
| 3367 | 0x9c,0xf0,0x25,0x0b,0x29,0xdf,0xbd,0xe4,0x4c,0xdf,0x3f,0x10,0xb7,0x60,0x34,0x94, | |
| 3368 | 0x4b,0x7e,0x54,0x27,0x1a,0x06,0x8a,0x2c,0x65,0x76,0xef,0xbb,0x9e,0xfd,0xcd,0x98, | |
| 3369 | 0x67,0x76,0x9c,0x39,0x90,0x70,0x08,0xc4,0x1c,0x28,0xe8,0x0d,0x3b,0x8c,0x47,0x9b, | |
| 3370 | 0x4f,0x39,0x5d,0xa2,0xeb,0x7d,0x96,0x0a,0xcf,0x55,0x89,0x66,0xec,0x6e,0x01,0xfc, | |
| 3371 | 0x65,0x27,0xf7,0xc2,0x8a,0x8c,0x95,0x5e,0xde,0x5c,0x33,0x25,0x12,0x03,0x5c,0x1c, | |
| 3372 | 0x07,0xa0,0xca,0xf9,0xcf,0xff,0x64,0x22,0xab,0x9e,0x46,0xab,0x0d,0xab,0xb8,0x5b, | |
| 3373 | 0x96,0x03,0x35,0xa7,0x18,0x34,0x65,0xb4,0x94,0x7b,0x22,0x58,0x3c,0xc5,0x75,0x18, | |
| 3374 | 0x72,0xb1,0x99,0x2b,0xc6,0x8c,0xf6,0x75,0xfa,0x52,0x26,0x8c,0x00,0xb3,0xf3,0xb5, | |
| 3375 | 0xfa,0x0a,0x56,0xe6,0x38,0x66,0x78,0xc4,0x3d,0x85,0xb3,0xa6,0xb9,0xd3,0x91,0x90, | |
| 3376 | 0x8f,0x6e,0xcb,0x38,0xd0,0x24,0x4b,0x03,0xbd,0x72,0x29,0x07,0xc7,0x85,0xb0,0x0a, | |
| 3377 | 0x91,0x3c,0x59,0x80,0xec,0x24,0xce,0x90,0xd9,0x79,0xe8,0x0f,0x8a,0x2b,0xb0,0x82, | |
| 3378 | 0x60,0xd5,0x60,0x1f,0xed,0xc7,0x62,0xcc,0xf2,0xfc,0x4f,0x1e,0x61,0x23,0xf1,0x59, | |
| 3379 | 0x5b,0x99,0x75,0x32,0x6c,0x67,0x17,0x68,0x59,0xbf,0x93,0xad,0xce,0xd2,0xf0,0xe3, | |
| 3380 | 0xe8,0x59,0xe2,0x1d,0x74,0x3d,0xd0,0x9a,0xf1,0x98,0xcf,0xce,0x8c,0xb4,0xa4,0x58, | |
| 3381 | 0x21,0x0a,0xc6,0x0c,0x43,0x58,0xe9,0x24,0x3a,0x32,0x23,0xbc,0xf7,0xd8,0x1a,0xa5, | |
| 3382 | 0xb4,0x80,0x60,0x2d,0xdb,0x0f,0xb6,0x51,0x04,0x1b,0x0d,0xbf,0xfa,0xea,0x88,0xd4, | |
| 3383 | 0xb7,0x71,0x78,0x9e,0x62,0x55,0x5e,0xda,0x57,0xec,0xec,0xf5,0x1f,0x3b,0x03,0x0e, | |
| 3384 | 0x72,0xf9,0xb6,0xf1,0x3b,0x89,0x44,0x1d,0x93,0x03,0x20,0xbe,0xc4,0x2b,0xeb,0xb2, | |
| 3385 | 0x46,0x77,0x78,0x87,0xc5,0x0c,0xc6,0x7b,0x18,0xc1,0x08,0x79,0x4a,0x1a,0xa0,0x21, | |
| 3386 | 0x93,0x4c,0x1e,0xc0,0x5f,0x3e,0x45,0x53,0x45,0x85,0x06,0x88,0x10,0x67,0x81,0xbb, | |
| 3387 | 0xb9,0xd8,0x0a,0xfc,0x6a,0x7f,0x21,0x06,0x7b,0xb1,0x78,0x49,0x78,0x73,0xf0,0xe0, | |
| 3388 | 0x18,0x7b,0x9a,0x9a,0x45,0x2e,0xb9,0xf4,0x1a,0xa3,0xbe,0x1c,0xe0,0x9e,0x4b,0xef, | |
| 3389 | 0x0f,0x95,0x30,0xfb,0x52,0xad,0x6f,0x7d,0x82,0xbc,0x3a,0x63,0xa8,0x47,0xf2,0x4a, | |
| 3390 | 0xff,0x85,0x29,0x7f,0xef,0x5a,0xa1,0x01,0x12,0x5b,0x4a,0x7c,0x32,0xd0,0x47,0x4e, | |
| 3391 | 0x48,0xac,0xe8,0x86,0x7d,0x95,0xb0,0xdf,0x2b,0xe2,0x4f,0xc8,0xdc,0x97,0xa8,0x5e, | |
| 3392 | 0x49,0x69,0xcb,0x6f,0x5c,0xc0,0xfb,0x78,0x2d,0xaf,0xa9,0xa7,0x07,0xfc,0x76,0xd8, | |
| 3393 | 0x63,0x1e,0x33,0x9b,0xeb,0x39,0xe3,0x2c,0x78,0x23,0xb7,0x78,0x13,0x61,0x10,0x1e, | |
| 3394 | 0xf6,0x29,0x80,0x6a,0x8b,0x61,0xc8,0x5a,0x6b,0x9d,0xda,0x9c,0x60,0x24,0xd8,0x8e, | |
| 3395 | 0x62,0xeb,0x12,0x3b,0x9c,0x97,0x0a,0x64,0x67,0x7f,0x72,0x73,0x4d,0xa6,0x2c,0x88, | |
| 3396 | 0x07,0xc4,0x48,0x70,0x7e,0x3d,0x09,0xa8,0xcc,0x27,0xdf,0x5d,0x3b,0x47,0x6d,0x6e, | |
| 3397 | 0x44,0x13,0x83,0x67,0x90,0xb1,0x24,0x86,0xfa,0xf6,0x81,0xb9,0x8a,0x67,0xfb,0x9e, | |
| 3398 | 0x7a,0x3a,0x23,0x81,0x34,0x54,0xbc,0x60,0x50,0x4b,0xb7,0xe9,0x9a,0x65,0x35,0x79, | |
| 3399 | 0x09,0x97,0x88,0x1d,0xc8,0x86,0x31,0x94,0x2f,0x88,0xe2,0x4b,0xca,0xa2,0x7c,0x5e, | |
| 3400 | 0x50,0x8a,0x11,0x9d,0xac,0xa6,0xe2,0x83,0xf7,0x0b,0x62,0x3f,0x7b,0x7e,0x30,0xaf, | |
| 3401 | 0xb1,0x75,0x1f,0x5f,0x42,0x15,0x31,0x8d,0x08,0x35,0x96,0x27,0x0d,0x58,0xb1,0xca, | |
| 3402 | 0x8a,0xb6,0x12,0xc4,0xe8,0x33,0x7c,0x11,0xc1,0x65,0xdf,0x61,0xdf,0x92,0x5e,0x10, | |
| 3403 | 0x3b,0xae,0x4a,0x2b,0xff,0x60,0x24,0x71,0x83,0xfd,0x9d,0x4e,0x53,0x8a,0x98,0xe0, | |
| 3404 | 0x26,0xbd,0x26,0xf5,0xe7,0xfb,0x88,0x0b,0xae,0x5b,0x30,0x4e,0xc7,0xa1,0xbf,0x9c, | |
| 3405 | 0xa9,0x42,0x07,0x83,0xff,0x66,0x09,0x3f,0xa2,0xe0,0xf7,0xc0,0x9b,0x36,0x33,0xa2, | |
| 3406 | 0x25,0x9f,0x4d,0x32,0xa8,0xfe,0x07,0x6f,0xbe,0xeb,0x54,0x05,0x31,0xaa,0x53,0x53, | |
| 3407 | 0xfa,0x32,0x58,0x65,0x42,0x26,0xe2,0xf9,0x63,0xde,0xa5,0x7d,0xe7,0x5d,0x80,0x0e, | |
| 3408 | 0x87,0x5b,0x87,0x7a,0x2d,0x3d,0xfa,0x3e,0xf1,0x17,0x4a,0x88,0x1e,0xaf,0x1a,0x35, | |
| 3409 | 0x2e,0x7c,0x3b,0xd2,0xc8,0xa2,0xae,0x9e,0xc8,0xf7,0xa5,0x85,0x36,0x00,0x81,0x26, | |
| 3410 | 0x4d,0xf3,0xd4,0xcd,0x74,0xb6,0x5f,0x79,0x47,0xdd,0x14,0xd6,0x8f,0xaf,0x14,0x42, | |
| 3411 | 0x44,0x21,0xb1,0xcb,0x91,0xd8,0x6d,0x2e,0xd0,0x2b,0xf8,0xd9,0x88,0x1d,0x35,0xe9, | |
| 3412 | 0x75,0x66,0x34,0x2b,0x7f,0x6a,0x37,0x1e,0xc0,0x3f,0xb1,0xee,0x82,0xaa,0x41,0x7a, | |
| 3413 | 0x3e,0x21,0xbb,0x4e,0x9e,0xca,0x1f,0xa9,0x7a,0x7a,0x9e,0x77,0xdd,0xb6,0x9b,0x56, | |
| 3414 | 0x00,0xb4,0xa7,0x94,0x4d,0x59,0x83,0x2e,0x5c,0x3b,0x20,0xd2,0xf9,0xa0,0xa2,0xdd, | |
| 3415 | 0x1b,0x7c,0x57,0x5d,0xed,0x77,0xc3,0x0e,0xc8,0xe4,0x97,0x60,0x35,0xc9,0xb5,0x6f, | |
| 3416 | 0xee,0xdc,0x2d,0x08,0xdd,0x83,0x41,0xa9,0x1b,0xd3,0x63,0x81,0xf2,0x91,0x35,0x6b, | |
| 3417 | 0xdb,0x33,0x87,0xf6,0x7f,0xde,0x5b,0x5f,0xb8,0x69,0xe4,0x94,0x90,0x57,0x81,0x32, | |
| 3418 | 0xe0,0xc6,0x87,0x31,0xe8,0x72,0x90,0xfd,0x05,0x79,0xfa,0x6e,0x7d,0xfb,0x24,0x7d, | |
| 3419 | 0x44,0x49,0x1a,0x54,0x01,0xe6,0x9b,0x4c,0x08,0x83,0x13,0xee,0x61,0x01,0xa1,0xf4, | |
| 3420 | 0xbf,0x72,0x11,0x48,0x88,0x17,0xe1,0x02,0xd3,0x62,0x3f,0x6e,0x63,0xf4,0x08,0x03, | |
| 3421 | 0xb0,0x9f,0xca,0x6c,0xde,0x64,0xc2,0x82,0xc3,0x75,0xdd,0x4f,0xe5,0x33,0xba,0x0b, | |
| 3422 | 0x78,0x31,0xa6,0x21,0x63,0x2e,0x9d,0x2a,0x3b,0x1d,0x4f,0xf0,0x45,0x20,0x17,0x6c, | |
| 3423 | 0x77,0x87,0x04,0xc7,0x77,0xd5,0xd4,0x5c,0x99,0xba,0xf3,0xb2,0xe4,0x19,0x7f,0x85, | |
| 3424 | 0x0d,0x03,0x46,0xbe,0x79,0xb8,0xc5,0x75,0x3f,0xac,0x29,0xf6,0x22,0x7f,0x51,0xb8, | |
| 3425 | 0x9a,0x03,0xca,0x65,0xcb,0x39,0xd0,0xd8,0x8a,0x52,0x53,0x19,0x5f,0xb2,0xee,0x63, | |
| 3426 | 0x7d,0xe7,0xf1,0x1e,0xcb,0xb6,0x57,0xe3,0xdd,0x0e,0xcf,0x7e,0xfa,0x11,0xb6,0xe6, | |
| 3427 | 0x17,0x11,0x1a,0x46,0xd9,0x8f,0xb8,0xf8,0x96,0x3e,0xfe,0x83,0x54,0xfd,0x09,0xa3, | |
| 3428 | 0xc8,0xdf,0xa6,0x57,0x26,0x54,0x74,0x17,0x42,0x89,0xcd,0xd6,0x46,0xf8,0xef,0xb3, | |
| 3429 | 0xf6,0x6b,0xa3,0xd9,0x8b,0xba,0xbd,0x7c,0xf4,0xf0,0xc4,0xfc,0xce,0x46,0xed,0xea, | |
| 3430 | 0x67,0x26,0x1e,0x09,0xbd,0x28,0xeb,0x4a,0x7b,0x18,0x9b,0xce,0x01,0xed,0x22,0xe7, | |
| 3431 | 0x5c,0xd2,0x27,0x16,0x49,0x20,0xff,0x0d,0x35,0x60,0xb0,0xad,0x3f,0x4c,0xee,0x08, | |
| 3432 | 0x33,0xce,0x20,0x60,0x90,0xff,0x5a,0x25,0x82,0x29,0x64,0xf9,0xe7,0xc5,0xb1,0xae, | |
| 3433 | 0x4d,0x7c,0x67,0x46,0xf2,0x28,0x5c,0xf1,0xc1,0xd3,0x16,0x12,0x5b,0xb6,0xca,0x39, | |
| 3434 | 0x0a,0x3a,0x5d,0x29,0xce,0xfa,0x65,0xd2,0x54,0xbd,0x27,0x57,0xf8,0x7f,0x9a,0x09, | |
| 3435 | 0xca,0x69,0x62,0x69,0x85,0xd4,0xd4,0x28,0x99,0x49,0xf7,0x29,0x21,0x82,0x81,0x7d, | |
| 3436 | 0xec,0x69,0xd5,0x65,0x77,0x17,0x0a,0x53,0xf0,0xd5,0xe6,0xe8,0x34,0x1d,0xde,0xf6, | |
| 3437 | 0xd1,0x99,0x17,0x7f,0x04,0x22,0x67,0xb3,0xbb,0xc2,0x54,0xf4,0x93,0xb1,0x12,0xd4, | |
| 3438 | 0xd9,0x5a,0x88,0x15,0x8c,0x57,0x4b,0xa7,0x58,0x6f,0xa0,0xac,0x9b,0x9e,0x7d,0x77, | |
| 3439 | 0x64,0x0c,0x88,0x87,0x6e,0x14,0x15,0x90,0x28,0x3e,0x2b,0x72,0xaf,0x44,0x7f,0x3e, | |
| 3440 | 0xd1,0x0f,0x76,0x37,0x0b,0xba,0x26,0xce,0x8b,0x8d,0x55,0xa3,0x2e,0x02,0x77,0x8a, | |
| 3441 | 0x81,0xc2,0xb3,0x83,0xc3,0xa8,0xde,0xc0,0xe0,0xbc,0x7e,0xa2,0x77,0x39,0xc7,0xbb, | |
| 3442 | 0xd4,0x87,0x9f,0xcc,0xf5,0x9d,0xc7,0x88,0x2d,0x05,0xce,0xeb,0x49,0xcd,0x31,0x29, | |
| 3443 | 0xbc,0x9a,0x72,0x03,0xe0,0xc2,0x43,0xe3,0x3e,0x4b,0x86,0xe9,0x91,0xe9,0x4b,0xe2, | |
| 3444 | 0xc1,0x03,0xd5,0x4b,0xe9,0xae,0x94,0x51,0x50,0xb0,0x2b,0xd3,0x72,0x7d,0x6a,0x5d, | |
| 3445 | 0xf8,0x3c,0x54,0x2d,0xba,0xc1,0x19,0x31,0xc3,0x93,0x1c,0x07,0x4c,0xe7,0xee,0xfb, | |
| 3446 | 0xbf,0xa3,0x50,0x0b,0xb5,0x5b,0x34,0xe5,0xf7,0x56,0xbb,0xe6,0x7f,0x88,0x37,0x1b, | |
| 3447 | 0x77,0x98,0x29,0x43,0x38,0xdb,0x43,0xcb,0x4b,0x57,0x66,0xcf,0x6b,0xc0,0xa4,0x1f, | |
| 3448 | 0x80,0x7d,0x3e,0x36,0xa4,0xa2,0xa6,0x43,0x20,0xf6,0x7e,0x24,0x6f,0xee,0x96,0x65, | |
| 3449 | 0x39,0xb0,0xf1,0x44,0x58,0x10,0xbf,0xaf,0xd6,0x95,0x62,0x43,0xec,0x74,0x6d,0x4e, | |
| 3450 | 0x03,0x92,0xa0,0xcc,0xb6,0x85,0xec,0x6d,0xcd,0x92,0x74,0x8d,0x42,0xb0,0x88,0x39, | |
| 3451 | 0x3e,0x82,0xab,0x30,0x1c,0x60,0x8e,0xde,0x64,0x4e,0x12,0x61,0xd0,0x02,0x49,0x87, | |
| 3452 | 0x4a,0xe2,0x74,0xce,0xeb,0x02,0x05,0x62,0xfc,0x29,0x9d,0x21,0xf7,0xcc,0x0e,0x99, | |
| 3453 | 0x86,0x10,0x59,0x07,0x82,0xcb,0xb0,0x58,0xf5,0x83,0x75,0x2b,0x17,0x6c,0x38,0xcc, | |
| 3454 | 0x53,0x6d,0xbb,0x3a,0x43,0x1b,0xf0,0x21,0xae,0xbb,0xf9,0xe0,0x90,0x43,0x26,0x83, | |
| 3455 | 0x11,0x59,0xfa,0xc8,0x8c,0x51,0x25,0x1d,0x89,0x32,0x8a,0x9f,0xc2,0xb1,0x3a,0x1c, | |
| 3456 | 0x20,0x33,0x76,0x11,0xbe,0xce,0xaf,0xac,0xe4,0x48,0x88,0xca,0x0c,0x15,0xd2,0xf8, | |
| 3457 | 0xe0,0x5c,0x8e,0x75,0x38,0xf2,0xee,0x2d,0x20,0x5c,0x53,0xbf,0xcf,0xd1,0x4f,0x77, | |
| 3458 | 0xb0,0x34,0xa3,0x54,0x5c,0x1d,0x41,0x02,0x9c,0xd0,0x4a,0xdf,0x6b,0x43,0x10,0xf9, | |
| 3459 | 0xf1,0x1b,0x15,0x0d,0x88,0xae,0x09,0x89,0xb9,0x02,0xce,0x8a,0x3f,0xcb,0x77,0xdd, | |
| 3460 | 0x02,0x70,0x43,0x01,0x1d,0x06,0xa6,0x22,0xd8,0x53,0x3f,0x1f,0xac,0xcb,0xe2,0x84, | |
| 3461 | 0x45,0x94,0x8e,0x90,0x7a,0x85,0x77,0x2f,0x56,0x22,0xfd,0xff,0x12,0xa1,0xb2,0x4e, | |
| 3462 | 0x18,0xe7,0x56,0x19,0x01,0x8b,0xdd,0x0e,0x96,0xd0,0x67,0x8a,0xd1,0xae,0x46,0x9b, | |
| 3463 | 0xdc,0xc9,0xfb,0xfd,0x10,0x77,0x38,0x20,0xf6,0xbd,0xde,0x20,0x49,0x52,0xff,0xca, | |
| 3464 | 0xf1,0x9a,0xdd,0x9d,0x08,0xaa,0xe8,0xc5,0xd7,0x49,0xc2,0x20,0xd9,0xec,0x3e,0x3c, | |
| 3465 | 0xb6,0xb9,0x5b,0x56,0x48,0x84,0x4c,0x5c,0x99,0xd4,0x73,0xeb,0xe2,0xdd,0x60,0x51, | |
| 3466 | 0x8c,0x87,0xd6,0x8b,0x32,0x65,0xc6,0x46,0x9c,0xbd,0x50,0xe1,0xc4,0x85,0xc8,0x68, | |
| 3467 | 0xd3,0x63,0xae,0x9a,0x24,0xac,0xb4,0xe3,0x3f,0x65,0xbb,0x62,0xde,0x44,0xd4,0xe3, | |
| 3468 | 0xeb,0xaf,0x42,0xe4,0x7f,0xba,0x76,0x93,0xe3,0x2c,0x12,0xcd,0x91,0x7a,0xe5,0x20, | |
| 3469 | 0x33,0xc9,0xf4,0xc9,0xa2,0xef,0x6e,0xb5,0xe8,0x72,0xb5,0x83,0x3d,0x86,0x5b,0x80, | |
| 3470 | 0x0d,0x12,0x22,0xa8,0xef,0xab,0xfa,0xab,0xad,0x96,0x06,0xe4,0x42,0xc9,0x96,0x62, | |
| 3471 | 0xd7,0xea,0x2d,0xe3,0xc4,0x4d,0x7b,0xd3,0x94,0xf9,0x63,0x50,0x00,0xa3,0xf5,0x28, | |
| 3472 | 0xf1,0xb0,0x74,0xd8,0x82,0x36,0x51,0x8d,0xfb,0xfb,0x2d,0x26,0xd6,0x73,0xd9,0x30, | |
| 3473 | 0xbd,0xc5,0x58,0xe7,0x88,0xc6,0xdb,0x3b,0x43,0xfb,0xc3,0xc7,0x25,0x9a,0xa2,0xdb, | |
| 3474 | 0x99,0x89,0x39,0x72,0x38,0x5d,0x7a,0x3b,0xcb,0x5b,0x87,0x93,0x4d,0x78,0xb0,0x88, | |
| 3475 | 0xe6,0x5c,0x77,0xd7,0xf0,0x5a,0x8e,0xee,0xf5,0x79,0xd7,0xea,0xad,0x6d,0x62,0x98, | |
| 3476 | 0x03,0x9d,0x72,0x77,0x11,0x1e,0x77,0xb4,0x1f,0xb5,0x14,0x2b,0xa6,0xd9,0x19,0x6c, | |
| 3477 | 0x52,0xad,0x89,0xb2,0xfa,0x09,0x95,0xec,0xa9,0x71,0x9d,0xb7,0x98,0x1b,0x35,0x61, | |
| 3478 | 0x31,0xec,0x1d,0xe8,0x0d,0x7b,0x47,0xf7,0xf5,0x0b,0xd4,0xee,0xe3,0x94,0x16,0xda, | |
| 3479 | 0x01,0xba,0x8e,0x78,0xa8,0xd3,0xee,0x35,0x61,0xe4,0x17,0x30,0xe7,0xa4,0x1b,0x35, | |
| 3480 | 0x22,0x76,0x3b,0xc3,0x2c,0x72,0xea,0x06,0x4e,0x5c,0xc7,0xdc,0x03,0xaa,0xa5,0xd3, | |
| 3481 | 0xf3,0x82,0x86,0x29,0xf8,0xb8,0x9a,0xc9,0x1c,0xd3,0x44,0x54,0x98,0x07,0x14,0x14, | |
| 3482 | 0xd5,0x3b,0xcd,0x09,0x6e,0x04,0x5f,0xe0,0x2b,0xa8,0xed,0xf5,0x06,0x1b,0xc8,0x58, | |
| 3483 | 0x28,0x04,0x71,0xc4,0xec,0xb8,0x99,0xa9,0xda,0x3c,0x23,0x22,0xac,0x46,0x20,0xfe, | |
| 3484 | 0x4c,0x3c,0xd1,0xba,0xd3,0x32,0xa8,0x84,0x8a,0xef,0x46,0x39,0xec,0xe8,0x7d,0x67, | |
| 3485 | 0xa0,0x42,0x4e,0x4b,0x82,0xd3,0xeb,0xd3,0x9b,0x20,0xb6,0x9c,0x24,0x60,0x3f,0xf3, | |
| 3486 | 0x86,0x77,0x48,0xd7,0x5b,0xfa,0xc4,0xf4,0x6d,0x31,0xd2,0xa9,0xb4,0x0f,0xc6,0x02, | |
| 3487 | 0x5c,0x3a,0x1f,0xbd,0xbc,0x09,0x91,0x48,0x5f,0x80,0xfb,0xc0,0xfe,0x55,0x71,0xf3, | |
| 3488 | 0x82,0xed,0x33,0x5e,0x06,0x5e,0xb2,0x2f,0xd2,0x6e,0x91,0x43,0x60,0x91,0xa1,0x27, | |
| 3489 | 0x5a,0xee,0xe3,0x1a,0x98,0x5a,0x89,0x08,0x26,0x5a,0xf4,0x90,0x3b,0x24,0xb6,0xfe, | |
| 3490 | 0x42,0x9e,0x90,0x50,0xd4,0x5c,0x74,0x34,0xba,0xa5,0x83,0x08,0xef,0x6e,0x0f,0xd8, | |
| 3491 | 0x9b,0x5d,0x9a,0x62,0x18,0xc6,0xd4,0x13,0xf0,0xaf,0x9f,0x0a,0xdb,0xcf,0x0e,0x14, | |
| 3492 | 0xc5,0x8a,0x60,0xae,0xc5,0xf6,0x09,0x05,0x26,0xd8,0xa8,0xf8,0x61,0xa6,0x11,0x13, | |
| 3493 | 0x1f,0x86,0x44,0x94,0x3a,0x4d,0x72,0x6a,0xbd,0x80,0xfe,0x30,0xdf,0x55,0x79,0x35, | |
| 3494 | 0x0a,0xb1,0xa4,0x76,0xd9,0x2a,0x70,0xa1,0x14,0x06,0x00,0x13,0xb5,0x3a,0xa5,0xd9, | |
| 3495 | 0xe6,0x6b,0xe0,0xb2,0x00,0xef,0x63,0x0b,0x8c,0xcb,0x10,0x00,0x45,0xb5,0xf7,0x61, | |
| 3496 | 0x13,0x13,0x5a,0xa9,0x10,0xfa,0xab,0x07,0x85,0x2f,0x8c,0x59,0xed,0x28,0xcd,0x2b, | |
| 3497 | 0xf0,0x0a,0x70,0xbb,0x69,0xac,0xa8,0xf7,0x5f,0x91,0xd4,0x7c,0x0e,0xf1,0x88,0x98, | |
| 3498 | 0xde,0xb0,0x83,0x47,0x6a,0x64,0xb9,0x39,0x7a,0x53,0x4a,0xca,0x08,0x71,0x87,0x07, | |
| 3499 | 0x3d,0x65,0xf3,0xaf,0x74,0x84,0x3f,0x2e,0x35,0xd3,0x4c,0xa2,0x3a,0x08,0x2c,0xda, | |
| 3500 | 0x6d,0x88,0x20,0x51,0xe7,0x6a,0x9a,0x36,0xf1,0x72,0x3b,0x66,0x06,0x15,0xd5,0x6f, | |
| 3501 | 0xce,0x7b,0x69,0x8e,0x23,0x77,0x29,0xb0,0x0e,0x8f,0x76,0x74,0xca,0xfa,0xe3,0x26, | |
| 3502 | 0xbf,0x9c,0x2f,0xc5,0x87,0x0a,0x4d,0xfd,0xec,0x8c,0x5f,0x2d,0xe6,0x15,0xb5,0x61, | |
| 3503 | 0xa1,0x4b,0xd2,0x57,0x74,0x85,0x66,0x7d,0xea,0xc7,0x54,0xf1,0xbc,0xc6,0xac,0x7e, | |
| 3504 | 0xd3,0xea,0xb1,0xa4,0x4a,0x46,0xd4,0x90,0x69,0xa0,0xb6,0x1f,0xaa,0x6f,0x29,0xde, | |
| 3505 | 0xb7,0xd7,0x2e,0x0c,0x69,0xae,0xf6,0x96,0xc9,0x79,0xe5,0x18,0x11,0x6e,0x89,0xe1, | |
| 3506 | 0xab,0x73,0xa7,0xef,0x30,0x1c,0x2e,0xee,0x69,0xb0,0x3c,0x51,0x24,0x2f,0xe7,0x10, | |
| 3507 | 0x1d,0x7c,0xac,0x00,0xf2,0xda,0xf9,0xab,0xa6,0x28,0xeb,0xc9,0xf1,0x79,0x4f,0x46, | |
| 3508 | 0x37,0x0f,0xa4,0x39,0x8e,0x5a,0x16,0xed,0xbb,0xfd,0x84,0xdb,0x34,0xc8,0x7a,0xac, | |
| 3509 | 0x1f,0xbe,0x37,0x3b,0x51,0x10,0xa7,0x90,0x4f,0x1f,0x68,0xe5,0x4f,0x7c,0xc8,0xa3, | |
| 3510 | 0x36,0xea,0xc4,0x65,0x9a,0x5a,0x0a,0xf3,0xc1,0xed,0xf7,0x47,0xa0,0xf5,0x99,0x8b, | |
| 3511 | 0xdc,0xf3,0xad,0x18,0xcb,0x99,0xa0,0x77,0x72,0xc8,0x91,0x63,0x87,0x92,0x4c,0xc4, | |
| 3512 | 0x70,0x39,0x50,0xb4,0x42,0x2d,0xc9,0x7d,0xc2,0x10,0x95,0x97,0x66,0xb4,0x42,0xad, | |
| 3513 | 0x53,0x1b,0x0d,0x99,0x60,0x75,0xe4,0x62,0x10,0x25,0x64,0x44,0x9b,0xbb,0xdb,0xa8, | |
| 3514 | 0xe5,0xfa,0x46,0x26,0x84,0xd2,0x52,0x89,0xbe,0x66,0x5e,0xca,0x87,0x07,0x77,0x13, | |
| 3515 | ||
| 3516 | /* data */ | |
| 3517 | 0xc6,0x3f,0x81,0xd9,0xb2,0x4f,0x72,0x13,0x0b,0xc7,0xf6,0x3b,0xdc,0x71,0x97,0x9c, | |
| 3518 | 0x31,0x1b,0xe3,0x82,0x16,0x90,0x64,0x39,0x97,0x9d,0xa8,0x0d,0xc1,0x0c,0x3b,0x4b, | |
| 3519 | 0x9f,0xab,0xa7,0x3e,0x3d,0x45,0x79,0x32,0xa7,0xa6,0x3e,0x73,0xe9,0x9a,0x81,0x4d, | |
| 3520 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3521 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3522 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3523 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3524 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3525 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3526 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3527 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3528 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3529 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3530 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3531 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3532 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3533 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3534 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3535 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3536 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3537 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3538 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3539 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3540 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3541 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3542 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3543 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3544 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3545 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3546 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3547 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3548 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3549 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3550 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3551 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3552 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3553 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3554 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3555 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3556 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3557 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3558 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3559 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3560 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3561 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3562 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3563 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3564 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3565 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3566 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3567 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3568 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3569 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3570 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3571 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3572 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3573 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3574 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3575 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3576 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3577 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3578 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3579 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3580 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3581 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3582 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3583 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3584 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3585 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3586 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3587 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3588 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3589 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3590 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3591 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3592 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3593 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3594 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3595 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3596 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3597 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3598 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3599 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3600 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3601 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3602 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3603 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3604 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3605 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3606 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3607 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3608 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3609 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3610 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3611 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3612 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3613 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3614 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3615 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3616 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3617 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3618 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3619 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3620 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3621 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3622 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3623 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3624 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3625 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3626 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3627 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3628 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3629 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3630 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3631 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3632 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3633 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3634 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3635 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3636 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3637 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3638 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3639 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3640 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3641 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3642 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3643 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3644 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3645 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3646 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3647 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3648 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3649 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3650 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3651 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3652 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3653 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3654 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3655 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3656 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3657 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3658 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3659 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3660 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3661 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3662 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3663 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3664 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3665 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3666 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3667 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3668 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3669 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3670 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3671 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3672 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3673 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3674 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3675 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3676 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3677 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3678 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3679 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3680 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3681 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3682 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3683 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3684 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3685 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3686 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3687 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3688 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3689 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3690 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3691 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3692 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3693 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3694 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3695 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3696 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3697 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3698 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3699 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3700 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3701 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3702 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3703 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3704 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3705 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3706 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3707 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3708 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3709 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3710 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3711 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3712 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3713 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3714 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3715 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3716 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3717 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3718 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3719 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3720 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3721 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3722 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3723 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3724 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3725 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3726 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3727 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3728 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3729 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3730 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3731 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3732 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3733 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3734 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3735 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3736 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3737 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3738 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3739 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3740 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3741 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3742 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3743 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3744 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3745 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3746 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3747 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3748 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3749 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3750 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3751 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3752 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3753 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3754 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3755 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3756 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3757 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3758 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3759 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3760 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3761 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3762 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3763 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3764 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3765 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3766 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3767 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3768 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3769 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3770 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3771 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3772 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 3773 | }; | |
| 3774 | ||
| 3775 | ||
| 3776 | /* 317-0034 FD1089B */ | |
| 3777 | static const UINT8 key_0034[0x2000] = | |
| 3778 | { | |
| 3779 | /* opcodes */ | |
| 3780 | 0x9d,0x5d,0x35,0xcd,0xc8,0x19,0x4d,0xe0,0x8a,0x90,0x15,0x68,0x55,0x76,0x80,0x98, | |
| 3781 | 0x9e,0x7e,0x84,0xa6,0xd9,0x5e,0x13,0xc4,0x79,0xc8,0x22,0x27,0xf4,0x71,0xa5,0x03, | |
| 3782 | 0xbc,0x0d,0x90,0x8c,0x46,0x4f,0xd6,0xf5,0x06,0xed,0x6c,0x74,0x70,0x99,0x46,0x3b, | |
| 3783 | 0x2d,0xc4,0xc1,0x5c,0x66,0x7c,0xcb,0x89,0x0f,0xff,0x8d,0x82,0x48,0xcd,0x1a,0xc3, | |
| 3784 | 0x42,0x72,0x33,0x68,0x67,0xfe,0x2b,0xa9,0x71,0x4e,0xa3,0x8c,0x6c,0x11,0x8f,0xe8, | |
| 3785 | 0xb1,0xc6,0x30,0x62,0xec,0xbc,0x1a,0x72,0x15,0x10,0x2e,0x5e,0x79,0xb1,0xa0,0x3c, | |
| 3786 | 0xb2,0x5e,0xf2,0xf3,0xa9,0xa5,0xf6,0x3a,0x9b,0xe5,0xcf,0x96,0x10,0x4c,0xef,0x5f, | |
| 3787 | 0xf7,0x08,0x58,0x7f,0x11,0xee,0x96,0x74,0x30,0xff,0xf4,0x4e,0xc9,0xee,0x65,0x69, | |
| 3788 | 0xb3,0xd9,0x33,0xcb,0x33,0x51,0x30,0xce,0xf2,0xf4,0x95,0xc7,0x83,0x97,0x76,0x08, | |
| 3789 | 0x7a,0x0d,0xe8,0xe7,0x6b,0x2a,0xfe,0xb8,0xeb,0xc3,0xcd,0xcd,0x8d,0xaa,0x67,0x7c, | |
| 3790 | 0xe6,0xb5,0xe2,0x19,0x88,0xb8,0x52,0xf6,0x09,0x86,0xca,0x69,0xfd,0xf3,0x5e,0xc5, | |
| 3791 | 0xf6,0xd3,0x22,0x5f,0x8a,0xfb,0x2b,0x8a,0x4d,0x3e,0x8b,0x9a,0xd1,0x70,0x59,0xe3, | |
| 3792 | 0xac,0x66,0xa6,0xba,0x71,0xf3,0x88,0x72,0xb5,0xeb,0x12,0x5f,0x0b,0x22,0x59,0xd6, | |
| 3793 | 0x07,0x6d,0x70,0x2a,0x3d,0x9f,0x6b,0xaf,0x42,0x8d,0x5e,0xba,0xa9,0x0a,0x5e,0x9e, | |
| 3794 | 0x07,0xea,0x7e,0xaf,0xee,0x01,0xd2,0x42,0xf4,0x24,0x6f,0xaa,0xad,0x26,0x68,0x3b, | |
| 3795 | 0xac,0xdb,0xd1,0x4a,0x84,0x18,0xbf,0x29,0xcc,0xb0,0x45,0x2f,0x15,0x77,0x77,0xad, | |
| 3796 | 0xe4,0xd9,0x19,0xbc,0x41,0x5a,0x60,0xa1,0xa1,0x6d,0x25,0xd6,0xd0,0x82,0x1b,0xf2, | |
| 3797 | 0xe7,0xd7,0x46,0x5b,0x51,0x79,0xf6,0x47,0xc9,0x49,0xd0,0xbe,0x59,0xf3,0xc5,0x94, | |
| 3798 | 0x5b,0xf8,0x17,0x72,0x7b,0xa4,0x5a,0xcd,0xb2,0x18,0x70,0xec,0x4b,0x8b,0xe6,0xe1, | |
| 3799 | 0xdc,0x2e,0xa0,0x5e,0x7b,0x2c,0xd2,0xfc,0x7a,0xa6,0x02,0x46,0x08,0x0f,0x86,0x17, | |
| 3800 | 0x24,0x2b,0x85,0x9a,0x9c,0x0a,0xf6,0x47,0x0f,0x11,0x9f,0xeb,0xeb,0xf1,0x16,0xa0, | |
| 3801 | 0x6f,0xac,0xc2,0xcf,0xa9,0x96,0xda,0x34,0x78,0x51,0x63,0xd9,0x8a,0xcf,0x35,0x19, | |
| 3802 | 0x5d,0x53,0xf6,0x9e,0x41,0x6f,0x1c,0x62,0x53,0x06,0xef,0xb0,0x83,0x4b,0x83,0x23, | |
| 3803 | 0x8f,0xbf,0xc1,0xa6,0x04,0x35,0x5e,0x71,0x43,0xd1,0xe1,0x11,0x78,0x04,0xa1,0x5f, | |
| 3804 | 0xa3,0x90,0xc3,0x87,0x93,0x89,0x3f,0x02,0xe5,0x51,0xdb,0x9b,0x08,0x9a,0x2e,0x6c, | |
| 3805 | 0x3b,0x67,0x9d,0xe1,0x8d,0x0a,0x60,0xb3,0xda,0x26,0x7d,0xee,0xd4,0xad,0xca,0xeb, | |
| 3806 | 0xf6,0xe2,0xee,0x55,0x92,0x58,0x60,0x26,0xc3,0xf0,0x65,0xaa,0x7a,0xde,0x15,0x7a, | |
| 3807 | 0x75,0xa3,0x56,0x82,0x42,0x13,0xde,0xfa,0x3f,0x50,0x35,0x6f,0x9c,0xcc,0xb0,0xbb, | |
| 3808 | 0x57,0x49,0x75,0x08,0x3d,0xdc,0x7d,0xd0,0xef,0xe5,0x8c,0xde,0xd9,0x17,0x39,0x4d, | |
| 3809 | 0x3c,0x75,0xec,0x87,0x24,0x51,0xda,0x47,0x71,0x4f,0x0a,0x96,0xd2,0x5f,0x53,0xd0, | |
| 3810 | 0xc4,0xc6,0x5a,0xa0,0x96,0x14,0x97,0xff,0x67,0x2e,0x50,0x38,0x25,0x45,0x9b,0xe5, | |
| 3811 | 0x8f,0xdc,0x5f,0xf2,0x33,0xc5,0x53,0x98,0x70,0x23,0xfc,0x62,0x74,0x68,0xb2,0x2b, | |
| 3812 | 0x3e,0x57,0x9b,0x1d,0x9c,0x02,0xae,0xb2,0x2d,0xcc,0xb0,0xb6,0x5e,0x68,0x39,0x42, | |
| 3813 | 0x70,0xd7,0xaf,0xc1,0x70,0x6d,0x48,0xee,0x3c,0xcc,0x0c,0xd3,0x84,0xe5,0xcf,0xca, | |
| 3814 | 0xc5,0xfd,0x3a,0x7f,0x4f,0xa5,0xc2,0xeb,0x3f,0xc0,0xae,0x59,0x84,0x80,0x15,0x64, | |
| 3815 | 0xde,0x68,0xdc,0xf6,0xd9,0x4a,0xbb,0x49,0xd5,0x4a,0x38,0xe9,0x00,0xd8,0xa9,0xaf, | |
| 3816 | 0x59,0xb8,0x35,0xc6,0xaf,0xfd,0xd3,0xa9,0x9e,0x08,0x49,0x21,0x98,0x8d,0x2d,0x4b, | |
| 3817 | 0xd8,0x8e,0xe6,0x8f,0x6f,0x5d,0xab,0xa9,0x3b,0x9c,0x81,0xa3,0xea,0xd8,0xfb,0x89, | |
| 3818 | 0x8e,0xf2,0xbb,0x0a,0xe1,0xeb,0x4b,0xa6,0x81,0x0f,0x98,0x8f,0x82,0xf7,0x60,0x48, | |
| 3819 | 0xcd,0x8e,0x33,0xa4,0x17,0x0e,0x6e,0xc4,0xe7,0x03,0x1c,0x94,0x46,0xa9,0x6e,0x43, | |
| 3820 | 0x03,0x75,0xcc,0xec,0xb3,0x44,0x98,0x55,0x21,0x85,0x86,0x15,0x68,0x75,0x98,0x91, | |
| 3821 | 0xf1,0x23,0x20,0x01,0x79,0x6e,0xc1,0x6b,0x08,0x04,0x6e,0xa5,0xfa,0x64,0x68,0x56, | |
| 3822 | 0xf9,0xdc,0x42,0xf4,0xff,0x8b,0xe0,0xc7,0x58,0x5f,0x72,0xe4,0x9d,0x16,0x7d,0x32, | |
| 3823 | 0xba,0xd2,0x67,0xe8,0x3b,0x93,0x0b,0xb2,0x35,0x34,0x73,0xf2,0x2c,0x77,0xc5,0xd4, | |
| 3824 | 0xf0,0x6e,0xfa,0xd1,0x1e,0x7c,0xd6,0xb4,0x26,0x53,0xf0,0x98,0x45,0xf7,0xb0,0xe7, | |
| 3825 | 0x8b,0xb8,0x4b,0x5c,0xd5,0x3a,0xc8,0x00,0xd2,0x70,0xfd,0x30,0x01,0x9b,0x92,0x94, | |
| 3826 | 0xb1,0x4f,0xfc,0x28,0xff,0x6e,0x81,0x36,0xda,0x2a,0x3a,0x58,0x01,0x05,0x0b,0x7a, | |
| 3827 | 0x02,0xd3,0xac,0xd5,0x3c,0xb6,0xa2,0xf4,0xdd,0x20,0x45,0xb2,0xe3,0xd5,0xbb,0x39, | |
| 3828 | 0xf5,0x42,0x6a,0xf9,0xff,0xe4,0x31,0x66,0x4a,0x6f,0xbe,0xc3,0xd7,0x72,0x75,0x83, | |
| 3829 | 0x47,0xcc,0xca,0xf4,0x4d,0x72,0xef,0x8c,0x9e,0x58,0xf7,0x15,0xb9,0xa5,0x10,0x78, | |
| 3830 | 0x6e,0x6a,0x96,0xa5,0x9b,0xa3,0xde,0x30,0x12,0x65,0x3b,0xad,0xa9,0xc3,0x01,0xb1, | |
| 3831 | 0x34,0xd1,0x84,0xcf,0x85,0xa4,0x19,0x9b,0x72,0x4f,0x13,0xa9,0xcf,0xe6,0xc7,0x8e, | |
| 3832 | 0x6e,0x7d,0x88,0xde,0x25,0x29,0xaa,0x2b,0xc7,0xfd,0x81,0x0b,0x29,0x0e,0x62,0x11, | |
| 3833 | 0x1e,0x6f,0xa0,0xd2,0x7a,0x34,0x8f,0xe0,0x12,0x71,0x84,0xd1,0xb8,0x3b,0xd2,0x39, | |
| 3834 | 0x42,0xa5,0xcd,0xab,0x84,0xc4,0xca,0xbb,0x51,0xaa,0x1b,0xfd,0x7d,0x6d,0x17,0x06, | |
| 3835 | 0xdc,0x21,0x0f,0x69,0x43,0xd8,0x59,0xba,0x85,0xa8,0x48,0x8e,0x76,0xa4,0x31,0x77, | |
| 3836 | 0xeb,0xe1,0x66,0x0c,0xb7,0x72,0x3d,0xde,0xae,0x6b,0x0a,0x83,0xa4,0xe1,0x20,0x8e, | |
| 3837 | 0x6e,0xe6,0xd3,0x94,0xdf,0x91,0x77,0x27,0xcc,0xf3,0x61,0xde,0x08,0x22,0xe4,0x4a, | |
| 3838 | 0x67,0x31,0x54,0x01,0xbd,0x34,0x05,0x96,0xdf,0x1b,0x69,0xa9,0x71,0xc4,0x62,0x19, | |
| 3839 | 0x14,0x29,0x2c,0x50,0x5d,0xe9,0x29,0xe7,0x52,0xcd,0xc2,0x6d,0xb3,0xea,0xb1,0xb7, | |
| 3840 | 0x95,0x95,0x8a,0x98,0x0a,0x21,0xe1,0xe4,0x29,0xe3,0x4b,0x70,0x03,0x2d,0x5b,0x0f, | |
| 3841 | 0xae,0x55,0xa6,0x95,0x3d,0xaf,0xbf,0xd6,0xc5,0x8d,0x3a,0xa7,0x58,0x45,0xab,0xdb, | |
| 3842 | 0x0c,0x2b,0xa7,0x47,0xf5,0x91,0xc1,0xbd,0x25,0xcd,0x8d,0x13,0xb2,0x32,0xa0,0x1d, | |
| 3843 | 0xb0,0x15,0x8d,0xad,0x31,0xc9,0xe8,0x99,0x4b,0xa2,0x46,0xb5,0x12,0xf4,0x3a,0xd3, | |
| 3844 | 0x98,0x14,0x58,0xc9,0xf3,0x55,0x34,0x6a,0x36,0x0c,0x63,0x8b,0x76,0x8b,0x78,0xff, | |
| 3845 | 0xc6,0x28,0x08,0x9a,0x3a,0x37,0xa6,0x31,0xe6,0x0a,0xe6,0x96,0xdf,0xf7,0x5c,0x9f, | |
| 3846 | 0x38,0x51,0x9d,0x20,0x05,0x6d,0x3c,0xec,0x5b,0x9e,0xcd,0xd7,0x4d,0x38,0xe5,0xb5, | |
| 3847 | 0xef,0x90,0x17,0x5b,0x56,0xf9,0xf7,0x9c,0x95,0xc7,0x1a,0x4c,0xc0,0x4e,0x13,0xec, | |
| 3848 | 0xe3,0x76,0x4b,0x9d,0xb1,0xc1,0xf0,0x8d,0x64,0x0f,0x44,0x26,0x95,0x80,0x2f,0x9b, | |
| 3849 | 0xb8,0xc7,0xa7,0x22,0x41,0x99,0x9e,0xed,0xa3,0xaa,0x08,0x31,0x54,0xae,0xdb,0x22, | |
| 3850 | 0xc6,0x59,0x0a,0xf3,0x6e,0x5e,0x88,0xda,0xbf,0x73,0x4a,0x09,0x2f,0x4a,0x44,0xb5, | |
| 3851 | 0x30,0x98,0x6a,0x12,0x37,0x11,0xaf,0x53,0xb8,0x68,0x09,0xae,0x27,0x52,0x6a,0x55, | |
| 3852 | 0xf8,0x84,0xc7,0x7d,0x9e,0xb0,0x14,0x5a,0x8e,0x8a,0x44,0x20,0x3c,0xc8,0x4d,0x02, | |
| 3853 | 0x1c,0x1c,0x21,0x35,0xa2,0x3c,0xb5,0xee,0x41,0xda,0xfd,0x5e,0x6f,0xab,0xed,0xbc, | |
| 3854 | 0x9e,0x62,0x78,0x3b,0x43,0xb5,0x93,0x0e,0xd1,0x56,0x33,0x6a,0xbe,0xfa,0x49,0x83, | |
| 3855 | 0x7c,0x55,0xcc,0x8d,0x80,0x1b,0xaf,0xbc,0x3e,0xff,0xe5,0x43,0x2a,0xb7,0x63,0x58, | |
| 3856 | 0xb8,0xf5,0x1d,0x2d,0x5b,0x6e,0x07,0xf7,0x88,0xd6,0x15,0xe9,0xb3,0xe0,0x3a,0x39, | |
| 3857 | 0x50,0x42,0x6b,0x19,0xd3,0xae,0x9d,0xbe,0xaf,0xd9,0xc1,0x5c,0x5a,0x77,0xce,0x27, | |
| 3858 | 0x46,0x3b,0xb7,0x53,0xe8,0xdb,0x6f,0x13,0xb3,0x09,0xeb,0x9c,0x1d,0x7a,0x1f,0x22, | |
| 3859 | 0x98,0xe2,0xff,0xd9,0x99,0xf5,0x7e,0xf5,0x94,0x66,0x92,0xa9,0xfd,0xeb,0x2d,0x2a, | |
| 3860 | 0x48,0x36,0x44,0xac,0xe8,0xfc,0xcb,0x63,0x52,0xf1,0xb5,0x83,0xfa,0xc8,0xf8,0x3f, | |
| 3861 | 0x54,0x37,0x86,0xcd,0xd4,0xf0,0x54,0x5f,0xed,0xa8,0x56,0x2a,0x14,0xd1,0x06,0x0d, | |
| 3862 | 0x95,0xa5,0x68,0xfc,0x48,0xc5,0x51,0x01,0xee,0x04,0xd7,0x6f,0x19,0x36,0x0e,0x9b, | |
| 3863 | 0x5f,0x30,0x08,0xd8,0x53,0xc5,0xdb,0x7a,0x8a,0xc9,0x9a,0xd5,0x97,0x11,0x5a,0x3e, | |
| 3864 | 0x0e,0x70,0x2e,0x08,0x84,0xba,0x2a,0x88,0x8c,0xc4,0x63,0x10,0xba,0x60,0xeb,0xf6, | |
| 3865 | 0xa2,0x65,0xd9,0x8e,0xd9,0xa4,0x3e,0x2a,0xf2,0xf3,0x30,0x20,0x82,0x25,0xc2,0xc4, | |
| 3866 | 0x1b,0x0e,0x08,0x68,0x53,0x83,0x17,0x62,0xbe,0x57,0x02,0x05,0xee,0x5f,0xdd,0xa6, | |
| 3867 | 0x6d,0xd4,0xe0,0x3b,0x19,0x8d,0xd6,0xb0,0xa5,0x5b,0xe4,0x13,0xc3,0x30,0x9d,0xbc, | |
| 3868 | 0x81,0xf7,0x1c,0xb7,0x20,0x18,0x91,0x84,0xbf,0xb5,0x4e,0xb7,0x31,0xe3,0xa9,0xe4, | |
| 3869 | 0x4a,0xb5,0xf6,0xa0,0xde,0x10,0xd9,0xb6,0xef,0x35,0xfa,0xbb,0x52,0x47,0x1d,0xa7, | |
| 3870 | 0x52,0x7a,0xb6,0x2d,0xe1,0x01,0x39,0x03,0xf4,0x11,0x1a,0xdb,0x7f,0xde,0xcc,0x6a, | |
| 3871 | 0x76,0x9c,0xc4,0x64,0xcd,0x7f,0x76,0x7c,0x77,0xba,0x56,0x67,0x69,0x82,0xd7,0xda, | |
| 3872 | 0x97,0x0b,0x6f,0x87,0xf5,0x89,0x90,0x22,0x77,0x30,0xaf,0x61,0x10,0x34,0x76,0x7f, | |
| 3873 | 0xe2,0xad,0xb7,0x69,0x91,0x34,0x5a,0xe2,0x4d,0x94,0xf4,0xbe,0x29,0x21,0x17,0xd1, | |
| 3874 | 0x39,0x30,0x59,0xf0,0x92,0x14,0x4e,0xee,0x47,0x21,0x88,0x9f,0x6c,0xab,0x9d,0xd8, | |
| 3875 | 0x16,0x07,0x21,0x6c,0x58,0x88,0xa6,0x2f,0x46,0x83,0xc2,0xf6,0xf5,0x4b,0x08,0x94, | |
| 3876 | 0x78,0x34,0x0d,0xdd,0xe3,0x92,0x64,0xa6,0x4a,0xba,0xa1,0xc1,0xc2,0xff,0x58,0x05, | |
| 3877 | 0x5e,0xb5,0x1e,0x43,0x33,0x31,0x86,0x51,0x54,0xc6,0x25,0x02,0xd5,0xc8,0x8d,0x2a, | |
| 3878 | 0xca,0x8c,0x55,0x9e,0x48,0x65,0x0e,0x31,0x62,0xa7,0x4e,0xb8,0x2c,0xa6,0xa7,0x05, | |
| 3879 | 0xbb,0xb7,0xb0,0xee,0x22,0x72,0x9a,0x20,0xd6,0x4c,0x20,0x4c,0x78,0x47,0xac,0x34, | |
| 3880 | 0x5b,0xd9,0xf3,0xcc,0xb3,0x74,0xa9,0x08,0xb3,0x8d,0x81,0xdb,0x91,0x98,0x31,0x3a, | |
| 3881 | 0x7f,0x08,0x6b,0x19,0xb2,0x53,0xe4,0x6c,0x5e,0xeb,0x50,0x27,0xb7,0x45,0x63,0x3d, | |
| 3882 | 0xf1,0xd5,0xd0,0xa4,0x3f,0x0f,0x4c,0x4e,0xd6,0x66,0x8b,0x30,0xea,0x50,0x41,0x3d, | |
| 3883 | 0xaf,0x3f,0x22,0x6b,0x59,0xa8,0xe2,0xac,0x1b,0xff,0x34,0xf6,0x2b,0xb7,0xcd,0x3b, | |
| 3884 | 0xbb,0x46,0x61,0x6f,0xff,0x1e,0xa4,0x88,0x2d,0xb4,0x4a,0x78,0x78,0x7c,0x06,0x35, | |
| 3885 | 0x13,0xe9,0x8d,0xb1,0x33,0x71,0x93,0xe1,0x0c,0x86,0xcc,0xb8,0xd2,0x9d,0xec,0x2c, | |
| 3886 | 0xb8,0x2a,0xa6,0x2f,0xf4,0xa1,0xb0,0xb6,0xb8,0x75,0xbc,0xb5,0x39,0x1c,0x7f,0x20, | |
| 3887 | 0xab,0x08,0xac,0xea,0x42,0xae,0xf9,0x09,0x31,0x82,0x18,0x6f,0xad,0xf7,0xbe,0x11, | |
| 3888 | 0xea,0x83,0x9f,0xe3,0x1c,0x98,0x6f,0xd8,0x77,0xab,0xe2,0xe6,0x2e,0x30,0xab,0xff, | |
| 3889 | 0x77,0x9a,0x7f,0x18,0x84,0x5f,0x12,0x25,0x8a,0xf1,0x18,0x1a,0xbd,0xc5,0x45,0xea, | |
| 3890 | 0x50,0x4f,0x4c,0x8b,0x79,0x03,0xe3,0xef,0x6a,0x54,0xbc,0x0b,0x58,0xb8,0x8c,0xd2, | |
| 3891 | 0x77,0xa1,0x07,0x3a,0xfa,0x84,0xe0,0x35,0x17,0xd5,0xcc,0xb8,0x00,0x07,0x80,0xb7, | |
| 3892 | 0xea,0x90,0xae,0x26,0x09,0xe2,0x0a,0xf9,0x91,0x72,0x4a,0x23,0x6a,0x01,0x3a,0x71, | |
| 3893 | 0xf5,0xdb,0xcc,0xd9,0x44,0x57,0x2e,0x8e,0xad,0x09,0x33,0xa3,0x83,0x86,0xb0,0x2c, | |
| 3894 | 0x1b,0x61,0x78,0x3e,0xc8,0x2e,0x5f,0xec,0xde,0x82,0x39,0x4a,0xb2,0xf0,0xdb,0x6d, | |
| 3895 | 0x96,0x0c,0x18,0x68,0xe1,0x6b,0xc4,0x4f,0xe4,0xa0,0xb4,0x37,0xf5,0x3f,0xba,0x33, | |
| 3896 | 0x67,0xdc,0xad,0x57,0x8e,0x0c,0x5e,0xb7,0xbf,0x62,0xa3,0x68,0x4d,0x73,0x4f,0x7d, | |
| 3897 | 0x8c,0xd2,0x37,0x0b,0xd1,0x13,0x2e,0x24,0x6f,0xca,0x08,0xde,0xba,0x8c,0x99,0x4d, | |
| 3898 | 0x07,0xec,0xb6,0x84,0xa9,0x7e,0x32,0x97,0xf4,0xd7,0xe1,0x9a,0x3c,0x8a,0x98,0xa1, | |
| 3899 | 0xd6,0x2b,0x2a,0xc1,0x15,0x4f,0x6b,0x0e,0x4e,0x89,0x30,0x9a,0xd4,0x6d,0x4c,0x7b, | |
| 3900 | 0xfb,0x8f,0x93,0xc4,0x17,0x84,0xda,0x8a,0x7d,0xdf,0xf3,0xe0,0x80,0x35,0xb5,0xda, | |
| 3901 | 0x74,0x19,0xf1,0x8c,0xae,0x1f,0x7d,0x0b,0x81,0xdb,0x2c,0x6a,0x41,0xe2,0xd2,0xbd, | |
| 3902 | 0x43,0xc7,0x44,0x19,0xda,0x1e,0x55,0x91,0x5a,0x7c,0xda,0x39,0x17,0x74,0xa5,0x26, | |
| 3903 | 0x66,0x9a,0x8c,0x6b,0x9a,0x83,0x63,0x1c,0x08,0xc2,0xfc,0x4e,0x02,0xeb,0x2d,0x14, | |
| 3904 | 0xdf,0x93,0xc9,0x82,0xf0,0x4c,0xa5,0xac,0x8b,0xad,0x94,0xa7,0x03,0x47,0x6a,0x86, | |
| 3905 | 0xac,0xb0,0xfb,0x5e,0xdb,0x7b,0x1c,0x42,0xe3,0x3c,0xa0,0x46,0x18,0x88,0x5c,0x7e, | |
| 3906 | 0xce,0xf2,0x23,0xff,0x5a,0x0e,0xc9,0xdc,0x10,0x71,0x22,0x29,0x42,0xae,0x03,0xfb, | |
| 3907 | 0x46,0x59,0x3f,0x65,0x6f,0x07,0xaa,0x7b,0x12,0xbd,0xfe,0x6b,0x67,0xa4,0x71,0x09, | |
| 3908 | 0xe3,0x06,0x54,0xdc,0x2a,0x97,0x9b,0x17,0xae,0x0b,0x39,0xf0,0xe4,0x15,0x23,0x99, | |
| 3909 | 0x3f,0x6a,0x4d,0x47,0x35,0xbf,0xab,0x2e,0x38,0xc5,0x31,0x82,0xbd,0x33,0xd2,0x77, | |
| 3910 | 0x38,0xbc,0x84,0x2b,0x4e,0x8c,0x76,0x15,0xb6,0xba,0x69,0xbd,0x38,0xb0,0x1f,0x76, | |
| 3911 | 0x68,0x41,0xae,0x94,0xdb,0x41,0x29,0x6b,0x24,0x85,0xa5,0x50,0xd7,0xe0,0x35,0x96, | |
| 3912 | 0x89,0x26,0xed,0x92,0xcd,0x2c,0xe2,0x96,0x37,0xc4,0x26,0xf8,0x5b,0xc5,0xd0,0x0c, | |
| 3913 | 0xce,0x00,0xf1,0x24,0x23,0x4b,0x9f,0x96,0xee,0x79,0xed,0xb6,0xc4,0x5e,0xef,0xd6, | |
| 3914 | 0x38,0xcf,0xba,0x4c,0xdf,0x9f,0x61,0x6b,0x4b,0xa3,0xf8,0x88,0x12,0xad,0x94,0xf6, | |
| 3915 | 0xc7,0x93,0x48,0x09,0xff,0x29,0x28,0x15,0x4d,0x41,0x49,0x6f,0x45,0xb1,0xbd,0x6a, | |
| 3916 | 0x7c,0x4c,0x9b,0x5a,0x85,0xe7,0xf4,0x94,0xf4,0x55,0xde,0x6b,0x5d,0x6a,0x6c,0x34, | |
| 3917 | 0x55,0xfa,0xb3,0x41,0x6f,0xda,0xc5,0xe8,0xee,0x84,0xe7,0x9d,0x75,0xdf,0x36,0x12, | |
| 3918 | 0x98,0xcb,0xd9,0x71,0x09,0x3a,0x06,0x2d,0x7d,0x21,0xef,0xbb,0xa8,0x73,0xc8,0x90, | |
| 3919 | 0x3e,0x26,0xc7,0x1e,0xf3,0x2c,0x1f,0xd9,0x7a,0x7b,0x03,0x37,0x88,0x05,0xa8,0xaa, | |
| 3920 | 0xd1,0xbe,0x42,0xa8,0x09,0x9c,0x05,0xa3,0xe3,0x91,0x24,0x0f,0x15,0x93,0xd4,0x62, | |
| 3921 | 0x51,0x94,0x49,0x0e,0x4c,0x89,0xb7,0x89,0xba,0x65,0x52,0x45,0xa1,0xa0,0x1e,0xbe, | |
| 3922 | 0xbc,0xb5,0x7e,0xef,0xb6,0x26,0x07,0x65,0x63,0x07,0x0d,0xb6,0x98,0x6d,0xe5,0x76, | |
| 3923 | 0x28,0x6b,0xe2,0x37,0xe7,0x15,0x59,0x8f,0xaa,0x80,0x9d,0x11,0x44,0xbf,0x02,0x52, | |
| 3924 | 0x89,0xe6,0xdc,0xe5,0x4e,0x09,0x80,0x5e,0x65,0x3d,0x41,0x51,0xa5,0x95,0x73,0x53, | |
| 3925 | 0xdf,0x26,0x6b,0xf7,0xe9,0x02,0x7c,0xd2,0x96,0x8d,0xbd,0xf8,0x2c,0x35,0x2c,0xb4, | |
| 3926 | 0x52,0xb3,0x04,0xb9,0x01,0x4d,0xea,0x3c,0x87,0xc8,0x80,0x85,0xd2,0x55,0xc5,0x6a, | |
| 3927 | 0xf4,0x47,0x4b,0xbf,0x04,0xf3,0xa8,0x56,0x13,0xab,0x6f,0x05,0x37,0xc6,0x35,0x9f, | |
| 3928 | 0x83,0x95,0x8d,0xf9,0x0c,0x6e,0x0b,0xe6,0xe5,0xa4,0x43,0x3a,0x22,0x8b,0xca,0xc9, | |
| 3929 | 0xd7,0x78,0x33,0x68,0x19,0xbe,0x13,0xea,0xfb,0xb1,0xfc,0x24,0x91,0xa5,0x85,0xe8, | |
| 3930 | 0xf0,0xef,0x3f,0x0d,0x2b,0xe3,0xc0,0x64,0x56,0xd3,0x9b,0xc3,0x86,0x15,0x64,0xfd, | |
| 3931 | 0xce,0xfc,0xaf,0xe6,0x42,0xdd,0x11,0x52,0xf7,0x0a,0x1e,0x16,0x00,0xd9,0x68,0x06, | |
| 3932 | 0x71,0x9e,0x85,0xf4,0x5e,0xab,0x08,0xb6,0xdc,0x56,0x86,0x1f,0xfe,0xf3,0x91,0x04, | |
| 3933 | 0xd9,0xd4,0xbf,0x38,0x80,0x4f,0xa4,0x8f,0x07,0xb8,0xd3,0xdd,0x82,0x61,0xe0,0xf7, | |
| 3934 | 0x06,0xa0,0x5f,0xb0,0xa6,0xc8,0xe5,0xdc,0x76,0x2e,0x05,0x50,0x8b,0x25,0x53,0xdf, | |
| 3935 | 0xf8,0x01,0x63,0x5d,0xd1,0x16,0xca,0x9f,0x2a,0xb9,0x1c,0x78,0x18,0x3d,0xeb,0xbc, | |
| 3936 | 0xaf,0xf7,0xcd,0xfe,0x4b,0x9e,0x64,0x67,0x1f,0xff,0xca,0xdd,0x83,0x46,0x3a,0x52, | |
| 3937 | 0xac,0xe6,0x69,0xba,0xce,0x55,0x0b,0x0b,0x1d,0x05,0xd3,0x38,0xcd,0x6b,0x77,0x34, | |
| 3938 | 0x11,0xfa,0xa9,0xf4,0x1e,0x28,0x1e,0x6c,0x28,0x67,0x8a,0x90,0x63,0x2c,0xa1,0x53, | |
| 3939 | 0x03,0xeb,0x17,0xab,0x3b,0x18,0x9f,0x8a,0xb8,0x6a,0x29,0x81,0xf1,0xbe,0xc2,0x3c, | |
| 3940 | 0x9f,0x65,0xdb,0xf4,0x17,0xf2,0x47,0xbb,0xac,0xfa,0xda,0xa8,0xb2,0x0f,0x68,0xcc, | |
| 3941 | 0x7e,0xc8,0xc6,0x3d,0x63,0xb6,0xc7,0x0e,0xb5,0x6f,0x86,0xf4,0x20,0xad,0x1f,0x26, | |
| 3942 | 0xec,0x6c,0xbd,0x60,0x97,0xaf,0x51,0xd7,0x93,0x27,0xd2,0xbf,0x55,0x8b,0x33,0x4b, | |
| 3943 | 0x51,0x8e,0x67,0xb1,0xfb,0xe3,0x63,0x23,0xc7,0x3f,0x1b,0xd6,0x28,0x56,0x83,0xfe, | |
| 3944 | 0x93,0xdc,0x8f,0xcf,0x7c,0x85,0x32,0x7c,0x57,0x04,0x61,0x3b,0x98,0x0e,0x11,0x3e, | |
| 3945 | 0xb2,0x57,0x33,0xba,0x1a,0x93,0xbe,0xe2,0x45,0x76,0xa5,0xec,0xa4,0xb3,0xdb,0x0a, | |
| 3946 | 0xae,0x00,0x55,0x72,0xd6,0x0f,0x07,0x56,0x8f,0x95,0xe5,0xea,0x4e,0x45,0xe2,0x64, | |
| 3947 | 0x87,0xd5,0xf4,0xf7,0xae,0xf7,0x0d,0xd6,0x37,0x60,0x22,0x36,0x95,0xc4,0x27,0x4b, | |
| 3948 | 0x3d,0xd7,0x0f,0x48,0xa3,0x4d,0xd0,0x63,0x3b,0xd9,0x5c,0xce,0x79,0x30,0xa8,0xbe, | |
| 3949 | 0xd0,0x07,0xa8,0x67,0xb5,0x0f,0x55,0xf3,0x4b,0xe2,0x64,0x71,0x6c,0x50,0x7c,0x83, | |
| 3950 | 0x63,0xbd,0x53,0xe5,0x3f,0x8c,0xa4,0x5b,0xd2,0xc7,0xe6,0x17,0xd0,0x62,0x4d,0x8d, | |
| 3951 | 0xec,0x50,0x0c,0x31,0xdb,0x86,0x58,0x77,0x52,0xf8,0x66,0xd2,0x03,0x9a,0x67,0xb7, | |
| 3952 | 0xa2,0x60,0x92,0x9a,0xe5,0x3d,0x1a,0xef,0x7e,0x26,0x32,0x2a,0x23,0x0f,0x0f,0xbe, | |
| 3953 | 0x86,0xec,0xe5,0x20,0x5c,0xb1,0xe8,0xc4,0x58,0x51,0x4b,0x1e,0x30,0xc2,0x44,0xa2, | |
| 3954 | 0x96,0xf6,0x05,0xc4,0x3f,0xe2,0xc3,0xf7,0xdf,0x7a,0xb2,0xb0,0x2a,0xb1,0x05,0x63, | |
| 3955 | 0xd3,0x7d,0xf2,0x84,0x90,0xd0,0xab,0x86,0x13,0x9f,0x65,0xdf,0x11,0xdd,0x54,0x01, | |
| 3956 | 0x3e,0x80,0xac,0x61,0x4d,0x7b,0xa0,0x73,0xf4,0xc1,0x66,0xab,0xe5,0x47,0x30,0x7c, | |
| 3957 | 0xd5,0x01,0x33,0x5b,0x78,0xe2,0xa3,0xbc,0x81,0xe0,0xb3,0x13,0xa6,0xed,0x98,0xd4, | |
| 3958 | 0x99,0xfe,0x87,0x73,0x0f,0x07,0xb2,0x63,0xbc,0xfc,0x4e,0x19,0x54,0xd1,0x8e,0x09, | |
| 3959 | 0x8b,0x79,0xa8,0xa7,0x14,0xe9,0xce,0x66,0xa4,0x15,0x35,0xbc,0xef,0xf1,0x11,0x1b, | |
| 3960 | 0xa9,0x71,0x96,0xf8,0x85,0x88,0xf7,0xc7,0x39,0x2b,0x69,0xfc,0x77,0x4e,0x21,0x0a, | |
| 3961 | 0xf4,0xe5,0x50,0x66,0x64,0xe4,0x2d,0x84,0x7b,0x3e,0xeb,0xd8,0xec,0xe9,0xbd,0xd6, | |
| 3962 | 0x6c,0xd7,0xd8,0xf2,0xb0,0xfd,0x70,0x9f,0x69,0x4e,0xb9,0x52,0x4e,0xc0,0xe7,0x7f, | |
| 3963 | 0x12,0x45,0x2d,0x9a,0x68,0xd3,0xc1,0x16,0x05,0x5c,0xd5,0x69,0x9d,0xd4,0x9e,0x05, | |
| 3964 | 0xe4,0x31,0x4f,0x5f,0x8e,0x65,0x1e,0xeb,0x4e,0x66,0x3d,0x1d,0xd9,0x26,0xe1,0x68, | |
| 3965 | 0xe3,0x9a,0x3e,0x41,0x20,0xb5,0x88,0x1c,0x44,0x6d,0xf3,0x6d,0x02,0xb4,0xb2,0xa8, | |
| 3966 | 0x10,0x7f,0xfa,0x4d,0xdf,0xb3,0x45,0x95,0xfb,0xef,0xe3,0x0b,0x32,0x84,0x68,0x44, | |
| 3967 | 0x58,0x86,0x25,0xd3,0x41,0x07,0x70,0x4c,0xc2,0x1d,0x9c,0x44,0xaf,0xdb,0xfd,0x4e, | |
| 3968 | 0xda,0x56,0xe8,0xfe,0x19,0xa0,0xb0,0xe8,0x3f,0xd0,0xa9,0xa1,0x21,0xf7,0x28,0xbc, | |
| 3969 | 0x91,0x2b,0x80,0xce,0x66,0x7f,0x05,0x69,0x71,0x07,0x0c,0x23,0x88,0xd8,0xe8,0x90, | |
| 3970 | 0x7e,0x05,0xed,0x42,0x27,0xa2,0x6f,0xcf,0x58,0xc4,0xc3,0xcb,0xe4,0x7e,0x3c,0xc8, | |
| 3971 | 0x9f,0xe4,0x2f,0x5c,0x5e,0x0b,0xef,0x1a,0xf4,0x06,0xd0,0x97,0x35,0xe9,0x26,0x66, | |
| 3972 | 0xf5,0xc8,0x46,0x1b,0x09,0xb8,0x83,0x4a,0x45,0xcc,0x31,0x88,0x7b,0x19,0xa5,0x68, | |
| 3973 | 0x81,0xb1,0x32,0x7f,0x2a,0xaa,0x2c,0x5f,0x4a,0x18,0xe8,0x9e,0xb6,0x0e,0xb8,0xd0, | |
| 3974 | 0x41,0xae,0x4e,0x70,0xbd,0x8d,0x33,0x51,0x26,0xdc,0xdd,0x1d,0x6e,0xd1,0xc1,0x87, | |
| 3975 | 0x8b,0x9e,0x53,0x45,0x6f,0x79,0x06,0x09,0x0f,0x94,0x50,0x88,0x5f,0x24,0xa3,0x76, | |
| 3976 | 0x52,0x5c,0x74,0x86,0xde,0x72,0x37,0x6e,0xf5,0x98,0x5f,0xe0,0x8c,0x03,0x62,0x91, | |
| 3977 | 0x97,0xe7,0xb2,0x35,0x0a,0x78,0xc4,0x7f,0xd8,0xea,0x0c,0x25,0xf6,0x70,0xfe,0xd9, | |
| 3978 | 0x59,0x3f,0x0d,0x50,0xf3,0x8b,0xaf,0x3e,0xb8,0x88,0x56,0x57,0x9e,0x6a,0x77,0x4f, | |
| 3979 | 0x97,0x64,0x86,0xd9,0x98,0xab,0xf6,0xaa,0x95,0x73,0x3d,0x76,0x82,0xf0,0xcd,0xf1, | |
| 3980 | 0x53,0x56,0x1b,0xce,0xfb,0xd9,0x9b,0xc3,0x70,0xac,0xc0,0x82,0xa4,0x04,0x00,0xc0, | |
| 3981 | 0x8b,0x15,0xcd,0x31,0x1b,0x13,0x9c,0x89,0x47,0x31,0xe1,0x7b,0x02,0xa5,0x10,0xb8, | |
| 3982 | 0xc5,0xee,0x02,0xe0,0x51,0xd0,0x5e,0x50,0x22,0x43,0xe8,0xdb,0x4b,0x9b,0x34,0x55, | |
| 3983 | 0xe0,0x2c,0xd7,0x93,0xf5,0x4b,0x65,0x68,0x9f,0x4b,0x70,0xa8,0xf1,0x81,0x8e,0x27, | |
| 3984 | 0x00,0x3f,0x52,0xba,0xdf,0xdb,0x51,0x35,0xa2,0xa9,0x1d,0x6a,0x5d,0xfb,0x4c,0x2f, | |
| 3985 | 0x25,0x27,0x72,0x57,0x0d,0x80,0x22,0xb6,0x2a,0x5b,0xf0,0x21,0x8e,0x0b,0x70,0x6b, | |
| 3986 | 0x4f,0xe4,0x37,0x68,0x81,0x3b,0xd8,0xed,0x36,0x63,0xe7,0xcd,0x84,0xb0,0xf8,0xdc, | |
| 3987 | 0x7e,0x76,0xa0,0xef,0x39,0x0a,0x73,0xd9,0xc8,0xbf,0x03,0x6e,0x3f,0xe9,0xe6,0x83, | |
| 3988 | 0xb3,0xdd,0xaf,0xeb,0x36,0xee,0xf3,0x7a,0xde,0x70,0x44,0x04,0xbf,0xb8,0x39,0x5e, | |
| 3989 | 0xec,0x19,0x63,0x5b,0x79,0xe7,0x58,0xd0,0x7a,0x77,0xab,0x8f,0x04,0x1c,0xf0,0x6e, | |
| 3990 | 0x2a,0x2a,0xbc,0x41,0x00,0xf6,0xa2,0xdb,0x9b,0xd2,0x36,0x0f,0x0e,0x14,0x0d,0xb4, | |
| 3991 | 0x6d,0x10,0xb9,0x9b,0xcd,0x19,0xd1,0x9a,0xf3,0xe3,0x21,0xcd,0x36,0x2b,0x42,0x34, | |
| 3992 | 0x23,0xf0,0x87,0x34,0xed,0xa7,0xa2,0xbf,0xc7,0xc3,0x49,0xca,0xe6,0xba,0x2e,0x49, | |
| 3993 | 0x7e,0xfe,0x06,0x2f,0xc3,0x04,0x84,0x72,0xe8,0xb6,0x4e,0xc9,0x7d,0xc0,0xc2,0x54, | |
| 3994 | 0xc0,0x91,0x69,0xd0,0x00,0xbc,0x18,0x4f,0x92,0xd5,0xa2,0xe7,0xc9,0x71,0xdb,0xac, | |
| 3995 | 0xfa,0x23,0x98,0xb0,0x78,0x7f,0xac,0x09,0x97,0x19,0xeb,0xca,0xab,0x86,0x29,0x08, | |
| 3996 | 0x09,0x59,0x3b,0xd6,0x04,0x27,0xf4,0x48,0xf0,0x83,0x29,0x72,0x22,0x01,0xad,0x69, | |
| 3997 | 0xed,0x35,0x54,0x9e,0x1c,0xcd,0x20,0x70,0x55,0xf4,0x50,0x98,0x78,0x69,0x03,0x48, | |
| 3998 | 0xf8,0xe1,0x2e,0xb5,0x4a,0x10,0xc5,0x13,0xe3,0xaa,0xbb,0x95,0x35,0x63,0x05,0x71, | |
| 3999 | 0xb4,0xee,0x98,0xd9,0xd6,0x00,0x66,0x02,0x0d,0x4d,0x63,0x20,0xcf,0x89,0x85,0x67, | |
| 4000 | 0x8e,0x67,0xbf,0x0a,0xbe,0x9d,0x04,0x3e,0xd5,0xdd,0x49,0x38,0x46,0xdc,0x82,0x2a, | |
| 4001 | 0x84,0x4e,0xa2,0x48,0x04,0xe7,0x9f,0xc8,0x3a,0x5a,0x6b,0xdc,0x9a,0x5c,0xfb,0xb9, | |
| 4002 | 0x97,0xa2,0x43,0x93,0xa6,0xdd,0x37,0x9e,0x3c,0xc4,0xcb,0x0e,0xcb,0x0a,0xf2,0x16, | |
| 4003 | 0xc7,0x62,0xa1,0xec,0xa6,0x81,0xcc,0xc2,0xda,0x1b,0x67,0xcd,0xd9,0xe4,0x66,0x74, | |
| 4004 | 0x43,0xcc,0xb5,0x59,0x9b,0xaf,0xf1,0xb0,0x01,0x8e,0x18,0xc4,0xeb,0x56,0x37,0x7f, | |
| 4005 | 0x2a,0x94,0xc3,0xbc,0xd0,0xed,0xf0,0xef,0x90,0x57,0xf1,0x8b,0x20,0xc4,0xfb,0x06, | |
| 4006 | 0x32,0x29,0x42,0xd2,0x7b,0x79,0xfa,0x65,0xae,0xaa,0x57,0x30,0x81,0xae,0x8c,0xaa, | |
| 4007 | 0xa6,0x7b,0xce,0x46,0xd3,0x03,0x51,0x77,0xb9,0x3a,0x49,0xb2,0x0f,0x16,0xea,0x6c, | |
| 4008 | 0x88,0x89,0x67,0x16,0xd7,0x89,0xf6,0x27,0xb2,0x08,0xc9,0x11,0xcb,0xfb,0x15,0x4a, | |
| 4009 | 0xd6,0x55,0x0e,0x44,0x89,0x0c,0xe7,0x74,0x97,0x12,0xd6,0x4d,0xb3,0x5c,0x0d,0x45, | |
| 4010 | 0x92,0xde,0xc1,0xce,0xe8,0x8c,0x26,0x5d,0x69,0x59,0x6f,0x66,0xc8,0x3b,0xd2,0x5d, | |
| 4011 | 0xbb,0x24,0x81,0xb6,0xf4,0x09,0xb1,0xe4,0x28,0xde,0x96,0x5c,0x0a,0x96,0x64,0x92, | |
| 4012 | 0x50,0x27,0x4e,0xfa,0xad,0x83,0x8a,0x08,0xd4,0x9f,0x4a,0x2f,0x7a,0x6f,0xc3,0xe5, | |
| 4013 | 0x53,0xe7,0x28,0x9c,0x12,0xfa,0xaf,0xc9,0x6d,0x9e,0x8a,0xdf,0x16,0xc5,0xef,0x54, | |
| 4014 | 0xc2,0x64,0x10,0x9a,0x25,0x6e,0x21,0x26,0xf3,0xd9,0x58,0x6c,0xdf,0x97,0xe7,0xe0, | |
| 4015 | 0x9f,0x9d,0x04,0xf6,0xe5,0xdf,0xe1,0x21,0x66,0x51,0xb3,0xd6,0xd6,0xe7,0xad,0x89, | |
| 4016 | 0xe8,0x94,0x05,0xae,0x52,0x4e,0xed,0xb9,0xc6,0x07,0x9a,0x1d,0xf9,0xb4,0x76,0xba, | |
| 4017 | 0x3a,0x2a,0x77,0x92,0x41,0x6e,0xfa,0x88,0x54,0xfb,0x52,0x31,0x46,0xe4,0xd3,0x1f, | |
| 4018 | 0xeb,0x3d,0xd1,0xe8,0x18,0x1b,0xa1,0x20,0xa0,0x91,0x96,0x59,0x57,0xb3,0x05,0x29, | |
| 4019 | 0x12,0x96,0x41,0x23,0xa4,0x4c,0x9e,0xdc,0xe1,0xec,0x70,0xe7,0x9d,0x87,0x0c,0xd8, | |
| 4020 | 0xad,0x33,0xc5,0x43,0xe4,0x03,0xef,0xbd,0x17,0x0c,0xdf,0xd9,0x19,0x60,0xe8,0x2c, | |
| 4021 | 0xbe,0x15,0x5e,0x48,0xda,0x3f,0x96,0xc3,0x42,0xf0,0xe2,0x31,0xc9,0x3e,0x99,0x24, | |
| 4022 | 0x43,0x3d,0x0c,0x32,0x85,0xff,0x91,0xef,0x62,0x9a,0x7b,0xed,0xae,0x22,0x1f,0xc2, | |
| 4023 | 0x3e,0xa9,0xcf,0x01,0xe5,0x45,0xe1,0x3f,0x77,0x09,0xa9,0x0f,0xc9,0x0a,0x7a,0x05, | |
| 4024 | 0xae,0x5b,0xa8,0xb5,0xfa,0x10,0x87,0xb4,0x81,0x3d,0x6c,0x95,0x18,0xf7,0xa9,0xed, | |
| 4025 | 0x92,0x51,0x95,0x4e,0xc4,0x5f,0x81,0x4e,0x80,0x36,0xc3,0x81,0x9c,0xe9,0xae,0x79, | |
| 4026 | 0xec,0x8c,0x97,0xcc,0x42,0x34,0xd1,0x0e,0x74,0xf4,0xb0,0xd1,0x56,0xe0,0x88,0xab, | |
| 4027 | 0xba,0x0d,0xae,0x2f,0x76,0x8e,0x75,0xf2,0x5e,0x77,0x32,0x87,0x44,0xdc,0x37,0x82, | |
| 4028 | 0xfe,0xd2,0xda,0x77,0x5f,0x6c,0x6f,0xfb,0x3c,0xbf,0x48,0xa1,0x67,0xdd,0xbb,0xfe, | |
| 4029 | 0xb7,0xdd,0x1c,0xa4,0xfd,0xd0,0xbd,0x29,0x0f,0xcc,0xf4,0x21,0xc0,0xe4,0x14,0x1e, | |
| 4030 | 0xe4,0x2c,0x72,0xb6,0x50,0xb9,0x61,0x7d,0xd7,0x9e,0x35,0x05,0x4d,0xef,0x42,0xe4, | |
| 4031 | 0x87,0xc0,0xdd,0xad,0x58,0x26,0x59,0xf5,0x94,0x34,0x0a,0x4f,0x0f,0xff,0x45,0x4f, | |
| 4032 | 0x9e,0x9a,0x5d,0x8a,0x14,0x19,0xa7,0x92,0x46,0x90,0x75,0xfd,0x07,0x14,0x1d,0x5f, | |
| 4033 | 0x2b,0xb8,0xf2,0x4b,0x86,0x90,0x49,0x55,0xed,0xb1,0x75,0x11,0x33,0x2e,0xca,0x14, | |
| 4034 | 0x2c,0x1c,0x9d,0xf1,0xad,0x8d,0x43,0xd6,0x86,0x14,0xba,0x83,0x96,0x84,0x9f,0x44, | |
| 4035 | 0x1e,0xe5,0xfb,0x03,0x2c,0xb4,0xca,0xdc,0x7b,0xf5,0xc0,0xdd,0x49,0xa9,0x43,0x71, | |
| 4036 | ||
| 4037 | /* data */ | |
| 4038 | 0x0a,0x9d,0x0f,0x2c,0x45,0x00,0x27,0x7a,0x7f,0x4e,0x67,0x7e,0x4b,0x5c,0xe4,0x8a, | |
| 4039 | 0x3d,0xfd,0xb1,0xf4,0xe9,0x05,0xe2,0x10,0xe4,0x48,0x8b,0x30,0xc1,0x9b,0xc1,0xaa, | |
| 4040 | 0x15,0xd1,0x97,0xd2,0x72,0xbf,0x21,0xfa,0x6e,0x37,0x74,0x78,0x9d,0x0f,0xa3,0x9f, | |
| 4041 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4042 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4043 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4044 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4045 | 0x91,0x1b,0xc2,0xc4,0xe0,0x2d,0xe6,0x3a,0x1e,0x1b,0x22,0x55,0xdd,0xb9,0x8a,0x4f, | |
| 4046 | 0x71,0xde,0x7f,0x38,0x3a,0x53,0x3f,0xf6,0xfe,0xb8,0xb4,0xff,0x71,0x01,0x12,0xc5, | |
| 4047 | 0x46,0x21,0x8c,0xbd,0x33,0x0d,0x58,0x5a,0xea,0xb9,0xa8,0x12,0x20,0x19,0xb1,0x57, | |
| 4048 | 0x89,0x21,0xa7,0x9e,0xd9,0xc5,0xbd,0x5b,0xc3,0xf8,0x29,0x02,0xfc,0xaf,0x1d,0x06, | |
| 4049 | 0x38,0xde,0xce,0xdd,0x2b,0x79,0x70,0xf9,0x89,0x73,0x36,0xcf,0x06,0xc2,0x56,0xd2, | |
| 4050 | 0x55,0x58,0x02,0x78,0x2b,0x2a,0x6f,0x33,0x3c,0x2c,0xd1,0x79,0x3c,0x51,0x5c,0xbc, | |
| 4051 | 0xdf,0x8f,0x43,0x70,0xd8,0xd8,0xbb,0x0b,0xdc,0x21,0xf9,0x00,0x9f,0x5e,0x2f,0xc2, | |
| 4052 | 0xd5,0x82,0x91,0xc6,0x32,0x83,0x55,0x80,0x69,0x53,0xad,0x64,0x30,0xe7,0xce,0xe5, | |
| 4053 | 0x39,0x33,0xed,0x78,0x39,0x2b,0x3b,0x92,0xe3,0xc3,0xef,0xa5,0xed,0xee,0x3b,0x25, | |
| 4054 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4055 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4056 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4057 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4058 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4059 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4060 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4061 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4062 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4063 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4064 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4065 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4066 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4067 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4068 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4069 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4070 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4071 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4072 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4073 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4074 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4075 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4076 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4077 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4078 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4079 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4080 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4081 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4082 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4083 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4084 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4085 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4086 | 0x09,0xa1,0x55,0x88,0xec,0xd0,0x6f,0xc8,0x31,0xe0,0x48,0xe3,0xfe,0x8b,0xf4,0xe4, | |
| 4087 | 0x1e,0x47,0xbd,0x60,0x65,0x27,0xf7,0xe9,0xa7,0x19,0xbe,0xee,0x72,0x7c,0xfd,0xf1, | |
| 4088 | 0xb4,0x4c,0xbe,0x5b,0x11,0xbd,0x75,0xdf,0x7f,0x02,0x96,0x33,0xf0,0x50,0x94,0x09, | |
| 4089 | 0x59,0xdb,0xe4,0x16,0xae,0xd7,0xfb,0x0d,0xe2,0x78,0x4b,0xa4,0xea,0xf1,0x48,0x8d, | |
| 4090 | 0xbb,0x77,0x68,0x7e,0x47,0x3e,0x1d,0x29,0x82,0x7a,0xdd,0x42,0x62,0x5f,0x1a,0x7f, | |
| 4091 | 0xda,0x21,0x48,0x92,0xdd,0xf3,0xdd,0x31,0x60,0x0a,0x4c,0x0e,0x57,0x9a,0x08,0xdd, | |
| 4092 | 0xb5,0xd7,0x86,0x54,0x70,0xf4,0x3a,0x26,0x7a,0x27,0x98,0x06,0xc8,0xa2,0x13,0xa9, | |
| 4093 | 0x4e,0x9a,0x20,0xc3,0x00,0x43,0x34,0x08,0xd2,0xd0,0xc1,0x2b,0xb7,0x77,0x3b,0xe2, | |
| 4094 | 0xa4,0x6a,0x18,0xdf,0x8d,0xde,0xca,0xd7,0x66,0x07,0xc6,0x7e,0x23,0x19,0x81,0x87, | |
| 4095 | 0xb7,0x47,0x6c,0xa8,0x17,0xc7,0xfe,0x93,0x37,0xcb,0xa9,0xfd,0x0b,0x88,0xe3,0x9a, | |
| 4096 | 0x87,0x31,0x1e,0x1d,0x9e,0xfc,0xcf,0x3c,0x46,0x4c,0x9d,0xa0,0x68,0x7d,0xab,0xd4, | |
| 4097 | 0xc0,0xea,0x53,0x22,0x7e,0x3c,0xd2,0x91,0xf9,0x06,0x82,0x53,0xcd,0xfe,0x06,0x5e, | |
| 4098 | 0x2d,0x98,0x10,0xa4,0x4e,0x47,0x55,0x19,0x64,0x80,0x89,0xb3,0xa2,0xb7,0x5f,0x64, | |
| 4099 | 0x3e,0x60,0x8d,0x22,0x6a,0xef,0xc5,0xdf,0x5b,0xd7,0xbc,0x90,0x45,0x8e,0x26,0x28, | |
| 4100 | 0x5c,0x86,0xb7,0x9d,0xd4,0x34,0x22,0xe1,0xe0,0x0b,0x1c,0xe9,0xb5,0x81,0x59,0xa9, | |
| 4101 | 0x87,0x08,0x8d,0x15,0x8a,0x15,0x6c,0x20,0xf2,0x1c,0xaa,0xc0,0xf2,0x91,0xfa,0xe7, | |
| 4102 | 0xbf,0xe8,0x11,0x8a,0x8e,0x94,0xa3,0x9d,0x90,0x0a,0x64,0x13,0xfc,0xbe,0x08,0xe2, | |
| 4103 | 0x05,0x24,0x42,0xfc,0xde,0xb0,0xc7,0x56,0xbc,0xd5,0x4b,0xe4,0xd3,0x09,0x82,0x9a, | |
| 4104 | 0x57,0xbe,0x20,0x6b,0x7b,0x69,0xd8,0x4d,0x75,0x7d,0x60,0x32,0x77,0x70,0x6a,0x0f, | |
| 4105 | 0xb6,0xb4,0xab,0xd7,0x66,0xbe,0xd6,0x80,0xba,0x02,0xa1,0xfc,0xe8,0xf4,0xbe,0x22, | |
| 4106 | 0x08,0xe2,0x2c,0xd9,0xd7,0x41,0x94,0x84,0xcb,0xf6,0x38,0x39,0xe5,0x3f,0x2d,0x4b, | |
| 4107 | 0xba,0xef,0x86,0x0e,0xdd,0xdb,0x58,0xd7,0xe2,0xd6,0xb5,0xf9,0x5d,0xb4,0xb4,0xc8, | |
| 4108 | 0xe3,0x49,0x66,0x99,0x07,0x6a,0xe1,0xbf,0x5d,0xea,0x38,0x8e,0x7a,0x9d,0x7f,0x5b, | |
| 4109 | 0xf1,0x58,0xcb,0x78,0x56,0xee,0x2e,0x3b,0x3e,0x33,0xbf,0xf8,0x3c,0xfc,0x8f,0x02, | |
| 4110 | 0xe4,0x1c,0xb4,0xad,0xcb,0x67,0x41,0x4d,0x83,0xb2,0x4b,0x37,0xa3,0xd0,0xe5,0xbe, | |
| 4111 | 0xbc,0x95,0x23,0x36,0x64,0xd5,0x19,0xf4,0x2e,0x65,0xdc,0x4b,0xae,0x18,0x7f,0x8f, | |
| 4112 | 0x79,0xc3,0x16,0x15,0x22,0x38,0xb6,0x30,0x3d,0x4d,0x72,0x34,0x5f,0xd6,0x5e,0x75, | |
| 4113 | 0x1b,0xa5,0x8f,0x48,0x05,0x90,0x18,0x00,0xb2,0x6b,0x0d,0xf2,0xb5,0x08,0x83,0x71, | |
| 4114 | 0xa2,0x3d,0x8d,0xd1,0x0e,0xdd,0x3f,0x66,0x8b,0xbd,0xad,0x85,0xb0,0xb0,0xec,0x81, | |
| 4115 | 0x0e,0x8a,0x0f,0xae,0x3b,0x20,0x2b,0x61,0xca,0x44,0x53,0xed,0x4f,0xcc,0x9b,0xa6, | |
| 4116 | 0x5f,0x8c,0x17,0xe1,0x8d,0x57,0xdc,0xf0,0x6d,0x01,0xfd,0x2a,0x94,0x5e,0x8e,0xe0, | |
| 4117 | 0x95,0x43,0xa4,0x68,0x04,0x83,0x52,0x15,0x76,0xf2,0xac,0x3c,0x7e,0x65,0xc6,0x2f, | |
| 4118 | 0xb0,0xaf,0xb5,0x44,0xa1,0xa4,0x8d,0xcf,0xe4,0x18,0x60,0x23,0x0d,0xe0,0x44,0x94, | |
| 4119 | 0xb0,0xcf,0x4c,0x76,0x62,0xba,0x8c,0x1e,0xb6,0x74,0x19,0xdf,0x13,0x80,0x62,0xbe, | |
| 4120 | 0xe5,0xc5,0x3a,0x5c,0xd1,0x1a,0xe8,0x65,0x8c,0x73,0x9e,0x4c,0xca,0xc4,0x91,0x84, | |
| 4121 | 0x3f,0x01,0xf5,0x82,0x9f,0x1e,0xfd,0xba,0x9e,0x0e,0xdf,0xa0,0xef,0xc6,0xcd,0xa8, | |
| 4122 | 0x47,0x3a,0xfc,0x45,0x5a,0x5e,0xa0,0xec,0xdc,0x26,0xed,0x11,0x81,0x85,0x16,0x28, | |
| 4123 | 0xfc,0x70,0x51,0xa5,0x02,0xdb,0xd0,0xfb,0x47,0xba,0xc8,0x9f,0x7f,0x01,0x6c,0x06, | |
| 4124 | 0x5e,0xa3,0xf2,0xa1,0x97,0x96,0x8c,0xe7,0xe0,0xcc,0x70,0x4b,0xeb,0x3a,0xd0,0x79, | |
| 4125 | 0x6d,0xbd,0x98,0xf3,0x57,0xb5,0x2f,0xee,0xf1,0xd9,0xbf,0x00,0x0d,0x3e,0xd7,0x28, | |
| 4126 | 0x01,0x1c,0x72,0x88,0xc2,0xad,0x56,0x97,0x66,0x26,0xf8,0x09,0xe3,0xbd,0xcc,0x91, | |
| 4127 | 0x2b,0xa4,0x46,0xe4,0x33,0x87,0x7e,0xc2,0x96,0xb2,0x13,0xc9,0xcd,0xca,0xf1,0xc8, | |
| 4128 | 0xf9,0x24,0xae,0x92,0x2c,0x13,0xde,0xfb,0x7c,0xeb,0x13,0xd7,0xfd,0x01,0xe3,0xfb, | |
| 4129 | 0xc1,0xa7,0xe2,0x3a,0xde,0x34,0xa2,0x68,0x68,0xf9,0xb9,0x5a,0x71,0x4c,0xba,0xe2, | |
| 4130 | 0x0f,0x80,0x3a,0xd7,0x55,0xe9,0xcc,0x0a,0x58,0xdc,0x04,0x51,0x2b,0xac,0xf6,0xb5, | |
| 4131 | 0xc8,0xb7,0x97,0x5a,0x21,0x87,0xf6,0xf3,0x73,0x25,0xc8,0x74,0xf2,0x05,0xc0,0xd0, | |
| 4132 | 0xd1,0x9b,0x94,0xfd,0x46,0x5b,0xf6,0xed,0x83,0xb9,0x9b,0x95,0xbd,0x28,0x37,0xe9, | |
| 4133 | 0x28,0x1d,0x7e,0xdc,0xf7,0x0c,0x23,0x63,0x60,0x69,0xdc,0x73,0x95,0xa7,0x5b,0xfe, | |
| 4134 | 0xcb,0x3c,0x55,0xf8,0x36,0x9a,0x7e,0x57,0x0a,0x36,0x89,0x0d,0x7a,0x84,0x2c,0x10, | |
| 4135 | 0xbc,0xf8,0x19,0x52,0x02,0x05,0x05,0xc8,0x81,0x20,0xa4,0x65,0x6c,0xbd,0xa9,0x1f, | |
| 4136 | 0xf9,0x50,0xca,0xe8,0x5a,0x4d,0xb9,0xb5,0xc5,0x28,0x2b,0x7a,0x6c,0x54,0xd4,0x2b, | |
| 4137 | 0x83,0x46,0x68,0xbc,0x2d,0xfa,0x47,0x75,0x5d,0x1b,0xe2,0xc8,0x9a,0xa7,0x95,0x30, | |
| 4138 | 0x38,0x30,0x33,0xc0,0x8b,0x4c,0x91,0x8d,0xe8,0x8e,0x82,0xaa,0xa2,0x8b,0xda,0x2b, | |
| 4139 | 0x0d,0xd5,0x6d,0x24,0x7e,0x02,0x10,0xaa,0x48,0xa6,0x96,0xd0,0xbf,0x54,0xd4,0xab, | |
| 4140 | 0x38,0xa0,0x9d,0x4d,0x05,0x1e,0xc5,0xcc,0x7d,0x63,0x20,0x3c,0xf1,0x02,0x83,0xaf, | |
| 4141 | 0xb7,0x8f,0xc1,0x3b,0x22,0x9e,0xae,0xf3,0x87,0xc4,0x1f,0xec,0x38,0x95,0xe6,0x39, | |
| 4142 | 0x8b,0xa3,0xda,0xee,0xd4,0x84,0xcc,0x20,0x66,0xcb,0x92,0xe1,0x95,0x0d,0xff,0x47, | |
| 4143 | 0xb5,0xdc,0xe8,0x66,0x1b,0xce,0x20,0x51,0x19,0x77,0x7b,0x1c,0x06,0x6a,0xcd,0xdb, | |
| 4144 | 0x33,0x3b,0xeb,0xa3,0xf6,0x7e,0xa8,0x87,0xa2,0xc8,0xd8,0x9b,0x8c,0xac,0x50,0xf4, | |
| 4145 | 0x07,0xbe,0xe3,0xa5,0x67,0x93,0x65,0xc2,0x00,0xbd,0xab,0x60,0x27,0xd3,0x88,0x91, | |
| 4146 | 0x2f,0x66,0xd0,0x6c,0x6d,0x0c,0x58,0x02,0x33,0x58,0xf2,0x69,0xd7,0xdf,0x75,0xb4, | |
| 4147 | 0xad,0x33,0xb2,0xf7,0x07,0xeb,0x7f,0x47,0x3b,0x98,0xaf,0xb7,0x9d,0xd0,0x16,0x5c, | |
| 4148 | 0x7f,0x26,0x89,0x48,0x37,0x2e,0xdb,0x91,0x18,0x7d,0xe1,0x4b,0x77,0xa6,0x6d,0x88, | |
| 4149 | 0xa7,0x3d,0x55,0x5e,0xfc,0xd7,0x6d,0xe1,0xca,0x07,0x87,0x23,0x66,0x61,0x79,0x3a, | |
| 4150 | 0x23,0x79,0x16,0x39,0x55,0xe4,0x33,0x35,0x51,0x35,0xa3,0xb5,0xb4,0x20,0x9a,0xaa, | |
| 4151 | 0x1b,0x42,0x50,0xa5,0x1d,0x62,0x39,0xd8,0x2c,0x35,0x4b,0x77,0xbd,0x6e,0x79,0xb8, | |
| 4152 | 0x44,0xc3,0xb6,0xcd,0x35,0xe6,0xf7,0xeb,0x03,0x8c,0x30,0x46,0x24,0x69,0x55,0x12, | |
| 4153 | 0x0a,0x31,0x59,0x83,0x2a,0x97,0x32,0xcc,0xf8,0x51,0xd2,0x23,0xe7,0x11,0x2e,0xba, | |
| 4154 | 0x6d,0x8c,0x3a,0xc6,0xfc,0x76,0xe9,0x7a,0x09,0x82,0x31,0x0c,0x08,0x66,0x04,0xae, | |
| 4155 | 0x6c,0xd4,0x57,0x95,0xab,0x81,0x1e,0xf5,0x37,0x21,0x4d,0x02,0x85,0x67,0xd7,0xf0, | |
| 4156 | 0x09,0x09,0xb1,0xf2,0x37,0xb9,0xd0,0x3d,0x82,0x2c,0x25,0x05,0x60,0x16,0xa7,0x7e, | |
| 4157 | 0x43,0x2b,0x49,0xdc,0xa0,0x1e,0xfe,0x52,0xeb,0xa5,0xbb,0x15,0x97,0x72,0x74,0x59, | |
| 4158 | 0x1a,0x3a,0x1d,0x52,0xe6,0xb1,0xaa,0x34,0x70,0x8a,0x0e,0x33,0x2c,0x7b,0x3e,0x82, | |
| 4159 | 0x8d,0x36,0x2f,0x56,0x09,0x70,0xd2,0xe3,0x12,0xdd,0x1e,0x5d,0x1d,0x31,0x06,0xf7, | |
| 4160 | 0x9e,0x1f,0x7d,0xe7,0x09,0x5c,0x78,0x5f,0xd1,0x9d,0xeb,0x94,0x6c,0x93,0xca,0xba, | |
| 4161 | 0x4c,0xf5,0x08,0x04,0xe6,0x76,0x9b,0xa8,0xad,0xc9,0x75,0xd8,0x17,0xa3,0x8b,0xc9, | |
| 4162 | 0x96,0xb8,0xd1,0xaf,0xa0,0xbc,0x3a,0xbe,0xa7,0x63,0xbc,0x29,0x20,0x60,0x49,0x26, | |
| 4163 | 0x7e,0x68,0xd6,0xe7,0x37,0x2f,0x57,0xa1,0xbd,0x69,0xc0,0x87,0x85,0xca,0x04,0xcf, | |
| 4164 | 0x03,0x05,0x18,0xab,0xab,0xd0,0xf0,0x51,0xf0,0xdd,0x80,0xf3,0x48,0xe1,0xbc,0xc5, | |
| 4165 | 0x25,0x8f,0x98,0xfd,0xfc,0x9d,0x07,0xcd,0x4b,0x19,0x51,0x81,0xb9,0x5e,0xfc,0x12, | |
| 4166 | 0xe6,0x50,0x8f,0x19,0x64,0xc0,0x1f,0xe9,0xca,0x84,0xbf,0xd6,0xa9,0x6f,0x83,0x34, | |
| 4167 | 0x97,0x56,0x7f,0x58,0x27,0x0c,0xc8,0x94,0xed,0x65,0x71,0x3f,0x7e,0x35,0x8f,0xaa, | |
| 4168 | 0x6d,0x51,0x34,0x1d,0x13,0x39,0x12,0xdf,0xed,0xe6,0x21,0xf3,0xfe,0x7f,0xa1,0xce, | |
| 4169 | 0xfa,0xf7,0xc6,0xe2,0x94,0x44,0xc3,0xa3,0x81,0x58,0xcd,0x87,0x76,0x28,0x19,0x00, | |
| 4170 | 0x25,0xa8,0xd8,0x84,0x42,0xcb,0x41,0x85,0x83,0x87,0x87,0x77,0x9a,0xce,0xdd,0xd0, | |
| 4171 | 0x3d,0x95,0x78,0x03,0x1e,0xd0,0x8c,0x83,0xf2,0x72,0x4d,0xc5,0x6c,0x71,0xee,0x3d, | |
| 4172 | 0x42,0xbf,0xa5,0x5f,0x26,0x51,0xa4,0x9e,0xcd,0x1b,0x20,0x6f,0xeb,0x11,0x4d,0x47, | |
| 4173 | 0x34,0x27,0x5e,0x98,0x5b,0x50,0x89,0xd6,0x16,0x81,0x00,0x77,0x17,0xae,0xf8,0xed, | |
| 4174 | 0x13,0xcb,0xa5,0xae,0xbe,0xcc,0x3b,0x2c,0xcb,0xa4,0xed,0xdb,0xf0,0x48,0xf1,0x31, | |
| 4175 | 0xdf,0xac,0x79,0xa1,0x4d,0xc4,0xba,0x9e,0xdd,0xb8,0x7c,0x5a,0xd8,0xa0,0x52,0x53, | |
| 4176 | 0x9e,0x8f,0xbd,0xbf,0x03,0x9b,0x11,0x30,0xdb,0xd8,0xa3,0x3c,0xfb,0x58,0xc5,0x77, | |
| 4177 | 0x36,0x31,0xce,0x73,0x60,0x77,0x0f,0xc6,0x4e,0x3c,0xde,0x03,0xd2,0x96,0x8e,0xbf, | |
| 4178 | 0xc3,0x98,0x73,0x8d,0xf2,0x57,0xe2,0x01,0x35,0xe6,0x2e,0xaf,0x5f,0x59,0xab,0x2c, | |
| 4179 | 0x45,0xc4,0xae,0x0b,0xba,0x3c,0x8a,0xe1,0x92,0xd4,0x93,0x4f,0x1e,0x4e,0xb7,0xbe, | |
| 4180 | 0xa6,0xde,0x52,0xbc,0xf2,0x37,0x8c,0xfe,0xf6,0x8d,0xd7,0x35,0xa6,0x14,0xa9,0x18, | |
| 4181 | 0xf6,0x00,0x73,0x5a,0xd9,0x84,0xac,0xae,0x44,0xd6,0xc7,0xc9,0x2b,0x28,0x37,0x5f, | |
| 4182 | 0x82,0xaf,0x71,0x24,0x3c,0x9e,0xe9,0xcc,0x4f,0x2b,0x13,0x0a,0xad,0x88,0x63,0x93, | |
| 4183 | 0x4b,0xea,0x4c,0x1b,0x1d,0x85,0x44,0x56,0x17,0xfa,0x76,0xba,0xf1,0x3a,0x79,0x2a, | |
| 4184 | 0x2b,0x8f,0x6f,0x7b,0x39,0xbb,0x4e,0x9c,0xfc,0xc3,0x93,0xa8,0x30,0x91,0xc2,0x95, | |
| 4185 | 0x09,0x99,0x91,0x55,0xba,0x4f,0xb2,0xde,0x78,0x27,0xda,0x22,0x77,0x94,0xbd,0x15, | |
| 4186 | 0xeb,0x0b,0x0f,0xad,0x08,0x00,0x84,0xdc,0x01,0xe7,0xcf,0x98,0x0c,0x34,0xa5,0xd3, | |
| 4187 | 0x5b,0x5a,0xbb,0x82,0x23,0xcf,0xc2,0x98,0x98,0x05,0x71,0x0b,0xed,0x71,0x7b,0xcd, | |
| 4188 | 0x58,0x86,0x93,0xd3,0x0b,0xba,0x6e,0x11,0x3b,0x7f,0xc0,0x7b,0x1c,0x4a,0x3d,0x04, | |
| 4189 | 0xe1,0x8f,0x98,0xa2,0xc0,0xc2,0x86,0x47,0xeb,0x57,0xbc,0xe8,0x97,0xc1,0xec,0x79, | |
| 4190 | 0xf8,0x75,0xca,0xed,0x42,0xe7,0x0c,0x3a,0xa8,0x8b,0x64,0x52,0x5f,0xd5,0x88,0x2a, | |
| 4191 | 0x9c,0x38,0x2a,0xb6,0x91,0x2a,0xff,0xea,0x72,0x1d,0xba,0xb9,0x75,0x86,0x11,0x19, | |
| 4192 | 0xcc,0xd8,0xb6,0xfc,0xac,0x89,0x5e,0x57,0x49,0x0b,0xbd,0x1d,0xd7,0xd3,0x87,0x44, | |
| 4193 | 0x8a,0x55,0x6f,0xbe,0x95,0x05,0x2b,0x80,0x2e,0x57,0x6d,0x7e,0x87,0xbe,0xea,0xac, | |
| 4194 | 0xd5,0xaf,0x56,0x01,0x39,0x55,0xd6,0x24,0x59,0x18,0x55,0x2b,0xab,0xa8,0x8e,0x2a, | |
| 4195 | 0x81,0x9c,0x57,0x36,0x31,0x85,0x83,0x62,0x0f,0xf9,0xe6,0xc3,0x6d,0x8b,0x55,0x6b, | |
| 4196 | 0xa1,0xcf,0xa3,0x70,0xfe,0x5a,0xa5,0xe6,0xd9,0xbf,0x2d,0xdf,0x85,0x92,0x11,0x71, | |
| 4197 | 0x56,0x68,0x25,0xaf,0xa0,0xd3,0x3b,0xae,0x27,0xee,0xe5,0x46,0x8b,0xb8,0xb0,0x81, | |
| 4198 | 0xb9,0xb1,0xde,0x25,0x25,0x8c,0x65,0x66,0x43,0xff,0x37,0x77,0x87,0xbc,0x49,0x8d, | |
| 4199 | 0x64,0x78,0x8f,0xdc,0x50,0xe7,0xfd,0x98,0xbd,0xbd,0x53,0xc9,0x86,0x03,0x21,0xf2, | |
| 4200 | 0x8f,0xe7,0x8b,0x84,0x1f,0xbd,0xa5,0xd4,0xc9,0x5b,0x84,0x34,0x21,0x94,0x3b,0xfb, | |
| 4201 | 0xbc,0x3c,0xde,0x7a,0x2d,0x27,0x82,0x07,0x08,0x2a,0x39,0xf5,0xe1,0x19,0x1a,0x98, | |
| 4202 | 0x4d,0xc6,0x36,0x45,0xdf,0x07,0xa3,0x4f,0x2c,0xaf,0x74,0x0a,0xc7,0x93,0xbe,0xcb, | |
| 4203 | 0x44,0x86,0x93,0xe5,0x37,0x5c,0x09,0xac,0x35,0xe9,0x34,0x75,0xd1,0x02,0x26,0x93, | |
| 4204 | 0x9f,0x7a,0xf5,0x5a,0x34,0x25,0xb5,0x1e,0x23,0xd8,0x78,0x34,0x00,0x66,0x54,0xef, | |
| 4205 | 0x60,0xa3,0x5d,0xa4,0xd6,0x64,0xa5,0xa6,0xf6,0x7c,0x42,0x49,0x54,0xbf,0x47,0xe1, | |
| 4206 | 0x85,0x02,0xc9,0xc3,0x1c,0x17,0xdb,0x42,0xae,0xd5,0x91,0xb2,0xce,0x0d,0xff,0x68, | |
| 4207 | 0x10,0x95,0x3a,0xb7,0x08,0x50,0xfd,0x9d,0xff,0x93,0xb4,0xf9,0x8a,0x66,0xbf,0xff, | |
| 4208 | 0x5d,0xb0,0x80,0x99,0xde,0x14,0xb9,0xcd,0xa5,0xbd,0x84,0x2f,0x88,0xbe,0x34,0x54, | |
| 4209 | 0x5b,0x2b,0x1e,0xcf,0xf0,0x19,0x94,0x34,0x1d,0x9b,0xed,0x17,0xb5,0xc5,0x7a,0x0d, | |
| 4210 | 0x8d,0xab,0x91,0xa9,0x78,0x62,0x85,0x80,0x4a,0xfd,0xaa,0x25,0xd7,0x91,0x55,0x2c, | |
| 4211 | 0xf4,0x30,0xd9,0x29,0x74,0xf1,0x8a,0xb1,0x2c,0xe5,0xbc,0x57,0xee,0x22,0xc4,0xaf, | |
| 4212 | 0x91,0xbb,0xf6,0x4e,0xe6,0xc4,0xa4,0xc7,0xc3,0x52,0x24,0xae,0xfb,0x78,0xc9,0x98, | |
| 4213 | 0x62,0x4a,0xe7,0x18,0xcc,0xdc,0xd3,0xc2,0x0e,0x43,0xe0,0x2b,0xfc,0x92,0x63,0xe5, | |
| 4214 | 0x68,0xde,0xae,0x87,0x28,0x3a,0x17,0xa2,0x0f,0xba,0xf2,0xcc,0xf2,0x72,0x91,0x98, | |
| 4215 | 0xa4,0x77,0x4a,0x9a,0xf9,0xdc,0x71,0x67,0xc5,0xb6,0x58,0x92,0xdd,0x17,0x55,0xaf, | |
| 4216 | 0x14,0x15,0xbb,0x53,0x3e,0xc4,0xdf,0x11,0x30,0x36,0x14,0x7d,0xbd,0x81,0xae,0x2c, | |
| 4217 | 0xb9,0xb8,0x01,0xb1,0xf9,0xf0,0x62,0xa0,0x50,0x3c,0x24,0x8e,0x92,0xb0,0x9c,0x0d, | |
| 4218 | 0x94,0x61,0x1c,0xb4,0x28,0x61,0xfa,0x14,0x25,0xc6,0x8a,0xc3,0x5c,0xa4,0x1e,0x54, | |
| 4219 | 0xa3,0x0e,0x0c,0x5b,0xcd,0x18,0xa7,0x6d,0xae,0xd6,0x44,0x1d,0x1b,0x5d,0x36,0xff, | |
| 4220 | 0xe7,0xc0,0xd1,0xa8,0xe7,0x13,0x6a,0xab,0xed,0x6b,0x54,0x9c,0xcf,0xdb,0xe3,0x10, | |
| 4221 | 0x60,0x77,0x6b,0x9a,0x75,0x54,0x41,0xce,0xe1,0x84,0xb8,0x41,0x78,0x1e,0x24,0x86, | |
| 4222 | 0x0f,0x33,0xda,0x31,0x79,0xd9,0x2d,0xd6,0x8a,0x23,0x71,0x0a,0x16,0x25,0xfb,0x60, | |
| 4223 | 0xf2,0xf4,0x1e,0x6c,0xf1,0xa3,0x2e,0xc3,0xe8,0x47,0x80,0xf8,0xa9,0xf2,0x67,0xa0, | |
| 4224 | 0x0a,0xba,0x37,0x20,0xc2,0xff,0xab,0xe7,0x71,0xf5,0x5b,0x18,0x7f,0x10,0xc5,0x69, | |
| 4225 | 0xe2,0x83,0x5d,0x8c,0x8c,0x83,0x96,0x36,0x72,0x44,0xe6,0x1b,0x88,0xfa,0xbf,0xef, | |
| 4226 | 0xc1,0xd9,0x96,0x66,0x13,0x14,0xdf,0x33,0x70,0xe1,0x0d,0x0c,0xcd,0x72,0x96,0xa3, | |
| 4227 | 0x1e,0xfc,0xec,0xac,0x57,0xb3,0x84,0xdd,0x6b,0xca,0xd2,0xe9,0x50,0x77,0x4a,0x83, | |
| 4228 | 0xf8,0xec,0x5f,0x60,0x58,0x5e,0x87,0x34,0x63,0x01,0x34,0xb3,0x0f,0x08,0xdb,0x90, | |
| 4229 | 0x4e,0xa9,0xf0,0x81,0x16,0x16,0xe6,0x38,0x59,0x84,0x33,0x6a,0x0b,0x27,0x49,0xca, | |
| 4230 | 0x22,0x33,0x9d,0x0e,0x90,0xdb,0xa3,0xe8,0x4b,0x54,0xce,0x0e,0x45,0xd3,0x94,0x32, | |
| 4231 | 0x73,0x8a,0x67,0x09,0xc8,0xad,0xbc,0x46,0x3a,0x72,0x07,0x9f,0xbb,0x0b,0xbc,0xc6, | |
| 4232 | 0xa0,0xf3,0x87,0xc0,0xe2,0xea,0x59,0x05,0xe8,0xf3,0xda,0xe6,0xc7,0x61,0x9c,0x36, | |
| 4233 | 0x93,0x89,0x35,0xca,0x5e,0xbd,0x38,0x75,0x3e,0x53,0x3a,0x0b,0x46,0x9f,0xce,0x61, | |
| 4234 | 0x8b,0xf4,0x88,0x4a,0x20,0xa6,0xfc,0x9a,0x19,0x09,0xbf,0x25,0x8a,0x72,0x64,0xc0, | |
| 4235 | 0x88,0x34,0x80,0x3e,0x26,0xa3,0xa5,0x74,0x78,0x13,0x69,0x34,0x93,0xd9,0x60,0x54, | |
| 4236 | 0x8a,0x48,0x1c,0xa8,0x71,0xb5,0x33,0x03,0x5d,0x73,0x39,0x39,0x61,0xd6,0xc0,0x1e, | |
| 4237 | 0x91,0x32,0x5e,0x86,0x02,0xdc,0xa6,0x46,0xc7,0x27,0x2d,0x32,0xf4,0x68,0x86,0x1c, | |
| 4238 | 0x9d,0xf1,0x45,0xda,0xd7,0x18,0xfe,0x3f,0xb5,0x31,0x46,0x20,0x4c,0x8e,0xb0,0x4f, | |
| 4239 | 0xaf,0x85,0xd1,0xa3,0xf2,0x6a,0x3c,0xed,0x29,0x8f,0x85,0x03,0x69,0x4a,0xbc,0x41, | |
| 4240 | 0xa1,0x9c,0x01,0xf8,0x5a,0xfb,0xfb,0x1b,0x04,0x9f,0x61,0x9d,0xd2,0xfd,0xe6,0x74, | |
| 4241 | 0xfa,0x89,0x3d,0x92,0xae,0xb6,0x1b,0xec,0x23,0xfa,0x34,0x76,0x8d,0xc7,0x3c,0x23, | |
| 4242 | 0x20,0x92,0xe7,0xe9,0x0f,0xcf,0xe8,0xba,0x90,0xf1,0xf4,0x8b,0xd5,0x6e,0xbf,0x50, | |
| 4243 | 0x13,0xb8,0xfd,0xfd,0x7d,0x44,0x62,0x85,0x49,0x86,0xa1,0xdd,0xa9,0xf2,0x70,0xfa, | |
| 4244 | 0xd3,0xfb,0x81,0xcd,0xf9,0x17,0x89,0x4d,0x4f,0xb8,0x3b,0x6d,0x0b,0x53,0x4d,0x20, | |
| 4245 | 0x60,0x5b,0x71,0x5b,0x81,0x46,0x5c,0x12,0xa3,0x86,0xc2,0x39,0xfa,0x91,0x57,0xc4, | |
| 4246 | 0xb9,0xd9,0xcf,0xa6,0x16,0xd3,0xdd,0xd4,0x43,0xf2,0x37,0x42,0x75,0xac,0x8f,0xe4, | |
| 4247 | 0xe0,0x73,0x99,0xae,0xb8,0xbc,0x0b,0x94,0x31,0xfb,0x98,0x89,0x7e,0xa4,0xf3,0x82, | |
| 4248 | 0xd4,0x2a,0xd1,0x73,0x67,0x03,0xe6,0x50,0x6b,0xa1,0xe6,0x0c,0x14,0x79,0x84,0x9d, | |
| 4249 | 0x95,0xfe,0x76,0xf5,0x24,0xa6,0x6e,0x09,0x83,0xe6,0x85,0xdd,0xa2,0x8e,0x2e,0xb5, | |
| 4250 | 0xcb,0x5c,0x6b,0xde,0x51,0xe5,0x0f,0x6b,0x88,0xbc,0xef,0x71,0xc5,0x75,0xdd,0x02, | |
| 4251 | 0x5b,0xa4,0xb0,0x34,0x9e,0xde,0x39,0x1b,0xe3,0x5e,0x04,0x23,0x26,0x46,0xda,0xa6, | |
| 4252 | 0x29,0xf1,0xe8,0xa6,0xbf,0x13,0x22,0x57,0x5a,0x60,0x7c,0xec,0x6f,0x8b,0xe9,0x9b, | |
| 4253 | 0x71,0x4a,0x5e,0x96,0xd6,0x4f,0xcf,0x12,0x10,0x4f,0x30,0x43,0x95,0xfe,0x75,0x5d, | |
| 4254 | 0xd7,0x0f,0x91,0x93,0x4a,0x38,0x79,0x1b,0x64,0x2b,0x21,0x27,0x98,0x9d,0x7d,0xec, | |
| 4255 | 0x59,0x42,0x81,0xa5,0xb4,0xf2,0x0b,0x9f,0x11,0x5c,0xdf,0x2d,0xe0,0x65,0xcf,0xa6, | |
| 4256 | 0xb6,0xe1,0xef,0x5b,0x26,0xa5,0x54,0xa2,0xc4,0x84,0x11,0xce,0x25,0x52,0x3a,0x34, | |
| 4257 | 0xdc,0xe4,0xe4,0x26,0x7d,0x0d,0x22,0xfa,0x9c,0xa1,0x08,0x04,0xce,0x75,0xaa,0x97, | |
| 4258 | 0xa6,0x5c,0x1d,0x07,0xb9,0x2a,0x74,0xa8,0x9a,0xb3,0xc4,0xcf,0xdd,0xcc,0x1f,0xcf, | |
| 4259 | 0x16,0x48,0x9b,0xfc,0xda,0xfc,0x4c,0xaa,0xbc,0xba,0x45,0x2e,0x50,0x58,0x9a,0xdb, | |
| 4260 | 0x2b,0xaa,0x5f,0x06,0xe0,0x82,0xa9,0x02,0x03,0xb6,0x8a,0x23,0x29,0x1a,0x19,0xbd, | |
| 4261 | 0xe5,0x80,0x67,0x25,0xcb,0xbe,0x8a,0xae,0x6f,0xa8,0x95,0xad,0x66,0x10,0x9d,0x15, | |
| 4262 | 0x90,0xbc,0x51,0x02,0xd2,0x5e,0x32,0x16,0x5f,0x65,0xcb,0x09,0x3b,0x26,0x00,0x47, | |
| 4263 | 0x8d,0x47,0xa3,0x50,0x55,0xdc,0x06,0xb7,0x69,0xfa,0x7f,0x10,0x9c,0xb4,0x61,0xf0, | |
| 4264 | 0xc2,0x1e,0x01,0xea,0xb0,0x4d,0xb2,0x92,0x39,0x54,0xc8,0x7d,0x31,0x47,0x97,0x3e, | |
| 4265 | 0x6d,0x3b,0x74,0x69,0xc0,0x43,0xb2,0x93,0xfe,0x73,0xa5,0x4e,0xfb,0xdf,0xa2,0x31, | |
| 4266 | 0x8c,0x9c,0xfc,0xcd,0x84,0xbd,0x08,0xb8,0xb8,0x57,0x18,0x85,0xfb,0x7d,0x82,0xc8, | |
| 4267 | 0x21,0x43,0x99,0x16,0xfe,0xbd,0xb2,0x02,0x67,0x00,0x20,0x20,0x2f,0x1f,0x37,0x05, | |
| 4268 | 0x2a,0x2e,0x4c,0x44,0x2d,0x42,0xb1,0x71,0x0b,0x6e,0xbd,0x21,0x98,0xc6,0xc1,0xe7, | |
| 4269 | 0xa9,0x5e,0x13,0x57,0x11,0x4b,0x06,0x06,0xa4,0xa1,0xee,0x86,0x37,0x72,0x20,0x6e, | |
| 4270 | 0x9d,0xd4,0xef,0x4f,0xaa,0xda,0xaf,0xbf,0x32,0x98,0xb5,0x51,0x0a,0x23,0x54,0x99, | |
| 4271 | 0x05,0x8e,0xe0,0x2c,0xf8,0xee,0xae,0x9d,0xb5,0x55,0x11,0x81,0x12,0xd9,0x5d,0x6a, | |
| 4272 | 0xe3,0x8e,0xe6,0xee,0xfa,0x86,0x01,0xa0,0x2d,0xd7,0x01,0x15,0x50,0x94,0x3b,0xe0, | |
| 4273 | 0x35,0xd2,0x02,0x95,0xb2,0xa4,0xaa,0xc9,0x9b,0x1e,0x87,0x0f,0xc2,0x55,0xee,0xfb, | |
| 4274 | 0xfd,0x5b,0x32,0x21,0x1f,0x47,0xa7,0x16,0xfd,0x2a,0xa2,0x6d,0x69,0x1a,0x50,0x9f, | |
| 4275 | 0x48,0x13,0xc4,0x6c,0xb9,0x47,0xee,0x13,0xf9,0x0f,0x41,0x49,0xfd,0xa0,0x33,0xc2, | |
| 4276 | 0xb9,0x2e,0x36,0x32,0x21,0xed,0xbf,0x4d,0x28,0x11,0x42,0xc7,0xc4,0xcd,0x33,0x53, | |
| 4277 | 0xe7,0x56,0x06,0xa6,0x86,0xe1,0x2e,0x74,0x95,0x9f,0x20,0x71,0x07,0xc7,0x50,0x50, | |
| 4278 | 0xd2,0x8c,0x32,0xc7,0xe8,0x21,0x3a,0x88,0x3e,0xbb,0xdb,0x48,0xc8,0x8e,0x8b,0xbb, | |
| 4279 | 0x7a,0xce,0xbc,0x95,0x47,0xae,0xe3,0x89,0x24,0x64,0x73,0x4c,0x06,0x22,0xe2,0x93, | |
| 4280 | 0xdf,0x1d,0xa2,0x10,0xa3,0x89,0x28,0x77,0x48,0x99,0xe8,0x7e,0xc0,0x83,0x56,0xd7, | |
| 4281 | 0x00,0x79,0xe6,0x37,0xfc,0xb0,0x0b,0x52,0xa8,0x5c,0x3a,0xdc,0xf8,0xb1,0xe7,0x89, | |
| 4282 | 0xdf,0xe2,0x86,0x0c,0x53,0x25,0x8b,0x1a,0x46,0xac,0x69,0x67,0xac,0xac,0x96,0xa7, | |
| 4283 | 0x7b,0x58,0x84,0x8e,0xa6,0xe6,0xa8,0xcf,0x20,0x88,0x75,0x20,0xde,0x74,0x61,0x33, | |
| 4284 | 0xd4,0xdc,0xde,0xbd,0xf6,0xf4,0x61,0x71,0x37,0xf2,0x5e,0x05,0x8d,0x09,0x49,0x2b, | |
| 4285 | 0xea,0x6c,0x96,0x99,0x43,0x50,0xb8,0x01,0x8c,0xe9,0x24,0x17,0xb8,0x6a,0x4e,0x91, | |
| 4286 | 0xbd,0x09,0xaa,0x21,0x8d,0xf8,0xac,0x7d,0x1d,0x6c,0xc7,0x57,0x61,0x99,0x71,0x63, | |
| 4287 | 0x4d,0xb3,0x1c,0x57,0xd4,0xee,0x3c,0xe6,0xeb,0x7d,0x47,0xc3,0x87,0x95,0xb0,0xa3, | |
| 4288 | 0x99,0x6a,0xea,0x3a,0x18,0x30,0x6a,0x3c,0xf7,0x1b,0xa4,0x5c,0x29,0x5e,0x0c,0x50, | |
| 4289 | 0xa3,0x2f,0x16,0xca,0x59,0xc0,0x35,0x7f,0x3f,0x45,0xde,0x22,0x49,0xf4,0x85,0x69, | |
| 4290 | 0x6a,0x00,0x9e,0x07,0x97,0x9c,0x9d,0xaf,0xc4,0xfd,0xf5,0x16,0xe5,0x57,0x1b,0xf0, | |
| 4291 | 0xee,0xde,0x84,0xf0,0xd3,0xc5,0xa1,0xcc,0x87,0x42,0xe9,0x36,0xff,0x87,0xcf,0xe3, | |
| 4292 | 0x2f,0xc9,0xc6,0x87,0x0b,0x3c,0x3c,0x89,0x97,0x0a,0x89,0x94,0x4d,0x4c,0x6d,0xa3, | |
| 4293 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4294 | }; | |
| 4295 | ||
| 4296 | ||
| 4297 | /* 317-0167 FD1089A */ | |
| 4298 | /* 317-0168 FD1089B */ | |
| 4299 | static const UINT8 key_0167_0168[0x2000] = | |
| 4300 | { | |
| 4301 | /* opcodes */ | |
| 4302 | 0xf0,0x82,0x27,0x82,0xe5,0x55,0x83,0xd2,0x56,0xd2,0xb9,0x2d,0x02,0xbb,0x8a,0x53, | |
| 4303 | 0xa9,0x5e,0xcf,0x5d,0xb7,0x8b,0x05,0x02,0x0b,0x0d,0xcd,0x27,0xfe,0xfb,0x01,0x65, | |
| 4304 | 0xe8,0x6f,0x77,0x53,0x21,0x7f,0x08,0x8b,0x00,0x43,0x8c,0xa3,0xde,0xd5,0xda,0x34, | |
| 4305 | 0x13,0x4b,0xcb,0xd6,0xf6,0xbe,0x37,0x20,0xe1,0x46,0xf6,0xab,0x2a,0xfa,0xdf,0x0f, | |
| 4306 | 0x2a,0xf4,0xcc,0xe4,0x38,0x4a,0x93,0xc1,0xae,0x14,0x0c,0x3f,0xe2,0x6c,0x11,0xf6, | |
| 4307 | 0x2d,0x68,0x78,0x7e,0xe6,0x21,0x1a,0x6e,0x67,0xaf,0xcf,0x5f,0x06,0x2a,0x6e,0xe9, | |
| 4308 | 0x1b,0xa9,0xd0,0xa4,0x00,0x45,0xcd,0x27,0x0b,0x16,0x3d,0x0b,0x95,0x33,0xf8,0xe8, | |
| 4309 | 0xf6,0xb5,0xd5,0x56,0x86,0xb5,0xad,0xec,0x9c,0x48,0x57,0x43,0x91,0x89,0xad,0xf3, | |
| 4310 | 0xbd,0x8e,0x85,0x94,0x78,0x70,0xb8,0xbd,0x19,0x47,0x1e,0x08,0xf9,0x2a,0x8e,0x0a, | |
| 4311 | 0x70,0x33,0xe1,0x5e,0xd6,0x78,0xef,0x9a,0x82,0x11,0x90,0x58,0xcd,0x18,0x9c,0x2e, | |
| 4312 | 0x0f,0xa3,0xea,0xb4,0x9f,0xcb,0x53,0x84,0xd7,0xa8,0xae,0x34,0x0d,0x52,0xd5,0x5d, | |
| 4313 | 0x9a,0xe0,0x9e,0x96,0xd5,0x6b,0xe2,0x79,0x18,0x0b,0x79,0x9c,0xb9,0xd7,0x3a,0x98, | |
| 4314 | 0x10,0xe8,0xfe,0x04,0x77,0x56,0x9d,0x7a,0x44,0x39,0xef,0x90,0xd1,0xa9,0xcc,0xdf, | |
| 4315 | 0x73,0xbd,0x0b,0xfe,0x85,0x8e,0x85,0x87,0x5d,0x34,0x11,0x10,0x54,0xc6,0x89,0x32, | |
| 4316 | 0xc2,0x5e,0xc3,0x85,0xff,0x12,0x98,0xa0,0x62,0xfa,0xe0,0x1c,0x44,0x30,0x72,0x91, | |
| 4317 | 0xfd,0xca,0x27,0x97,0xe5,0xe1,0xd7,0xc5,0x53,0x8d,0x5a,0xb4,0xa0,0xe6,0x88,0xfc, | |
| 4318 | 0x24,0x03,0x38,0x35,0x36,0xfd,0x43,0xf6,0x30,0xec,0x80,0xd8,0x68,0xe7,0xc9,0x73, | |
| 4319 | 0x37,0x07,0xf4,0x5f,0xf4,0x64,0xda,0x33,0xf9,0x16,0x53,0x88,0x9c,0x35,0x36,0xf6, | |
| 4320 | 0x36,0xd8,0x5d,0x15,0x1e,0x18,0x9d,0x7c,0xad,0x0d,0xd1,0xc4,0x3c,0xce,0xd0,0x85, | |
| 4321 | 0x20,0x75,0x71,0x57,0xb4,0x18,0x8d,0xd1,0x4e,0xcf,0xfc,0x8d,0x47,0xb4,0x95,0x20, | |
| 4322 | 0xf7,0xdd,0x31,0x25,0xb6,0x63,0xa8,0x33,0xdb,0x5e,0xd2,0xe1,0xbf,0xe6,0x86,0xc8, | |
| 4323 | 0xba,0x12,0x9e,0x7f,0x24,0xfb,0xf0,0xa0,0x54,0xb9,0x54,0xc1,0xa3,0x63,0xa4,0x7b, | |
| 4324 | 0x69,0x12,0xb6,0x65,0xfe,0xde,0x63,0x19,0xb9,0xdf,0x83,0x2d,0xf3,0x2d,0xed,0x3a, | |
| 4325 | 0x04,0xdf,0x7a,0xd7,0x43,0x0e,0x02,0x9e,0x0a,0xd2,0x5d,0x25,0xaf,0x42,0x62,0x05, | |
| 4326 | 0x8b,0x78,0xeb,0xd5,0xf5,0x8a,0xce,0x2f,0x47,0x90,0xe3,0xa9,0xd7,0xa4,0x04,0xdc, | |
| 4327 | 0xfd,0xdc,0x07,0x60,0x13,0x51,0xc5,0xcc,0x6f,0x1b,0x16,0xb9,0x6a,0x51,0xd1,0xbf, | |
| 4328 | 0x5c,0x0d,0xcf,0x76,0x9d,0x65,0xe8,0x75,0x84,0x72,0xf4,0x55,0x6a,0x4b,0xca,0xae, | |
| 4329 | 0xa7,0x09,0x44,0x18,0x93,0xc4,0x38,0x2a,0x85,0x94,0x7e,0x7d,0xd6,0x91,0xf0,0xa9, | |
| 4330 | 0xde,0xd2,0x64,0x46,0xf5,0x70,0xb3,0xeb,0x72,0x83,0xb5,0x31,0xae,0x22,0x41,0xb0, | |
| 4331 | 0x01,0x67,0x30,0x00,0xc2,0x68,0x5a,0xb8,0x4b,0x3d,0x97,0x72,0xf2,0x00,0xbe,0xc3, | |
| 4332 | 0x10,0xc7,0xa9,0x46,0xfc,0xab,0x2e,0x91,0x10,0xc4,0x25,0x3e,0xa2,0x29,0x68,0xe3, | |
| 4333 | 0x0b,0xf4,0xcd,0x18,0xa2,0x3b,0x2d,0x77,0xc0,0x17,0x60,0x96,0xbe,0x9f,0x3d,0x0e, | |
| 4334 | 0xf1,0xec,0x9d,0x76,0xb4,0x16,0x58,0x68,0x5d,0x35,0x46,0x7a,0x45,0x61,0x3e,0x45, | |
| 4335 | 0xc4,0xb1,0x1a,0x60,0x32,0x3e,0xb0,0x65,0xe6,0x20,0xd8,0xea,0x39,0x6e,0x6c,0x88, | |
| 4336 | 0x83,0x42,0x42,0xd6,0x1c,0xb2,0x33,0x6e,0x5b,0xd6,0x17,0xe6,0x99,0xc8,0xc5,0xd7, | |
| 4337 | 0x2e,0x9e,0x16,0xd9,0x71,0x71,0xe2,0x83,0xbc,0x59,0x01,0x6e,0x65,0x6d,0x4a,0x32, | |
| 4338 | 0xc5,0xc7,0x97,0x67,0x33,0x7d,0xbe,0xa4,0x09,0xa7,0x97,0x82,0x9d,0x5f,0xfc,0x99, | |
| 4339 | 0x48,0xbb,0xc3,0x81,0x61,0xd4,0xc5,0xd1,0x42,0xc2,0xda,0x22,0x41,0x9d,0xd9,0x0c, | |
| 4340 | 0xb6,0x7c,0x9b,0x27,0xfb,0x78,0xf8,0x0a,0x66,0xa9,0xc8,0x4e,0x50,0x26,0xe3,0x8b, | |
| 4341 | 0x11,0x08,0x20,0x59,0x01,0x68,0x58,0x4f,0x77,0x5b,0x62,0x06,0xcc,0xfc,0x18,0x16, | |
| 4342 | 0x58,0x61,0x50,0x17,0x73,0xa3,0xe3,0xa0,0x74,0xda,0xa9,0x4b,0xb4,0x1d,0x79,0xad, | |
| 4343 | 0x8b,0x86,0x2c,0x61,0x51,0x2b,0x9a,0xfd,0x5d,0x24,0x9b,0x1b,0x08,0x8b,0x07,0x51, | |
| 4344 | 0xaa,0x76,0xb5,0x37,0x9a,0xfe,0x7e,0x67,0x32,0x3b,0x39,0x77,0xc8,0x45,0xc0,0x00, | |
| 4345 | 0xb5,0x33,0xe9,0x99,0x50,0x1e,0x8d,0xdc,0xf3,0x1e,0x84,0x5f,0xf4,0x4a,0xa5,0xbb, | |
| 4346 | 0xab,0xbb,0xc9,0x87,0x72,0x89,0xc8,0x5d,0x9f,0xcc,0x7a,0xd3,0x8c,0x9c,0xb7,0x82, | |
| 4347 | 0x8e,0x10,0x56,0x01,0x00,0x41,0x30,0xea,0x38,0x47,0x1c,0xd3,0x8f,0x39,0xf4,0x55, | |
| 4348 | 0x5d,0x31,0x8e,0x08,0xfa,0x45,0xc3,0x83,0xbd,0x8d,0x6b,0x5f,0xff,0x23,0x5d,0x34, | |
| 4349 | 0x18,0x1d,0x72,0x9a,0x60,0x94,0x82,0x28,0x2e,0xa0,0x65,0x77,0xdb,0x59,0xf3,0x1f, | |
| 4350 | 0xbf,0xd6,0x03,0xb8,0x31,0x30,0x6e,0xd9,0x8b,0x7f,0x0b,0x1b,0x23,0xda,0xb4,0x16, | |
| 4351 | 0x52,0x5a,0x3f,0x62,0x6f,0x17,0x85,0x96,0xd4,0x29,0x5e,0x4b,0xd7,0xa8,0xa1,0x19, | |
| 4352 | 0xd1,0xab,0x28,0x98,0x19,0x4b,0xc8,0x5f,0x08,0xa0,0x5c,0x07,0xf7,0xc1,0xbb,0x28, | |
| 4353 | 0x3b,0xc8,0xbc,0x5a,0x2f,0xcb,0x38,0x34,0x29,0xe2,0x07,0x50,0x82,0x27,0x00,0x43, | |
| 4354 | 0x92,0xb0,0xfc,0xa8,0xb1,0x96,0xd3,0x16,0x36,0xf1,0x5d,0x24,0x7a,0xd9,0x71,0x6b, | |
| 4355 | 0xd5,0x65,0xe9,0x82,0x9f,0xae,0x9b,0x03,0x2f,0xcc,0x5f,0x84,0xde,0xd6,0x0f,0x9e, | |
| 4356 | 0x04,0xe5,0x81,0xe8,0xf9,0x11,0x8e,0xfc,0x14,0x72,0x0e,0x70,0xae,0x20,0xd8,0xdd, | |
| 4357 | 0x1f,0x32,0xc5,0xda,0xbe,0xc1,0xad,0x01,0xe5,0xe5,0x68,0xe8,0xea,0xb5,0xcd,0x28, | |
| 4358 | 0x26,0x4b,0xb6,0x58,0xf0,0xbd,0xf9,0x12,0xa2,0x23,0x6e,0xec,0x92,0x97,0xef,0x7f, | |
| 4359 | 0x18,0x2f,0x52,0x63,0x8e,0x04,0x70,0x2f,0x4a,0x2e,0x21,0x7c,0xa5,0xc4,0x3c,0xe2, | |
| 4360 | 0xf7,0xe0,0x9a,0xf9,0x98,0x98,0x13,0x58,0xdf,0x05,0x7f,0x98,0x25,0x3e,0xb5,0x51, | |
| 4361 | 0xc2,0x5c,0x8f,0x1b,0x0e,0x77,0xe3,0x8d,0x60,0xa7,0x89,0x11,0x04,0x5b,0xcc,0x79, | |
| 4362 | 0xa5,0x2f,0xc9,0xf0,0xa3,0xde,0xce,0xcd,0x16,0x74,0x69,0x15,0x2c,0x53,0x1c,0xba, | |
| 4363 | 0x7b,0x03,0x3d,0x1b,0x05,0x1b,0x26,0x50,0xa2,0x35,0x2d,0x73,0x29,0xe6,0xab,0x9a, | |
| 4364 | 0x74,0xc9,0xf7,0xde,0x59,0x74,0x6b,0x57,0xb0,0x81,0x5d,0x1c,0x53,0x86,0x26,0x47, | |
| 4365 | 0x18,0x1b,0x1d,0xee,0xd8,0xda,0x9b,0x2a,0x6b,0x59,0xf9,0x12,0xa8,0x31,0x8c,0xbf, | |
| 4366 | 0x68,0xf9,0xaf,0x49,0x83,0x4b,0xb8,0xc8,0xd1,0xbd,0x00,0x54,0x29,0xe8,0xdf,0x04, | |
| 4367 | 0x65,0x63,0xad,0xf1,0x5b,0xc8,0xc1,0x33,0xe3,0xad,0x74,0xe1,0xd7,0xab,0x1e,0x15, | |
| 4368 | 0x0d,0x59,0x17,0xe5,0x5e,0x51,0xb6,0x69,0xa2,0x29,0x54,0xbb,0xb0,0x7a,0x49,0xf1, | |
| 4369 | 0x61,0xdc,0xec,0x24,0x8d,0xe6,0x97,0x6c,0x0c,0x31,0xa0,0xe0,0xb5,0x55,0x60,0x9a, | |
| 4370 | 0x62,0xea,0x2e,0xb0,0xe9,0x87,0x64,0x3a,0x22,0xc5,0x58,0x52,0xe7,0x3c,0x63,0x0e, | |
| 4371 | 0x0e,0x84,0xdc,0x87,0x70,0x34,0x1d,0xd5,0xe5,0xe5,0x7c,0x10,0x44,0x2f,0x51,0x4f, | |
| 4372 | 0x66,0xaa,0xf6,0xab,0x23,0xed,0xc1,0x3c,0x53,0x91,0x0b,0x19,0xce,0x2e,0x2c,0x5b, | |
| 4373 | 0x6b,0x5c,0x7c,0x1b,0x03,0xb2,0x52,0x6e,0x6d,0xc9,0x07,0x6f,0x83,0x39,0xf3,0x34, | |
| 4374 | 0x1b,0x9a,0x6e,0xd6,0x0e,0x83,0xcf,0x6d,0x34,0x8e,0x6f,0x10,0x64,0x50,0xa6,0xd9, | |
| 4375 | 0x77,0x64,0xcc,0xde,0x45,0x60,0x38,0x37,0xa6,0xde,0x43,0xfe,0x72,0x74,0x45,0x49, | |
| 4376 | 0x80,0xba,0x95,0x31,0xa9,0x4a,0x8d,0xce,0xc4,0xba,0x83,0x38,0xab,0xa3,0xd0,0x86, | |
| 4377 | 0x34,0x9c,0xcb,0xd1,0x38,0x3f,0xce,0x31,0x8f,0x22,0x2f,0xbd,0x10,0xde,0x46,0x8e, | |
| 4378 | 0x94,0x0a,0x6d,0xbc,0xf3,0xfa,0x5f,0x05,0x16,0x47,0x8f,0xa2,0x25,0xa9,0x63,0xa1, | |
| 4379 | 0x04,0x7b,0xf4,0xdb,0x4d,0x13,0x5a,0x27,0x96,0xca,0xac,0x5f,0x78,0xf8,0x04,0x59, | |
| 4380 | 0x8b,0xf5,0x78,0xee,0x66,0x18,0x20,0xf6,0xa2,0xba,0x16,0x48,0xd7,0x33,0x70,0xbd, | |
| 4381 | 0x9d,0xdb,0x47,0x2d,0x8b,0x09,0xb3,0x70,0x3a,0x16,0xcc,0x5e,0x42,0x5a,0xa9,0xce, | |
| 4382 | 0x3b,0x2c,0x63,0x99,0xbc,0xe6,0x12,0x96,0x5e,0xde,0xcd,0x9f,0xb9,0x6d,0xad,0x8a, | |
| 4383 | 0x65,0xea,0xca,0x30,0xf9,0xaf,0x3c,0x69,0x0e,0x12,0x1b,0x0c,0x3c,0x6c,0x7e,0xf3, | |
| 4384 | 0x1b,0x14,0x7e,0xf3,0x42,0x63,0x33,0xe7,0x4a,0xb2,0xb4,0xa6,0xcb,0x56,0x1b,0x07, | |
| 4385 | 0x5d,0xaa,0x7e,0xe3,0x97,0x04,0xf5,0x12,0x13,0xbd,0x9a,0x6b,0x66,0x2d,0x83,0xc7, | |
| 4386 | 0x2b,0xac,0xc9,0xfe,0xf9,0x91,0x84,0xe8,0x67,0x35,0xcc,0x5c,0x0e,0xf0,0xb8,0x34, | |
| 4387 | 0x85,0x1a,0x61,0x46,0x66,0x0a,0xdf,0x6a,0x47,0x19,0x49,0x7a,0xc1,0x9f,0xb8,0x4c, | |
| 4388 | 0x6b,0xf4,0x44,0xb9,0xdf,0x6f,0x05,0x99,0xb3,0x69,0x13,0xc3,0x80,0x3a,0x85,0x10, | |
| 4389 | 0xdd,0x39,0x74,0x58,0x64,0xc0,0xf8,0x73,0xab,0x25,0x28,0x38,0x4b,0xc1,0x1e,0x81, | |
| 4390 | 0xdb,0xeb,0xf0,0x24,0xf5,0xfd,0xb6,0xf9,0x2f,0x4d,0x8a,0xda,0x22,0x33,0x82,0x9d, | |
| 4391 | 0x66,0x09,0xb7,0x1b,0x92,0x25,0x41,0x2c,0x3f,0xe0,0x37,0xa7,0x05,0x92,0xb3,0x65, | |
| 4392 | 0x7c,0x93,0xcb,0x3e,0x3b,0x3a,0x98,0x0a,0xdb,0xe0,0x31,0xa0,0xf4,0xdd,0xaf,0xda, | |
| 4393 | 0x1e,0x89,0x2a,0x8e,0xf0,0x3b,0xba,0x94,0x03,0x4c,0x77,0xc6,0xef,0x14,0x78,0xfa, | |
| 4394 | 0x4c,0xeb,0xd6,0x09,0xb1,0x28,0xa9,0xcb,0xb7,0x24,0x08,0x17,0xf6,0x37,0x0d,0xc6, | |
| 4395 | 0x06,0xb8,0xce,0xb0,0x7e,0x01,0x63,0xad,0xf8,0x68,0xe6,0x94,0x09,0x46,0x6d,0x3f, | |
| 4396 | 0x4c,0xf2,0x11,0x84,0x57,0xc6,0xea,0x3b,0xc4,0x18,0x0f,0x3e,0x29,0x41,0x9a,0x63, | |
| 4397 | 0x1e,0x98,0xa1,0x83,0x3d,0x76,0x3d,0x76,0x1c,0x34,0x85,0x13,0x54,0x27,0x92,0x33, | |
| 4398 | 0x7c,0xaa,0x7c,0xae,0x2e,0x13,0x5b,0x5c,0x00,0xbb,0x47,0x14,0x8b,0xfa,0x57,0xb0, | |
| 4399 | 0x66,0x28,0xa4,0x06,0x2b,0x9c,0x46,0xee,0x70,0xaf,0x54,0x42,0xce,0xb9,0xe8,0xd8, | |
| 4400 | 0xdc,0x12,0x18,0x89,0x34,0x11,0xfc,0x2d,0x6c,0x0f,0xae,0x9b,0x1d,0x64,0x44,0xac, | |
| 4401 | 0xdf,0x67,0xd7,0x38,0x49,0x72,0x7f,0x17,0xf4,0xdb,0x53,0x20,0x78,0xfb,0x6d,0x2d, | |
| 4402 | 0x6d,0x29,0xe3,0x14,0x6a,0xbf,0xcd,0xad,0x08,0x13,0x45,0xd2,0xdf,0x7e,0x61,0x59, | |
| 4403 | 0x87,0x57,0x3a,0x1b,0x97,0xf8,0xe8,0xf0,0xa8,0xb7,0x83,0xaf,0x52,0xec,0x22,0x31, | |
| 4404 | 0x2d,0xf1,0xde,0x4e,0xd0,0x1c,0xcf,0xde,0xd4,0xc6,0x0c,0xb9,0xd1,0x47,0xae,0xb6, | |
| 4405 | 0x5f,0xf7,0xce,0xae,0x15,0x2d,0x81,0x78,0x8c,0x42,0xe2,0xee,0x5c,0x8e,0x07,0xe6, | |
| 4406 | 0x1d,0x69,0x09,0x39,0x66,0x2a,0x00,0xbf,0xd1,0x2a,0x03,0x4f,0xf3,0xc1,0x2c,0xc2, | |
| 4407 | 0x67,0x47,0x91,0xf0,0xc3,0x13,0x4a,0xb1,0xa1,0x7e,0x71,0xdd,0x97,0xe0,0x1c,0x4b, | |
| 4408 | 0x3d,0x90,0x64,0xd4,0x2d,0xe8,0x61,0x4f,0xfd,0x3e,0x2b,0x96,0x46,0xeb,0xd9,0x7f, | |
| 4409 | 0x9f,0x46,0x84,0xe3,0xa2,0xa9,0x44,0x9a,0xe5,0x6a,0x30,0x7b,0x01,0xe1,0x61,0x5f, | |
| 4410 | 0x8d,0x68,0xef,0x1e,0x23,0x55,0xf2,0x90,0x59,0x02,0x82,0x8d,0xc8,0xc4,0xb6,0xec, | |
| 4411 | 0x07,0xf6,0xa7,0x86,0xb0,0xee,0x6d,0x32,0x59,0x05,0x1f,0xca,0x9b,0x93,0xd7,0x24, | |
| 4412 | 0x0e,0xf0,0xab,0x19,0x49,0x73,0xb3,0x81,0xe5,0x75,0x09,0x33,0x7a,0x4e,0xc3,0x08, | |
| 4413 | 0xa0,0x56,0xfa,0xd8,0xee,0xe4,0xc6,0x7b,0xfd,0x51,0x3f,0xc9,0x65,0xf5,0x7c,0x99, | |
| 4414 | 0xbe,0x27,0x96,0xc4,0x9f,0x41,0xa5,0x21,0xa1,0x99,0xc0,0x8a,0x5c,0x88,0x00,0xd5, | |
| 4415 | 0x68,0x65,0x7d,0xdb,0x5c,0x8a,0x4f,0x74,0xd1,0x4d,0x8e,0x77,0x5f,0x07,0x51,0xbe, | |
| 4416 | 0x9e,0x0f,0xb1,0x1e,0x25,0xbe,0xc6,0x72,0x8d,0x6d,0xa7,0x91,0x6e,0x71,0x6e,0x52, | |
| 4417 | 0x60,0x25,0x31,0x8e,0xfa,0xdf,0x08,0x1d,0xd6,0xf8,0x0d,0xd6,0x89,0xc8,0x56,0x92, | |
| 4418 | 0xae,0xa7,0xfc,0x29,0xdc,0xec,0x17,0x73,0xaa,0xf0,0xbf,0x47,0xb1,0x0b,0x0b,0x7f, | |
| 4419 | 0x88,0x95,0x14,0xf1,0xc9,0xe5,0xf2,0x75,0x0a,0x54,0xbc,0xe5,0xe4,0x3a,0x8b,0x17, | |
| 4420 | 0xee,0xef,0x77,0xe4,0xc2,0xca,0x98,0x24,0xf6,0x24,0x06,0xae,0x23,0x55,0xd8,0x5b, | |
| 4421 | 0xe0,0xb4,0x27,0x03,0xc7,0x9b,0x0b,0x7e,0x6e,0x60,0x9b,0xa3,0x6e,0x5c,0xf1,0x4c, | |
| 4422 | 0x5e,0xe6,0x23,0x4f,0xd8,0x58,0x49,0x84,0x72,0x08,0x7d,0xc5,0xc5,0x4e,0xd5,0xe8, | |
| 4423 | 0x69,0x84,0x6a,0xc6,0xf5,0x00,0x54,0x37,0x02,0x1b,0xaa,0x12,0x28,0x2d,0x86,0x30, | |
| 4424 | 0xff,0x8e,0xfe,0x69,0x1e,0x95,0x2b,0x95,0x1e,0x9b,0x24,0x8b,0x97,0xf8,0x02,0x25, | |
| 4425 | 0x21,0x04,0xdd,0x39,0x53,0x16,0xcd,0x9f,0xc6,0x87,0xea,0x31,0x12,0xaf,0x4b,0xc5, | |
| 4426 | 0xcf,0xe6,0x09,0x34,0x94,0x83,0x3c,0x56,0xfa,0xdf,0xfb,0x02,0x99,0x52,0x60,0x11, | |
| 4427 | 0x09,0x33,0x81,0x5b,0xe1,0xdc,0x76,0xb8,0xbb,0xa3,0x59,0xff,0x2c,0xe1,0x0a,0xcf, | |
| 4428 | 0xed,0x44,0xaf,0x3a,0x21,0x7d,0xc6,0x07,0xd3,0x02,0x29,0xcc,0x5c,0xed,0xae,0x21, | |
| 4429 | 0x13,0x54,0x2e,0xa0,0x51,0x50,0x81,0xdf,0x6f,0xf8,0x7e,0x77,0xc2,0x65,0xfe,0xff, | |
| 4430 | 0xa5,0xaf,0xd9,0x11,0x6e,0xee,0xe7,0x43,0x76,0x3a,0xff,0x2e,0x15,0xaa,0xfb,0x69, | |
| 4431 | 0xa3,0x57,0xb1,0x8e,0x77,0x59,0xf9,0x33,0xea,0xc7,0xad,0xf1,0x54,0xbb,0xa3,0x5f, | |
| 4432 | 0x0d,0x4b,0xb4,0x17,0x6c,0x8f,0xb8,0xaf,0xca,0xa1,0x86,0xc0,0x7f,0x97,0xf7,0xe2, | |
| 4433 | 0xe2,0x8a,0xe3,0xac,0x4d,0x92,0x22,0xb7,0x16,0xc6,0x8b,0x9b,0x96,0xf8,0xf0,0x24, | |
| 4434 | 0x16,0x3f,0x4d,0x1a,0x60,0x38,0x4b,0xce,0x38,0xbd,0x82,0x99,0xb4,0xa4,0x8a,0xd2, | |
| 4435 | 0xed,0xc6,0xfa,0xd3,0xfb,0xfb,0x6b,0xf2,0xf6,0x1a,0x75,0x87,0xf5,0xfc,0xb0,0xec, | |
| 4436 | 0x11,0x79,0xb3,0x77,0x62,0x69,0x17,0x81,0xff,0xa4,0x74,0x62,0x01,0x01,0x62,0x72, | |
| 4437 | 0x81,0x59,0x78,0x08,0x94,0x83,0x4f,0x7d,0x55,0x59,0x7f,0x29,0xda,0xb1,0xa0,0x64, | |
| 4438 | 0x3c,0x64,0x49,0x85,0x93,0x4a,0x14,0xe5,0xf6,0x3a,0x96,0xdc,0x7f,0x0d,0x6a,0xc2, | |
| 4439 | 0x44,0x9b,0x26,0xee,0x5d,0xbc,0x64,0xb9,0xe4,0x48,0xba,0x7b,0xef,0x16,0xc0,0x8b, | |
| 4440 | 0x97,0xff,0x10,0x43,0xf4,0xda,0xf9,0x1e,0x81,0xe9,0x06,0x2c,0xca,0xa2,0xc1,0x37, | |
| 4441 | 0x8e,0x05,0x84,0x57,0xa5,0xa8,0xa5,0xa3,0xe6,0x24,0x7c,0x34,0x2a,0x10,0x63,0x22, | |
| 4442 | 0x49,0x06,0xb0,0x85,0x1b,0x9c,0xbd,0x75,0x78,0x6b,0xdf,0x09,0x37,0x0a,0x71,0x5a, | |
| 4443 | 0x31,0x13,0xc9,0x80,0x3d,0x1c,0x92,0x35,0xbe,0x2e,0xaa,0xef,0x91,0xeb,0xde,0x44, | |
| 4444 | 0x2c,0xce,0x46,0x0c,0x28,0x30,0xfc,0x1e,0x1d,0x69,0x16,0x53,0xa3,0xd1,0xad,0x83, | |
| 4445 | 0x51,0xbf,0xd9,0x86,0xc0,0x8c,0xb2,0x34,0x88,0x90,0x4f,0x64,0x41,0x22,0xc9,0xef, | |
| 4446 | 0x82,0x9c,0x38,0xac,0xe4,0x54,0xb3,0x75,0xff,0xa3,0x53,0x20,0x6b,0xe0,0x30,0x86, | |
| 4447 | 0xbf,0x65,0x62,0x7f,0x94,0x88,0x01,0xe2,0x82,0xa2,0x24,0x89,0x21,0x0a,0xe4,0x49, | |
| 4448 | 0x08,0x19,0x59,0xfd,0xd0,0x28,0x9a,0x7c,0x11,0x8c,0xc1,0x9d,0x63,0xa0,0xe4,0x39, | |
| 4449 | 0x5d,0xba,0x1b,0x28,0x99,0x33,0x80,0x41,0xac,0x63,0x29,0x5d,0x31,0xa2,0x2f,0x54, | |
| 4450 | 0xbf,0x47,0xaa,0xfe,0xed,0xab,0xb2,0x32,0x54,0x26,0x5e,0xca,0x8b,0x10,0xc7,0x9c, | |
| 4451 | 0x2c,0xc0,0x05,0x80,0xcd,0x8f,0x2f,0x50,0x07,0xd5,0x5e,0xe2,0x71,0xea,0xaa,0x0f, | |
| 4452 | 0xa5,0x25,0x2b,0xaf,0x39,0xdf,0xf9,0x99,0xc6,0x70,0x2b,0xa6,0xe3,0x2f,0xda,0xae, | |
| 4453 | 0x2a,0x76,0x1e,0x89,0x31,0x9b,0x0e,0x0e,0x91,0xf7,0xc4,0x17,0xe1,0xe1,0x56,0x7a, | |
| 4454 | 0xbb,0xb3,0xdc,0x0f,0xb5,0xc3,0x70,0xb0,0x68,0x69,0x28,0x33,0x6c,0xff,0x1d,0x71, | |
| 4455 | 0x58,0xdb,0x67,0x42,0xc5,0x56,0x1d,0x7d,0x4b,0xc8,0x59,0xfb,0x82,0x89,0x31,0x94, | |
| 4456 | 0x01,0xf0,0xbe,0x20,0x61,0x56,0x17,0x76,0x3a,0x13,0x55,0x70,0x24,0x7f,0x90,0xe4, | |
| 4457 | 0xb6,0xf1,0xe0,0xaa,0x89,0xc2,0x5d,0x9c,0x35,0x4a,0x1e,0x90,0x52,0xe1,0x3c,0x5f, | |
| 4458 | 0x77,0xde,0xcf,0xe1,0x3d,0x9a,0xee,0xed,0x3c,0x6d,0xb3,0x5c,0x0c,0xae,0x34,0x06, | |
| 4459 | 0x44,0xb7,0x89,0xc3,0x7e,0xde,0xcc,0x6a,0x4f,0x7c,0x13,0xd5,0x52,0xe8,0x77,0xda, | |
| 4460 | 0x1d,0x7c,0x10,0x51,0x4a,0x8e,0xf5,0x14,0x6f,0x77,0xf9,0x24,0x8e,0x07,0xd9,0x03, | |
| 4461 | 0x2c,0x63,0x8c,0xa2,0xaa,0x6b,0xe9,0x9a,0x5d,0x38,0xc9,0x82,0xa0,0xe2,0x04,0xf4, | |
| 4462 | 0xc9,0x81,0x72,0x86,0x31,0x2d,0xea,0xd1,0x30,0xfd,0x46,0x6c,0x1e,0x0a,0x5c,0xf1, | |
| 4463 | 0x52,0x6c,0x04,0xf6,0x25,0x3a,0x18,0x14,0xef,0x8e,0x6e,0xe2,0x08,0x7e,0xdf,0xfa, | |
| 4464 | 0xc7,0x22,0x43,0xf2,0x85,0x94,0x71,0x63,0x9a,0xea,0x42,0xe5,0x5d,0x3d,0x8e,0x0f, | |
| 4465 | 0x28,0xa5,0x2d,0x7a,0x51,0x39,0xf6,0xbe,0x31,0x13,0xc3,0x73,0x1f,0x49,0x6a,0x30, | |
| 4466 | 0x75,0xf3,0xc3,0x8e,0x89,0x2b,0xa8,0x25,0xb4,0x07,0xef,0x8d,0x4d,0xa0,0x71,0x5d, | |
| 4467 | 0xae,0x0e,0x06,0x2e,0x2d,0x69,0x85,0x98,0x22,0xc8,0xc7,0x33,0xe7,0x44,0xa4,0x96, | |
| 4468 | 0xd2,0xf5,0xf4,0x5a,0x3c,0xf2,0x8f,0x17,0x7d,0x54,0x4c,0x65,0xed,0x34,0x04,0xdb, | |
| 4469 | 0xe3,0xa7,0x8e,0x12,0xb8,0xc8,0xc4,0xa2,0xc4,0xad,0x7c,0x23,0x5f,0x6f,0x8f,0x2c, | |
| 4470 | 0xe0,0x26,0xd5,0x57,0xa0,0xe9,0x25,0x39,0xf7,0xd2,0x58,0x6d,0x3d,0xf7,0x46,0x89, | |
| 4471 | 0xc9,0x70,0xc7,0x27,0xf4,0x57,0xb3,0xdd,0x16,0xc2,0xe1,0x43,0x86,0xca,0x2a,0xf3, | |
| 4472 | 0x9e,0x87,0x65,0x83,0xb4,0x11,0x6c,0x8c,0x21,0x7f,0x15,0xa5,0x3c,0xea,0x39,0x68, | |
| 4473 | 0x5f,0x6a,0xb0,0x6b,0xe0,0x16,0x51,0x47,0x17,0x07,0xf5,0x93,0x5e,0x55,0x74,0xe9, | |
| 4474 | 0x0b,0x18,0xa6,0xdf,0x78,0x68,0x63,0x0e,0xfa,0x5c,0x82,0x0d,0xec,0x0d,0xdc,0x76, | |
| 4475 | 0xa4,0x93,0x48,0xdf,0x7b,0x05,0xa0,0xe1,0xc9,0x7d,0xba,0x14,0xe6,0x11,0x6f,0x0f, | |
| 4476 | 0x29,0xd9,0x97,0x6b,0xeb,0xef,0x09,0xc0,0x84,0x69,0x9e,0xa6,0x4c,0x60,0x2e,0xb4, | |
| 4477 | 0x9a,0xec,0x91,0x83,0xc7,0x25,0x9f,0xab,0x2b,0x22,0x2f,0xc4,0x1d,0xfc,0x1a,0x65, | |
| 4478 | 0xf7,0xcb,0x37,0x27,0x0f,0xa6,0x60,0xa2,0xbe,0xa6,0x6b,0x6e,0x5b,0xe3,0x31,0x22, | |
| 4479 | 0x75,0x8a,0x57,0xc3,0x74,0x4d,0xa5,0x3d,0xf7,0x54,0xa4,0x05,0x17,0x74,0xeb,0x74, | |
| 4480 | 0xec,0x88,0x13,0xe3,0x8d,0x67,0xb4,0xa7,0x14,0xe8,0x66,0x1b,0x97,0xe4,0xc0,0x95, | |
| 4481 | 0x2e,0x33,0x5c,0x6e,0xf3,0xac,0xcf,0xfe,0xfc,0x28,0xb4,0x9d,0x62,0x7f,0xa2,0xa2, | |
| 4482 | 0x3d,0x89,0x30,0x66,0xa5,0x1d,0xf7,0x41,0xb1,0x15,0x8e,0x8b,0x7a,0x47,0x8f,0x9b, | |
| 4483 | 0x18,0x8b,0x90,0xca,0xa2,0xbb,0x2a,0x70,0x31,0xad,0xf4,0xe5,0xdd,0x3a,0x88,0x80, | |
| 4484 | 0xbe,0x3a,0x7c,0x9a,0xec,0x84,0x69,0x8b,0x7e,0xf1,0xe6,0xaa,0x8d,0x59,0x8d,0x51, | |
| 4485 | 0x31,0x94,0xf4,0xd6,0x81,0x79,0xb4,0x92,0x97,0xe2,0x64,0xdc,0x89,0xa5,0x9e,0x0e, | |
| 4486 | 0x6f,0x9a,0xf8,0x7e,0x63,0x9b,0x0b,0x84,0x7b,0x7e,0x6f,0x7a,0xd0,0x1c,0xbb,0xb6, | |
| 4487 | 0x7a,0x4d,0x88,0x91,0x90,0xe8,0x6e,0x63,0x2c,0xc6,0x05,0x84,0x64,0xbf,0xe4,0x4b, | |
| 4488 | 0x51,0xab,0xa4,0x11,0x0a,0x61,0xdd,0x2e,0xa8,0xbb,0x27,0xfa,0x43,0x8f,0x19,0xcc, | |
| 4489 | 0xf3,0xb5,0x4c,0xfd,0xd0,0x07,0x58,0xe5,0xf1,0x5b,0xd5,0xdc,0x6f,0x8a,0x5a,0x39, | |
| 4490 | 0x62,0x6c,0x80,0x55,0xe1,0xd8,0xdf,0x88,0x06,0xa7,0x0f,0x29,0xe7,0xb1,0xa7,0x92, | |
| 4491 | 0x9c,0xce,0x41,0x19,0x3f,0xd5,0x72,0x17,0xe6,0xa0,0xd5,0xe3,0xaa,0x05,0x00,0xd7, | |
| 4492 | 0xa3,0xdc,0x8d,0x49,0xe8,0xff,0x12,0x92,0x93,0x44,0x27,0x09,0xba,0x84,0x66,0x07, | |
| 4493 | 0x76,0x97,0x65,0xe5,0xde,0x54,0xbd,0xf8,0x0b,0x94,0x05,0x9b,0x15,0x2f,0xd7,0x24, | |
| 4494 | 0x14,0xfd,0xc9,0xec,0x20,0xd5,0x74,0x4b,0x50,0x91,0x6f,0x99,0xbd,0x07,0x54,0x2d, | |
| 4495 | 0x7f,0x0f,0xb9,0x60,0xad,0x83,0x37,0x8a,0x61,0x39,0x65,0x03,0xb1,0x0a,0xdd,0x22, | |
| 4496 | 0xb5,0xce,0x35,0x87,0x5c,0x06,0xb5,0x3d,0x8d,0xe8,0xd8,0xf0,0x39,0x72,0x03,0xb8, | |
| 4497 | 0x38,0x3d,0x8c,0xac,0x61,0xe1,0xcc,0xe6,0x8e,0xf6,0x1a,0x7c,0x95,0x13,0xd0,0x86, | |
| 4498 | 0x4e,0xd1,0x44,0x1e,0x93,0xc8,0xcf,0x5a,0x3a,0x90,0xc8,0x53,0x1c,0xc0,0x89,0x21, | |
| 4499 | 0x11,0xf1,0x68,0xdc,0xf0,0xbb,0xbd,0x9b,0x92,0xb6,0xe2,0x77,0xcf,0x79,0x2d,0x88, | |
| 4500 | 0x7f,0x9d,0xf7,0xe5,0x7a,0xba,0x98,0xa7,0x97,0x68,0x68,0xe7,0xaf,0x3e,0xbe,0xba, | |
| 4501 | 0x99,0xd5,0xf3,0x3b,0x2f,0xc5,0x5f,0x80,0x47,0xa6,0x5a,0xa2,0xba,0x0f,0x3b,0xb9, | |
| 4502 | 0x60,0x9a,0x5b,0xdc,0x10,0xdc,0x12,0x25,0xa3,0x70,0xb8,0xaa,0xf1,0xec,0xa4,0x83, | |
| 4503 | 0xd2,0xea,0x2f,0xca,0x1e,0x00,0xb1,0x95,0xac,0xc6,0x81,0xfd,0x55,0xd6,0xf9,0x1a, | |
| 4504 | 0xf0,0xc6,0x6f,0x04,0x57,0x2f,0x3c,0xd2,0x60,0xa8,0xb7,0x9d,0xe4,0xcb,0x3a,0x7d, | |
| 4505 | 0xbb,0x2e,0x1b,0x89,0xbc,0x6a,0xb2,0xda,0xc0,0x16,0x59,0x88,0x9f,0xcc,0x66,0xab, | |
| 4506 | 0x31,0x22,0x33,0x5b,0x4e,0xb1,0x15,0xaf,0xcd,0x10,0x67,0xc0,0x87,0xd9,0x7f,0xa6, | |
| 4507 | 0x53,0xa2,0xb6,0x78,0x0b,0x04,0x64,0x50,0x85,0x97,0xe1,0x44,0x9a,0xf2,0x84,0x6c, | |
| 4508 | 0x22,0xae,0xa6,0xe2,0xf4,0x63,0x9f,0xbc,0xe9,0xa9,0xc7,0x13,0xd9,0x17,0x75,0xff, | |
| 4509 | 0x9c,0x46,0x02,0x98,0x0a,0xce,0xc6,0xf5,0xfa,0x47,0x18,0x2f,0x45,0x48,0x52,0x5e, | |
| 4510 | 0xc2,0x6a,0xca,0x99,0x4b,0x45,0xd9,0xf9,0xb6,0x71,0xd6,0x96,0xdc,0x85,0x1b,0x88, | |
| 4511 | 0x95,0x1a,0xfe,0xe7,0xb8,0xc8,0xd8,0xca,0x1f,0x27,0x00,0x4a,0x9f,0xce,0xcf,0x7f, | |
| 4512 | 0x13,0x56,0x9e,0x80,0x52,0x57,0xc2,0x67,0x33,0x69,0x96,0x4a,0x8f,0x23,0x70,0x41, | |
| 4513 | 0x3e,0x1f,0xa9,0x66,0x17,0xf2,0x99,0xcf,0xf3,0x37,0x98,0x95,0xaa,0x85,0xfd,0xd0, | |
| 4514 | 0x14,0x73,0x21,0x98,0x08,0x9a,0x5c,0x04,0x60,0x91,0x06,0x2d,0xf2,0xf2,0x76,0x2b, | |
| 4515 | 0x96,0x53,0x05,0x15,0x26,0x4d,0x0b,0x04,0x78,0x77,0xe0,0x10,0x65,0x6b,0xdb,0x51, | |
| 4516 | 0xc5,0xbf,0x55,0xdf,0x6f,0x0c,0xa6,0xd1,0x3c,0xe9,0x25,0x04,0xf0,0x2c,0x44,0x9f, | |
| 4517 | 0xb7,0x11,0xf4,0xe4,0xd7,0x2d,0x6a,0xad,0xe7,0xd7,0xbc,0xd0,0x81,0x69,0x02,0x25, | |
| 4518 | 0x3b,0x39,0x56,0x86,0xae,0x9f,0xce,0xc9,0x72,0xf5,0x83,0xc7,0x1e,0x91,0x8d,0x58, | |
| 4519 | 0x4b,0xcc,0x03,0x53,0x91,0xfe,0xff,0x91,0x88,0x7f,0x97,0xea,0xc7,0xa6,0xe4,0x36, | |
| 4520 | 0xe7,0xcc,0xfd,0x4c,0x80,0x49,0xfb,0x06,0x2a,0x75,0xf6,0x3a,0x7c,0xa7,0x06,0xc0, | |
| 4521 | 0x0f,0x38,0x43,0x72,0x7b,0x80,0xc4,0x26,0x58,0xd7,0xa2,0xb5,0x3d,0x94,0xf5,0xf7, | |
| 4522 | 0xc3,0x10,0xd4,0xc3,0x82,0xa3,0x59,0xf2,0x12,0xa4,0x9a,0x5c,0x0a,0x6d,0xaf,0xd9, | |
| 4523 | 0x04,0x54,0xb2,0x95,0xb2,0xb9,0x6b,0x58,0xde,0xdd,0x30,0xe3,0x32,0x36,0x67,0xd0, | |
| 4524 | 0x04,0xdb,0xea,0xb5,0xad,0xe6,0x8f,0x2a,0x84,0x6d,0x2f,0xc9,0xe2,0x89,0xa2,0x28, | |
| 4525 | 0x20,0x51,0xbf,0xe0,0x93,0xde,0x5f,0x88,0x96,0x48,0x5a,0xba,0x7f,0xa7,0x88,0x0c, | |
| 4526 | 0xa7,0x13,0xc0,0x17,0x66,0xa3,0xdc,0x72,0x14,0x70,0xb2,0xb7,0x08,0x92,0x1a,0x7c, | |
| 4527 | 0x9b,0x20,0xee,0x5a,0x25,0x34,0x04,0xe8,0xfe,0xe4,0x35,0xc0,0x7d,0x48,0x59,0x78, | |
| 4528 | 0xfb,0x7a,0x47,0xa9,0xd0,0x90,0xd8,0xeb,0x53,0xa3,0xe4,0xd5,0xde,0xcb,0x43,0x00, | |
| 4529 | 0xc7,0x1f,0xcc,0x04,0x67,0xb9,0x59,0x79,0x15,0xaf,0xc0,0xf6,0x2b,0x19,0xd9,0x14, | |
| 4530 | 0xff,0x11,0x7e,0x6b,0xea,0xad,0x85,0x93,0x43,0x06,0xc7,0x23,0x64,0x34,0x1c,0xb4, | |
| 4531 | 0xa3,0x4f,0x5b,0xde,0x58,0x6e,0x5d,0x39,0xdd,0xaa,0xfa,0x5c,0x88,0x1b,0x0a,0xe0, | |
| 4532 | 0xb2,0xd8,0x65,0x5d,0xb3,0xfa,0xe2,0x6b,0xe3,0x9a,0x5a,0xa1,0x99,0xcd,0xa4,0x98, | |
| 4533 | 0x2e,0xae,0x9a,0xe8,0xfa,0x53,0x12,0x29,0x55,0xd5,0xe5,0xf2,0x96,0x4c,0xeb,0xdd, | |
| 4534 | 0x16,0xcf,0xfb,0x7f,0x2d,0x78,0xee,0x73,0x33,0x5d,0x9c,0x4f,0x7f,0x96,0xdd,0xad, | |
| 4535 | 0x6a,0x3d,0x89,0x23,0x4c,0x68,0x77,0x49,0x7c,0x30,0x80,0xb9,0x54,0xad,0x7b,0x09, | |
| 4536 | 0x2a,0xf7,0x42,0xd2,0x57,0x25,0xab,0xab,0x32,0x50,0x8f,0x2e,0x15,0x90,0xc6,0xf1, | |
| 4537 | 0x56,0xfc,0x27,0x8d,0x4d,0xad,0x8b,0x99,0x54,0xbb,0xca,0xaf,0xc1,0x3e,0xbc,0x65, | |
| 4538 | 0xee,0x4e,0x39,0x54,0x30,0x02,0x18,0x13,0xe2,0x73,0x32,0x3c,0x5a,0xb9,0x5e,0x65, | |
| 4539 | 0xf1,0xeb,0x76,0x27,0xff,0x23,0x50,0x1a,0xdc,0x77,0xc5,0xd5,0xdf,0xff,0xad,0xf1, | |
| 4540 | 0x61,0xd5,0xdf,0x06,0xba,0x0f,0x34,0xac,0x42,0xc6,0x84,0x7a,0x50,0x12,0xa7,0x09, | |
| 4541 | 0x3d,0x0b,0x75,0xf1,0x61,0xc8,0xc5,0xca,0x13,0x62,0x70,0x2b,0xad,0xf1,0x4d,0xad, | |
| 4542 | 0x85,0x8c,0x36,0xe8,0xf4,0x4c,0x01,0x74,0x51,0x49,0x87,0xe8,0xf6,0x9b,0xa0,0xdd, | |
| 4543 | 0x39,0x5a,0x23,0xeb,0x73,0x9d,0xea,0xaa,0xfb,0x7d,0xca,0xb1,0x2a,0x12,0x9e,0x99, | |
| 4544 | 0x59,0x73,0x3d,0xfa,0xdd,0xba,0x7e,0x6c,0x11,0xfd,0x3a,0x86,0x4b,0x54,0x49,0xe2, | |
| 4545 | 0xe4,0xd9,0x82,0x15,0x34,0xa2,0xbe,0xba,0x93,0xc8,0xd5,0x68,0x58,0x63,0x9f,0xb6, | |
| 4546 | 0xdc,0x8b,0xf3,0x3d,0x77,0x57,0xab,0x94,0x81,0xe0,0x9d,0x55,0x51,0x3e,0xa1,0x16, | |
| 4547 | 0x88,0x91,0x70,0xa6,0xd7,0x43,0xfa,0xdb,0x43,0x90,0x4e,0x36,0xe4,0x50,0x02,0x10, | |
| 4548 | 0xd2,0x5a,0xaf,0xc1,0x24,0x87,0xec,0xa0,0xf3,0xaf,0x53,0x07,0x57,0xaa,0x7a,0x4c, | |
| 4549 | 0x67,0x4f,0xfa,0xc8,0x3d,0x78,0x6a,0xd2,0xef,0xfb,0x64,0xc4,0x95,0xb0,0x7e,0xf4, | |
| 4550 | 0x49,0x71,0x51,0xba,0x21,0x14,0x75,0x70,0x36,0x72,0x81,0x6c,0xa0,0x63,0x0e,0x07, | |
| 4551 | 0x76,0xbe,0xb4,0x99,0xd2,0x5c,0x0b,0x7a,0xca,0x15,0xaa,0x01,0x77,0xc1,0x2a,0x87, | |
| 4552 | 0xf0,0x37,0x23,0x64,0x4e,0x51,0x2d,0xf0,0xa9,0xe5,0xdf,0x82,0x19,0xcb,0xd2,0x73, | |
| 4553 | 0xb6,0xdd,0x9e,0x1b,0x97,0xf1,0xdb,0xd2,0xd5,0xe0,0x20,0xef,0x88,0x82,0x06,0xcb, | |
| 4554 | 0xc7,0xae,0x25,0xbe,0xac,0x3d,0x15,0x1f,0x4d,0x07,0x6d,0x48,0xc2,0xe4,0xc7,0x8f, | |
| 4555 | 0x25,0xab,0xb8,0x4d,0x8c,0x36,0xdb,0xd9,0x10,0x5b,0xc6,0x8d,0xc9,0xf2,0x13,0xbf, | |
| 4556 | 0xce,0xd5,0x58,0xc8,0x39,0xda,0x2d,0xff,0x20,0xda,0x2c,0xbd,0x9c,0xad,0xeb,0x5b, | |
| 4557 | 0xc4,0x2a,0x03,0x2e,0xb1,0x2a,0x0b,0x91,0x7b,0x85,0x9d,0xda,0x3a,0x13,0x4f,0x62, | |
| 4558 | ||
| 4559 | /* data */ | |
| 4560 | 0xa1,0x15,0x88,0x14,0x04,0xd3,0x2c,0xeb,0x19,0xf3,0xe3,0x85,0xa2,0x37,0x6e,0xa2, | |
| 4561 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4562 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4563 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4564 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4565 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4566 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4567 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4568 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4569 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4570 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4571 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4572 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4573 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4574 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4575 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4576 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4577 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4578 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4579 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4580 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4581 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4582 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4583 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4584 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4585 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4586 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4587 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4588 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4589 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4590 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4591 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4592 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4593 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4594 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4595 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4596 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4597 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4598 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4599 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4600 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4601 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4602 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4603 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4604 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4605 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4606 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4607 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4608 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4609 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4610 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4611 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4612 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4613 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4614 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4615 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4616 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4617 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4618 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4619 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4620 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4621 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4622 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4623 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4624 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4625 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4626 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4627 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4628 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4629 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4630 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4631 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4632 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4633 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4634 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4635 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4636 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4637 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4638 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4639 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4640 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4641 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4642 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4643 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4644 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4645 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4646 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4647 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4648 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4649 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4650 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4651 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4652 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4653 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4654 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4655 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4656 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4657 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4658 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4659 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4660 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4661 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4662 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4663 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4664 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4665 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4666 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4667 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4668 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4669 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4670 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4671 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4672 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4673 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4674 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4675 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4676 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4677 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4678 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4679 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4680 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4681 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4682 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4683 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4684 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4685 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4686 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4687 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4688 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4689 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4690 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4691 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4692 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4693 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4694 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4695 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4696 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4697 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4698 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4699 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4700 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4701 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4702 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4703 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4704 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4705 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4706 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4707 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4708 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4709 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4710 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4711 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4712 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4713 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4714 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4715 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4716 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4717 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4718 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4719 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4720 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4721 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4722 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4723 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4724 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4725 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4726 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4727 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4728 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4729 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4730 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4731 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4732 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4733 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4734 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4735 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4736 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4737 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4738 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4739 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4740 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4741 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4742 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4743 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4744 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4745 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4746 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4747 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4748 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4749 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4750 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4751 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4752 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4753 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4754 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4755 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4756 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4757 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4758 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4759 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4760 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4761 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4762 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4763 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4764 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4765 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4766 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4767 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4768 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4769 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4770 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4771 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4772 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4773 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4774 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4775 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4776 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4777 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4778 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4779 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4780 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4781 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4782 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4783 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4784 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4785 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4786 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4787 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4788 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4789 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4790 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4791 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4792 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4793 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4794 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4795 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4796 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4797 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4798 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4799 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4800 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4801 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4802 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4803 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4804 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4805 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4806 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4807 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4808 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4809 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4810 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4811 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4812 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4813 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4814 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4815 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 4816 | }; | |
| 4817 | ||
| 4818 | ||
| 4819 | /* 317-xxxx FD1089A - Partial table. */ | |
| 4820 | static const UINT8 key_wb35[0x2000] = | |
| 4821 | { | |
| 4822 | /* opcodes */ | |
| 4823 | 0xfb,0x47,0x73,0xac,0x3c,0xb8,0x2d,0x57,0xca,0x27,0x49,0x76,0x8f,0x41,0x33,0x36, | |
| 4824 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4825 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4826 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4827 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4828 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4829 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4830 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4831 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4832 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4833 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4834 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4835 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4836 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4837 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4838 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4839 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4840 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4841 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4842 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4843 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4844 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4845 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4846 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4847 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4848 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4849 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4850 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4851 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4852 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4853 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4854 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4855 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4856 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4857 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4858 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4859 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4860 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4861 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4862 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4863 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4864 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4865 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4866 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4867 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4868 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4869 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4870 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4871 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4872 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4873 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4874 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4875 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4876 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4877 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4878 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4879 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4880 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4881 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4882 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4883 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4884 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4885 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4886 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4887 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4888 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4889 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4890 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4891 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4892 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4893 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4894 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4895 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4896 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4897 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4898 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4899 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4900 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4901 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4902 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4903 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4904 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4905 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4906 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4907 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4908 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4909 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4910 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4911 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4912 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4913 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4914 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4915 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4916 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4917 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4918 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4919 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4920 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4921 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4922 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4923 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4924 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4925 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4926 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4927 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4928 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4929 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4930 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4931 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4932 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4933 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4934 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4935 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4936 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4937 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4938 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4939 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4940 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4941 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4942 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4943 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4944 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4945 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4946 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4947 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4948 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4949 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4950 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4951 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4952 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4953 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4954 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4955 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4956 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4957 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4958 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4959 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4960 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4961 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4962 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4963 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4964 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4965 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4966 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4967 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4968 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4969 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4970 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4971 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4972 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4973 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4974 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4975 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4976 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4977 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4978 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4979 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4980 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4981 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4982 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4983 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4984 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4985 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4986 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4987 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4988 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4989 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4990 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4991 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4992 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4993 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4994 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4995 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4996 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4997 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4998 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 4999 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5000 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5001 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5002 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5003 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5004 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5005 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5006 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5007 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5008 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5009 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5010 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5011 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5012 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5013 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5014 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5015 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5016 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5017 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5018 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5019 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5020 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5021 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5022 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5023 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5024 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5025 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5026 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5027 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5028 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5029 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5030 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5031 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5032 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5033 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5034 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5035 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5036 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5037 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5038 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5039 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5040 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5041 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5042 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5043 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5044 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5045 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5046 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5047 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5048 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5049 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5050 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5051 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5052 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5053 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5054 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5055 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5056 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5057 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5058 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5059 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5060 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5061 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5062 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5063 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5064 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5065 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5066 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5067 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5068 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5069 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5070 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5071 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5072 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5073 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5074 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5075 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5076 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5077 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5078 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5079 | ||
| 5080 | /* data */ | |
| 5081 | 0x27,0x14,0xca,0xad,0x76,0xe2,0x5f,0xbe,0xe5,0x7a,0x9a,0x80,0x3e,0x69,0xc5,0xfe, | |
| 5082 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 5083 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5084 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5085 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5086 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5087 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5088 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5089 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5090 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5091 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5092 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5093 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5094 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5095 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5096 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5097 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5098 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5099 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5100 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5101 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5102 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5103 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5104 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5105 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5106 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5107 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5108 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5109 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5110 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5111 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5112 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5113 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5114 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5115 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5116 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5117 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5118 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5119 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5120 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5121 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5122 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5123 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5124 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5125 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5126 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5127 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5128 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5129 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5130 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5131 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5132 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5133 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5134 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5135 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5136 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5137 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5138 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5139 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5140 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5141 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5142 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5143 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5144 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5145 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5146 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5147 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5148 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5149 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5150 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5151 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5152 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5153 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5154 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5155 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5156 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5157 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5158 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5159 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5160 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5161 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5162 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5163 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5164 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5165 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5166 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5167 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5168 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5169 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5170 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5171 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5172 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5173 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5174 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5175 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5176 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5177 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5178 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5179 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5180 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5181 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5182 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5183 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5184 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5185 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5186 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5187 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5188 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5189 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5190 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5191 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5192 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5193 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5194 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5195 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5196 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5197 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5198 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5199 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5200 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5201 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5202 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5203 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5204 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5205 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5206 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5207 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5208 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5209 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5210 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5211 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5212 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5213 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5214 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5215 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5216 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5217 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5218 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5219 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5220 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5221 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5222 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5223 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5224 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5225 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5226 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5227 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5228 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5229 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5230 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5231 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5232 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5233 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5234 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5235 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5236 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5237 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5238 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5239 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5240 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5241 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5242 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5243 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5244 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5245 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5246 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5247 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5248 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5249 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5250 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5251 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5252 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5253 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5254 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5255 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5256 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5257 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5258 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5259 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5260 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5261 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5262 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5263 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5264 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5265 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5266 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5267 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5268 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5269 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5270 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5271 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5272 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5273 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5274 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5275 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5276 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5277 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5278 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5279 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5280 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5281 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5282 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5283 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5284 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5285 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5286 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5287 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5288 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5289 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5290 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5291 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5292 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5293 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5294 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5295 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5296 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5297 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5298 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5299 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5300 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5301 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5302 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5303 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5304 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5305 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5306 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5307 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5308 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5309 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5310 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5311 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5312 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5313 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5314 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5315 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5316 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5317 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5318 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5319 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5320 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5321 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5322 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5323 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5324 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5325 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5326 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5327 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5328 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5329 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5330 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5331 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5332 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5333 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5334 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5335 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5336 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5337 | }; | |
| 5338 | ||
| 5339 | ||
| 5340 | /* 317-5021 FD1089B */ | |
| 5341 | static const UINT8 key_5021[0x2000] = | |
| 5342 | { | |
| 5343 | /* opcodes */ | |
| 5344 | 0x43,0xa7,0x19,0x37,0x03,0x91,0xb8,0xc5,0x23,0x15,0x5d,0xf3,0xb0,0x00,0x95,0x0f, | |
| 5345 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5346 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5347 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5348 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5349 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5350 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5351 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5352 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5353 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5354 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5355 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5356 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5357 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5358 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5359 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5360 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5361 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5362 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5363 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5364 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5365 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5366 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5367 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5368 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5369 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5370 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5371 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5372 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5373 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5374 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5375 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5376 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5377 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5378 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5379 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5380 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5381 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5382 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5383 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5384 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5385 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5386 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5387 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5388 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5389 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5390 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5391 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5392 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5393 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5394 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5395 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5396 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5397 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5398 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5399 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5400 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5401 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5402 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5403 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5404 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5405 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5406 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5407 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5408 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5409 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5410 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5411 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5412 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5413 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5414 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5415 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5416 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5417 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5418 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5419 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5420 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5421 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5422 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5423 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5424 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5425 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5426 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5427 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5428 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5429 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5430 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5431 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5432 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5433 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5434 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5435 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5436 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5437 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5438 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5439 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5440 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5441 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5442 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5443 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5444 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5445 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5446 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5447 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5448 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5449 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5450 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5451 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5452 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5453 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5454 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5455 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5456 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5457 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5458 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5459 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5460 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5461 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5462 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5463 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5464 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5465 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5466 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5467 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5468 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5469 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5470 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5471 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5472 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5473 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5474 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5475 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5476 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5477 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5478 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5479 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5480 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5481 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5482 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5483 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5484 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5485 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5486 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5487 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5488 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5489 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5490 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5491 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5492 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5493 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5494 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5495 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5496 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5497 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5498 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5499 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5500 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5501 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5502 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5503 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5504 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5505 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5506 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5507 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5508 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5509 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5510 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5511 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5512 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5513 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5514 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5515 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5516 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5517 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5518 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5519 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5520 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5521 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5522 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5523 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5524 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5525 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5526 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5527 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5528 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5529 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5530 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5531 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5532 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5533 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5534 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5535 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5536 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5537 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5538 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5539 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5540 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5541 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5542 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5543 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5544 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5545 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5546 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5547 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5548 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5549 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5550 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5551 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5552 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5553 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5554 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5555 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5556 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5557 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5558 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5559 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5560 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5561 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5562 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5563 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5564 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5565 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5566 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5567 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5568 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5569 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5570 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5571 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5572 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5573 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5574 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5575 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5576 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5577 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5578 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5579 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5580 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5581 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5582 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5583 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5584 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5585 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5586 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5587 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5588 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5589 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5590 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5591 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5592 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5593 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5594 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5595 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5596 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5597 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5598 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5599 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5600 | ||
| 5601 | /* data */ | |
| 5602 | 0x37,0x8d,0x00,0xfb,0xc2,0xa5,0x31,0x5b,0xb4,0x98,0x60,0x8c,0xfa,0x12,0xf8,0xb9, | |
| 5603 | 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, | |
| 5604 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5605 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5606 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5607 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5608 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5609 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5610 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5611 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5612 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5613 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5614 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5615 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5616 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5617 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5618 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5619 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5620 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5621 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5622 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5623 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5624 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5625 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5626 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5627 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5628 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5629 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5630 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5631 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5632 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5633 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5634 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5635 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5636 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5637 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5638 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5639 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5640 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5641 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5642 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5643 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5644 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5645 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5646 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5647 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5648 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5649 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5650 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5651 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5652 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5653 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5654 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5655 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5656 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5657 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5658 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5659 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5660 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5661 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5662 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5663 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5664 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5665 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5666 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5667 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5668 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5669 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5670 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5671 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5672 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5673 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5674 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5675 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5676 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5677 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5678 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5679 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5680 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5681 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5682 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5683 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5684 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5685 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5686 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5687 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5688 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5689 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5690 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5691 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5692 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5693 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5694 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5695 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5696 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5697 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5698 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5699 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5700 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5701 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5702 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5703 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5704 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5705 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5706 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5707 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5708 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5709 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5710 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5711 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5712 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5713 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5714 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5715 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5716 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5717 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5718 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5719 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5720 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5721 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5722 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5723 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5724 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5725 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5726 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5727 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5728 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5729 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5730 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5731 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5732 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5733 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5734 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5735 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5736 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5737 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5738 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5739 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5740 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5741 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5742 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5743 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5744 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5745 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5746 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5747 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5748 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5749 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5750 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5751 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5752 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5753 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5754 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5755 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5756 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5757 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5758 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5759 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5760 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5761 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5762 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5763 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5764 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5765 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5766 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5767 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5768 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5769 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5770 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5771 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5772 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5773 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5774 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5775 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5776 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5777 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5778 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5779 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5780 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5781 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5782 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5783 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5784 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5785 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5786 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5787 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5788 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5789 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5790 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5791 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5792 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5793 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5794 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5795 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5796 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5797 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5798 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5799 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5800 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5801 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5802 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5803 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5804 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5805 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5806 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5807 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5808 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5809 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5810 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5811 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5812 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5813 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5814 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5815 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5816 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5817 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5818 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5819 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5820 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5821 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5822 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5823 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5824 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5825 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5826 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5827 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5828 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5829 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5830 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5831 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5832 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5833 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5834 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5835 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5836 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5837 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5838 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5839 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5840 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5841 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5842 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5843 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5844 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5845 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5846 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5847 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5848 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5849 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5850 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5851 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5852 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5853 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5854 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5855 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5856 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5857 | 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , | |
| 5858 | }; | |
| 5859 | ||
| 5860 | ||
| 5861 | ||
| 5862 | 127 | struct parameters |
| 5863 | 128 | { |
| 5864 | 129 | int xor; |
| r3115 | r3116 | |
| 6159 | 424 | return decrypted; |
| 6160 | 425 | } |
| 6161 | 426 | |
| 6162 | ||
| 6163 | ||
| 6164 | void fd1089_decrypt_0013A(running_machine *machine) | |
| 427 | void fd1089a_decrypt(running_machine *machine) | |
| 6165 | 428 | { |
| 6166 | sys16_decrypt(machine, | |
| 429 | sys16_decrypt(machine, memory_region(machine, "fd1089a_key"), FD1089A); | |
| 6167 | 430 | } |
| 6168 | 431 | |
| 6169 | void fd1089_decrypt | |
| 432 | void fd1089b_decrypt | |
| 6170 | 433 | { |
| 6171 | sys16_decrypt(machine, | |
| 434 | sys16_decrypt(machine, memory_region(machine, "fd1089b_key"), FD1089B); | |
| 6172 | 435 | } |
| 6173 | 436 | |
| 6174 | void fd1089_decrypt_0021(running_machine *machine) | |
| 6175 | { | |
| 6176 | sys16_decrypt(machine, key_0021,FD1089A); | |
| 6177 | } | |
| 6178 | ||
| 6179 | void fd1089_decrypt_0022(running_machine *machine) | |
| 6180 | { | |
| 6181 | sys16_decrypt(machine, key_0022,FD1089A); | |
| 6182 | } | |
| 6183 | ||
| 6184 | void fd1089_decrypt_0024(running_machine *machine) | |
| 6185 | { | |
| 6186 | sys16_decrypt(machine, key_0024,FD1089B); | |
| 6187 | } | |
| 6188 | ||
| 6189 | void fd1089_decrypt_0027(running_machine *machine) | |
| 6190 | { | |
| 6191 | sys16_decrypt(machine, key_0027_0028,FD1089B); | |
| 6192 | } | |
| 6193 | ||
| 6194 | void fd1089_decrypt_0028(running_machine *machine) | |
| 6195 | { | |
| 6196 | sys16_decrypt(machine, key_0027_0028,FD1089A); | |
| 6197 | } | |
| 6198 | ||
| 6199 | void fd1089_decrypt_0033(running_machine *machine) | |
| 6200 | { | |
| 6201 | sys16_decrypt(machine, key_0033_0037,FD1089A); | |
| 6202 | } | |
| 6203 | ||
| 6204 | void fd1089_decrypt_0034(running_machine *machine) | |
| 6205 | { | |
| 6206 | sys16_decrypt(machine, key_0034,FD1089B); | |
| 6207 | } | |
| 6208 | ||
| 6209 | void fd1089_decrypt_0037(running_machine *machine) | |
| 6210 | { | |
| 6211 | sys16_decrypt(machine, key_0033_0037,FD1089B); | |
| 6212 | } | |
| 6213 | ||
| 6214 | void fd1089_decrypt_0167(running_machine *machine) | |
| 6215 | { | |
| 6216 | sys16_decrypt(machine, key_0167_0168,FD1089A); | |
| 6217 | } | |
| 6218 | ||
| 6219 | void fd1089_decrypt_0168(running_machine *machine) | |
| 6220 | { | |
| 6221 | sys16_decrypt(machine, key_0167_0168,FD1089B); | |
| 6222 | } | |
| 6223 | ||
| 6224 | void fd1089_decrypt_5021(running_machine *machine) | |
| 6225 | { | |
| 6226 | sys16_decrypt(machine, key_5021,FD1089B); | |
| 6227 | } | |
| 6228 | ||
| 6229 | void fd1089_decrypt_wb35(running_machine *machine) | |
| 6230 | { | |
| 6231 | sys16_decrypt(machine, key_wb35,FD1089A); | |
| 6232 | } | |
| 6233 |
| r3115 | r3116 | |
|---|---|---|
| 1 | 1 | void *fd1089_get_decrypted_base(void); |
| 2 | 2 | |
| 3 | void fd1089_decrypt_0013A(running_machine *machine); | |
| 4 | void fd1089_decrypt_0018(running_machine *machine); | |
| 5 | void fd1089_decrypt_0021(running_machine *machine); | |
| 6 | void fd1089_decrypt_0022(running_machine *machine); | |
| 7 | void fd1089_decrypt_0024(running_machine *machine); | |
| 8 | void fd1089_decrypt_0027(running_machine *machine); | |
| 9 | void fd1089_decrypt_0028(running_machine *machine); | |
| 10 | void fd1089_decrypt_0033(running_machine *machine); | |
| 11 | void fd1089_decrypt_0034(running_machine *machine); | |
| 12 | void fd1089_decrypt_0037(running_machine *machine); | |
| 13 | void fd1089_decrypt_0167(running_machine *machine); | |
| 14 | void fd1089_decrypt_0168(running_machine *machine); | |
| 15 | void fd1089_decrypt_5021(running_machine *machine); | |
| 16 | void fd1089_decrypt_wb35(running_machine *machine); | |
| 3 | void fd1089a_decrypt(running_machine *machine); | |
| 4 | void fd1089b_decrypt(running_machine *machine); |
| r3115 | r3116 | |
|---|---|---|
| 60 | 60 | * BIOS ports handling |
| 61 | 61 | * |
| 62 | 62 | *************************************/ |
| 63 | READ8_HANDLER( pc10_port_0_r ) | |
| 63 | ||
| 64 | CUSTOM_INPUT( pc10_int_detect_r ) | |
| 64 | 65 | { |
| 65 | return | |
| 66 | return | |
| 66 | 67 | } |
| 67 | 68 | |
| 68 | 69 | WRITE8_HANDLER( pc10_SDCS_w ) |
| r3115 | r3116 | |
|---|---|---|
| 35 | 35 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, PULSE_LINE); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | ||
| 39 | 38 | READ8_HANDLER( asteroid_IN0_r ) |
| 40 | 39 | { |
| 40 | int res = input_port_read(machine, "IN0"); | |
| 41 | int bitmask = (1 << offset); | |
| 41 | 42 | |
| 42 | int res; | |
| 43 | int bitmask; | |
| 44 | ||
| 45 | res=input_port_read(machine, "IN0"); | |
| 46 | ||
| 47 | bitmask = (1 << offset); | |
| 48 | ||
| 49 | if (activecpu_gettotalcycles() & 0x100) | |
| 50 | res |= 0x02; | |
| 51 | if (!avgdvg_done()) | |
| 52 | res |= 0x04; | |
| 53 | ||
| 54 | 43 | if (res & bitmask) |
| 55 | 44 | res = 0x80; |
| 56 | 45 | else |
| r3115 | r3116 | |
| 60 | 49 | } |
| 61 | 50 | |
| 62 | 51 | |
| 63 | READ8_HANDLER( asteroib_IN0_r ) | |
| 64 | { | |
| 65 | int res; | |
| 66 | ||
| 67 | res=input_port_read(machine, "IN0"); | |
| 68 | ||
| 69 | // if (activecpu_gettotalcycles() & 0x100) | |
| 70 | // res |= 0x02; | |
| 71 | if (!avgdvg_done()) | |
| 72 | res |= 0x80; | |
| 73 | ||
| 74 | return res; | |
| 75 | } | |
| 76 | ||
| 77 | 52 | READ8_HANDLER( asterock_IN0_r ) |
| 78 | 53 | { |
| 79 | int res; | |
| 80 | int bitmask; | |
| 54 | int res = input_port_read(machine, "IN0"); | |
| 55 | int bitmask = (1 << offset); | |
| 81 | 56 | |
| 82 | res=input_port_read(machine, "IN0"); | |
| 83 | ||
| 84 | bitmask = (1 << offset); | |
| 85 | ||
| 86 | if (activecpu_gettotalcycles() & 0x100) | |
| 87 | res |= 0x04; | |
| 88 | if (!avgdvg_done()) | |
| 89 | res |= 0x01; | |
| 90 | ||
| 91 | 57 | if (res & bitmask) |
| 92 | 58 | res = ~0x80; |
| 93 | 59 | else |
| r3115 | r3116 | |
| 103 | 69 | |
| 104 | 70 | READ8_HANDLER( asteroid_IN1_r ) |
| 105 | 71 | { |
| 106 | int res; | |
| 107 | int bitmask; | |
| 72 | int res = input_port_read(machine, "IN1"); | |
| 73 | int bitmask = (1 << (offset & 0x7)); | |
| 108 | 74 | |
| 109 | res=input_port_read(machine, "IN1"); | |
| 110 | bitmask = (1 << (offset & 0x7)); | |
| 111 | ||
| 112 | 75 | if (res & bitmask) |
| 113 | 76 | res = 0x80; |
| 114 | 77 | else |
| 115 | 78 | res = ~0x80; |
| 116 | return (res); | |
| 79 | ||
| 80 | return res; | |
| 117 | 81 | } |
| 118 | 82 | |
| 119 | 83 | |
| r3115 | r3116 | |
| 173 | 137 | asteroid_bank_switch_w(machine,0,0); |
| 174 | 138 | avgdvg_reset_w(machine,0,0); |
| 175 | 139 | } |
| 176 | ||
| 177 | ||
| 178 | /* | |
| 179 | * This is Lunar Lander's Inputport 0. | |
| 180 | */ | |
| 181 | READ8_HANDLER( llander_IN0_r ) | |
| 182 | { | |
| 183 | int res; | |
| 184 | ||
| 185 | res = input_port_read(machine, "IN0"); | |
| 186 | ||
| 187 | if (avgdvg_done()) | |
| 188 | res |= 0x01; | |
| 189 | else | |
| 190 | res &= ~0x01; | |
| 191 | ||
| 192 | if (activecpu_gettotalcycles() & 0x100) | |
| 193 | res |= 0x40; | |
| 194 | else | |
| 195 | res &= ~0x40; | |
| 196 | ||
| 197 | return res; | |
| 198 | } |
| r3115 | r3116 | |
|---|---|---|
| 217 | 217 | * |
| 218 | 218 | *************************************/ |
| 219 | 219 | |
| 220 | ||
| 220 | CUSTOM_I | |
| 221 | 221 | { |
| 222 | UINT8 res; | |
| 223 | ||
| 224 | /* Bits 7-6 = selected based on Player 1 */ | |
| 225 | /* Bits 5-4 = common */ | |
| 226 | if (player_1) | |
| 227 | res = (input_port_read(machine, "IN0") & 0x30) | (input_port_read(machine, "IN2") & 0xc0); | |
| 228 | else | |
| 229 | res = input_port_read(machine, "IN0") & 0xf0; | |
| 230 | ||
| 231 | /* Bit 3 = Gamma rcvd flag */ | |
| 232 | if (gamma_rcvd) | |
| 233 | res |= 0x08; | |
| 234 | ||
| 235 | /* Bit 2 = Gamma xmtd flag */ | |
| 236 | if (gamma_xmtd) | |
| 237 | res |= 0x04; | |
| 238 | ||
| 239 | /* Bit 1 = 2.4kHz (divide 2.5MHz by 1024) */ | |
| 240 | if (!(activecpu_gettotalcycles() & 0x400)) | |
| 241 | res |= 0x02; | |
| 242 | ||
| 243 | /* Bit 0 = Vector generator halt flag */ | |
| 244 | if (avgdvg_done()) | |
| 245 | res |= 0x01; | |
| 246 | ||
| 247 | return res; | |
| 222 | return tms5220_ready_r() ? 0 : 1; | |
| 248 | 223 | } |
| 249 | 224 | |
| 250 | ||
| 251 | READ8_HANDLER( alphaone_port_0_r ) | |
| 225 | CUSTOM_INPUT( mhavoc_bit67_r ) | |
| 252 | 226 | { |
| 253 | /* Bits 7-2 = common */ | |
| 254 | UINT8 res = input_port_read(machine, "IN0") & 0xfc; | |
| 255 | ||
| 256 | /* Bit 1 = 2.4kHz (divide 2.5MHz by 1024) */ | |
| 257 | if (!(activecpu_gettotalcycles() & 0x400)) | |
| 258 | res |= 0x02; | |
| 259 | ||
| 260 | /* Bit 0 = Vector generator halt flag */ | |
| 261 | if (avgdvg_done()) | |
| 262 | res |= 0x01; | |
| 263 | ||
| 264 | return res; | |
| 227 | const char *tag1 = param; | |
| 228 | const char *tag2 = tag1 + strlen(tag1) + 1; | |
| 229 | return input_port_read(field->port->machine, player_1 ? tag2 : tag1) & 0x03; | |
| 265 | 230 | } |
| 266 | 231 | |
| 267 | ||
| 268 | READ8_HANDLER( mhavoc_port_1_r ) | |
| 232 | CUSTOM_INPUT( gamma_rcvd_r ) | |
| 269 | 233 | { |
| 270 | /* Bits 7-2 = input switches */ | |
| 271 | UINT8 res = input_port_read(machine, "IN1") & 0xfc; | |
| 234 | /* Gamma rcvd flag */ | |
| 235 | return gamma_rcvd; | |
| 236 | } | |
| 272 | 237 | |
| 273 | /* Bit 1 = Alpha rcvd flag */ | |
| 274 | if (has_gamma_cpu && alpha_rcvd) | |
| 275 | res |= 0x02; | |
| 276 | ||
| 277 | /* Bit 0 = Alpha xmtd flag */ | |
| 278 | if (has_gamma_cpu && alpha_xmtd) | |
| 279 | res |= 0x01; | |
| 280 | ||
| 281 | return res; | |
| 238 | CUSTOM_INPUT( gamma_xmtd_r ) | |
| 239 | { | |
| 240 | /* Gamma xmtd flag */ | |
| 241 | return gamma_xmtd; | |
| 282 | 242 | } |
| 283 | 243 | |
| 284 | ||
| 244 | CUSTOM_I | |
| 285 | 245 | { |
| 286 | /* Bits 7-3 = input switches */ | |
| 287 | UINT8 res = input_port_read(machine, "IN1") & 0xf8; | |
| 246 | /* Alpha rcvd flag */ | |
| 247 | return (has_gamma_cpu && alpha_rcvd); | |
| 248 | } | |
| 288 | 249 | |
| 289 | /* Bit 2 = TMS5220 ready flag */ | |
| 290 | if (!tms5220_ready_r()) | |
| 291 | res |= 0x04; | |
| 292 | ||
| 293 | /* Bit 1 = Alpha rcvd flag */ | |
| 294 | if (has_gamma_cpu && alpha_rcvd) | |
| 295 | res |= 0x02; | |
| 296 | ||
| 297 | /* Bit 0 = Alpha xmtd flag */ | |
| 298 | if (has_gamma_cpu && alpha_xmtd) | |
| 299 | res |= 0x01; | |
| 300 | ||
| 301 | return res; | |
| 250 | CUSTOM_INPUT( alpha_xmtd_r ) | |
| 251 | { | |
| 252 | /* Alpha xmtd flag */ | |
| 253 | return (has_gamma_cpu && alpha_xmtd); | |
| 302 | 254 | } |
| 303 | 255 | |
| 304 | ||
| 305 | ||
| 306 | ||
| 307 | 256 | /************************************* |
| 308 | 257 | * |
| 309 | 258 | * Output ports |
| r3115 | r3116 | |
|---|---|---|
| 457 | 457 | maple0x86data2[pos+8] = 1; |
| 458 | 458 | maple0x86data2[pos+1] = 0x8e; |
| 459 | 459 | maple0x86data2[pos+9] = 1; |
| 460 | maple0x86data2[pos+5] = 0xe0; | |
| 460 | 461 | // 4 + 1 + 0x10 + ?,8e,addr,0,?,?,addr?,len,status,report1,jvsbytes... |
| 461 | 462 | ddtdata.length=11; |
| 462 | 463 | tocopy += 10; |
| r3115 | r3116 | |
|---|---|---|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | |
| 66 | static READ8_HANDLER( ckongs_input_port_1_r ) | |
| 67 | { | |
| 68 | return (input_port_read(machine, "IN1") & 0xfc) | ((input_port_read(machine, "IN2") & 0x06) >> 1); | |
| 69 | } | |
| 70 | ||
| 71 | static READ8_HANDLER( ckongs_input_port_2_r ) | |
| 72 | { | |
| 73 | return (input_port_read(machine, "IN2") & 0xf9) | ((input_port_read(machine, "IN1") & 0x03) << 1); | |
| 74 | } | |
| 75 | ||
| 76 | ||
| 77 | /* the coinage DIPs are spread accross two input ports */ | |
| 78 | static READ8_HANDLER( stratgyx_input_port_2_r ) | |
| 79 | { | |
| 80 | return (input_port_read(machine, "IN2") & ~0x06) | ((input_port_read(machine, "IN4") << 1) & 0x06); | |
| 81 | } | |
| 82 | ||
| 83 | static READ8_HANDLER( stratgyx_input_port_3_r ) | |
| 84 | { | |
| 85 | return (input_port_read(machine, "IN3") & ~0x03) | ((input_port_read(machine, "IN4") >> 2) & 0x03); | |
| 86 | } | |
| 87 | ||
| 88 | ||
| 89 | 66 | static READ8_HANDLER( darkplnt_input_port_1_r ) |
| 90 | 67 | { |
| 91 | 68 | static const UINT8 remap[] = {0x03, 0x02, 0x00, 0x01, 0x21, 0x20, 0x22, 0x23, |
| r3115 | r3116 | |
| 228 | 205 | { |
| 229 | 206 | input_port_0_r, /* Port A read */ |
| 230 | 207 | input_port_1_r, /* Port B read */ |
| 231 | | |
| 208 | | |
| 232 | 209 | NULL, /* Port A write */ |
| 233 | 210 | NULL, /* Port B write */ |
| 234 | 211 | NULL /* Port C write */ |
| r3115 | r3116 | |
| 236 | 213 | { |
| 237 | 214 | NULL, /* Port A read */ |
| 238 | 215 | NULL, /* Port B read */ |
| 239 | | |
| 216 | | |
| 240 | 217 | soundlatch_w, /* Port A write */ |
| 241 | 218 | scramble_sh_irqtrigger_w, /* Port B write */ |
| 242 | 219 | NULL /* Port C write */ |
| r3115 | r3116 | |
| 290 | 267 | { |
| 291 | 268 | { |
| 292 | 269 | input_port_0_r, /* Port A read */ |
| 293 | ckongs_input_port_1_r, /* Port B read */ | |
| 294 | ckongs_input_port_2_r, /* Port C read */ | |
| 270 | input_port_1_r, /* Port B read */ | |
| 271 | input_port_2_r, /* Port C read */ | |
| 295 | 272 | NULL, /* Port A write */ |
| 296 | 273 | NULL, /* Port B write */ |
| 297 | 274 | NULL /* Port C write */ |
| r3115 | r3116 | |
|---|---|---|
| 30 | 30 | |
| 31 | 31 | READ8_HANDLER( gaplus_customio_3_r ) |
| 32 | 32 | { |
| 33 | ||
| 33 | | |
| 34 | 34 | |
| 35 | mode = gaplus_customio_3[8]; | |
| 36 | if (mode == 2) | |
| 37 | { | |
| 38 | switch (offset) | |
| 39 | { | |
| 40 | case 0: | |
| 41 | return input_port_read(machine, "IN2"); /* cabinet & test mode */ | |
| 42 | break; | |
| 43 | case 2: | |
| 44 | return 0x0f; | |
| 45 | break; | |
| 46 | default: | |
| 47 | return gaplus_customio_3[offset]; | |
| 48 | } | |
| 49 | } | |
| 50 | else | |
| 51 | { | |
| 52 | switch (offset) | |
| 53 | { | |
| 54 | case 0: | |
| 55 | return input_port_read(machine, "IN2"); /* cabinet & test mode */ | |
| 56 | break; | |
| 57 | case 1: | |
| 58 | return 0x0f; | |
| 59 | break; | |
| 60 | case 2: | |
| 61 | return 0x0e; | |
| 62 | break; | |
| 63 | case 3: | |
| 64 | return 0x01; | |
| 65 | break; | |
| 66 | default: | |
| 67 | return gaplus_customio_3[offset]; | |
| 68 | } | |
| 69 | } | |
| 35 | switch (offset) | |
| 36 | { | |
| 37 | case 0: | |
| 38 | return input_port_read(machine, "IN2"); /* cabinet & test mode */ | |
| 39 | break; | |
| 40 | case 1: | |
| 41 | return (mode == 2) ? gaplus_customio_3[offset] : 0x0f; | |
| 42 | break; | |
| 43 | case 2: | |
| 44 | return (mode == 2) ? 0x0f : 0x0e; | |
| 45 | break; | |
| 46 | case 3: | |
| 47 | return (mode == 2) ? gaplus_customio_3[offset] : 0x01; | |
| 48 | break; | |
| 49 | default: | |
| 50 | return gaplus_customio_3[offset]; | |
| 51 | } | |
| 70 | 52 | } |
| r3115 | r3116 | |
|---|---|---|
| 36 | 36 | */ |
| 37 | 37 | |
| 38 | 38 | static UINT8 *decrypt; |
| 39 | static int adpcm_data_offs; | |
| 40 | static int adpcm_data_end; | |
| 41 | static int toggle; | |
| 42 | static UINT8 fm_data; | |
| 39 | 43 | |
| 44 | static int coin_mech_latch[2]; | |
| 45 | static int stfight_coin_mech_query_active = 0; | |
| 46 | static int stfight_coin_mech_query; | |
| 47 | ||
| 48 | ||
| 49 | ||
| 40 | 50 | DRIVER_INIT( empcity ) |
| 41 | 51 | { |
| 42 | 52 | UINT8 *rom = memory_region(machine, "main"); |
| r3115 | r3116 | |
| 82 | 92 | |
| 83 | 93 | MACHINE_RESET( stfight ) |
| 84 | 94 | { |
| 95 | adpcm_data_offs = adpcm_data_end = 0; | |
| 96 | toggle = 0; | |
| 97 | fm_data = 0; | |
| 98 | coin_mech_latch[0] = 0x02; | |
| 99 | coin_mech_latch[1] = 0x01; | |
| 100 | ||
| 101 | stfight_coin_mech_query_active = 0; | |
| 102 | stfight_coin_mech_query = 0; | |
| 103 | ||
| 85 | 104 | // initialise rom bank |
| 86 | 105 | stfight_bank_w( machine, 0, 0 ); |
| 87 | 106 | } |
| r3115 | r3116 | |
| 109 | 128 | { |
| 110 | 129 | // Do a RST10 |
| 111 | 130 | cpunum_set_input_line_and_vector(machine, 0,0,HOLD_LINE,0xd7); |
| 112 | | |
| 131 | timer_set(ATTOTIME_IN_HZ(120), NULL, 0, stfight_interrupt_1); | |
| 113 | 132 | } |
| 114 | 133 | |
| 115 | 134 | /* |
| r3115 | r3116 | |
| 122 | 141 | return( ~input_port_read(machine, offset ? "DSW1" : "DSW0") ); |
| 123 | 142 | } |
| 124 | 143 | |
| 125 | static int stfight_coin_mech_query_active = 0; | |
| 126 | static int stfight_coin_mech_query; | |
| 127 | ||
| 128 | 144 | READ8_HANDLER( stfight_coin_r ) |
| 129 | 145 | { |
| 130 | static int coin_mech_latch[2] = { 0x02, 0x01 }; | |
| 131 | ||
| 132 | 146 | int coin_mech_data; |
| 133 | 147 | int i; |
| 134 | 148 | |
| r3115 | r3116 | |
| 180 | 194 | 0x5400, // girl getting shot |
| 181 | 195 | 0x7200 // (end of samples) |
| 182 | 196 | }; |
| 183 | static int adpcm_data_offs; | |
| 184 | static int adpcm_data_end; | |
| 185 | 197 | |
| 186 | 198 | void stfight_adpcm_int( running_machine *machine, int data ) |
| 187 | 199 | { |
| 188 | static int toggle; | |
| 189 | 200 | UINT8 *SAMPLES = memory_region(machine, "adpcm"); |
| 190 | 201 | int adpcm_data = SAMPLES[adpcm_data_offs & 0x7fff]; |
| 191 | 202 | |
| r3115 | r3116 | |
| 226 | 237 | * Machine hardware for YM2303 fm sound control |
| 227 | 238 | */ |
| 228 | 239 | |
| 229 | static UINT8 fm_data; | |
| 230 | ||
| 231 | 240 | WRITE8_HANDLER( stfight_fm_w ) |
| 232 | 241 | { |
| 233 | 242 | // the sound cpu ignores any fm data without bit 7 set |
| r3115 | r3116 | |
|---|---|---|
| 1120 | 1120 | * |
| 1121 | 1121 | *************************************/ |
| 1122 | 1122 | |
| 1123 | ||
| 1123 | CUSTOM_I | |
| 1124 | 1124 | { |
| 1125 | return | |
| 1125 | return | |
| 1126 | 1126 | } |
| 1127 | 1127 | |
| 1128 | 1128 |
| r3115 | r3116 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | #include "driver.h" |
| 18 | 18 | #include "steppers.h" |
| 19 | #include "deprecat.h" | |
| 20 | /* local prototypes */ | |
| 19 | 21 | |
| 20 | ||
| 22 | static void | |
| 21 | 23 | |
| 22 | ||
| 24 | /* | |
| 23 | 25 | |
| 24 | // local vars ///////////////////////////////////////////////////////////// | |
| 25 | ||
| 26 | static struct | |
| 26 | typedef struct _stepper | |
| 27 | 27 | { |
| 28 | UINT8 pattern, // coil pattern | |
| 29 | old_pattern, // old coil pattern | |
| 30 | type; // reel type | |
| 31 | INT16 step_pos, // step position 0 - max_steps | |
| 32 | max_steps; // maximum step position | |
| 28 | const stepper_interface *intf; | |
| 29 | UINT8 pattern, /* coil pattern */ | |
| 30 | old_pattern, /* old coil pattern */ | |
| 31 | type; /* reel type */ | |
| 32 | INT16 step_pos, /* step position 0 - max_steps */ | |
| 33 | max_steps; /* maximum step position */ | |
| 33 | 34 | |
| 34 | INT16 index_pos, // position of index (in steps) | |
| 35 | index_len, // length of index (in steps) | |
| 36 | index_patt; // pattern needed on coils (0=don't care) | |
| 35 | INT16 index_start, /* start position of index (in half steps) */ | |
| 36 | index_end, /* end position of index (in half steps) */ | |
| 37 | index_patt; /* pattern needed on coils (0=don't care) */ | |
| 37 | 38 | |
| 38 | 39 | UINT8 optic; |
| 40 | } stepper; | |
| 39 | 41 | |
| 40 | } steppers[MAX_STEPPERS]; | |
| 41 | ||
| 42 | ||
| 43 | // step table, use previouspattern::newpattern as index | |
| 42 | static stepper step[MAX_STEPPERS]; | |
| 43 | /* step table, use previouspattern::newpattern as index */ | |
| 44 | 44 | static const int StarpointStepTab[] = |
| 45 | 45 | { |
| 46 | 46 | 0, //0000->0000 0->0 |
| r3115 | r3116 | |
| 316 | 316 | 0 //1111->1111 F->F |
| 317 | 317 | }; |
| 318 | 318 | |
| 319 | /////////////////////////////////////////////////////////////////////////// | |
| 320 | ||
| 321 | 319 | static const int BarcrestStepTab[] = |
| 322 | 320 | { |
| 323 | 321 | 0, //0000->0000 0->0 |
| r3115 | r3116 | |
| 341 | 339 | 0, //0001->0001 1->1 |
| 342 | 340 | 0, //0001->0010 1->2 |
| 343 | 341 | 1, //0001->0011 1->3 |
| 344 | 0,//0001->0100 1->4 | |
| 345 | 0,//0001->0101 1->5 | |
| 342 | 0, //0001->0100 1->4 | |
| 343 | 0, //0001->0101 1->5 | |
| 346 | 344 | 0, //0001->0110 1->6 |
| 347 | 345 | 0, //0001->0111 1->7 |
| 348 | 346 | 0, //0001->1000 1->8 |
| r3115 | r3116 | |
| 593 | 591 | 0 //1111->1111 F->F |
| 594 | 592 | }; |
| 595 | 593 | |
| 594 | /* useful interfaces */ | |
| 595 | ||
| 596 | const stepper_interface starpoint_interface_48step = | |
| 597 | { | |
| 598 | STARPOINT_48STEP_REEL, | |
| 599 | 16, | |
| 600 | 24, | |
| 601 | 0x09 | |
| 602 | }; | |
| 603 | ||
| 596 | 604 | /////////////////////////////////////////////////////////////////////////// |
| 605 | void stepper_config(int which, const stepper_interface *intf) | |
| 606 | { | |
| 597 | 607 | |
| 598 | void Stepper_init(int id, int type) | |
| 599 | { | |
| 600 | if ( id < MAX_STEPPERS ) | |
| 608 | assert_always(mame_get_phase(Machine) == MAME_PHASE_INIT, "Can only call stepper_config at init time!"); | |
| 609 | assert_always((which >= 0) && (which < MAX_STEPPERS), "stepper_config called on an invalid stepper motor!"); | |
| 610 | assert_always(intf, "stepper_config called with an invalid interface!"); | |
| 611 | ||
| 612 | step[which].intf = intf; | |
| 613 | ||
| 614 | step[which].type = intf->type; | |
| 615 | step[which].index_start = intf->index_start;/* location of first index value in half steps */ | |
| 616 | step[which].index_end = intf->index_end; /* location of last index value in half steps */ | |
| 617 | step[which].index_patt = intf->index_patt; /* hex value of coil pattern (0 if not needed)*/ | |
| 618 | step[which].pattern = 0; | |
| 619 | step[which].old_pattern = 0; | |
| 620 | step[which].step_pos = 0; | |
| 621 | ||
| 622 | switch ( step[which].type ) | |
| 601 | 623 | { |
| 602 | steppers[id].index_pos = 16; | |
| 603 | steppers[id].index_len = 8; | |
| 604 | steppers[id].index_patt = 0x09; | |
| 605 | steppers[id].pattern = 0; | |
| 606 | steppers[id].old_pattern = 0; | |
| 607 | steppers[id].step_pos = 0; | |
| 608 | steppers[id].max_steps = (48*2); | |
| 609 | steppers[id].type = type; | |
| 624 | case STARPOINT_48STEP_REEL: /* STARPOINT RMxxx */ | |
| 625 | case BARCREST_48STEP_REEL : /* Barcrest Reel unit */ | |
| 626 | step[which].max_steps = (48*2); | |
| 627 | break; | |
| 628 | case STARPOINT_144STEPS_DICE :/* STARPOINT 1DCU DICE mechanism */ | |
| 629 | step[which].max_steps = (144*2); | |
| 630 | break; | |
| 631 | } | |
| 610 | 632 | |
| 611 | switch ( steppers[id].type ) | |
| 612 | { | |
| 613 | case STARPOINT_48STEP_REEL : // STARPOINT RMxxx | |
| 614 | break; | |
| 615 | case BARCREST_48STEP_REEL : // Barcrest reel units have different coil windings and optic tabs | |
| 616 | Stepper_set_index(id,0,16,0x09); | |
| 617 | break; | |
| 618 | case STARPOINT_144STEPS_DICE :// STARPOINT 1DCU DICE mechanism | |
| 619 | steppers[id].max_steps = (144*2); | |
| 620 | break; | |
| 621 | } | |
| 622 | state_save_register_item("Stepper", id, steppers[id].index_pos); | |
| 623 | state_save_register_item("Stepper", id, steppers[id].index_len); | |
| 624 | state_save_register_item("Stepper", id, steppers[id].index_patt); | |
| 625 | state_save_register_item("Stepper", id, steppers[id].pattern); | |
| 626 | state_save_register_item("Stepper", id, steppers[id].old_pattern); | |
| 627 | state_save_register_item("Stepper", id, steppers[id].step_pos); | |
| 628 | state_save_register_item("Stepper", id, steppers[id].max_steps); | |
| 629 | state_save_register_item("Stepper", id, steppers[id].type); | |
| 630 | } | |
| 633 | state_save_register_item("stepper", which, step[which].index_start); | |
| 634 | state_save_register_item("stepper", which, step[which].index_end); | |
| 635 | state_save_register_item("stepper", which, step[which].index_patt); | |
| 636 | state_save_register_item("stepper", which, step[which].pattern); | |
| 637 | state_save_register_item("stepper", which, step[which].old_pattern); | |
| 638 | state_save_register_item("stepper", which, step[which].step_pos); | |
| 639 | state_save_register_item("stepper", which, step[which].max_steps); | |
| 640 | state_save_register_item("stepper", which, step[which].type); | |
| 631 | 641 | } |
| 632 | 642 | |
| 633 | 643 | /////////////////////////////////////////////////////////////////////////// |
| 634 | ||
| 644 | ||
| 635 | 645 | { |
| 636 | steppers[id].index_pos = position;//location of first index value in half steps | |
| 637 | steppers[id].index_len = length; //number of half steps the index lasts | |
| 638 | steppers[id].index_patt = pattern; //hex value of coil pattern | |
| 646 | return step[which].step_pos; | |
| 639 | 647 | } |
| 640 | 648 | |
| 641 | int Stepper_get_position(int id) | |
| 642 | { | |
| 643 | return steppers[id].step_pos; | |
| 644 | } | |
| 645 | ||
| 646 | 649 | /////////////////////////////////////////////////////////////////////////// |
| 647 | 650 | |
| 648 | int | |
| 651 | int stepper_get_max(int which) | |
| 649 | 652 | { |
| 650 | return step | |
| 653 | return step | |
| 651 | 654 | } |
| 652 | 655 | |
| 653 | 656 | /////////////////////////////////////////////////////////////////////////// |
| 654 | 657 | |
| 655 | static void update_optic(int i | |
| 658 | static void update_optic(int which) | |
| 656 | 659 | { |
| 657 | int pos = steppers[id].step_pos, | |
| 658 | index = steppers[id].index_pos; | |
| 660 | int pos = step[which].step_pos, | |
| 661 | start = step[which].index_start, | |
| 662 | end = step[which].index_end; | |
| 659 | 663 | |
| 660 | if ( ( pos >= index ) && ( pos < index + steppers[id].index_len ) && | |
| 661 | ( ( steppers[id].pattern == steppers[id].index_patt || steppers[id].index_patt==0) || | |
| 662 | ( steppers[id].pattern == 0 && | |
| 663 | (steppers[id].old_pattern == steppers[id].index_patt || steppers[id].index_patt==0) | |
| 664 | if ( (( pos >= start ) && ( pos <= end )) && | |
| 665 | ( ( step[which].pattern == step[which].index_patt || step[which].index_patt==0) || | |
| 666 | ( step[which].pattern == 0 && | |
| 667 | (step[which].old_pattern == step[which].index_patt || step[which].index_patt==0) | |
| 664 | 668 | ) ) ) |
| 665 | 669 | { |
| 666 | step | |
| 670 | step | |
| 667 | 671 | } |
| 668 | else step | |
| 672 | else step | |
| 669 | 673 | } |
| 670 | 674 | |
| 671 | 675 | /////////////////////////////////////////////////////////////////////////// |
| 672 | 676 | |
| 673 | void | |
| 677 | void stepper_reset_position(int which) | |
| 674 | 678 | { |
| 675 | steppers[id].step_pos = 0; | |
| 676 | steppers[id].pattern = 0x00; | |
| 677 | steppers[id].old_pattern = 0x00; | |
| 679 | step[which].step_pos = 0; | |
| 680 | step[which].pattern = 0x00; | |
| 681 | step[which].old_pattern = 0x00; | |
| 678 | 682 | |
| 679 | update_optic(i | |
| 683 | update_optic(which); | |
| 680 | 684 | } |
| 681 | 685 | |
| 682 | 686 | /////////////////////////////////////////////////////////////////////////// |
| 683 | 687 | |
| 684 | int | |
| 688 | int stepper_optic_state(int which) | |
| 685 | 689 | { |
| 686 | 690 | int result = 0; |
| 687 | 691 | |
| 688 | if ( i | |
| 692 | if ( which < MAX_STEPPERS ) | |
| 689 | 693 | { |
| 690 | result = step | |
| 694 | result = step | |
| 691 | 695 | } |
| 692 | 696 | |
| 693 | 697 | return result; |
| r3115 | r3116 | |
| 695 | 699 | |
| 696 | 700 | /////////////////////////////////////////////////////////////////////////// |
| 697 | 701 | |
| 698 | int | |
| 702 | int stepper_update(int which, UINT8 pattern) | |
| 699 | 703 | { |
| 700 | 704 | int changed = 0; |
| 701 | 705 | |
| 702 | 706 | pattern &= 0x0F; |
| 703 | 707 | |
| 704 | if ( steppers[id].pattern != pattern ) | |
| 705 | { // pattern changed | |
| 708 | if ( step[which].pattern != pattern ) | |
| 709 | { /* pattern changed */ | |
| 706 | 710 | int index, |
| 707 | 711 | steps, |
| 708 | 712 | pos; |
| 709 | 713 | |
| 710 | if ( step | |
| 714 | if ( step | |
| 711 | 715 | { |
| 712 | step | |
| 716 | step | |
| 713 | 717 | } |
| 714 | step | |
| 718 | step | |
| 715 | 719 | |
| 716 | index = (steppers[id].old_pattern << 4) | pattern; | |
| 717 | switch ( steppers[id].type ) | |
| 720 | index = (step[which].old_pattern << 4) | pattern; | |
| 721 | switch ( step[which].type ) | |
| 718 | 722 | { |
| 719 | 723 | default: |
| 720 | case STARPOINT_48STEP_REEL : // STARPOINT RMxxx | |
| 721 | case STARPOINT_144STEPS_DICE : // STARPOINT 1DCU DICE mechanism | |
| 724 | case STARPOINT_48STEP_REEL : /* STARPOINT RMxxx */ | |
| 725 | case STARPOINT_144STEPS_DICE : /* STARPOINT 1DCU DICE mechanism */ | |
| 722 | 726 | steps = StarpointStepTab[ index ]; |
| 723 | 727 | break; |
| 724 | case BARCREST_48STEP_REEL : / | |
| 728 | case BARCREST_48STEP_REEL : /* Barcrest reel units have different windings */ | |
| 725 | 729 | steps = BarcrestStepTab[ index ]; |
| 726 | 730 | break; |
| 727 | 731 | } |
| 728 | // if ( id ==0 )logerror("Id %d Index %d Steps %d Pattern Old %02X New %02X\n",id,index,steps,steppers[id].old_pattern,steppers[id].pattern); | |
| 732 | #if 0 /* Assists with new index generation */ | |
| 733 | if ( which ==0 )logerror("which %d Index %d Steps %d Pattern Old %02X New %02X\n",which,index,steps,step[which].old_pattern,step[which].pattern); | |
| 734 | #endif | |
| 729 | 735 | |
| 730 | 736 | if ( steps ) |
| 731 | 737 | { |
| 732 | pos = step | |
| 738 | pos = step | |
| 733 | 739 | |
| 734 | if ( pos > steppers[id].max_steps ) pos -= steppers[id].max_steps; | |
| 735 | else if ( pos < 0 ) pos += steppers[id].max_steps; | |
| 740 | if ( pos > step[which].max_steps ) pos -= step[which].max_steps; | |
| 741 | else if ( pos < 0 ) pos += step[which].max_steps; | |
| 736 | 742 | |
| 737 | steppers[id].step_pos = pos; | |
| 738 | update_optic(id); | |
| 743 | step[which].step_pos = pos; | |
| 744 | update_optic(which); | |
| 739 | 745 | |
| 740 | 746 | changed++; |
| 741 | 747 | } |
| r3115 | r3116 | |
|---|---|---|
| 5 | 5 | // Emulates : 48 step motors driven with full step or half step // |
| 6 | 6 | // also emulates the index optic // |
| 7 | 7 | // // |
| 8 | // 13-08-2008: J. Wallace - Added a rigid interface structure, // | |
| 9 | // and removed unnecessary inline functions // | |
| 10 | // Rewritten to make it more flexible // | |
| 8 | 11 | // 26-01-2007: J. Wallace - Rewritten to make it more flexible // |
| 12 | // 26-01-2007: J. Wallace - Rewritten to make it more flexible // | |
| 13 | // 26-01-2007: J. Wallace - Rewritten to make it more flexible // | |
| 9 | 14 | // and to allow indices to be set in drivers // |
| 10 | 15 | // 29-12-2006: J. Wallace - Added state save support // |
| 11 | 16 | // 05-03-2004: Re-Animator // |
| r3115 | r3116 | |
| 18 | 23 | #ifndef INC_STEPPERS |
| 19 | 24 | #define INC_STEPPERS |
| 20 | 25 | |
| 21 | #define MAX_STEPPERS 8 / | |
| 26 | #define MAX_STEPPERS 8 /* maximum number of steppers */ | |
| 22 | 27 | |
| 23 | #define STARPOINT_48STEP_REEL 0 // STARPOINT RMXXX reel unit | |
| 24 | #define BARCREST_48STEP_REEL 1 // Barcrest bespoke reel unit | |
| 25 | #define STARPOINT_144STEPS_DICE 2 // STARPOINT 1DCU DICE mechanism - tech sheet available on request | |
| 28 | #define STARPOINT_48STEP_REEL 0 /* STARPOINT RMXXX reel unit */ | |
| 29 | #define BARCREST_48STEP_REEL 1 /* Barcrest bespoke reel unit */ | |
| 30 | #define STARPOINT_144STEPS_DICE 2 /* STARPOINT 1DCU DICE mechanism */ | |
| 26 | 31 | |
| 27 | ||
| 32 | /*------------- Stepper | |
| 28 | 33 | |
| 29 | void Stepper_reset_position(int id); // reset a motor to position 0 | |
| 34 | typedef struct _stepper_interface stepper_interface; | |
| 35 | struct _stepper_interface | |
| 36 | { | |
| 37 | UINT8 type; /* Reel unit type */ | |
| 38 | INT16 index_start;/* start position of index (in half steps) */ | |
| 39 | INT16 index_end; /* end position of index (in half steps) */ | |
| 40 | INT16 index_patt; /* pattern needed on coils (0=don't care) */ | |
| 41 | }; | |
| 30 | 42 | |
| 31 | ||
| 43 | extern const s | |
| 32 | 44 | |
| 33 | void | |
| 45 | void stepper_co | |
| 34 | 46 | |
| 35 | i | |
| 47 | void | |
| 36 | 48 | |
| 37 | int | |
| 49 | int stepper_optic_ | |
| 38 | 50 | |
| 39 | int Stepper_get_max(int id); // get maximum position in half steps | |
| 51 | int stepper_update(int id, UINT8 pattern); /* update a motor */ | |
| 52 | ||
| 53 | int stepper_get_position(int id); /* get current position in half steps */ | |
| 54 | ||
| 55 | int stepper_get_max(int id); /* get maximum position in half steps */ | |
| 40 | 56 | #endif |
| r3115 | r3116 | |
|---|---|---|
| 24 | 24 | static UINT8 protection_value; |
| 25 | 25 | static UINT32 address; |
| 26 | 26 | |
| 27 | void taitosj_register_main_savestate(void); | |
| 28 | ||
| 29 | 27 | MACHINE_START( taitosj ) |
| 30 | 28 | { |
| 31 | 29 | memory_configure_bank(1, 0, 1, memory_region(machine, "main") + 0x6000, 0); |
| 32 | 30 | memory_configure_bank(1, 1, 1, memory_region(machine, "main") + 0x10000, 0); |
| 33 | 31 | |
| 34 | taitosj_register_main_savestate(); | |
| 35 | ||
| 36 | 32 | state_save_register_global(fromz80); |
| 37 | 33 | state_save_register_global(toz80); |
| 38 | 34 | state_save_register_global(zaccept); |
| r3115 | r3116 | |
| 50 | 46 | { |
| 51 | 47 | /* set the default ROM bank (many games only have one bank and */ |
| 52 | 48 | /* never write to the bank selector register) */ |
| 53 | ||
| 49 | | |
| 54 | 50 | |
| 55 | 51 | |
| 56 | 52 | zaccept = 1; |
| r3115 | r3116 | |
|---|---|---|
| 405 | 405 | * |
| 406 | 406 | *************************************/ |
| 407 | 407 | |
| 408 | static void update_irqs( | |
| 408 | static void update_irqs(running_machine *machine) | |
| 409 | 409 | { |
| 410 | 410 | int ints = CUSTOM_REG(REG_INTENA) & CUSTOM_REG(REG_INTREQ); |
| 411 | int irq = -1; | |
| 412 | 411 | |
| 413 | 412 | /* Master interrupt switch */ |
| 414 | 413 | if (CUSTOM_REG(REG_INTENA) & 0x4000) |
| 415 | 414 | { |
| 416 | 415 | /* Serial transmit buffer empty, disk block finished, software interrupts */ |
| 417 | if (ints & 0x0007) | |
| 418 | irq = 1; | |
| 416 | cpunum_set_input_line(machine, 0, 1, ints & 0x0007 ? ASSERT_LINE : CLEAR_LINE); | |
| 419 | 417 | |
| 420 | 418 | /* I/O ports and timer interrupts */ |
| 421 | if (ints & 0x0008) | |
| 422 | irq = 2; | |
| 419 | cpunum_set_input_line(machine, 0, 2, ints & 0x0008 ? ASSERT_LINE : CLEAR_LINE); | |
| 423 | 420 | |
| 424 | 421 | /* Copper, VBLANK, blitter interrupts */ |
| 425 | if (ints & 0x0070) | |
| 426 | irq = 3; | |
| 422 | cpunum_set_input_line(machine, 0, 3, ints & 0x0070 ? ASSERT_LINE : CLEAR_LINE); | |
| 427 | 423 | |
| 428 | 424 | /* Audio interrupts */ |
| 429 | if (ints & 0x0780) | |
| 430 | irq = 4; | |
| 425 | cpunum_set_input_line(machine, 0, 4, ints & 0x0780 ? ASSERT_LINE : CLEAR_LINE); | |
| 431 | 426 | |
| 432 | 427 | /* Serial receive buffer full, disk sync match */ |
| 433 | if (ints & 0x1800) | |
| 434 | irq = 5; | |
| 428 | cpunum_set_input_line(machine, 0, 5, ints & 0x1800 ? ASSERT_LINE : CLEAR_LINE); | |
| 435 | 429 | |
| 436 | 430 | /* External interrupts */ |
| 437 | if (ints & 0x2000) | |
| 438 | irq = 6; | |
| 431 | cpunum_set_input_line(machine, 0, 6, ints & 0x2000 ? ASSERT_LINE : CLEAR_LINE); | |
| 439 | 432 | } |
| 440 | ||
| 441 | /* set the highest IRQ line */ | |
| 442 | if (irq >= 0) | |
| 443 | cpunum_set_input_line(Machine, 0, irq, ASSERT_LINE); | |
| 444 | 433 | else |
| 445 | cpunum_set_input_line(Machine, 0, 7, CLEAR_LINE); | |
| 434 | { | |
| 435 | cpunum_set_input_line(machine, 0, 1, CLEAR_LINE); | |
| 436 | cpunum_set_input_line(machine, 0, 2, CLEAR_LINE); | |
| 437 | cpunum_set_input_line(machine, 0, 3, CLEAR_LINE); | |
| 438 | cpunum_set_input_line(machine, 0, 4, CLEAR_LINE); | |
| 439 | cpunum_set_input_line(machine, 0, 5, CLEAR_LINE); | |
| 440 | cpunum_set_input_line(machine, 0, 6, CLEAR_LINE); | |
| 441 | } | |
| 446 | 442 | } |
| 447 | 443 | |
| 448 | 444 | |
| 449 | 445 | static TIMER_CALLBACK( amiga_irq_proc ) |
| 450 | 446 | { |
| 451 | update_irqs(); | |
| 447 | update_irqs(machine); | |
| 452 | 448 | timer_reset( amiga_irq_timer, attotime_never); |
| 453 | 449 | } |
| 454 | 450 | |
| r3115 | r3116 | |
| 1428 | 1424 | if ( temp & 0x8000 ) /* if we're enabling irq's, delay a bit */ |
| 1429 | 1425 | timer_adjust_oneshot( amiga_irq_timer, ATTOTIME_IN_CYCLES( AMIGA_IRQ_DELAY_CYCLES, 0 ), 0); |
| 1430 | 1426 | else /* if we're disabling irq's, process right away */ |
| 1431 | update_irqs(); | |
| 1427 | update_irqs(machine); | |
| 1432 | 1428 | break; |
| 1433 | 1429 | |
| 1434 | 1430 | case REG_INTREQ: |
| r3115 | r3116 | |
| 1445 | 1441 | if ( temp & 0x8000 ) /* if we're generating irq's, delay a bit */ |
| 1446 | 1442 | timer_adjust_oneshot( amiga_irq_timer, ATTOTIME_IN_CYCLES( AMIGA_IRQ_DELAY_CYCLES, 0 ), 0); |
| 1447 | 1443 | else /* if we're clearing irq's, process right away */ |
| 1448 | update_irqs(); | |
| 1444 | update_irqs(machine); | |
| 1449 | 1445 | break; |
| 1450 | 1446 | |
| 1451 | 1447 | case REG_ADKCON: |
| r3115 | r3116 | |
|---|---|---|
| 740 | 740 | return ((deco16_prot_ram[0x78e>>1]>>4)&0xff00) | (deco16_prot_ram[0x78e>>1]&0x000f) | ((deco16_prot_ram[0x78e>>1]<<8)&0xf000); |
| 741 | 741 | |
| 742 | 742 | case 0x00c >> 1: /* Player 1 & Player 2 joysticks & fire buttons */ |
| 743 | return | |
| 743 | return | |
| 744 | 744 | case 0x778 >> 1: /* Credits */ |
| 745 | return input_port_read(machine, " | |
| 745 | return input_port_read(machine, "SYSTEM"); | |
| 746 | 746 | case 0x382 >> 1: /* DIPS */ |
| 747 | return | |
| 747 | return | |
| 748 | 748 | } |
| 749 | 749 | |
| 750 | 750 | if (activecpu_get_pc()!=0xc0ea) |
| r3115 | r3116 | |
| 1754 | 1754 | const UINT16* prot_ram=deco16_prot_ram; |
| 1755 | 1755 | switch (offset * 2) |
| 1756 | 1756 | { |
| 1757 | case 0x5b2: return input_port_read(machine, " | |
| 1757 | case 0x5b2: return input_port_read(machine, "SYSTEM"); | |
| 1758 | 1758 | case 0x44c: return input_port_read(machine, "DSW"); |
| 1759 | case 0x042: return input_port_read(machine, "IN | |
| 1759 | case 0x042: return input_port_read(machine, "INPUTS"); | |
| 1760 | 1760 | |
| 1761 | 1761 | case 0x510: return DECO_PORT(0); |
| 1762 | 1762 | case 0x51a: return DECO_PORT(2); |
| r3115 | r3116 | |
|---|---|---|
| 473 | 473 | |
| 474 | 474 | static void update_mcr68_interrupts(running_machine *machine) |
| 475 | 475 | { |
| 476 | int newstate = 0; | |
| 477 | ||
| 478 | /* all interrupts go through an LS148, which gives priority to the highest */ | |
| 479 | if (v493_irq_state) | |
| 480 | newstate = v493_irq_vector; | |
| 481 | if (m6840_irq_state) | |
| 482 | newstate = m6840_irq_vector; | |
| 483 | ||
| 484 | /* set the new state of the IRQ lines */ | |
| 485 | if (newstate) | |
| 486 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 487 | else | |
| 488 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 476 | cpunum_set_input_line(machine, 0, v493_irq_vector, v493_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 477 | cpunum_set_input_line(machine, 0, m6840_irq_vector, m6840_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 489 | 478 | } |
| 490 | 479 | |
| 491 | 480 |
| r3115 | r3116 | |
|---|---|---|
| 246 | 246 | memory_set_bank(1, _4in1_bank); |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | ||
| 249 | CUSTOM_I | |
| 250 | 250 | { |
| 251 | 251 | static const char *portnames[] = { "FAKE1", "FAKE2", "FAKE3", "FAKE4" }; |
| 252 | int bit_mask = (FPTR)param; | |
| 252 | 253 | |
| 253 | return (input_port_read( | |
| 254 | return (input_port_read(f | |
| 254 | 255 | } |
| 255 | 256 | |
| 256 | READ8_HANDLER( _4in1_input_port_2_r ) | |
| 257 | { | |
| 258 | static const char *portnames[] = { "FAKE1", "FAKE2", "FAKE3", "FAKE4" }; | |
| 259 | ||
| 260 | return (input_port_read(machine, "DSW0") & 0x04) | (input_port_read(machine, portnames[_4in1_bank]) & ~0xc4); | |
| 261 | } | |
| 262 | ||
| 263 | ||
| 264 | 257 | DRIVER_INIT( pisces ) |
| 265 | 258 | { |
| 266 | 259 | /* the coin lockout was replaced */ |
| r3115 | r3116 | |
|---|---|---|
| 219 | 219 | |
| 220 | 220 | static void hd68k_update_interrupts(running_machine *machine) |
| 221 | 221 | { |
| 222 | int newstate = 0; | |
| 223 | ||
| 224 | if (msp_irq_state) | |
| 225 | newstate = 1; | |
| 226 | if (adsp_irq_state) | |
| 227 | newstate = 2; | |
| 228 | if (gsp_irq_state) | |
| 229 | newstate = 3; | |
| 230 | if (atarigen_sound_int_state) /* /LINKIRQ on STUN Runner */ | |
| 231 | newstate = 4; | |
| 232 | if (irq_state) | |
| 233 | newstate = 5; | |
| 234 | if (duart_irq_state) | |
| 235 | newstate = 6; | |
| 236 | ||
| 237 | if (newstate) | |
| 238 | cpunum_set_input_line(machine, hdcpu_main, newstate, ASSERT_LINE); | |
| 239 | else | |
| 240 | cpunum_set_input_line(machine, hdcpu_main, 7, CLEAR_LINE); | |
| 222 | cpunum_set_input_line(machine, hdcpu_main, 1, msp_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 223 | cpunum_set_input_line(machine, hdcpu_main, 2, adsp_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 224 | cpunum_set_input_line(machine, hdcpu_main, 3, gsp_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 225 | cpunum_set_input_line(machine, hdcpu_main, 4, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); /* /LINKIRQ on STUN Runner */ | |
| 226 | cpunum_set_input_line(machine, hdcpu_main, 5, irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 227 | cpunum_set_input_line(machine, hdcpu_main, 6, duart_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 241 | 228 | } |
| 242 | 229 | |
| 243 | 230 |
| r3115 | r3116 | |
|---|---|---|
| 19 | 19 | switch (offset<<1) |
| 20 | 20 | { |
| 21 | 21 | case 0: /* Player 1 & 2 joystick & buttons */ |
| 22 | return | |
| 22 | return | |
| 23 | 23 | |
| 24 | 24 | case 2: /* Credits, start buttons */ |
| 25 | return input_port_read(machine, " | |
| 25 | return input_port_read(machine, "SYSTEM"); | |
| 26 | 26 | |
| 27 | 27 | case 4: /* Byte 4: Dipswitch bank 2, Byte 5: Dipswitch Bank 1 */ |
| 28 | return | |
| 28 | return | |
| 29 | 29 | |
| 30 | 30 | case 8: /* Intel 8751 mc, Bad Dudes & Heavy Barrel only */ |
| 31 | 31 | //logerror("CPU #0 PC %06x: warning - read unmapped memory address %06x\n", activecpu_get_pc(), 0x30c000+offset); |
| r3115 | r3116 | |
| 62 | 62 | switch (offset<<1) |
| 63 | 63 | { |
| 64 | 64 | case 0: /* Player 1 Joystick + start, Player 2 Joystick + start */ |
| 65 | return | |
| 65 | return | |
| 66 | 66 | |
| 67 | 67 | case 2: /* Dipswitches */ |
| 68 | return | |
| 68 | return | |
| 69 | 69 | |
| 70 | 70 | case 4: /* Player 1 rotary */ |
| 71 | 71 | return ~(1 << (input_port_read(machine, "AN0") * 12 / 256)); |
| r3115 | r3116 | |
| 74 | 74 | return ~(1 << (input_port_read(machine, "AN1") * 12 / 256)); |
| 75 | 75 | |
| 76 | 76 | case 8: /* Credits, start buttons */ |
| 77 | return input_port_read(machine, " | |
| 77 | return input_port_read(machine, "SYSTEM"); | |
| 78 | 78 | |
| 79 | 79 | case 12: |
| 80 | 80 | return 0; /* ?? watchdog ?? */ |
| r3115 | r3116 | |
| 91 | 91 | switch (offset<<1) |
| 92 | 92 | { |
| 93 | 93 | case 0: /* Dip Switches */ |
| 94 | return | |
| 94 | return | |
| 95 | 95 | |
| 96 | 96 | case 2: /* Player 1 & Player 2 joysticks & fire buttons */ |
| 97 | return | |
| 97 | return | |
| 98 | 98 | |
| 99 | 99 | case 4: /* Credits */ |
| 100 | return input_port_read(machine, " | |
| 100 | return input_port_read(machine, "SYSTEM"); | |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | logerror("Unknown control read at 30c000 %d\n", offset); |
| r3115 | r3116 | |
|---|---|---|
| 377 | 377 | nb1413m3_inputport = data; |
| 378 | 378 | } |
| 379 | 379 | |
| 380 | CUSTOM_INPUT( nb1413m3_busyflag_r ) | |
| 381 | { | |
| 382 | return nb1413m3_busyflag & 0x01; | |
| 383 | } | |
| 384 | ||
| 385 | ||
| 386 | /* 2008-08 FP: | |
| 387 | * In ALL games (but pastelg, hyhoo & hyhoo2) nb1413m3_outcoin_flag is read at inputport0. | |
| 388 | * However, a few games (lovehous, maiko, mmaiko, hanaoji and the ones using inputport3_r below) | |
| 389 | * read nb1413m3_outcoin_flag also at inputport3! Is this the correct behaviour for these games | |
| 390 | * or should they only check the flag at inputport3? */ | |
| 391 | CUSTOM_INPUT( nb1413m3_outcoin_flag_r ) | |
| 392 | { | |
| 393 | return nb1413m3_outcoin_flag & 0x01; | |
| 394 | } | |
| 395 | ||
| 380 | 396 | READ8_HANDLER( nb1413m3_inputport0_r ) |
| 381 | 397 | { |
| 382 | switch (nb1413m3_type) | |
| 383 | { | |
| 384 | case NB1413M3_HYHOO: | |
| 385 | case NB1413M3_HYHOO2: | |
| 386 | case NB1413M3_PASTELG: | |
| 387 | return ((input_port_read(machine, "SYSTEM") & 0xfe) | (nb1413m3_busyflag & 0x01)); | |
| 388 | default: | |
| 389 | return ((input_port_read(machine, "SYSTEM") & 0xfc) | ((nb1413m3_outcoin_flag & 0x01) << 1) | (nb1413m3_busyflag & 0x01)); | |
| 390 | } | |
| 398 | return ((input_port_read(machine, "SYSTEM") & 0xfc) | ((nb1413m3_outcoin_flag & 0x01) << 1)); | |
| 391 | 399 | } |
| 392 | 400 | |
| 393 | 401 | READ8_HANDLER( nb1413m3_inputport1_r ) |
| r3115 | r3116 | |
| 509 | 517 | case NB1413M3_MMSIKAKU: |
| 510 | 518 | return ((nb1413m3_outcoin_flag & 0x01) << 1); |
| 511 | 519 | break; |
| 512 | case NB1413M3_LOVEHOUS: | |
| 513 | case NB1413M3_MAIKO: | |
| 514 | case NB1413M3_MMAIKO: | |
| 515 | case NB1413M3_HANAOJI: | |
| 516 | return ((input_port_read(machine, "PORT0-2") & 0xfd) | ((nb1413m3_outcoin_flag & 0x01) << 1)); | |
| 517 | break; | |
| 518 | 520 | default: |
| 519 | 521 | return 0xff; |
| 520 | 522 | break; |
| r3115 | r3116 | |
| 685 | 687 | |
| 686 | 688 | /* Nichibutsu Mahjong games share a common control panel */ |
| 687 | 689 | INPUT_PORTS_START( nbmjcontrols ) |
| 688 | PORT_START("KEY0") | |
| 690 | PORT_START("KEY0") | |
| 689 | 691 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 690 | 692 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) |
| 691 | 693 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_M ) |
| r3115 | r3116 | |
| 695 | 697 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 696 | 698 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 697 | 699 | |
| 698 | PORT_START("KEY1") | |
| 700 | PORT_START("KEY1") | |
| 699 | 701 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_BET ) |
| 700 | 702 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) |
| 701 | 703 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_N ) |
| r3115 | r3116 | |
| 705 | 707 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 706 | 708 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 707 | 709 | |
| 708 | PORT_START("KEY2") | |
| 710 | PORT_START("KEY2") | |
| 709 | 711 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 710 | 712 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) |
| 711 | 713 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) |
| r3115 | r3116 | |
| 715 | 717 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 716 | 718 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 717 | 719 | |
| 718 | PORT_START("KEY3") | |
| 720 | PORT_START("KEY3") | |
| 719 | 721 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 720 | 722 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 721 | 723 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) |
| r3115 | r3116 | |
| 725 | 727 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 726 | 728 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 727 | 729 | |
| 728 | PORT_START("KEY4") | |
| 730 | PORT_START("KEY4") | |
| 729 | 731 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL ) |
| 730 | 732 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_BIG ) |
| 731 | 733 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) |
| r3115 | r3116 | |
| 735 | 737 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 736 | 738 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 737 | 739 | |
| 738 | PORT_START("KEY5") | |
| 740 | PORT_START("KEY5") | |
| 739 | 741 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 ) |
| 740 | 742 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) PORT_PLAYER(2) |
| 741 | 743 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_M ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 745 | 747 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 746 | 748 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 747 | 749 | |
| 748 | PORT_START("KEY6") | |
| 750 | PORT_START("KEY6") | |
| 749 | 751 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_BET ) PORT_PLAYER(2) |
| 750 | 752 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) PORT_PLAYER(2) |
| 751 | 753 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_N ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 755 | 757 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 756 | 758 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 757 | 759 | |
| 758 | PORT_START("KEY7") | |
| 760 | PORT_START("KEY7") | |
| 759 | 761 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 760 | 762 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) PORT_PLAYER(2) |
| 761 | 763 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 765 | 767 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 766 | 768 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 767 | 769 | |
| 768 | PORT_START("KEY8") | |
| 770 | PORT_START("KEY8") | |
| 769 | 771 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 770 | 772 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 771 | 773 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 775 | 777 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 776 | 778 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 777 | 779 | |
| 778 | PORT_START("KEY9") | |
| 780 | PORT_START("KEY9") | |
| 779 | 781 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL ) PORT_PLAYER(2) |
| 780 | 782 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_BIG ) PORT_PLAYER(2) |
| 781 | 783 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) PORT_PLAYER(2) |
| r3115 | r3116 | |
|---|---|---|
| 51 | 51 | // |
| 52 | 52 | static const char BD1ASCII[] = |
| 53 | 53 | //0123456789ABCDEF0123456789ABC DEF01 23456789ABCDEF0123456789ABCDEF |
| 54 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+.-./0123456789&%<=>?"\ | |
| 55 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+.-./0123456789&%<=>?"\ | |
| 54 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+.-./0123456789&%<=>?" | |
| 55 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+.-./0123456789&%<=>?" | |
| 56 | 56 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+.-./0123456789&%<=>?"; |
| 57 | 57 | |
| 58 | 58 | /* |
| r3115 | r3116 | |
|---|---|---|
| 8 | 8 | #include "nitedrvr.h" |
| 9 | 9 | #include "sound/discrete.h" |
| 10 | 10 | |
| 11 | static UINT8 nitedrvr_gear | |
| 11 | static UINT8 nitedrvr_gear | |
| 12 | 12 | static UINT8 nitedrvr_track; |
| 13 | 13 | static INT32 nitedrvr_steering_buf; |
| 14 | 14 | static INT32 nitedrvr_steering_val; |
| 15 | 15 | static UINT8 nitedrvr_crash_en; |
| 16 | static UINT8 nitedrvr_crash_data | |
| 16 | static UINT8 nitedrvr_crash_data | |
| 17 | 17 | static UINT8 nitedrvr_crash_data_en; // IC D8 |
| 18 | 18 | static UINT8 ac_line; |
| 19 | 19 | static INT32 last_steering_val; |
| r3115 | r3116 | |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | |
| 250 | ||
| 250 | static TIMER_CALLBACK( nitedrvr_crash_toggle | |
| 251 | 251 | { |
| 252 | 252 | if (nitedrvr_crash_en && nitedrvr_crash_data_en) |
| 253 | 253 | { |
| r3115 | r3116 | |
| 269 | 269 | } |
| 270 | 270 | } |
| 271 | 271 | |
| 272 | void nitedrvr_register_machine_vars(void) | |
| 273 | {/* save all the statics in this file. */ | |
| 272 | MACHINE_START( nitedrvr ) | |
| 273 | { | |
| 274 | 274 | state_save_register_global(nitedrvr_gear); |
| 275 | 275 | state_save_register_global(nitedrvr_track); |
| 276 | 276 | state_save_register_global(nitedrvr_steering_buf); |
| r3115 | r3116 | |
| 281 | 281 | state_save_register_global(ac_line); |
| 282 | 282 | state_save_register_global(last_steering_val); |
| 283 | 283 | } |
| 284 | ||
| 285 | MACHINE_RESET( nitedrvr ) | |
| 286 | { | |
| 287 | nitedrvr_gear = 1; | |
| 288 | nitedrvr_track = 0; | |
| 289 | nitedrvr_steering_buf = 0; | |
| 290 | nitedrvr_steering_val = 0; | |
| 291 | nitedrvr_crash_en = 0; | |
| 292 | nitedrvr_crash_data = 0x0f; | |
| 293 | nitedrvr_crash_data_en = 0; | |
| 294 | ac_line = 0; | |
| 295 | last_steering_val = 0; | |
| 296 | ||
| 297 | timer_pulse(PERIOD_OF_555_ASTABLE(RES_K(180), 330, CAP_U(1)), NULL, 0, nitedrvr_crash_toggle_callback); | |
| 298 | } |
| r3115 | r3116 | |
|---|---|---|
| 2826 | 2826 | DRIVER( jdreddb ) /* Judge Dredd (Rev B) */ |
| 2827 | 2827 | |
| 2828 | 2828 | /* Video System ZN1 */ |
| 2829 | DRIVER( vspsx ) | |
| 2830 | DRIVER( aerofgts ) /* Aero Fighters Special (TAIWAN) */ | |
| 2829 | 2831 | DRIVER( sncwgltd ) /* Sonic Wings Limited (JAPAN) */ |
| 2830 | 2832 | |
| 2831 | 2833 | /* Taito FX1a */ |
| r3115 | r3116 | |
| 3825 | 3827 | DRIVER( doa ) /* 1996 */ |
| 3826 | 3828 | DRIVER( sgt24h ) /* 1996 */ |
| 3827 | 3829 | DRIVER( von ) /* 1996 */ |
| 3828 | DRIVER( von | |
| 3830 | DRIVER( vonj | |
| 3829 | 3831 | DRIVER( dynabb ) /* 1996 */ |
| 3830 | 3832 | DRIVER( zerogun ) /* 1997 */ |
| 3831 | 3833 | DRIVER( zerogunj ) /* 1997 */ |
| 3832 | 3834 | DRIVER( dynmcopb ) /* 1998 */ |
| 3833 | 3835 | DRIVER( dyndek2b ) /* 1998 */ |
| 3834 | 3836 | DRIVER( pltkids ) /* 1998 */ |
| 3835 | DRIVER( waverunr ) /* 199? */ | |
| 3836 | 3837 | DRIVER( rchase2 ) /* 199? */ |
| 3837 | 3838 | |
| 3838 | 3839 | /* Model 2C-CRX (TGPx4, SCSP sound board) */ |
| 3839 | 3840 | DRIVER( skisuprg ) /* 1996 */ |
| 3840 | 3841 | DRIVER( stcc ) /* 1996 */ |
| 3842 | DRIVER( waverunr ) /* 1996 */ | |
| 3841 | 3843 | DRIVER( hotd ) /* 1997 */ |
| 3842 | 3844 | DRIVER( overrev ) /* 1997 */ |
| 3843 | 3845 | DRIVER( topskatr ) /* 1997 */ |
| 3846 | DRIVER( topskatu ) /* 1997 */ | |
| 3844 | 3847 | DRIVER( bel ) /* 1998 */ |
| 3845 | 3848 | DRIVER( dynmcopc ) /* 1998 */ |
| 3846 | 3849 | |
| r3115 | r3116 | |
| 5455 | 5458 | DRIVER( mnchmobl ) /* A2001 (c) 1983 + Centuri license */ |
| 5456 | 5459 | DRIVER( marvins ) /* A2003 (c) 1983 */ |
| 5457 | 5460 | DRIVER( madcrash ) /* A2005 (c) 1984 */ |
| 5458 | DRIVER( vangrd2 ) /* (c) 1984 */ | |
| 5459 | DRIVER( jcross ) /* .. */ | |
| 5461 | DRIVER( vangrd2 ) /* A2005 (c) 1984 */ | |
| 5460 | 5462 | DRIVER( mainsnk ) /* fill in */ |
| 5461 | 5463 | DRIVER( canvas ) /* (c) 1985 */ |
| 5464 | DRIVER( jcross ) /* .. */ | |
| 5462 | 5465 | DRIVER( sgladiat ) /* A3006 (c) 1984 */ |
| 5463 | DRIVER( hal21 ) /* | |
| 5466 | DRIVER( hal21 ) /* A4031 (c) 1985 */ | |
| 5464 | 5467 | DRIVER( hal21j ) /* (c) 1985 (Japan) */ |
| 5465 | 5468 | DRIVER( aso ) /* (c) 1985 */ |
| 5466 | 5469 | DRIVER( alphamis ) /* (c) 1985 */ |
| r3115 | r3116 | |
| 5470 | 5473 | DRIVER( athena ) /* 'UP' (c) 1986 */ |
| 5471 | 5474 | DRIVER( fitegolf ) /* 'GU' (c) 1988 */ |
| 5472 | 5475 | DRIVER( fitegol2 ) /* 'GU' (c) 1988 */ |
| 5473 | DRIVER( countryc ) /* | |
| 5476 | DRIVER( countryc ) /* A7004 'CC' (c) 1988 */ | |
| 5474 | 5477 | DRIVER( ikari ) /* A5004 'IW' (c) 1986 */ |
| 5478 | DRIVER( ikaria ) /* A5004 'IW' (c) 1986 */ | |
| 5475 | 5479 | DRIVER( ikarijp ) /* A5004 'IW' (c) 1986 (Japan) */ |
| 5476 | 5480 | DRIVER( ikarijpb ) /* bootleg */ |
| 5477 | DRIVER( victroad ) /* (c) 1986 */ | |
| 5478 | DRIVER( dogosoke ) /* (c) 1986 */ | |
| 5479 | DRIVER( dogosokj ) /* bootleg */ | |
| 5481 | DRIVER( victroad ) /* A6002 (c) 1986 */ | |
| 5482 | DRIVER( dogosoke ) /* A6002 (c) 1986 */ | |
| 5483 | DRIVER( dogosokb ) /* bootleg */ | |
| 5480 | 5484 | DRIVER( gwar ) /* A7003 'GV' (c) 1987 */ |
| 5481 | 5485 | DRIVER( gwarj ) /* A7003 'GV' (c) 1987 (Japan) */ |
| 5482 | 5486 | DRIVER( gwara ) /* A7003 'GV' (c) 1987 */ |
| 5483 | 5487 | DRIVER( gwarb ) /* bootleg */ |
| 5484 | DRIVER( bermudat ) /* A6003 'WW' (c) 1987 */ | |
| 5485 | DRIVER( bermudao ) /* A6003 'WW' (c) 1987 */ | |
| 5486 | DRIVER( bermudaa ) /* A6003 'WW' (c) 1987 */ | |
| 5487 | DRIVER( worldwar ) /* A6003 'WW' (c) 1987 */ | |
| 5488 | DRIVER( bermudat ) /* (c) 1987 */ | |
| 5489 | DRIVER( bermudaj ) /* (c) 1987 */ | |
| 5490 | DRIVER( bermudaa ) /* A6004 'WW' (c) 1987 */ | |
| 5491 | DRIVER( worldwar ) /* A6004 'WW' (c) 1987 */ | |
| 5488 | 5492 | DRIVER( psychos ) /* 'PS' (c) 1987 */ |
| 5489 | 5493 | DRIVER( psychosj ) /* 'PS' (c) 1987 (Japan) */ |
| 5490 | 5494 | DRIVER( chopper ) /* A7003 'KK' (c) 1988 */ |
| r3115 | r3116 | |
| 8028 | 8032 | DRIVER( egghunt ) /* (c) 1995 Invi Image */ |
| 8029 | 8033 | DRIVER( magic10 ) /* (c) 1995 A.W.P. Games */ |
| 8030 | 8034 | DRIVER( magic10a ) /* (c) 1995 A.W.P. Games */ |
| 8035 | DRIVER( magic10b ) /* (c) 1995 A.W.P. Games */ | |
| 8031 | 8036 | DRIVER( magic102 ) /* (c) 1997 ABM Games */ |
| 8032 | 8037 | DRIVER( suprpool ) /* (c) 1997 ABM Games */ |
| 8033 | 8038 | DRIVER( hotslot ) /* (c) 1996 ABM Electronics */ |
| r3115 | r3116 | |
|---|---|---|
| 24 | 24 | WRITE8_HANDLER( nitedrvr_out0_w ); |
| 25 | 25 | WRITE8_HANDLER( nitedrvr_out1_w ); |
| 26 | 26 | |
| 27 | void nitedrvr_crash_toggle(running_machine *machine); | |
| 28 | void nitedrvr_register_machine_vars(void); | |
| 27 | MACHINE_RESET( nitedrvr ); | |
| 28 | MACHINE_START( nitedrvr ); | |
| 29 | 29 | |
| 30 | 30 | |
| 31 | 31 | /*----------- defined in audio/nitedrvr.c -----------*/ |
| r3115 | r3116 | |
|---|---|---|
| 13 | 13 | INTERRUPT_GEN( llander_interrupt ); |
| 14 | 14 | |
| 15 | 15 | READ8_HANDLER( asteroid_IN0_r ); |
| 16 | READ8_HANDLER( asteroib_IN0_r ); | |
| 17 | 16 | READ8_HANDLER( asterock_IN0_r ); |
| 18 | 17 | READ8_HANDLER( asteroid_IN1_r ); |
| 19 | 18 | READ8_HANDLER( asteroid_DSW1_r ); |
| r3115 | r3116 | |
| 24 | 23 | |
| 25 | 24 | MACHINE_RESET( asteroid ); |
| 26 | 25 | |
| 27 | READ8_HANDLER( llander_IN0_r ); | |
| 28 | ||
| 29 | 26 | extern UINT8 *asteroid_ram1, *asteroid_ram2; |
| 30 | 27 | |
| 31 | 28 | /*----------- defined in audio/asteroid.c -----------*/ |
| r3115 | r3116 | |
|---|---|---|
| 31 | 31 | WRITE8_HANDLER( mhavoc_ram_banksel_w ); |
| 32 | 32 | WRITE8_HANDLER( mhavoc_rom_banksel_w ); |
| 33 | 33 | |
| 34 | READ8_HANDLER( mhavoc_port_0_r ); | |
| 35 | READ8_HANDLER( alphaone_port_0_r ); | |
| 36 | READ8_HANDLER( mhavoc_port_1_r ); | |
| 37 | READ8_HANDLER( mhavoc_port_1_sp_r ); | |
| 34 | CUSTOM_INPUT( tms5220_r ); | |
| 35 | CUSTOM_INPUT( gamma_rcvd_r ); | |
| 36 | CUSTOM_INPUT( gamma_xmtd_r ); | |
| 37 | CUSTOM_INPUT( alpha_rcvd_r ); | |
| 38 | CUSTOM_INPUT( alpha_xmtd_r ); | |
| 39 | CUSTOM_INPUT( mhavoc_bit67_r ); | |
| 38 | 40 | |
| 39 | 41 | WRITE8_HANDLER( mhavoc_out_0_w ); |
| 40 | 42 | WRITE8_HANDLER( alphaone_out_0_w ); |
| r3115 | r3116 | |
|---|---|---|
| 59 | 59 | WRITE8_HANDLER( balsente_dac_data_w ); |
| 60 | 60 | WRITE8_HANDLER( balsente_register_addr_w ); |
| 61 | 61 | |
| 62 | ||
| 62 | CUSTOM_I | |
| 63 | 63 | WRITE8_HANDLER( spiker_expand_w ); |
| 64 | 64 | READ8_HANDLER( spiker_expand_r ); |
| 65 | 65 | READ8_HANDLER( grudge_steering_r ); |
| r3115 | r3116 | |
|---|---|---|
| 47 | 47 | #define HARDWARE_TRS02 2 |
| 48 | 48 | #define HARDWARE_TKG02 3 |
| 49 | 49 | |
| 50 | #define DK2B_PALETTE_LENGTH (256+256+8+1) // (256) | |
| 51 | #define DK4B_PALETTE_LENGTH (256+256+8+1) // (256) | |
| 52 | #define DK3_PALETTE_LENGTH (256+256+8+1) // (256) | |
| 50 | #define DK2B_PALETTE_LENGTH (256+256+8+1) /* (256) */ | |
| 51 | #define DK4B_PALETTE_LENGTH (256+256+8+1) /* (256) */ | |
| 52 | #define DK3_PALETTE_LENGTH (256+256+8+1) /* (256) */ | |
| 53 | 53 | #define RS_PALETTE_LENGTH (256+256+8+1) |
| 54 | 54 | |
| 55 | 55 | typedef struct _dkong_state dkong_state; |
| r3115 | r3116 | |
| 61 | 61 | UINT8 hardware_type; |
| 62 | 62 | |
| 63 | 63 | /* sound state */ |
| 64 | UINT8 page,mcustatus; | |
| 65 | UINT8 portT; | |
| 66 | 64 | |
| 67 | 65 | /* video state */ |
| 68 | 66 | tilemap *bg_tilemap; |
| r3115 | r3116 | |
| 91 | 89 | /* Save state relevant */ |
| 92 | 90 | UINT8 gfx_bank, palette_bank; |
| 93 | 91 | UINT8 grid_on; |
| 94 | UINT8 snd02_enable; | |
| 95 | UINT8 sig_ansn; | |
| 96 | 92 | UINT16 grid_col; |
| 97 | 93 | UINT8 sprite_bank; |
| 98 | 94 | UINT8 dma_latch; |
| r3115 | r3116 | |
| 105 | 101 | |
| 106 | 102 | /*----------- defined in video/dkong.c -----------*/ |
| 107 | 103 | |
| 108 | WRITE8_HANDLER( radarscp_snd02_w ); /* to daisy chain sound 02 signal */ | |
| 109 | WRITE8_HANDLER( radarsc1_ansn_w ); /* to daisy chain sound 02 signal */ | |
| 110 | ||
| 111 | 104 | WRITE8_HANDLER( radarscp_grid_enable_w ); |
| 112 | 105 | WRITE8_HANDLER( radarscp_grid_color_w ); |
| 113 | 106 | WRITE8_HANDLER( dkong_flipscreen_w ); |
| r3115 | r3116 | |
| 131 | 124 | |
| 132 | 125 | /*----------- defined in audio/dkong.c -----------*/ |
| 133 | 126 | |
| 134 | READ8_HANDLER( dkong_audio_status_r ); | |
| 135 | 127 | WRITE8_HANDLER( dkong_audio_irq_w ); |
| 136 | 128 | |
| 137 | WRITE8_HANDLER( dkong_snd_disc_w ); | |
| 138 | WRITE8_HANDLER( dkong_sh_tuneselect_w ); | |
| 139 | ||
| 140 | WRITE8_HANDLER( dkongjr_sh_test6_w ); | |
| 141 | WRITE8_HANDLER( dkongjr_sh_tuneselect_w ); | |
| 142 | ||
| 143 | WRITE8_HANDLER( dkongjr_snd_w1 ); | |
| 144 | WRITE8_HANDLER( dkongjr_snd_w2 ); | |
| 145 | ||
| 146 | 129 | MACHINE_DRIVER_EXTERN( radarscp_audio ); |
| 147 | 130 | MACHINE_DRIVER_EXTERN( dkong2b_audio ); |
| 148 | 131 | MACHINE_DRIVER_EXTERN( dkongjr_audio ); |
| r3115 | r3116 | |
|---|---|---|
| 17 | 17 | DRIVER_INIT( pchboard ); /* h-board games */ |
| 18 | 18 | DRIVER_INIT( pciboard ); /* i-board games */ |
| 19 | 19 | DRIVER_INIT( pckboard ); /* k-board games */ |
| 20 | ||
| 20 | CUSTOM_I | |
| 21 | 21 | READ8_HANDLER( pc10_prot_r ); |
| 22 | 22 | READ8_HANDLER( pc10_detectclr_r ); |
| 23 | 23 | READ8_HANDLER( pc10_in0_r ); |
| r3115 | r3116 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | extern UINT8 *snk_rambase; |
| 10 | 10 | |
| 11 | extern INTERRUPT_GEN( snk_irq_AB ); | |
| 12 | extern INTERRUPT_GEN( snk_irq_BA ); | |
| 13 | ||
| 14 | 11 | extern READ8_HANDLER ( snk_cpuA_nmi_trigger_r ); |
| 15 | 12 | extern WRITE8_HANDLER( snk_cpuA_nmi_ack_w ); |
| 16 | 13 | |
| 17 | 14 | extern READ8_HANDLER ( snk_cpuB_nmi_trigger_r ); |
| 18 | 15 | extern WRITE8_HANDLER( snk_cpuB_nmi_ack_w ); |
| 19 | 16 | |
| 20 | extern int snk_gamegroup; | |
| 21 | extern int snk_sound_busy_bit; | |
| 22 | extern int snk_irq_delay; | |
| 23 | 17 | |
| 24 | ||
| 25 | 18 | /*----------- defined in video/snk.c -----------*/ |
| 26 | 19 | |
| 27 | extern VIDEO_START( snk ); | |
| 28 | extern VIDEO_START( snk_3bpp_shadow ); | |
| 29 | extern VIDEO_START( snk_4bpp_shadow ); | |
| 20 | extern PALETTE_INIT( tnk3 ); | |
| 21 | ||
| 22 | extern VIDEO_START( jcross ); | |
| 30 | 23 | extern VIDEO_START( sgladiat ); |
| 24 | extern VIDEO_START( tnk3 ); | |
| 25 | extern VIDEO_START( aso ); | |
| 26 | extern VIDEO_START( ikari ); | |
| 27 | extern VIDEO_START( gwar ); | |
| 28 | extern VIDEO_START( tdfever ); | |
| 31 | 29 | |
| 32 | 30 | extern VIDEO_UPDATE( tnk3 ); |
| 33 | extern VIDEO_UPDATE( athena ); | |
| 34 | 31 | extern VIDEO_UPDATE( ikari ); |
| 32 | extern VIDEO_UPDATE( gwar ); | |
| 35 | 33 | extern VIDEO_UPDATE( tdfever ); |
| 36 | extern VIDEO_UPDATE( gwar ); | |
| 37 | extern VIDEO_UPDATE( sgladiat ); | |
| 38 | 34 | |
| 39 | void tnk3_draw_text( running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int bank, UINT8 *source ); | |
| 40 | void tnk3_draw_status( running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int bank, UINT8 *source ); | |
| 35 | extern WRITE8_HANDLER( snk_bg_scrollx_w ); | |
| 36 | extern WRITE8_HANDLER( snk_bg_scrolly_w ); | |
| 37 | extern WRITE8_HANDLER( snk_sp16_scrollx_w ); | |
| 38 | extern WRITE8_HANDLER( snk_sp16_scrolly_w ); | |
| 39 | extern WRITE8_HANDLER( snk_sp32_scrollx_w ); | |
| 40 | extern WRITE8_HANDLER( snk_sp32_scrolly_w ); | |
| 41 | 41 | |
| 42 | extern WRITE8_HANDLER( jcross_scroll_msb_w ); | |
| 43 | extern WRITE8_HANDLER( sgladiat_scroll_msb_w ); | |
| 44 | extern WRITE8_HANDLER( sgladiat_flipscreen_w ); | |
| 45 | extern WRITE8_HANDLER( tnk3_videoattrs_w ); | |
| 46 | extern WRITE8_HANDLER( aso_videoattrs_w ); | |
| 47 | extern WRITE8_HANDLER( aso_bg_bank_w ); | |
| 48 | extern WRITE8_HANDLER( ikari_bg_scroll_msb_w ); | |
| 49 | extern WRITE8_HANDLER( ikari_sp_scroll_msb_w ); | |
| 50 | extern WRITE8_HANDLER( ikari_unknown_video_w ); | |
| 51 | extern WRITE8_HANDLER( gwar_fg_bank_w ); | |
| 52 | extern WRITE8_HANDLER( gwar_videoattrs_w ); | |
| 53 | extern WRITE8_HANDLER( gwar_sprite_split_point_w ); | |
| 54 | extern WRITE8_HANDLER( gwara_videoattrs_w ); | |
| 55 | extern WRITE8_HANDLER( gwara_sp_scroll_msb_w ); | |
| 56 | extern WRITE8_HANDLER( tdfever_sp_scroll_msb_w ); | |
| 57 | extern WRITE8_HANDLER( tdfever_spriteram_w ); | |
| 42 | 58 | |
| 59 | extern UINT8 *snk_fg_videoram; | |
| 60 | extern UINT8 *snk_bg_videoram; | |
| 61 | extern WRITE8_HANDLER( snk_fg_videoram_w ); | |
| 62 | extern WRITE8_HANDLER( snk_bg_videoram_w ); | |
| 63 | extern WRITE8_HANDLER( aso_bg_videoram_w ); | |
| 64 | ||
| 43 | 65 | /*----------- defined in drivers/hal21.c -----------*/ |
| 44 | 66 | |
| 45 | 67 | extern PALETTE_INIT( aso ); |
| r3115 | r3116 | |
|---|---|---|
| 16 | 16 | * 12MHz signal, effecitvely doubling the horizontal resolution |
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | #include "sound/discrete.h" | |
| 20 | ||
| 21 | ||
| 19 | 22 | #define STARSHP1_MASTER_CLOCK (12096000) |
| 20 | 23 | #define STARSHP1_CPU_CLOCK (STARSHP1_MASTER_CLOCK / 16) |
| 21 | 24 | #define STARSHP1_PIXEL_CLOCK (STARSHP1_MASTER_CLOCK / 2) |
| r3115 | r3116 | |
| 67 | 70 | VIDEO_UPDATE( starshp1 ); |
| 68 | 71 | VIDEO_EOF( starshp1 ); |
| 69 | 72 | VIDEO_START( starshp1 ); |
| 73 | ||
| 74 | ||
| 75 | /*----------- defined in sound/starshp1.c -----------*/ | |
| 76 | ||
| 77 | DISCRETE_SOUND_EXTERN( starshp1 ); | |
| 78 | ||
| 79 | /* Discrete Sound Input Nodes */ | |
| 80 | #define STARSHP1_NOISE_AMPLITUDE NODE_01 | |
| 81 | #define STARSHP1_TONE_PITCH NODE_02 | |
| 82 | #define STARSHP1_MOTOR_SPEED NODE_03 | |
| 83 | #define STARSHP1_NOISE_FREQ NODE_04 | |
| 84 | #define STARSHP1_MOLVL NODE_05 | |
| 85 | #define STARSHP1_SL2 NODE_06 | |
| 86 | #define STARSHP1_SL1 NODE_07 | |
| 87 | #define STARSHP1_KICKER NODE_08 | |
| 88 | #define STARSHP1_PHASOR_ON NODE_09 | |
| 89 | #define STARSHP1_ATTRACT NODE_10 |
| r3115 | r3116 | |
|---|---|---|
| 259 | 259 | IREM_COIN_MODE_2_DSW1_LOC(DIPBANK) |
| 260 | 260 | |
| 261 | 261 | |
| 262 | /* New Coin Mode 1, introduced in later m72 games (m72 early games have different Coinage) */ | |
| 262 | /* New Coin Mode 1, introduced in later m72 games (m72 early games have different Coinage) */ | |
| 263 | 263 | |
| 264 | 264 | #define IREM_COIN_MODE_1_NEW \ |
| 265 | 265 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,6,7,8") \ |
| r3115 | r3116 | |
|---|---|---|
| 80 | 80 | |
| 81 | 81 | |
| 82 | 82 | #define COINAGE_6BITS \ |
| 83 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )\ | |
| 84 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) )\ | |
| 85 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) )\ | |
| 86 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) )\ | |
| 87 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_2C ) )\ | |
| 88 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) )\ | |
| 89 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_4C ) )\ | |
| 90 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_5C ) )\ | |
| 91 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )\ | |
| 92 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) )\ | |
| 93 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) )\ | |
| 94 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) )\ | |
| 95 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) )\ | |
| 96 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) )\ | |
| 97 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) )\ | |
| 98 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) )\ | |
| 99 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_4C ) )\ | |
| 100 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_5C ) )\ | |
| 83 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) )\ | |
| 84 | PORT_DIPSETTING( 0x0400, DEF_STR( 3C_1C ) )\ | |
| 85 | PORT_DIPSETTING( 0x0200, DEF_STR( 2C_1C ) )\ | |
| 86 | PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) )\ | |
| 87 | PORT_DIPSETTING( 0x0300, DEF_STR( 1C_2C ) )\ | |
| 88 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) )\ | |
| 89 | PORT_DIPSETTING( 0x0100, DEF_STR( 1C_4C ) )\ | |
| 90 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_5C ) )\ | |
| 91 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) )\ | |
| 92 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) )\ | |
| 93 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) )\ | |
| 94 | PORT_DIPSETTING( 0x2000, DEF_STR( 3C_1C ) )\ | |
| 95 | PORT_DIPSETTING( 0x1000, DEF_STR( 2C_1C ) )\ | |
| 96 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) )\ | |
| 97 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_2C ) )\ | |
| 98 | PORT_DIPSETTING( 0x2800, DEF_STR( 1C_3C ) )\ | |
| 99 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_4C ) )\ | |
| 100 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_5C ) )\ | |
| 101 | 101 | |
| 102 | 102 | #define COINAGE_6BITS_2 \ |
| 103 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )\ | |
| 104 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) )\ | |
| 105 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) )\ | |
| 106 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) )\ | |
| 107 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) )\ | |
| 108 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) )\ | |
| 109 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) )\ | |
| 110 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) )\ | |
| 111 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )\ | |
| 112 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) )\ | |
| 113 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C ) )\ | |
| 114 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) )\ | |
| 115 | PORT_DIPSETTING( 0x18, DEF_STR( 2C_1C ) )\ | |
| 116 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) )\ | |
| 117 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) )\ | |
| 118 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) )\ | |
| 119 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) )\ | |
| 120 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )\ | |
| 103 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) )\ | |
| 104 | PORT_DIPSETTING( 0x0100, DEF_STR( 4C_1C ) )\ | |
| 105 | PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) )\ | |
| 106 | PORT_DIPSETTING( 0x0300, DEF_STR( 2C_1C ) )\ | |
| 107 | PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) )\ | |
| 108 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_2C ) )\ | |
| 109 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) )\ | |
| 110 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) )\ | |
| 111 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) )\ | |
| 112 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) )\ | |
| 113 | PORT_DIPSETTING( 0x0800, DEF_STR( 4C_1C ) )\ | |
| 114 | PORT_DIPSETTING( 0x1000, DEF_STR( 3C_1C ) )\ | |
| 115 | PORT_DIPSETTING( 0x1800, DEF_STR( 2C_1C ) )\ | |
| 116 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) )\ | |
| 117 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_2C ) )\ | |
| 118 | PORT_DIPSETTING( 0x2800, DEF_STR( 1C_3C ) )\ | |
| 119 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) )\ | |
| 120 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) )\ | |
| 121 | 121 | |
| 122 | 122 | #define COINAGE_8BITS \ |
| 123 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )\ | |
| 124 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) )\ | |
| 125 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) )\ | |
| 126 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) )\ | |
| 127 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )\ | |
| 128 | /* PORT_DIPSETTING( 0x05, DEF_STR( 1C_1C ) )*/ \ | |
| 129 | /* PORT_DIPSETTING( 0x04, DEF_STR( 1C_1C ) )*/ \ | |
| 130 | /* PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) )*/ \ | |
| 131 | /* PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) )*/ \ | |
| 132 | /* PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) )*/ \ | |
| 133 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_3C ) )\ | |
| 134 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) )\ | |
| 135 | PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )\ | |
| 136 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) )\ | |
| 137 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) )\ | |
| 138 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) )\ | |
| 139 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )\ | |
| 140 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )\ | |
| 141 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) )\ | |
| 142 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) )\ | |
| 143 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) )\ | |
| 144 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )\ | |
| 145 | /* PORT_DIPSETTING( 0x50, DEF_STR( 1C_1C ) )*/ \ | |
| 146 | /* PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) )*/ \ | |
| 147 | /* PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) )*/ \ | |
| 148 | /* PORT_DIPSETTING( 0x20, DEF_STR( 1C_1C ) )*/ \ | |
| 149 | /* PORT_DIPSETTING( 0x10, DEF_STR( 1C_1C ) )*/ \ | |
| 150 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_3C ) )\ | |
| 151 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )\ | |
| 152 | PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) )\ | |
| 153 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) )\ | |
| 154 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )\ | |
| 155 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )\ | |
| 156 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 123 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) )\ | |
| 124 | PORT_DIPSETTING( 0x0007, DEF_STR( 4C_1C ) )\ | |
| 125 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) )\ | |
| 126 | PORT_DIPSETTING( 0x0009, DEF_STR( 2C_1C ) )\ | |
| 127 | PORT_DIPSETTING( 0x000f, DEF_STR( 1C_1C ) )\ | |
| 128 | /* PORT_DIPSETTING( 0x0005, DEF_STR( 1C_1C ) )*/\ | |
| 129 | /* PORT_DIPSETTING( 0x0004, DEF_STR( 1C_1C ) )*/\ | |
| 130 | /* PORT_DIPSETTING( 0x0003, DEF_STR( 1C_1C ) )*/\ | |
| 131 | /* PORT_DIPSETTING( 0x0002, DEF_STR( 1C_1C ) )*/\ | |
| 132 | /* PORT_DIPSETTING( 0x0001, DEF_STR( 1C_1C ) )*/\ | |
| 133 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_3C ) )\ | |
| 134 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_2C ) )\ | |
| 135 | PORT_DIPSETTING( 0x000d, DEF_STR( 1C_3C ) )\ | |
| 136 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_4C ) )\ | |
| 137 | PORT_DIPSETTING( 0x000b, DEF_STR( 1C_5C ) )\ | |
| 138 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) )\ | |
| 139 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) )\ | |
| 140 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) )\ | |
| 141 | PORT_DIPSETTING( 0x0070, DEF_STR( 4C_1C ) )\ | |
| 142 | PORT_DIPSETTING( 0x0080, DEF_STR( 3C_1C ) )\ | |
| 143 | PORT_DIPSETTING( 0x0090, DEF_STR( 2C_1C ) )\ | |
| 144 | PORT_DIPSETTING( 0x00f0, DEF_STR( 1C_1C ) )\ | |
| 145 | /* PORT_DIPSETTING( 0x0050, DEF_STR( 1C_1C ) )*/\ | |
| 146 | /* PORT_DIPSETTING( 0x0040, DEF_STR( 1C_1C ) )*/\ | |
| 147 | /* PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) )*/\ | |
| 148 | /* PORT_DIPSETTING( 0x0020, DEF_STR( 1C_1C ) )*/\ | |
| 149 | /* PORT_DIPSETTING( 0x0010, DEF_STR( 1C_1C ) )*/\ | |
| 150 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_3C ) )\ | |
| 151 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_2C ) )\ | |
| 152 | PORT_DIPSETTING( 0x00d0, DEF_STR( 1C_3C ) )\ | |
| 153 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_4C ) )\ | |
| 154 | PORT_DIPSETTING( 0x00b0, DEF_STR( 1C_5C ) )\ | |
| 155 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_6C ) )\ | |
| 156 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 157 | 157 | |
| 158 | 158 | |
| 159 | 159 | /*************************************************************************** |
| r3115 | r3116 | |
|---|---|---|
| 136 | 136 | WRITE8_HANDLER( kingball_sound2_w ); |
| 137 | 137 | |
| 138 | 138 | WRITE8_HANDLER( _4in1_bank_w ); |
| 139 | READ8_HANDLER( _4in1_input_port_1_r ); | |
| 140 | READ8_HANDLER( _4in1_input_port_2_r ); | |
| 139 | CUSTOM_INPUT( _4in1_fake_port_r ); | |
| 141 | 140 | |
| 142 | 141 | WRITE8_HANDLER( zigzag_sillyprotection_w ); |
| 143 | 142 | |
| 144 | 143 | INTERRUPT_GEN( hunchbks_vh_interrupt ); |
| 145 | 144 | INTERRUPT_GEN( gmgalax_vh_interrupt ); |
| 146 | 145 | |
| 147 | READ8_HANDLER( gmgalax_input_port_0_r ); | |
| 148 | READ8_HANDLER( gmgalax_input_port_1_r ); | |
| 149 | READ8_HANDLER( gmgalax_input_port_2_r ); | |
| 150 | 146 | |
| 151 | ||
| 152 | 147 | /*----------- defined in machine/scramble.c -----------*/ |
| 153 | 148 | |
| 154 | 149 | extern const ppi8255_interface scramble_ppi_ppi8255_intf[2]; |
| r3115 | r3116 | |
|---|---|---|
| 142 | 142 | READ8_HANDLER( nb1413m3_dipsw3_h_r ); |
| 143 | 143 | WRITE8_HANDLER( nb1413m3_outcoin_w ); |
| 144 | 144 | WRITE8_HANDLER( nb1413m3_vcrctrl_w ); |
| 145 | CUSTOM_INPUT( nb1413m3_busyflag_r ); | |
| 146 | CUSTOM_INPUT( nb1413m3_outcoin_flag_r ); | |
| 145 | 147 | |
| 146 | 148 | /* used in: hyhoo.c, niyanpai.c, pastelg.c, nbmj8688.c, nbmj8891.c, nbmj8991.c, nbmj9195.c*/ |
| 147 | 149 | INPUT_PORTS_EXTERN( nbmjcontrols ); |
| r3115 | r3116 | |
|---|---|---|
| 68 | 68 | CPUS += V60 |
| 69 | 69 | CPUS += V70 |
| 70 | 70 | CPUS += I8035 |
| 71 | CPUS += I8041 | |
| 72 | CPUS += I8048 | |
| 73 | CPUS += I8648 | |
| 74 | CPUS += I8748 | |
| 75 | CPUS += MB8884 | |
| 71 | 76 | CPUS += I8039 |
| 72 | CPUS += I804 | |
| 77 | CPUS += I8049 | |
| 73 | 78 | CPUS += I8749 |
| 74 | 79 | CPUS += N7751 |
| 75 | CPUS += MB8884 | |
| 76 | 80 | CPUS += M58715 |
| 77 | 81 | CPUS += I8X41 |
| 78 | 82 | CPUS += I8051 |
| r3115 | r3116 | |
| 526 | 530 | $(DRIVERS)/sprint2.o $(AUDIO)/sprint2.o $(VIDEO)/sprint2.o \ |
| 527 | 531 | $(DRIVERS)/sprint4.o $(VIDEO)/sprint4.o $(AUDIO)/sprint4.o \ |
| 528 | 532 | $(DRIVERS)/sprint8.o $(VIDEO)/sprint8.o \ |
| 529 | $(DRIVERS)/starshp1.o $(VIDEO)/starshp1.o \ | |
| 533 | $(DRIVERS)/starshp1.o $(AUDIO)/starshp1.o $(VIDEO)/starshp1.o \ | |
| 530 | 534 | $(DRIVERS)/starwars.o $(MACHINE)/starwars.o $(AUDIO)/starwars.o \ |
| 531 | 535 | $(DRIVERS)/subs.o $(MACHINE)/subs.o $(AUDIO)/subs.o $(VIDEO)/subs.o \ |
| 532 | 536 | $(DRIVERS)/tank8.o $(AUDIO)/tank8.o $(VIDEO)/tank8.o \ |
| r3115 | r3116 | |
| 742 | 746 | $(MAMEOBJ)/gametron.a: \ |
| 743 | 747 | $(DRIVERS)/gotya.o $(AUDIO)/gotya.o $(VIDEO)/gotya.o \ |
| 744 | 748 | $(DRIVERS)/sbugger.o $(VIDEO)/sbugger.o \ |
| 745 | $(DRIVERS)/gatron.o \ | |
| 749 | $(DRIVERS)/gatron.o $(VIDEO)/gatron.o \ | |
| 746 | 750 | |
| 747 | 751 | $(MAMEOBJ)/gottlieb.a: \ |
| 748 | 752 | $(DRIVERS)/exterm.o $(VIDEO)/exterm.o \ |
| r3115 | r3116 | |
| 1261 | 1265 | $(DRIVERS)/dmndrby.o \ |
| 1262 | 1266 | $(DRIVERS)/hal21.o \ |
| 1263 | 1267 | $(DRIVERS)/hng64.o $(VIDEO)/hng64.o \ |
| 1264 | $(DRIVERS)/jcross.o $(VIDEO)/jcross.o \ | |
| 1265 | 1268 | $(DRIVERS)/lasso.o $(VIDEO)/lasso.o \ |
| 1266 | 1269 | $(DRIVERS)/mainsnk.o $(VIDEO)/mainsnk.o \ |
| 1267 | 1270 | $(DRIVERS)/marvins.o $(VIDEO)/marvins.o \ |
| 1268 | 1271 | $(DRIVERS)/munchmo.o $(VIDEO)/munchmo.o \ |
| 1269 | 1272 | $(DRIVERS)/prehisle.o $(VIDEO)/prehisle.o \ |
| 1270 | 1273 | $(DRIVERS)/rockola.o $(AUDIO)/rockola.o $(VIDEO)/rockola.o \ |
| 1271 | $(DRIVERS)/sgladiat.o \ | |
| 1272 | 1274 | $(DRIVERS)/snk.o $(VIDEO)/snk.o \ |
| 1273 | 1275 | $(DRIVERS)/snk68.o $(VIDEO)/snk68.o \ |
| 1274 | 1276 | |
| r3115 | r3116 | |
| 1711 | 1713 | |
| 1712 | 1714 | $(DRIVERS)/funworld.o: $(LAYOUT)/funworld.lh |
| 1713 | 1715 | |
| 1716 | $(DRIVERS)/gatron.o: $(LAYOUT)/poker41.lh \ | |
| 1717 | $(LAYOUT)/pulltabs.lh | |
| 1718 | ||
| 1714 | 1719 | $(DRIVERS)/lazercmd.o: $(LAYOUT)/lazercmd.lh |
| 1715 | 1720 | |
| 1716 | 1721 | $(DRIVERS)/lucky74.o: $(LAYOUT)/lucky74.lh |
| r3115 | r3116 | |
|---|---|---|
| 318 | 318 | logerror ("Graphic bit mode not supported\n"); |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | // bpp = 4; // for skattva | |
| 322 | // bitmask = 0x000f; // for skattva | |
| 323 | ||
| 321 | 324 | if (x >= 0) |
| 322 | 325 | { |
| 323 | 326 | x_int = x / (16 / bpp); |
| r3115 | r3116 | |
| 332 | 335 | x_mod = (16 / bpp) - x_mod; |
| 333 | 336 | } |
| 334 | 337 | } |
| 338 | ||
| 335 | 339 | color &= bitmask; |
| 336 | 340 | |
| 337 | 341 | bitmask_shifted = bitmask << (x_mod * bpp); |
| r3115 | r3116 | |
| 455 | 459 | dst = (x_int + y * 1); |
| 456 | 460 | |
| 457 | 461 | if ((pattern[dst] & bitmask_shifted) >> (x_mod * bpp)) |
| 458 | return 1; | |
| 462 | return 1; | |
| 459 | 463 | else |
| 460 | return 0; | |
| 464 | return 0; | |
| 461 | 465 | } |
| 462 | 466 | |
| 463 | 467 | static void agcpy(int opcode,int src_x,int src_y,int dst_x,int dst_y,INT16 _ax,INT16 _ay) |
| r3115 | r3116 | |
| 622 | 626 | |
| 623 | 627 | static void ptn(int opcode,int src_x,int src_y,INT16 _ax,INT16 _ay) |
| 624 | 628 | { |
| 625 | int dst_step1_x,dst_step1_y,dst_step2_x,dst_step2_y; | |
| 629 | int dst_step1_x = 0,dst_step1_y = 0,dst_step2_x = 0,dst_step2_y = 0; | |
| 626 | 630 | int src_step1_x,src_step1_y,src_step2_x,src_step2_y; |
| 627 | 631 | int ax = _ax; |
| 628 | 632 | int ay = _ay; |
| r3115 | r3116 | |
| 631 | 635 | int yys = src_y; |
| 632 | 636 | int xxd = cpx; |
| 633 | 637 | int yyd = cpy; |
| 638 | int getpixel; | |
| 634 | 639 | |
| 635 | 640 | if (ax < 0) |
| 636 | 641 | ax_neg = -1; |
| r3115 | r3116 | |
| 645 | 650 | switch (opcode & 0x0700) |
| 646 | 651 | { |
| 647 | 652 | default: |
| 648 | case 0x0000: dst_step1_x = 1; dst_step1_y = 0; dst_step2_x = -ay_neg*ay; dst_step2_y = 1; break; | |
| 649 | case 0x0100: dst_step1_x = 1; dst_step1_y = 0; dst_step2_x = -ay_neg*ay; dst_step2_y = -1; break; | |
| 650 | case 0x0200: dst_step1_x = -1; dst_step1_y = 0; dst_step2_x = ay_neg*ay; dst_step2_y = 1; break; | |
| 651 | case 0x0300: dst_step1_x = -1; dst_step1_y = 0; dst_step2_x = ay_neg*ay; dst_step2_y = -1; break; | |
| 652 | case 0x0400: dst_step1_x = 0; dst_step1_y = 1; dst_step2_x = 1; dst_step2_y = -ay_neg*ay; break; | |
| 653 | case 0x0500: dst_step1_x = 0; dst_step1_y = -1; dst_step2_x = 1; dst_step2_y = ay_neg*ay; break; | |
| 654 | case 0x0600: dst_step1_x = 0; dst_step1_y = 1; dst_step2_x = -1; dst_step2_y = -ay_neg*ay; break; | |
| 655 | case 0x0700: dst_step1_x = 0; dst_step1_y = -1; dst_step2_x = -1; dst_step2_y = ay_neg*ay; break; | |
| 653 | case 0x0000: logerror("PTN: not supported"); break; | |
| 654 | case 0x0100: logerror("PTN: not supported"); break; | |
| 655 | case 0x0200: logerror("PTN: not supported"); break; | |
| 656 | case 0x0300: logerror("PTN: not supported"); break; | |
| 657 | case 0x0400: logerror("PTN: not supported"); break; | |
| 658 | case 0x0500: logerror("PTN: not supported"); break; | |
| 659 | case 0x0600: logerror("PTN: not supported"); break; | |
| 660 | case 0x0700: logerror("PTN: not supported"); break; | |
| 656 | 661 | } |
| 657 | 662 | else |
| 658 | 663 | switch (opcode & 0x0700) |
| 659 | 664 | { |
| 660 | 665 | default: |
| 661 | case 0x0000: dst_step1_x = 1; dst_step1_y = 0; dst_step2_x = -ax_neg*ax; dst_step2_y = 1; break; | |
| 662 | case 0x0100: dst_step1_x = 1; dst_step1_y = 0; dst_step2_x = -ax_neg*ax; dst_step2_y = -1; break; | |
| 663 | case 0x0200: dst_step1_x = -1; dst_step1_y = 0; dst_step2_x = ax_neg*ax; dst_step2_y = 1; break; | |
| 664 | case 0x0300: dst_step1_x = -1; dst_step1_y = 0; dst_step2_x = ax_neg*ax; dst_step2_y = -1; break; | |
| 665 | case 0x0400: dst_step1_x = 0; dst_step1_y = 1; dst_step2_x = 1; dst_step2_y = ax_neg*ax; break; | |
| 666 | case 0x0500: dst_step1_x = 0; dst_step1_y = -1; dst_step2_x = 1; dst_step2_y = -ax_neg*ax; break; | |
| 667 | case 0x0600: dst_step1_x = 0; dst_step1_y = 1; dst_step2_x = -1; dst_step2_y = ax_neg*ax; break; | |
| 668 | case 0x0700: dst_step1_x = 0; dst_step1_y = -1; dst_step2_x = -1; dst_step2_y = -ax_neg*ax; break; | |
| 666 | case 0x0000: dst_step1_x = 1; dst_step1_y = 0; dst_step2_x = -ax_neg*ax; dst_step2_y = 1; break; | |
| 667 | case 0x0100: logerror("PTN: not supported"); break; | |
| 668 | case 0x0200: dst_step1_x = 0; dst_step1_y = 1; dst_step2_x = -1; dst_step2_y = -ax_neg*ax; break; | |
| 669 | case 0x0300: logerror("PTN: not supported"); break; | |
| 670 | case 0x0400: dst_step1_x = -1; dst_step1_y = 0; dst_step2_x = ax_neg*ax; dst_step2_y = -1; break; | |
| 671 | case 0x0500: logerror("PTN: not supported"); break; | |
| 672 | case 0x0600: dst_step1_x = 0; dst_step1_y = -1; dst_step2_x = 1; dst_step2_y = ax_neg*ax; break; | |
| 673 | case 0x0700: logerror("PTN: not supported"); break; | |
| 669 | 674 | } |
| 670 | 675 | |
| 671 | if ((_ax >= 0) && (_ay >= 0) && ((opcode & 0x0800) == 0x0000)) | |
| 672 | { src_step1_x = 1; src_step1_y = 0; src_step2_x = -ax; src_step2_y = 1; } | |
| 673 | else if ((_ax >= 0) && (_ay < 0) && ((opcode & 0x0800) == 0x0000)) | |
| 674 | { src_step1_x = 1; src_step1_y = 0; src_step2_x = -ax; src_step2_y = -1; } | |
| 675 | else if ((_ax < 0) && (_ay >= 0) && ((opcode & 0x0800) == 0x0000)) | |
| 676 | { src_step1_x = -1; src_step1_y = 0; src_step2_x = -ax; src_step2_y = 1; } | |
| 677 | else if ((_ax < 0) && (_ay < 0) && ((opcode & 0x0800) == 0x0000)) | |
| 678 | { src_step1_x = -1; src_step1_y = 0; src_step2_x = -ax; src_step2_y = -1; } | |
| 679 | else if ((_ax >= 0) && (_ay >= 0) && ((opcode & 0x0800) == 0x0800)) | |
| 680 | { src_step1_x = 0; src_step1_y = 1; src_step2_x = 1; src_step2_y = -ay; } | |
| 681 | else if ((_ax >= 0) && (_ay < 0) && ((opcode & 0x0800) == 0x0800)) | |
| 682 | { src_step1_x = 0; src_step1_y = -1; src_step2_x = 1; src_step2_y = -ay; } | |
| 683 | else if ((_ax < 0) && (_ay >= 0) && ((opcode & 0x0800) == 0x0800)) | |
| 684 | { src_step1_x = 0; src_step1_y = 1; src_step2_x = -1; src_step2_y = -ay; } | |
| 685 | else // ((_ax < 0) && (_ay < 0) && ((opcode & 0x0800) == 0x0800)) | |
| 686 | { src_step1_x = 0; src_step1_y = -1; src_step2_x = -1; src_step2_y = -ay; } | |
| 676 | src_step1_x = 1; src_step1_y = 0; src_step2_x = -ax; src_step2_y = 1; | |
| 687 | 677 | |
| 688 | 678 | for (;;) |
| 689 | 679 | { |
| 690 | 680 | for (;;) |
| 691 | 681 | { |
| 692 | dot(xxd,yyd,opcode & 0x0007,get_pixel_ptn(xxs,yys)); | |
| 682 | getpixel = get_pixel_ptn(xxs,yys); | |
| 683 | switch ((opcode & 0x0018) >> 3) | |
| 684 | { | |
| 685 | case 0x0000: | |
| 686 | if (getpixel) | |
| 687 | dot(xxd,yyd,opcode & 0x0007,cl1); | |
| 688 | else | |
| 689 | dot(xxd,yyd,opcode & 0x0007,cl0); | |
| 690 | break; | |
| 691 | case 0x0001: | |
| 692 | if (getpixel) | |
| 693 | dot(xxd,yyd,opcode & 0x0007,cl1); | |
| 694 | break; | |
| 695 | case 0x0002: | |
| 696 | if (getpixel == 0) | |
| 697 | dot(xxd,yyd,opcode & 0x0007,cl0); | |
| 698 | break; | |
| 699 | case 0x0003: | |
| 700 | logerror("PTN: not supported"); break; | |
| 701 | break; | |
| 702 | } | |
| 693 | 703 | |
| 694 | 704 | if (opcode & 0x0800) |
| 695 | 705 | { |
| r3115 | r3116 | |
| 782 | 792 | |
| 783 | 793 | void line(INT16 sx, INT16 sy, INT16 ex, INT16 ey, INT16 col) |
| 784 | 794 | { |
| 785 | ||
| 786 | 795 | INT16 ax,ay; |
| 787 | 796 | |
| 788 | 797 | int cpx_t=sx; |
| r3115 | r3116 | |
| 795 | 804 | { |
| 796 | 805 | while (ax) |
| 797 | 806 | { |
| 798 | dot(cpx_t,cpy_t,col,cl0); | |
| 807 | dot(cpx_t,cpy_t,col & 7,cl0); | |
| 799 | 808 | |
| 800 | 809 | if (ax > 0) |
| 801 | 810 | { |
| r3115 | r3116 | |
| 814 | 823 | { |
| 815 | 824 | while (ay) |
| 816 | 825 | { |
| 817 | dot(cpx_t,cpy_t,col,cl0); | |
| 826 | dot(cpx_t,cpy_t,col & 7,cl0); | |
| 818 | 827 | |
| 819 | 828 | if (ay > 0) |
| 820 | 829 | { |
| r3115 | r3116 | |
| 832 | 841 | |
| 833 | 842 | } |
| 834 | 843 | |
| 844 | void paint(int sx, int sy, int col) | |
| 845 | { | |
| 846 | int getpixel; | |
| 847 | dot(sx,sy,0,col); | |
| 848 | ||
| 849 | getpixel = get_pixel(sx+1,sy); | |
| 850 | switch ((HD63484_reg[0x02/2] & 0x700) >> 8) | |
| 851 | { | |
| 852 | case 0: | |
| 853 | break; | |
| 854 | case 1: | |
| 855 | break; | |
| 856 | case 2: | |
| 857 | getpixel = (getpixel << 12) | (getpixel << 8) | (getpixel << 4) | (getpixel << 0); | |
| 858 | break; | |
| 859 | case 3: | |
| 860 | getpixel = (getpixel << 8) | (getpixel << 0); | |
| 861 | break; | |
| 862 | case 4: | |
| 863 | break; | |
| 864 | ||
| 865 | default: | |
| 866 | logerror ("Graphic bit mode not supported\n"); | |
| 867 | } | |
| 868 | if ((getpixel != col) && (getpixel != edg)) | |
| 869 | { | |
| 870 | sx++; | |
| 871 | paint(sx,sy,col); | |
| 872 | sx--; | |
| 873 | } | |
| 874 | ||
| 875 | getpixel = get_pixel(sx-1,sy); | |
| 876 | switch ((HD63484_reg[0x02/2] & 0x700) >> 8) | |
| 877 | { | |
| 878 | case 0: | |
| 879 | break; | |
| 880 | case 1: | |
| 881 | break; | |
| 882 | case 2: | |
| 883 | getpixel = (getpixel << 12) | (getpixel << 8) | (getpixel << 4) | (getpixel << 0); | |
| 884 | break; | |
| 885 | case 3: | |
| 886 | getpixel = (getpixel << 8) | (getpixel << 0); | |
| 887 | break; | |
| 888 | case 4: | |
| 889 | break; | |
| 890 | ||
| 891 | default: | |
| 892 | logerror ("Graphic bit mode not supported\n"); | |
| 893 | } | |
| 894 | if ((getpixel != col) && (getpixel != edg)) | |
| 895 | { | |
| 896 | sx--; | |
| 897 | paint(sx,sy,col); | |
| 898 | sx++; | |
| 899 | } | |
| 900 | ||
| 901 | getpixel = get_pixel(sx,sy+1); | |
| 902 | switch ((HD63484_reg[0x02/2] & 0x700) >> 8) | |
| 903 | { | |
| 904 | case 0: | |
| 905 | break; | |
| 906 | case 1: | |
| 907 | break; | |
| 908 | case 2: | |
| 909 | getpixel = (getpixel << 12) | (getpixel << 8) | (getpixel << 4) | (getpixel << 0); | |
| 910 | break; | |
| 911 | case 3: | |
| 912 | getpixel = (getpixel << 8) | (getpixel << 0); | |
| 913 | break; | |
| 914 | case 4: | |
| 915 | break; | |
| 916 | ||
| 917 | default: | |
| 918 | logerror ("Graphic bit mode not supported\n"); | |
| 919 | } | |
| 920 | if ((getpixel != col) && (getpixel != edg)) | |
| 921 | { | |
| 922 | sy++; | |
| 923 | paint(sx,sy,col); | |
| 924 | sy--; | |
| 925 | } | |
| 926 | ||
| 927 | getpixel = get_pixel(sx,sy-1); | |
| 928 | switch ((HD63484_reg[0x02/2] & 0x700) >> 8) | |
| 929 | { | |
| 930 | case 0: | |
| 931 | break; | |
| 932 | case 1: | |
| 933 | break; | |
| 934 | case 2: | |
| 935 | getpixel = (getpixel << 12) | (getpixel << 8) | (getpixel << 4) | (getpixel << 0); | |
| 936 | break; | |
| 937 | case 3: | |
| 938 | getpixel = (getpixel << 8) | (getpixel << 0); | |
| 939 | break; | |
| 940 | case 4: | |
| 941 | break; | |
| 942 | ||
| 943 | default: | |
| 944 | logerror ("Graphic bit mode not supported\n"); | |
| 945 | } | |
| 946 | if ((getpixel != col) && (getpixel != edg)) | |
| 947 | { | |
| 948 | sy--; | |
| 949 | paint(sx,sy,col); | |
| 950 | sy++; | |
| 951 | } | |
| 952 | } | |
| 953 | ||
| 835 | 954 | static void HD63484_command_w(UINT16 cmd) |
| 836 | 955 | { |
| 837 | 956 | int len; |
| r3115 | r3116 | |
| 852 | 971 | |
| 853 | 972 | if (fifo_counter >= len) |
| 854 | 973 | { |
| 855 | /* | |
| 856 | 974 | int i; |
| 857 | 975 | |
| 858 | | |
| 976 | logerror | |
| 859 | 977 | for (i = 1;i < fifo_counter;i++) |
| 860 | printf("%04x ",fifo[i]); | |
| 861 | printf("\n"); | |
| 862 | */ | |
| 978 | logerror("%04x ",fifo[i]); | |
| 979 | logerror("\n"); | |
| 980 | ||
| 863 | 981 | if (fifo[0] == 0x0400) { /* ORG */ |
| 864 | 982 | org = ((fifo[1] & 0x00ff) << 12) | ((fifo[2] & 0xfff0) >> 4); |
| 865 | 983 | org_dpd = fifo[2] & 0x000f; |
| r3115 | r3116 | |
| 909 | 1027 | rwp_dn = (fifo[1] & 0xc000) >> 14; |
| 910 | 1028 | } |
| 911 | 1029 | else if (fifo[0] == 0x080d) |
| 912 | rwp = (rwp & 0xff000) | ((fifo[1] & 0xfff0) >> 4); | |
| 1030 | { | |
| 1031 | rwp = (rwp & 0xff000) | ((fifo[1] & 0xfff0) >> 4); | |
| 1032 | } | |
| 913 | 1033 | else |
| 914 | logerror("unsupported register\n"); | |
| 1034 | logerror("unsupported register\n"); | |
| 915 | 1035 | } |
| 916 | 1036 | else if ((fifo[0] & 0xfff0) == 0x1800) /* WPTN */ |
| 917 | 1037 | { |
| r3115 | r3116 | |
| 928 | 1048 | } |
| 929 | 1049 | else if (fifo[0] == 0x4800) /* WT */ |
| 930 | 1050 | { |
| 931 | | |
| 1051 | | |
| 932 | 1052 | rwp = (rwp + 1) & (HD63484_RAM_SIZE-1); |
| 933 | 1053 | } |
| 934 | 1054 | else if (fifo[0] == 0x5800) /* CLR */ |
| 935 | 1055 | { |
| 936 | 1056 | doclr16(fifo[0],fifo[1],&rwp,fifo[2],fifo[3]); |
| 937 | 1057 | |
| 938 | /* | |
| 939 | 1058 | { |
| 940 | 1059 | int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3]; |
| 941 | 1060 | if (fifo2<0) fifo2 *= -1; |
| 942 | 1061 | if (fifo3<0) fifo3 *= -1; |
| 943 | 1062 | rwp += ((fifo2+1)*(fifo3+1)); |
| 944 | 1063 | } |
| 945 | ||
| 1064 | ||
| 946 | 1065 | } |
| 947 | 1066 | else if ((fifo[0] & 0xfffc) == 0x5c00) /* SCLR */ |
| 948 | 1067 | { |
| 949 | 1068 | doclr16(fifo[0],fifo[1],&rwp,fifo[2],fifo[3]); |
| 950 | 1069 | |
| 951 | /* | |
| 952 | 1070 | { |
| 953 | 1071 | int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3]; |
| 954 | 1072 | if (fifo2<0) fifo2 *= -1; |
| 955 | 1073 | if (fifo3<0) fifo3 *= -1; |
| 956 | 1074 | rwp += ((fifo2+1)*(fifo3+1)); |
| 957 | 1075 | } |
| 958 | ||
| 1076 | ||
| 959 | 1077 | } |
| 960 | 1078 | else if ((fifo[0] & 0xf0ff) == 0x6000) /* CPY */ |
| 961 | 1079 | { |
| 962 | 1080 | docpy16(fifo[0],((fifo[1] & 0x00ff) << 12) | ((fifo[2] & 0xfff0) >> 4),&rwp,fifo[3],fifo[4]); |
| 963 | 1081 | |
| 964 | /* | |
| 965 | 1082 | { |
| 966 | 1083 | int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3]; |
| 967 | 1084 | if (fifo2<0) fifo2 *= -1; |
| 968 | 1085 | if (fifo3<0) fifo3 *= -1; |
| 969 | 1086 | rwp += ((fifo2+1)*(fifo3+1)); |
| 970 | 1087 | } |
| 971 | ||
| 1088 | ||
| 972 | 1089 | } |
| 973 | 1090 | else if ((fifo[0] & 0xf0fc) == 0x7000) /* SCPY */ |
| 974 | 1091 | { |
| 975 | 1092 | docpy16(fifo[0],((fifo[1] & 0x00ff) << 12) | ((fifo[2] & 0xfff0) >> 4),&rwp,fifo[3],fifo[4]); |
| 976 | 1093 | |
| 977 | /* | |
| 978 | 1094 | { |
| 979 | 1095 | int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3]; |
| 980 | 1096 | if (fifo2<0) fifo2 *= -1; |
| 981 | 1097 | if (fifo3<0) fifo3 *= -1; |
| 982 | 1098 | rwp += ((fifo2+1)*(fifo3+1)); |
| 983 | 1099 | } |
| 984 | ||
| 1100 | ||
| 985 | 1101 | } |
| 986 | 1102 | else if (fifo[0] == 0x8000) /* AMOVE */ |
| 987 | 1103 | { |
| r3115 | r3116 | |
| 995 | 1111 | } |
| 996 | 1112 | else if ((fifo[0] & 0xff00) == 0x8800) /* ALINE */ |
| 997 | 1113 | { |
| 998 | line(cpx,cpy,fifo[1],fifo[2],fifo[0]& | |
| 1114 | line(cpx,cpy,fifo[1],fifo[2],fifo[0] & 0xff); | |
| 999 | 1115 | cpx = (INT16)fifo[1]; |
| 1000 | 1116 | cpy = (INT16)fifo[2]; |
| 1001 | 1117 | } |
| 1002 | 1118 | else if ((fifo[0] & 0xff00) == 0x8c00) /* RLINE */ |
| 1003 | 1119 | { |
| 1004 | line(cpx,cpy,cpx+(INT16)fifo[1],cpy+(INT16)fifo[2],fifo[0]& | |
| 1120 | line(cpx,cpy,cpx+(INT16)fifo[1],cpy+(INT16)fifo[2],fifo[0] & 0xff); | |
| 1005 | 1121 | cpx += (INT16)fifo[1]; |
| 1006 | 1122 | cpy += (INT16)fifo[2]; |
| 1007 | 1123 | } |
| 1008 | 1124 | else if ((fifo[0] & 0xfff8) == 0x9000) /* ARCT */ |
| 1009 | 1125 | { |
| 1010 | line(cpx,cpy,(INT16)fifo[1],cpy,fifo[0]&7); | |
| 1011 | line((INT16)fifo[1],cpy,(INT16)fifo[1],(INT16)fifo[2],fifo[0]&7); | |
| 1012 | line((INT16)fifo[1],(INT16)fifo[2],cpx,(INT16)fifo[2],fifo[0]&7); | |
| 1013 | line(cpx,(INT16)fifo[2],cpx,cpy,fifo[0]&7); | |
| 1126 | line(cpx,cpy,(INT16)fifo[1],cpy,fifo[0] & 0xff); | |
| 1127 | line((INT16)fifo[1],cpy,(INT16)fifo[1],(INT16)fifo[2],fifo[0] & 0xff); | |
| 1128 | line((INT16)fifo[1],(INT16)fifo[2],cpx,(INT16)fifo[2],fifo[0] & 0xff); | |
| 1129 | line(cpx,(INT16)fifo[2],cpx,cpy,fifo[0] & 0xff); | |
| 1014 | 1130 | cpx = (INT16)fifo[1]; |
| 1015 | 1131 | cpy = (INT16)fifo[2]; |
| 1016 | 1132 | } |
| 1017 | 1133 | else if ((fifo[0] & 0xfff8) == 0x9400) /* RRCT added*/ |
| 1018 | 1134 | { |
| 1019 | line(cpx,cpy,cpx+(INT16)fifo[1],cpy,fifo[0]&7); | |
| 1020 | line(cpx+(INT16)fifo[1],cpy,cpx+(INT16)fifo[1],cpy+(INT16)fifo[2],fifo[0]&7); | |
| 1021 | line(cpx+(INT16)fifo[1],cpy+(INT16)fifo[2],cpx,cpy+(INT16)fifo[2],fifo[0]&7); | |
| 1022 | line(cpx,cpy+(INT16)fifo[2],cpx,cpy,fifo[0]&7); | |
| 1135 | line(cpx,cpy,cpx+(INT16)fifo[1],cpy,fifo[0] & 0xff); | |
| 1136 | line(cpx+(INT16)fifo[1],cpy,cpx+(INT16)fifo[1],cpy+(INT16)fifo[2],fifo[0] & 0xff); | |
| 1137 | line(cpx+(INT16)fifo[1],cpy+(INT16)fifo[2],cpx,cpy+(INT16)fifo[2],fifo[0] & 0xff); | |
| 1138 | line(cpx,cpy+(INT16)fifo[2],cpx,cpy,fifo[0] & 0xff); | |
| 1023 | 1139 | |
| 1024 | 1140 | cpx += (INT16)fifo[1]; |
| 1025 | 1141 | cpy += (INT16)fifo[2]; |
| r3115 | r3116 | |
| 1056 | 1172 | { |
| 1057 | 1173 | for (;;) |
| 1058 | 1174 | { |
| 1059 | dot(xx,yy,fifo[0] & 0x0 | |
| 1175 | dot(xx,yy,fifo[0] & 0x0 | |
| 1060 | 1176 | |
| 1061 | 1177 | if (ax == 0) break; |
| 1062 | 1178 | else if (ax > 0) |
| r3115 | r3116 | |
| 1090 | 1206 | } |
| 1091 | 1207 | else if ((fifo[0] & 0xfff8) == 0xc400) /* RFRCT added TODO*/ |
| 1092 | 1208 | { |
| 1093 | line(cpx,cpy,cpx+(INT16)fifo[1],cpy,fifo[0]&7); | |
| 1094 | line(cpx+fifo[1],cpy,cpx+fifo[1],cpy+fifo[2],fifo[0]&7); | |
| 1095 | line(cpx+fifo[1],cpy+fifo[2],cpx,cpy+fifo[2],fifo[0]&7); | |
| 1096 | line(cpx,cpy+fifo[2],cpx,cpy,fifo[0]&7); | |
| 1209 | line(cpx,cpy,cpx+(INT16)fifo[1],cpy,fifo[0] & 0xff); | |
| 1210 | line(cpx+fifo[1],cpy,cpx+fifo[1],cpy+fifo[2],fifo[0] & 0xff); | |
| 1211 | line(cpx+fifo[1],cpy+fifo[2],cpx,cpy+fifo[2],fifo[0] & 0xff); | |
| 1212 | line(cpx,cpy+fifo[2],cpx,cpy,fifo[0] & 0xff); | |
| 1097 | 1213 | |
| 1098 | 1214 | cpx=cpx+(INT16)fifo[1]; |
| 1099 | 1215 | cpy=cpy+(INT16)fifo[2]; |
| 1100 | 1216 | } |
| 1217 | else if (fifo[0] == 0xc800) /* PAINT */ | |
| 1218 | { | |
| 1219 | paint(cpx,cpy,cl0); | |
| 1220 | } | |
| 1101 | 1221 | else if ((fifo[0] & 0xfff8) == 0xcc00) /* DOT */ |
| 1102 | 1222 | { |
| 1103 | dot(cpx,cpy,fifo[0] & 0x | |
| 1223 | dot(cpx,cpy,fifo[0] & 0xff | |
| 1104 | 1224 | } |
| 1105 | 1225 | else if ((fifo[0] & 0xf000) == 0xd000) /* PTN (to do) */ |
| 1106 | 1226 | { |
| 1107 | // if ((fifo[0] & 0x0700) == 0x0400) printf("4"); | |
| 1108 | ptn(fifo[0] & 0x0007,psx,psy,pex - psx,pey - psy); | |
| 1227 | ptn(fifo[0],psx,psy,pex - psx,pey - psy); | |
| 1109 | 1228 | |
| 1110 | cpx += pex - psx; | |
| 1111 | cpy += pey - psy; | |
| 1229 | if ((fifo[0] & 0x0800) == 0x0000) | |
| 1230 | switch (fifo[0] & 0x0700) | |
| 1231 | { | |
| 1232 | case 0x0000: | |
| 1233 | if ((pey - psy) > 0) | |
| 1234 | cpy += (pey - psy); | |
| 1235 | else | |
| 1236 | cpy -= (pey - psy); | |
| 1237 | break; | |
| 1238 | case 0x0100: | |
| 1239 | // missing | |
| 1240 | break; | |
| 1241 | case 0x0200: | |
| 1242 | if ((pey - psy) > 0) | |
| 1243 | cpx += (pey - psy); | |
| 1244 | else | |
| 1245 | cpx -= (pey - psy); | |
| 1246 | break; | |
| 1247 | case 0x0300: | |
| 1248 | // missing | |
| 1249 | break; | |
| 1250 | case 0x0400: | |
| 1251 | if ((pey - psy) > 0) | |
| 1252 | cpy -= (pey - psy); | |
| 1253 | else | |
| 1254 | cpy += (pey - psy); | |
| 1255 | break; | |
| 1256 | case 0x0500: | |
| 1257 | // missing | |
| 1258 | break; | |
| 1259 | case 0x0600: | |
| 1260 | if ((pey - psy) > 0) | |
| 1261 | cpx -= (pey - psy); | |
| 1262 | else | |
| 1263 | cpx += (pey - psy); | |
| 1264 | break; | |
| 1265 | case 0x0700: | |
| 1266 | // missing | |
| 1267 | break; | |
| 1268 | } | |
| 1269 | else | |
| 1270 | { | |
| 1271 | // missing | |
| 1272 | } | |
| 1112 | 1273 | } |
| 1113 | else if ((fifo[0] & 0xf0 | |
| 1274 | else if ((fifo[0] & 0xf018) == 0xe000) /* AGCPY */ | |
| 1114 | 1275 | { |
| 1115 | agcpy(fifo[0],fifo[1],fifo[2],cpx,cpy,fifo[3],fifo[4]); | |
| 1276 | agcpy(fifo[0],(INT16)fifo[1],(INT16)fifo[2],cpx,cpy,fifo[3],fifo[4]); | |
| 1116 | 1277 | |
| 1117 | cpx += fifo[4]; | |
| 1118 | cpy += fifo[3]; | |
| 1278 | switch (fifo[0] & 0x0700) | |
| 1279 | { | |
| 1280 | case 0x0000: | |
| 1281 | if (fifo[4] > 0) | |
| 1282 | cpy += fifo[4]; | |
| 1283 | else | |
| 1284 | cpy -= fifo[4]; | |
| 1285 | break; | |
| 1286 | case 0x0100: | |
| 1287 | if (fifo[4] > 0) | |
| 1288 | cpy -= fifo[4]; | |
| 1289 | else | |
| 1290 | cpy += fifo[4]; | |
| 1291 | break; | |
| 1292 | case 0x0200: | |
| 1293 | if (fifo[4] > 0) | |
| 1294 | cpy += fifo[4]; | |
| 1295 | else | |
| 1296 | cpy -= fifo[4]; | |
| 1297 | break; | |
| 1298 | case 0x0300: | |
| 1299 | if (fifo[4] > 0) | |
| 1300 | cpy -= fifo[4]; | |
| 1301 | else | |
| 1302 | cpy += fifo[4]; | |
| 1303 | break; | |
| 1304 | case 0x0400: | |
| 1305 | if (fifo[3] > 0) | |
| 1306 | cpx += fifo[3]; | |
| 1307 | else | |
| 1308 | cpx -= fifo[3]; | |
| 1309 | break; | |
| 1310 | case 0x0500: | |
| 1311 | if (fifo[3] > 0) | |
| 1312 | cpx += fifo[3]; | |
| 1313 | else | |
| 1314 | cpx -= fifo[3]; | |
| 1315 | break; | |
| 1316 | case 0x0600: | |
| 1317 | if (fifo[3] > 0) | |
| 1318 | cpx -= fifo[3]; | |
| 1319 | else | |
| 1320 | cpx += fifo[3]; | |
| 1321 | break; | |
| 1322 | case 0x0700: | |
| 1323 | if (fifo[3] > 0) | |
| 1324 | cpx -= fifo[3]; | |
| 1325 | else | |
| 1326 | cpx += fifo[3]; | |
| 1327 | break; | |
| 1328 | } | |
| 1119 | 1329 | } |
| 1120 | 1330 | else |
| 1121 | { | |
| 1122 | logerror("unsupported command\n"); | |
| 1123 | popmessage("unsupported command %s (%04x)",instruction_name[fifo[0]>>10],fifo[0]); | |
| 1124 | } | |
| 1331 | { | |
| 1332 | logerror("unsupported command\n"); | |
| 1333 | popmessage("unsupported command %s (%04x)",instruction_name[fifo[0]>>10],fifo[0]); | |
| 1334 | } | |
| 1125 | 1335 | |
| 1126 | 1336 | fifo_counter = 0; |
| 1127 | 1337 | } |
| r3115 | r3116 | |
|---|---|---|
| 538 | 538 | add_exit_callback(machine, ygv608_exit); |
| 539 | 539 | } |
| 540 | 540 | |
| 541 | static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect | |
| 541 | static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect | |
| 542 | 542 | { |
| 543 | 543 | #ifdef _ENABLE_SPRITES |
| 544 | 544 | |
| 545 | 545 | // sprites are always clipped to 512x512 |
| 546 | 546 | // - regardless of the visible display dimensions |
| 547 | | |
| 547 | | |
| 548 | 548 | |
| 549 | 549 | PSPRITE_ATTR sa; |
| 550 | 550 | int flipx = 0, flipy = 0; |
| r3115 | r3116 | |
|---|---|---|
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "video/resnet.h" |
| 12 | 12 | #include "includes/dkong.h" |
| 13 | #include "machine/latch8.h" | |
| 13 | 14 | |
| 14 | 15 | #define RADARSCP_BCK_COL_OFFSET 256 |
| 15 | 16 | #define RADARSCP_GRID_COL_OFFSET (RADARSCP_BCK_COL_OFFSET + 256) |
| r3115 | r3116 | |
| 60 | 61 | |
| 61 | 62 | static const res_net_decode_info dkong_decode_info = |
| 62 | 63 | { |
| 63 | 2, // there may be two proms needed to construct color | |
| 64 | 0, // start at 0 | |
| 65 | 255, // end at 255 | |
| 66 | // R, G, B, R, G, B | |
| 67 | { 256, 256, 0, 0, 0, 0}, // offsets | |
| 68 | { 1, -2, 0, 0, 2, 0}, // shifts | |
| 69 | {0x07,0x04,0x03,0x00,0x03,0x00} // masks | |
| 64 | 2, /* there may be two proms needed to construct color */ | |
| 65 | 0, /* start at 0 */ | |
| 66 | 255, /* end at 255 */ | |
| 67 | /* R, G, B, R, G, B */ | |
| 68 | { 256, 256, 0, 0, 0, 0}, /* offsets */ | |
| 69 | { 1, -2, 0, 0, 2, 0}, /* shifts */ | |
| 70 | {0x07,0x04,0x03,0x00,0x03,0x00} /* masks */ | |
| 70 | 71 | }; |
| 71 | 72 | |
| 72 | 73 | static const res_net_info dkong_net_info = |
| r3115 | r3116 | |
| 75 | 76 | { |
| 76 | 77 | { RES_NET_AMP_DARLINGTON, 470, 0, 3, { 1000, 470, 220 } }, |
| 77 | 78 | { RES_NET_AMP_DARLINGTON, 470, 0, 3, { 1000, 470, 220 } }, |
| 78 | { RES_NET_AMP_EMITTER, 680, 0, 2, { 470, 220, 0 } } / | |
| 79 | { RES_NET_AMP_EMITTER, 680, 0, 2, { 470, 220, 0 } } /* dkong */ | |
| 79 | 80 | } |
| 80 | 81 | }; |
| 81 | 82 | |
| r3115 | r3116 | |
| 91 | 92 | |
| 92 | 93 | static const res_net_decode_info dkong3_decode_info = |
| 93 | 94 | { |
| 94 | 1, // one prom needed to contruct color | |
| 95 | 0, // start at 0 | |
| 96 | 255, // end at 255 | |
| 97 | // R, G, B | |
| 98 | { 0, 0, 512 }, // offsets | |
| 99 | { 4, 0, 0 }, // shifts | |
| 100 | {0x0F,0x0F,0x0F } // masks | |
| 95 | 1, /* one prom needed to contruct color */ | |
| 96 | 0, /* start at 0 */ | |
| 97 | 255, /* end at 255 */ | |
| 98 | /* R, G, B */ | |
| 99 | { 0, 0, 512 }, /* offsets */ | |
| 100 | { 4, 0, 0 }, /* shifts */ | |
| 101 | {0x0F,0x0F,0x0F } /* masks */ | |
| 101 | 102 | }; |
| 102 | 103 | |
| 103 | 104 | static const res_net_info dkong3_net_info = |
| r3115 | r3116 | |
| 124 | 125 | { |
| 125 | 126 | { RES_NET_AMP_DARLINGTON, 470, 0, 3, { 1000, 470, 220 } }, |
| 126 | 127 | { RES_NET_AMP_DARLINGTON, 470, 0, 3, { 1000, 470, 220 } }, |
| 127 | { RES_NET_AMP_DARLINGTON, 680, 150000, 2, { 470, 220, 0 } } / | |
| 128 | { RES_NET_AMP_DARLINGTON, 680, 150000, 2, { 470, 220, 0 } } /* radarscp */ | |
| 128 | 129 | } |
| 129 | 130 | }; |
| 130 | 131 | |
| r3115 | r3116 | |
| 134 | 135 | { |
| 135 | 136 | { RES_NET_AMP_DARLINGTON, 470, 0, 0, { 0 } }, |
| 136 | 137 | { RES_NET_AMP_DARLINGTON, 470, 0, 0, { 0 } }, |
| 137 | { RES_NET_AMP_DARLINGTON, 680, 150000, 0, { 0 } } / | |
| 138 | { RES_NET_AMP_DARLINGTON, 680, 150000, 0, { 0 } } /* radarscp */ | |
| 138 | 139 | } |
| 139 | 140 | }; |
| 140 | 141 | |
| r3115 | r3116 | |
| 163 | 164 | RES_NET_VCC_5V | RES_NET_VBIAS_5V | RES_NET_VIN_TTL_OUT | RES_NET_MONITOR_SANYO_EZV20, |
| 164 | 165 | { |
| 165 | 166 | { RES_NET_AMP_DARLINGTON, 4700, 470, 0, { 0 } }, |
| 166 | { RES_NET_AMP_DARLINGTON, 1, 0, 0, { 0 } }, // dummy | |
| 167 | { RES_NET_AMP_DARLINGTON, 1, 0, 0, { 0 } }, // dummy | |
| 167 | { RES_NET_AMP_DARLINGTON, 1, 0, 0, { 0 } }, /* dummy */ | |
| 168 | { RES_NET_AMP_DARLINGTON, 1, 0, 0, { 0 } }, /* dummy */ | |
| 168 | 169 | } |
| 169 | 170 | }; |
| 170 | 171 | |
| r3115 | r3116 | |
| 174 | 175 | { |
| 175 | 176 | RES_NET_VCC_5V | RES_NET_VBIAS_5V | RES_NET_VIN_VCC | RES_NET_MONITOR_SANYO_EZV20, |
| 176 | 177 | { |
| 177 | { RES_NET_AMP_DARLINGTON, 470, 4700, 0, { 0 } }, // bias/gnd exist in schematics, readable in TKG3 schematics | |
| 178 | { RES_NET_AMP_DARLINGTON, 470, 4700, 0, { 0 } }, // bias/gnd exist in schematics, readable in TKG3 schematics | |
| 179 | { RES_NET_AMP_DARLINGTON, 0, 0, 8, { 128,64,32,16,8,4,2,1 } }, // dummy | |
| 178 | { RES_NET_AMP_DARLINGTON, 470, 4700, 0, { 0 } }, /* bias/gnd exist in schematics, readable in TKG3 schematics */ | |
| 179 | { RES_NET_AMP_DARLINGTON, 470, 4700, 0, { 0 } }, /* bias/gnd exist in schematics, readable in TKG3 schematics */ | |
| 180 | { RES_NET_AMP_DARLINGTON, 0, 0, 8, { 128,64,32,16,8,4,2,1 } }, /* dummy */ | |
| 180 | 181 | } |
| 181 | 182 | }; |
| 182 | 183 | |
| r3115 | r3116 | |
| 186 | 187 | { |
| 187 | 188 | RES_NET_VCC_5V | RES_NET_VBIAS_5V | RES_NET_VIN_TTL_OUT | RES_NET_MONITOR_SANYO_EZV20, |
| 188 | 189 | { |
| 189 | { RES_NET_AMP_DARLINGTON, 0, 0, 1, { 1 } }, // dummy | |
| 190 | { RES_NET_AMP_DARLINGTON, 0, 0, 1, { 1 } }, // dummy | |
| 191 | { RES_NET_AMP_DARLINGTON, 0, 0, 1, { 1 } }, // dummy | |
| 190 | { RES_NET_AMP_DARLINGTON, 0, 0, 1, { 1 } }, /* dummy */ | |
| 191 | { RES_NET_AMP_DARLINGTON, 0, 0, 1, { 1 } }, /* dummy */ | |
| 192 | { RES_NET_AMP_DARLINGTON, 0, 0, 1, { 1 } }, /* dummy */ | |
| 192 | 193 | } |
| 193 | 194 | }; |
| 194 | 195 | |
| r3115 | r3116 | |
| 210 | 211 | /* Now treat tri-state black background generation */ |
| 211 | 212 | |
| 212 | 213 | for (i=0;i<256;i++) |
| 213 | if ( (i & 0x03) == 0x00 ) / | |
| 214 | if ( (i & 0x03) == 0x00 ) /* NOR => CS=1 => Tristate => real black */ | |
| 214 | 215 | { |
| 215 | 216 | int r,g,b; |
| 216 | 217 | r = compute_res_net( 1, 0, &dkong_net_bck_info ); |
| r3115 | r3116 | |
| 250 | 251 | /* Now treat tri-state black background generation */ |
| 251 | 252 | |
| 252 | 253 | for (i=0;i<256;i++) |
| 253 | if ( (i & 0x03) == 0x00 ) / | |
| 254 | if ( (i & 0x03) == 0x00 ) /* NOR => CS=1 => Tristate => real black */ | |
| 254 | 255 | { |
| 255 | 256 | r = compute_res_net( 1, 0, &radarscp_net_bck_info ); |
| 256 | 257 | g = compute_res_net( 1, 1, &radarscp_net_bck_info ); |
| r3115 | r3116 | |
| 288 | 289 | /* Now treat tri-state black background generation */ |
| 289 | 290 | |
| 290 | 291 | for (i=0;i<256;i++) |
| 291 | if ( (i & 0x03) == 0x00 ) / | |
| 292 | if ( (i & 0x03) == 0x00 ) /* NOR => CS=1 => Tristate => real black */ | |
| 292 | 293 | { |
| 293 | 294 | r = compute_res_net( 1, 0, &radarscp_net_bck_info ); |
| 294 | 295 | g = compute_res_net( 1, 1, &radarscp_net_bck_info ); |
| r3115 | r3116 | |
| 352 | 353 | /* Now treat tri-state black background generation */ |
| 353 | 354 | |
| 354 | 355 | for (i=0;i<256;i++) |
| 355 | if ( (i & 0x03) == 0x00 ) / | |
| 356 | if ( (i & 0x03) == 0x00 ) /* NOR => CS=1 => Tristate => real black */ | |
| 356 | 357 | { |
| 357 | 358 | r = compute_res_net( 0, 0, &radarsc1_net_info ); |
| 358 | 359 | g = compute_res_net( 0, 1, &radarsc1_net_info ); |
| r3115 | r3116 | |
| 480 | 481 | } |
| 481 | 482 | } |
| 482 | 483 | |
| 483 | WRITE8_HANDLER( radarscp_snd02_w ) | |
| 484 | { | |
| 485 | dkong_state *state = machine->driver_data; | |
| 486 | ||
| 487 | state->snd02_enable = data & 0x01; | |
| 488 | } | |
| 489 | ||
| 490 | WRITE8_HANDLER( radarsc1_ansn_w ) | |
| 491 | { | |
| 492 | dkong_state *state = machine->driver_data; | |
| 493 | ||
| 494 | state->sig_ansn = data & 0x01; | |
| 495 | } | |
| 496 | ||
| 497 | 484 | WRITE8_HANDLER( dkongjr_gfxbank_w ) |
| 498 | 485 | { |
| 499 | 486 | dkong_state *state = machine->driver_data; |
| r3115 | r3116 | |
| 547 | 534 | dkong_state *state = machine->driver_data; |
| 548 | 535 | |
| 549 | 536 | state->grid_col = (data & 0x07) ^ 0x07; |
| 550 | / | |
| 537 | /* popmessage("Gridcol: %d", state->grid_col); */ | |
| 551 | 538 | } |
| 552 | 539 | |
| 553 | 540 | WRITE8_HANDLER( dkong_flipscreen_w ) |
| r3115 | r3116 | |
| 716 | 703 | * a period of roughly 4.4 ms |
| 717 | 704 | */ |
| 718 | 705 | |
| 719 | #define RC1 (2.2e3 * 22e-6) / | |
| 706 | #define RC1 (2.2e3 * 22e-6) /* 22e-6; */ | |
| 720 | 707 | #define RC2 (10e3 * 33e-6) |
| 721 | 708 | #define RC31 (18e3 * 33e-6) |
| 722 | 709 | #define RC32 ((18e3 + 68e3) * 33e-6) |
| 723 | 710 | #define RC4 (90e3 * 0.47e-6) |
| 724 | 711 | #define dt (1./60./(double) VTOTAL) |
| 725 | #define period2 (((INT64)(PIXEL_CLOCK) * ( 33L * 68L )) / (INT32)10000000L / 3) / | |
| 712 | #define period2 (((INT64)(PIXEL_CLOCK) * ( 33L * 68L )) / (INT32)10000000L / 3) /* period/2 in pixel ... */ | |
| 726 | 713 | |
| 727 | 714 | static void radarscp_step(running_machine *machine, int line_cnt) |
| 728 | 715 | { |
| 729 | 716 | dkong_state *state = machine->driver_data; |
| 717 | const device_config *dev6h = devtag_get_device(machine, LATCH8, "ls259.6h"); | |
| 718 | const device_config *devvp2 = devtag_get_device(machine, LATCH8, "virtual_p2"); | |
| 719 | ||
| 730 | 720 | /* Condensator is illegible in schematics for TRS2 board. |
| 731 | 721 | * TRS1 board states 3.3u. |
| 732 | 722 | */ |
| r3115 | r3116 | |
| 753 | 743 | if ( ( !(line_cnt & 0x40) && ((line_cnt+1) & 0x40) ) && (mame_rand(machine) > RAND_MAX/2)) |
| 754 | 744 | state->sig30Hz = (1-state->sig30Hz); |
| 755 | 745 | |
| 756 | state->rflip_sig = state->snd02_enable & state->sig30Hz; | |
| 746 | /* Now mix with SND02 (sound 2) line - on 74ls259, bit2 */ | |
| 747 | state->rflip_sig = latch8_bit2_r(dev6h, 0) & state->sig30Hz; | |
| 748 | ||
| 757 | 749 | sig = state->rflip_sig ^ ((line_cnt & 0x80)>>7); |
| 758 | 750 | |
| 759 | 751 | if (state->hardware_type == HARDWARE_TRS01) |
| 760 | 752 | state->rflip_sig = !state->rflip_sig; |
| 761 | 753 | |
| 762 | if (sig) / | |
| 754 | if (sig) /* 128VF */ | |
| 763 | 755 | diff = (0.0 - cv1); |
| 764 | 756 | else |
| 765 | 757 | diff = (3.4 - cv1); |
| r3115 | r3116 | |
| 781 | 773 | |
| 782 | 774 | state->blue_level = (int)(vg3/5.0*255); |
| 783 | 775 | |
| 784 | // Grid signal | |
| 785 | if (state->grid_on && state->sig_ansn) | |
| 776 | /* | |
| 777 | * Grid signal | |
| 778 | * | |
| 779 | * Mixed with ANS line (bit 5) from Port B of 8039 | |
| 780 | */ | |
| 781 | if (state->grid_on && latch8_bit5_r(devvp2, 0)) | |
| 786 | 782 | { |
| 787 | 783 | diff = (0.0 - cv3); |
| 788 | 784 | diff = diff - diff*exp(0.0 - (1.0/RC32 * dt) ); |
| r3115 | r3116 | |
| 798 | 794 | diff = diff - diff*exp(0.0 - (1.0/RC4 * dt) ); |
| 799 | 795 | cv4 += diff; |
| 800 | 796 | |
| 801 | if (CD4049(machine, CD4049(machine, vg2 - cv4))>2.4/5.0) / | |
| 797 | if (CD4049(machine, CD4049(machine, vg2 - cv4))>2.4/5.0) /* TTL - Level */ | |
| 802 | 798 | state->grid_sig = 0; |
| 803 | 799 | else |
| 804 | 800 | state->grid_sig = 1; |
| r3115 | r3116 | |
| 831 | 827 | { |
| 832 | 828 | pixel = BITMAP_ADDR16(bitmap, y, x); |
| 833 | 829 | draw_ok = !(*pixel & 0x01) && !(*pixel & 0x02); |
| 834 | if (state->hardware_type == HARDWARE_TRS01) / | |
| 830 | if (state->hardware_type == HARDWARE_TRS01) /* Check again from schematics */ | |
| 835 | 831 | draw_ok = draw_ok && !((htable[ (!state->rflip_sig<<7) | (x>>2)] >>2) & 0x01); |
| 836 | 832 | if (draw_ok) |
| 837 | 833 | *pixel = *(BITMAP_ADDR16(state->bg_bits, y, x)); |
| r3115 | r3116 | |
| 930 | 926 | state->gfx_bank = 0; |
| 931 | 927 | state->palette_bank = 0; |
| 932 | 928 | state->sprite_bank = 0; |
| 933 | state->sig_ansn = 1; | |
| 934 | 929 | state->vidhw = -1; |
| 935 | 930 | |
| 936 | 931 | state_save_register_global(state->gfx_bank); |
| r3115 | r3116 | |
| 938 | 933 | state_save_register_global(state->sprite_bank); |
| 939 | 934 | state_save_register_global(state->grid_on); |
| 940 | 935 | |
| 941 | state_save_register_global(state->snd02_enable); | |
| 942 | state_save_register_global(state->sig_ansn); | |
| 943 | 936 | state_save_register_global(state->grid_col); |
| 944 | 937 | state_save_register_global(state->flip); |
| 945 | 938 | } |
| r3115 | r3116 | |
|---|---|---|
| 529 | 529 | } |
| 530 | 530 | else if( m_n_debuginterleave == 1 ) |
| 531 | 531 | { |
| 532 | n_xi = ( n_x & ~0x78 ) + ( ( n_x << 3 ) & 0x40 ) + ( ( n_y << 3 ) & 0x38 ); \ | |
| 533 | n_yi = ( n_y & ~0x7 ) + ( ( n_x >> 4 ) & 0x7 ); \ | |
| 532 | n_xi = ( n_x & ~0x78 ) + ( ( n_x << 3 ) & 0x40 ) + ( ( n_y << 3 ) & 0x38 ); | |
| 533 | n_yi = ( n_y & ~0x7 ) + ( ( n_x >> 4 ) & 0x7 ); | |
| 534 | 534 | } |
| 535 | 535 | else |
| 536 | 536 | { |
| r3115 | r3116 | |
|---|---|---|
| 2 | 2 | #include "cpu/z80/z80.h" |
| 3 | 3 | #include "snk.h" |
| 4 | 4 | |
| 5 | int marvins_gamegroup; | |
| 6 | ||
| 5 | 7 | static int flipscreen, sprite_flip_adjust; |
| 6 | 8 | static tilemap *fg_tilemap, *bg_tilemap, *tx_tilemap; |
| 7 | 9 | static UINT8 bg_color, fg_color, old_bg_color, old_fg_color; |
| r3115 | r3116 | |
| 170 | 172 | |
| 171 | 173 | { |
| 172 | 174 | tilemap_clip = *video_screen_get_visible_area(machine->primary_screen); |
| 173 | if ( | |
| 175 | if (marvins_gamegroup != 1) // not Mad Crasher | |
| 174 | 176 | { |
| 175 | 177 | tilemap_clip.max_x-=16; |
| 176 | 178 | tilemap_clip.min_x+=16; |
| r3115 | r3116 | |
| 180 | 182 | tilemap_set_transparent_pen(bg_tilemap,0xf); |
| 181 | 183 | tilemap_set_transparent_pen(tx_tilemap,0xf); |
| 182 | 184 | |
| 183 | switch ( | |
| 185 | switch (marvins_gamegroup) | |
| 184 | 186 | { |
| 185 | 187 | case 0: // Marvin's Maze |
| 186 | 188 | tilemap_set_scrolldx( bg_tilemap, 271, 287 ); |
| r3115 | r3116 | |
| 418 | 420 | |
| 419 | 421 | cpuintrf_push_context(0); |
| 420 | 422 | { |
| 421 | int madcrash_vreg = ( | |
| 423 | int madcrash_vreg = (marvins_gamegroup == 1) ? 0x00 : 0xf1; // Mad Crasher=0x00, VanguardII=0xf1 | |
| 422 | 424 | |
| 423 | 425 | UINT8 sprite_partition = program_read_byte(0xfa00); |
| 424 | 426 |
| r3115 | r3116 | |
|---|---|---|
| 1280 | 1280 | {"sf2v004", CPS_B_21_DEF, mapper_S9263B, 0x36 }, |
| 1281 | 1281 | {"sf2accp2", CPS_B_21_DEF, mapper_S9263B, 0x36 }, |
| 1282 | 1282 | {"sf2m1", CPS_B_21_DEF, mapper_S9263B, 0x36 }, |
| 1283 | {"sf2m2", CPS_B_21_DEF, mapper_S9263B, 0x36 }, | |
| 1283 | {"sf2m2", CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 }, | |
| 1284 | 1284 | {"sf2m3", CPS_B_21_DEF, mapper_S9263B, 0x36 }, |
| 1285 | 1285 | {"sf2m4", HACK_B_1, mapper_S9263B, 0x36, 0, 0, 1 }, |
| 1286 | 1286 | {"sf2m5", CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 }, |
| r3115 | r3116 | |
| 1556 | 1556 | cps1_cps_b_regs[cps1_game_config->mult_factor2/2]) >> 16; |
| 1557 | 1557 | |
| 1558 | 1558 | if (offset == cps1_game_config->in2_addr/2) /* Extra input ports (on C-board) */ |
| 1559 | { | |
| 1560 | if (cps1_game_config->bootleg_kludge == 1) | |
| 1561 | return input_port_read(machine, "IN2") << 8; | |
| 1562 | else | |
| 1563 | return input_port_read(machine, "IN2"); | |
| 1564 | } | |
| 1559 | return input_port_read(machine, "IN2"); | |
| 1565 | 1560 | |
| 1566 | 1561 | if (offset == cps1_game_config->in3_addr/2) /* Player 4 controls (on C-board) ("Captain Commando") */ |
| 1567 | 1562 | return input_port_read(machine, "IN3"); |
| r3115 | r3116 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | those using tnk3_vh_screenrefresh (tnk3, athena, fitegolf) sgladiat is similar |
| 17 | 17 | (0-7 , 6 is shadow, 7 is transparent) * these are using aso colour prom convert * |
| 18 | those using tdfever_vh_screenrefresh (tdfever) | |
| 19 | (0-15 , 14(13 for tdfeverj) is shadow, 15 is transparent) | |
| 20 | those using ftsoccer_vh_screenrefresh (ftsoccer) | |
| 21 | (0-15 , 14 is shadow/highlight, 15 is transparent) | |
| 22 | 18 | those using ikari_vh_screenrefresh (ikari, victroad) |
| 23 | 19 | (0-7 , 6 is shadow, 7 is transparent) |
| 20 | those using tdfever_vh_screenrefresh (tdfever, fsoccer) | |
| 21 | (0-15 , 14 is shadow, 15 is transparent) | |
| 24 | 22 | |
| 25 | 23 | *******************************************************************************/ |
| 26 | 24 | |
| 25 | UINT8 *snk_fg_videoram; | |
| 26 | UINT8 *snk_bg_videoram; | |
| 27 | 27 | |
| 28 | #define MAX_VRAM_SIZE (64*64*2) /* 0x2000 */ | |
| 28 | static tilemap *fg_tilemap; | |
| 29 | static tilemap *bg_tilemap; | |
| 30 | static int bg_scrollx, bg_scrolly, sp16_scrollx, sp16_scrolly, sp32_scrollx, sp32_scrolly; | |
| 31 | static UINT8 sprite_split_point; | |
| 32 | static int num_sprites, yscroll_mask; | |
| 29 | 33 | |
| 34 | static UINT8 empty_tile[16*16]; | |
| 30 | 35 | |
| 36 | /**************************************************************************************/ | |
| 31 | 37 | |
| 38 | PALETTE_INIT( tnk3 ) | |
| 39 | { | |
| 40 | int i; | |
| 41 | int num_colors = 0x400; | |
| 32 | 42 | |
| 33 | VIDEO_START( snk ) | |
| 43 | /* | |
| 44 | palette format is RRRG GGBB B??? the three unknown bits are used but | |
| 45 | I'm not sure how, I'm currently using them as least significant bit. | |
| 46 | */ | |
| 47 | for( i=0; i<num_colors; i++ ) | |
| 48 | { | |
| 49 | int bit0=0,bit1,bit2,bit3,r,g,b; | |
| 50 | ||
| 51 | bit0 = (color_prom[i + 2*num_colors] >> 2) & 0x01; | |
| 52 | bit1 = (color_prom[i] >> 1) & 0x01; | |
| 53 | bit2 = (color_prom[i] >> 2) & 0x01; | |
| 54 | bit3 = (color_prom[i] >> 3) & 0x01; | |
| 55 | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 56 | ||
| 57 | bit0 = (color_prom[i + 2*num_colors] >> 1) & 0x01; | |
| 58 | bit1 = (color_prom[i + num_colors] >> 2) & 0x01; | |
| 59 | bit2 = (color_prom[i + num_colors] >> 3) & 0x01; | |
| 60 | bit3 = (color_prom[i] >> 0) & 0x01; | |
| 61 | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 62 | ||
| 63 | bit0 = (color_prom[i + 2*num_colors] >> 0) & 0x01; | |
| 64 | bit1 = (color_prom[i + 2*num_colors] >> 3) & 0x01; | |
| 65 | bit2 = (color_prom[i + num_colors] >> 0) & 0x01; | |
| 66 | bit3 = (color_prom[i + num_colors] >> 1) & 0x01; | |
| 67 | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; | |
| 68 | ||
| 69 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); | |
| 70 | } | |
| 71 | } | |
| 72 | ||
| 73 | /**************************************************************************************/ | |
| 74 | ||
| 75 | static TILEMAP_MAPPER( tnk3_fg_scan_cols ) | |
| 34 | 76 | { |
| 35 | tmpbitmap = auto_bitmap_alloc(512, 512, video_screen_get_format(machine->primary_screen)); | |
| 77 | // tilemap is 36x28, the central part is from the first RAM page and the | |
| 78 | // extra 4 columns are from the second page | |
| 79 | col -= 2; | |
| 80 | if (col & 0x20) | |
| 81 | return 0x400 + row + ((col & 0x1f) << 5); | |
| 82 | else | |
| 83 | return row + (col << 5); | |
| 36 | 84 | } |
| 37 | 85 | |
| 86 | static TILE_GET_INFO( tnk3_get_fg_tile_info ) | |
| 87 | { | |
| 88 | int code = snk_fg_videoram[tile_index]; | |
| 89 | int color = code >> 5; | |
| 90 | SET_TILE_INFO(0, | |
| 91 | code, | |
| 92 | color, | |
| 93 | tile_index & 0x400 ? TILE_FORCE_LAYER0 : 0); | |
| 94 | } | |
| 38 | 95 | |
| 39 | ||
| 96 | static TILE | |
| 40 | 97 | { |
| 98 | int code = snk_fg_videoram[tile_index]; | |
| 99 | SET_TILE_INFO(0, | |
| 100 | code, | |
| 101 | 0, | |
| 102 | tile_index & 0x400 ? TILE_FORCE_LAYER0 : 0); | |
| 103 | } | |
| 104 | ||
| 105 | static TILE_GET_INFO( gwar_get_fg_tile_info ) | |
| 106 | { | |
| 107 | int code = snk_fg_videoram[tile_index]; | |
| 108 | SET_TILE_INFO(0, | |
| 109 | code, | |
| 110 | 0, | |
| 111 | 0); | |
| 112 | } | |
| 113 | ||
| 114 | ||
| 115 | static TILE_GET_INFO( aso_get_bg_tile_info ) | |
| 116 | { | |
| 117 | int code = snk_bg_videoram[tile_index]; | |
| 118 | SET_TILE_INFO(1, | |
| 119 | code, | |
| 120 | 0, | |
| 121 | 0); | |
| 122 | } | |
| 123 | ||
| 124 | static TILE_GET_INFO( tnk3_get_bg_tile_info ) | |
| 125 | { | |
| 126 | int attr = snk_bg_videoram[2*tile_index+1]; | |
| 127 | int code = snk_bg_videoram[2*tile_index] | ((attr & 0x30) << 4); | |
| 128 | int color = (attr & 0xf) ^ 8; | |
| 129 | SET_TILE_INFO(1, | |
| 130 | code, | |
| 131 | color, | |
| 132 | 0); | |
| 133 | } | |
| 134 | ||
| 135 | static TILE_GET_INFO( ikari_get_bg_tile_info ) | |
| 136 | { | |
| 137 | int attr = snk_bg_videoram[2*tile_index+1]; | |
| 138 | int code = snk_bg_videoram[2*tile_index] | ((attr & 0x03) << 8); | |
| 139 | int color = (attr & 0x70) >> 4; | |
| 140 | SET_TILE_INFO(1, | |
| 141 | code, | |
| 142 | color, | |
| 143 | 0); | |
| 144 | } | |
| 145 | ||
| 146 | static TILE_GET_INFO( gwar_get_bg_tile_info ) | |
| 147 | { | |
| 148 | int attr = snk_bg_videoram[2*tile_index+1]; | |
| 149 | int code = snk_bg_videoram[2*tile_index] | ((attr & 0x0f) << 8); | |
| 150 | int color = (attr & 0xf0) >> 4; | |
| 151 | SET_TILE_INFO(1, | |
| 152 | code, | |
| 153 | color, | |
| 154 | 0); | |
| 155 | ||
| 156 | // bermudat, tdfever use FFFF to blank the background. | |
| 157 | // (still call SET_TILE_INFO, otherwise problems might occur on boot when | |
| 158 | // the tile data hasn't been initialised) | |
| 159 | if (code >= machine->gfx[1]->total_elements) | |
| 160 | tileinfo->pen_data = empty_tile; | |
| 161 | } | |
| 162 | ||
| 163 | ||
| 164 | /**************************************************************************************/ | |
| 165 | ||
| 166 | static VIDEO_START( snk_3bpp_shadow ) | |
| 167 | { | |
| 41 | 168 | int i; |
| 42 | 169 | |
| 43 | VIDEO_START_CALL(snk); | |
| 44 | ||
| 45 | 170 | if(!(machine->config->video_attributes & VIDEO_HAS_SHADOWS)) |
| 46 | | |
| 171 | f | |
| 47 | 172 | |
| 48 | 173 | /* prepare shadow draw table */ |
| 49 | 174 | for(i = 0; i <= 5; i++) gfx_drawmode_table[i] = DRAWMODE_SOURCE; |
| r3115 | r3116 | |
| 54 | 179 | machine->shadow_table[i] = i | 0x200; |
| 55 | 180 | } |
| 56 | 181 | |
| 57 | VIDEO_START( snk_4bpp_shadow ) | |
| 182 | static VIDEO_START( snk_4bpp_shadow ) | |
| 58 | 183 | { |
| 59 | 184 | int i; |
| 60 | 185 | |
| 61 | VIDEO_START_CALL(snk); | |
| 62 | ||
| 63 | 186 | if(!(machine->config->video_attributes & VIDEO_HAS_SHADOWS)) |
| 64 | | |
| 187 | f | |
| 65 | 188 | |
| 66 | 189 | /* prepare shadow draw table */ |
| 67 | 190 | for(i = 0; i <= 13; i++) gfx_drawmode_table[i] = DRAWMODE_SOURCE; |
| r3115 | r3116 | |
| 69 | 192 | gfx_drawmode_table[15] = DRAWMODE_NONE; |
| 70 | 193 | |
| 71 | 194 | /* all palette entries are not affected by shadow sprites... */ |
| 72 | for (i = 0x00;i < 0x400;i++) | |
| 195 | for (i = 0x000;i < 0x400;i++) | |
| 73 | 196 | machine->shadow_table[i] = i; |
| 74 | 197 | /* ... except for tilemap colors */ |
| 75 | 198 | for (i = 0x200;i < 0x300;i++) |
| 76 | 199 | machine->shadow_table[i] = i + 0x100; |
| 77 | 200 | } |
| 78 | 201 | |
| 79 | /**************************************************************************************/ | |
| 80 | 202 | |
| 81 | static void tnk3_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int scrollx, int scrolly, | |
| 82 | int x_size, int y_size, int bg_type ) | |
| 203 | VIDEO_START( jcross ) | |
| 83 | 204 | { |
| 84 | | |
| 205 | VIDEO | |
| 85 | 206 | |
| 86 | int tile_number, attributes, color, sx, sy; | |
| 87 | int offs, x, y; | |
| 207 | fg_tilemap = tilemap_create(tnk3_get_fg_tile_info, tnk3_fg_scan_cols, 8, 8, 36, 28); | |
| 208 | bg_tilemap = tilemap_create(aso_get_bg_tile_info, tilemap_scan_cols, 8, 8, 64, 64); | |
| 88 | 209 | |
| 89 | /* to be moved to memmap */ | |
| 90 | for(x=0; x<x_size; x++) for(y=0; y<y_size; y++) | |
| 91 | { | |
| 92 | offs = (x*y_size + y) << 1; | |
| 93 | tile_number = videoram[offs]; | |
| 94 | attributes = videoram[offs+1]; | |
| 210 | tilemap_set_transparent_pen(fg_tilemap, 15); | |
| 211 | tilemap_set_scrolldy(fg_tilemap, 8, 8); | |
| 95 | 212 | |
| 96 | if(bg_type == 0) | |
| 97 | { | |
| 98 | /* type tnk3 */ | |
| 99 | tile_number |= (attributes & 0x30) << 4; | |
| 100 | color = (attributes & 0xf) ^ 8; | |
| 101 | } | |
| 102 | else | |
| 103 | { | |
| 104 | /* type ikari */ | |
| 105 | tile_number |= (attributes & 0x03) << 8; | |
| 106 | color = attributes >> 4; | |
| 107 | } | |
| 213 | tilemap_set_scrolldx(bg_tilemap, 15, 24); | |
| 214 | tilemap_set_scrolldy(bg_tilemap, 8, -32); | |
| 108 | 215 | |
| 109 | sx = x * 512 / x_size; | |
| 110 | sy = y * 512 / y_size; | |
| 216 | num_sprites = 25; | |
| 217 | yscroll_mask = 0x1ff; | |
| 218 | } | |
| 111 | 219 | |
| 112 | drawgfx(tmpbitmap,gfx,tile_number,color,0,0,sx,sy,0,TRANSPARENCY_NONE,0); | |
| 113 | } | |
| 114 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly,cliprect); | |
| 220 | VIDEO_START( sgladiat ) | |
| 221 | { | |
| 222 | VIDEO_START_CALL(snk_3bpp_shadow); | |
| 223 | ||
| 224 | fg_tilemap = tilemap_create(tnk3_get_fg_tile_info, tnk3_fg_scan_cols, 8, 8, 36, 28); | |
| 225 | bg_tilemap = tilemap_create(aso_get_bg_tile_info, tilemap_scan_cols, 8, 8, 64, 32); | |
| 226 | ||
| 227 | tilemap_set_transparent_pen(fg_tilemap, 15); | |
| 228 | tilemap_set_scrolldy(fg_tilemap, 8, 8); | |
| 229 | ||
| 230 | tilemap_set_scrolldx(bg_tilemap, 15, 24); | |
| 231 | tilemap_set_scrolldy(bg_tilemap, 8, -32); | |
| 232 | ||
| 233 | num_sprites = 25; | |
| 234 | yscroll_mask = 0x0ff; | |
| 115 | 235 | } |
| 116 | 236 | |
| 117 | ||
| 237 | VIDEO | |
| 118 | 238 | { |
| 119 | | |
| 239 | VIDEO | |
| 120 | 240 | |
| 121 | int tile_number, color, sx, sy; | |
| 122 | int x, y; | |
| 241 | fg_tilemap = tilemap_create(tnk3_get_fg_tile_info, tnk3_fg_scan_cols, 8, 8, 36, 28); | |
| 242 | bg_tilemap = tilemap_create(aso_get_bg_tile_info, tilemap_scan_cols, 8, 8, 64, 64); | |
| 123 | 243 | |
| 124 | for(x=0; x<32; x++) for(y=0; y<32; y++) | |
| 125 | { | |
| 126 | tile_number = source[(x<<5)+y]; | |
| 244 | tilemap_set_transparent_pen(fg_tilemap, 15); | |
| 245 | tilemap_set_scrolldy(fg_tilemap, 8, 8); | |
| 127 | 246 | |
| 128 | if(tile_number == 0x20 || tile_number == 0xff) continue; | |
| 247 | tilemap_set_scrolldx(bg_tilemap, 15+256, 24+256); | |
| 248 | tilemap_set_scrolldy(bg_tilemap, 8, -32); | |
| 129 | 249 | |
| 130 | if(bank == -1) color = 8; | |
| 131 | else | |
| 132 | { | |
| 133 | color = tile_number >> 5; | |
| 134 | tile_number |= bank << 8; | |
| 135 | } | |
| 136 | sx = (x+2) << 3; | |
| 137 | sy = (y+1) << 3; | |
| 138 | ||
| 139 | drawgfx(bitmap,gfx,tile_number,color,0,0,sx,sy,cliprect,TRANSPARENCY_PEN,15); | |
| 140 | } | |
| 250 | num_sprites = 50; | |
| 251 | yscroll_mask = 0x1ff; | |
| 141 | 252 | } |
| 142 | 253 | |
| 143 | ||
| 254 | VIDEO | |
| 144 | 255 | { |
| 145 | | |
| 256 | VIDEO | |
| 146 | 257 | |
| 147 | int tile_number, color, sx, sy; | |
| 148 | int x, y; | |
| 258 | fg_tilemap = tilemap_create(tnk3_get_fg_tile_info, tnk3_fg_scan_cols, 8, 8, 36, 28); | |
| 259 | bg_tilemap = tilemap_create(tnk3_get_bg_tile_info, tilemap_scan_cols, 8, 8, 64, 64); | |
| 149 | 260 | |
| 150 | for(x = start; x < start+2; x++) for(y = 0; y < 32; y++) | |
| 151 | { | |
| 152 | tile_number = source[(x<<5)+y]; | |
| 261 | tilemap_set_transparent_pen(fg_tilemap, 15); | |
| 262 | tilemap_set_scrolldy(fg_tilemap, 8, 8); | |
| 153 | 263 | |
| 154 | if(bank == -1) color = 8; | |
| 155 | else | |
| 156 | { | |
| 157 | color = tile_number >> 5; | |
| 158 | tile_number |= (bank << 8); | |
| 159 | } | |
| 160 | sx = ((x+34)&0x3f) << 3; | |
| 161 | sy = (y+1) << 3; | |
| 264 | tilemap_set_scrolldx(bg_tilemap, 15, 24); | |
| 265 | tilemap_set_scrolldy(bg_tilemap, 8, -32); | |
| 162 | 266 | |
| 163 | drawgfx(bitmap,gfx,tile_number,color,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); | |
| 164 | } | |
| 267 | num_sprites = 50; | |
| 268 | yscroll_mask = 0x1ff; | |
| 165 | 269 | } |
| 166 | 270 | |
| 167 | ||
| 271 | VIDEO | |
| 168 | 272 | { |
| 169 | tnk3_draw_status_main(machine,bitmap,cliprect,bank,source, 0); | |
| 170 | tnk3_draw_status_main(machine,bitmap,cliprect,bank,source,30); | |
| 273 | VIDEO_START_CALL(snk_3bpp_shadow); | |
| 274 | ||
| 275 | fg_tilemap = tilemap_create(ikari_get_fg_tile_info, tnk3_fg_scan_cols, 8, 8, 36, 28); | |
| 276 | bg_tilemap = tilemap_create(ikari_get_bg_tile_info, tilemap_scan_cols, 16, 16, 32, 32); | |
| 277 | ||
| 278 | tilemap_set_transparent_pen(fg_tilemap, 15); | |
| 279 | tilemap_set_scrolldy(fg_tilemap, 8, 8); | |
| 280 | ||
| 281 | tilemap_set_scrolldx(bg_tilemap, 15, 24); | |
| 282 | tilemap_set_scrolldy(bg_tilemap, 8, -32); | |
| 171 | 283 | } |
| 172 | 284 | |
| 173 | ||
| 285 | VIDEO | |
| 174 | 286 | { |
| 175 | | |
| 287 | memset( | |
| 176 | 288 | |
| 177 | int tile_number, attributes, color, sx, sy; | |
| 178 | int yflip; | |
| 179 | int offs; | |
| 289 | fg_tilemap = tilemap_create(gwar_get_fg_tile_info, tilemap_scan_cols, 8, 8, 50, 32); | |
| 290 | bg_tilemap = tilemap_create(gwar_get_bg_tile_info, tilemap_scan_cols, 16, 16, 32, 32); | |
| 180 | 291 | |
| 181 | for(offs = 0; offs < 50*4; offs+=4) | |
| 182 | { | |
| 183 | if(*(UINT32*)(spriteram+offs) == 0 || *(UINT32*)(spriteram+offs) == -1) continue; | |
| 292 | tilemap_set_transparent_pen(fg_tilemap, 15); | |
| 184 | 293 | |
| 185 | tile_number = spriteram[offs+1]; | |
| 186 | attributes = spriteram[offs+3]; /* YBFX.CCCC */ | |
| 187 | if(attributes & 0x40) tile_number |= 256; | |
| 294 | tilemap_set_scrolldx(bg_tilemap, 16, 143); | |
| 295 | tilemap_set_scrolldy(bg_tilemap, 0, -32); | |
| 296 | } | |
| 188 | 297 | |
| 189 | color = attributes & 0xf; | |
| 190 | sx = xscroll - spriteram[offs+2]; | |
| 191 | if(!(attributes & 0x80)) sx += 256; | |
| 192 | sy = -yscroll + spriteram[offs]; | |
| 193 | if(attributes & 0x10) sy += 256; | |
| 194 | sx &= 0x1ff; | |
| 195 | sy &= 0x1ff; | |
| 196 | if (sx > 512-16) sx -= 512; | |
| 197 | if (sy > 512-16) sy -= 512; | |
| 198 | yflip = attributes & 0x20; | |
| 298 | VIDEO_START( tdfever ) | |
| 299 | { | |
| 300 | VIDEO_START_CALL(snk_4bpp_shadow); | |
| 199 | 301 | |
| 200 | drawgfx(bitmap,gfx,tile_number,color,0,yflip,sx,sy,cliprect,TRANSPARENCY_PEN_TABLE,7); | |
| 201 | } | |
| 302 | VIDEO_START_CALL(gwar); | |
| 202 | 303 | } |
| 203 | 304 | |
| 204 | VIDEO_UPDATE( tnk3 ) | |
| 305 | /**************************************************************************************/ | |
| 306 | ||
| 307 | WRITE8_HANDLER( snk_fg_videoram_w ) | |
| 205 | 308 | { |
| 206 | UINT8 *ram = snk_rambase - 0xd000; | |
| 207 | int attributes = ram[0xc800]; | |
| 208 | /* | |
| 209 | X------- | |
| 210 | -X------ character bank (for text layer) | |
| 211 | --X----- | |
| 212 | ---X---- scrolly MSB (background) | |
| 213 | ----X--- scrolly MSB (sprites) | |
| 214 | -----X-- | |
| 215 | ------X- scrollx MSB (background) | |
| 216 | -------X scrollx MSB (sprites) | |
| 217 | */ | |
| 309 | snk_fg_videoram[offset] = data; | |
| 310 | tilemap_mark_tile_dirty(fg_tilemap, offset); | |
| 311 | } | |
| 218 | 312 | |
| 219 | // TODO attributes & 0x80 is screen flip | |
| 313 | WRITE8_HANDLER( snk_bg_videoram_w ) | |
| 314 | { | |
| 315 | snk_bg_videoram[offset] = data; | |
| 316 | tilemap_mark_tile_dirty(bg_tilemap, offset >> 1); | |
| 317 | } | |
| 220 | 318 | |
| 221 | /* to be moved to memmap */ | |
| 222 | spriteram = &ram[0xd000]; | |
| 319 | WRITE8_HANDLER( aso_bg_videoram_w ) | |
| 320 | { | |
| 321 | snk_bg_videoram[offset] = data; | |
| 322 | tilemap_mark_tile_dirty(bg_tilemap, offset); | |
| 323 | } | |
| 223 | 324 | |
| 224 | { | |
| 225 | int bg_scrollx = -ram[0xcc00] + 15; | |
| 226 | int bg_scrolly = -ram[0xcb00] + 8; | |
| 227 | if(attributes & 0x02) bg_scrollx += 256; | |
| 228 | if(attributes & 0x10) bg_scrolly += 256; | |
| 229 | tnk3_draw_background(screen->machine, bitmap, cliprect, bg_scrollx, bg_scrolly, 64, 64, 0 ); | |
| 230 | } | |
| 325 | WRITE8_HANDLER( snk_bg_scrollx_w ) | |
| 326 | { | |
| 327 | bg_scrollx = (bg_scrollx & ~0xff) | data; | |
| 328 | } | |
| 231 | 329 | |
| 232 | { | |
| 233 | int sp_scrollx = ram[0xca00] + 29; | |
| 234 | int sp_scrolly = ram[0xc900] + 9; | |
| 235 | if(attributes & 0x01) sp_scrollx += 256; | |
| 236 | if(attributes & 0x08) sp_scrolly += 256; | |
| 237 | tnk3_draw_sprites(screen->machine, bitmap, cliprect, sp_scrollx, sp_scrolly ); | |
| 238 | } | |
| 330 | WRITE8_HANDLER( snk_bg_scrolly_w ) | |
| 331 | { | |
| 332 | bg_scrolly = (bg_scrolly & ~0xff) | data; | |
| 333 | } | |
| 239 | 334 | |
| 240 | { | |
| 241 | int bank = (attributes & 0x40) ? 1:0; | |
| 335 | WRITE8_HANDLER( snk_sp16_scrollx_w ) | |
| 336 | { | |
| 337 | sp16_scrollx = (sp16_scrollx & ~0xff) | data; | |
| 338 | } | |
| 242 | 339 | |
| 243 | tnk3_draw_text(screen->machine, bitmap, cliprect, bank, &ram[0xf800] ); | |
| 244 | tnk3_draw_status(screen->machine, bitmap, cliprect, bank, &ram[0xfc00] ); | |
| 245 | } | |
| 246 | return 0; | |
| 340 | WRITE8_HANDLER( snk_sp16_scrolly_w ) | |
| 341 | { | |
| 342 | sp16_scrolly = (sp16_scrolly & ~0xff) | data; | |
| 247 | 343 | } |
| 248 | 344 | |
| 249 | ||
| 345 | WRITE8 | |
| 250 | 346 | { |
| 251 | const gfx_element *gfx = machine->gfx[2]; | |
| 347 | sp32_scrollx = (sp32_scrollx & ~0xff) | data; | |
| 348 | } | |
| 252 | 349 | |
| 253 | int tile_number, attributes, color, sx, sy; | |
| 254 | int offs; | |
| 350 | WRITE8_HANDLER( snk_sp32_scrolly_w ) | |
| 351 | { | |
| 352 | sp32_scrolly = (sp32_scrolly & ~0xff) | data; | |
| 353 | } | |
| 255 | 354 | |
| 256 | for(offs = 0; offs < 50*4; offs+=4) | |
| 257 | { | |
| 258 | if(*(UINT32*)(spriteram+offs) == 0 || *(UINT32*)(spriteram+offs) == -1) continue; | |
| 259 | 355 | |
| 260 | tile_number = spriteram[offs+1]; | |
| 261 | attributes = spriteram[offs+3]; /* YBBX.CCCC */ | |
| 262 | if(attributes & 0x40) tile_number |= 256; | |
| 263 | if(attributes & 0x20) tile_number |= 512; | |
| 356 | WRITE8_HANDLER( sgladiat_flipscreen_w ) | |
| 357 | { | |
| 358 | flip_screen_set(data & 0x80); | |
| 264 | 359 | |
| 265 | color = attributes & 0xf; | |
| 266 | sx = xscroll - spriteram[offs+2]; | |
| 267 | if(!(attributes & 0x80)) sx += 256; | |
| 268 | sy = -yscroll + spriteram[offs]; | |
| 269 | if(attributes & 0x10) sy += 256; | |
| 270 | sx &= 0x1ff; | |
| 271 | sy &= 0x1ff; | |
| 272 | if (sx > 512-16) sx -= 512; | |
| 273 | if (sy > 512-16) sy -= 512; | |
| 360 | tilemap_set_palette_offset(bg_tilemap, ((data & 0xf) ^ 8) << 4); | |
| 274 | 361 | |
| 275 | drawgfx(bitmap,gfx,tile_number,color,0,0,sx,sy,cliprect,TRANSPARENCY_PEN_TABLE,7); | |
| 276 | } | |
| 362 | // other bits unknown | |
| 277 | 363 | } |
| 278 | 364 | |
| 279 | /* Same as tnk3 but sprite attribute bit 5 is extra bank bit instead of y-flip. */ | |
| 280 | VIDEO_UPDATE( athena ) | |
| 365 | WRITE8_HANDLER( jcross_scroll_msb_w ) | |
| 281 | 366 | { |
| 282 | UINT8 *ram = snk_rambase - 0xd000; | |
| 283 | int attributes = ram[0xc800]; | |
| 367 | bg_scrolly = (bg_scrolly & 0xff) | ((data & 0x10) << 4); | |
| 368 | sp16_scrolly = (sp16_scrolly & 0xff) | ((data & 0x08) << 5); | |
| 369 | bg_scrollx = (bg_scrollx & 0xff) | ((data & 0x02) << 7); | |
| 370 | sp16_scrollx = (sp16_scrollx & 0xff) | ((data & 0x01) << 8); | |
| 371 | } | |
| 372 | ||
| 373 | WRITE8_HANDLER( sgladiat_scroll_msb_w ) | |
| 374 | { | |
| 375 | bg_scrollx = (bg_scrollx & 0xff) | ((data & 0x02) << 7); | |
| 376 | sp16_scrollx = (sp16_scrollx & 0xff) | ((data & 0x01) << 8); | |
| 377 | } | |
| 378 | ||
| 379 | WRITE8_HANDLER( aso_videoattrs_w ) | |
| 380 | { | |
| 284 | 381 | /* |
| 382 | video attributes: | |
| 285 | 383 | X------- |
| 384 | -X------ | |
| 385 | --X----- flip screen | |
| 386 | ---X---- scrolly MSB (background) | |
| 387 | ----X--- scrolly MSB (sprites) | |
| 388 | -----X-- | |
| 389 | ------X- scrollx MSB (background) | |
| 390 | -------X scrollx MSB (sprites) | |
| 391 | */ | |
| 392 | ||
| 393 | flip_screen_set(data & 0x20); | |
| 394 | ||
| 395 | bg_scrolly = (bg_scrolly & 0xff) | ((data & 0x10) << 4); | |
| 396 | sp16_scrolly = (sp16_scrolly & 0xff) | ((data & 0x08) << 5); | |
| 397 | bg_scrollx = (bg_scrollx & 0xff) | ((data & 0x02) << 7); | |
| 398 | sp16_scrollx = (sp16_scrollx & 0xff) | ((data & 0x01) << 8); | |
| 399 | } | |
| 400 | ||
| 401 | WRITE8_HANDLER( tnk3_videoattrs_w ) | |
| 402 | { | |
| 403 | /* | |
| 404 | video attributes: | |
| 405 | X------- flip screen | |
| 286 | 406 | -X------ character bank (for text layer) |
| 287 | 407 | --X----- |
| 288 | 408 | ---X---- scrolly MSB (background) |
| r3115 | r3116 | |
| 292 | 412 | -------X scrollx MSB (sprites) |
| 293 | 413 | */ |
| 294 | 414 | |
| 295 | | |
| 415 | fl | |
| 296 | 416 | |
| 297 | /* to be moved to memmap */ | |
| 298 | spriteram = &ram[0xd000]; | |
| 417 | tilemap_set_pen_data_offset(fg_tilemap, ((data & 0x40) << 2) * machine->gfx[0]->char_modulo); | |
| 299 | 418 | |
| 300 | { | |
| 301 | int bg_scrollx = -ram[0xcc00] + 15; | |
| 302 | int bg_scrolly = -ram[0xcb00] + 8; | |
| 303 | if(attributes & 0x02) bg_scrollx += 256; | |
| 304 | if(attributes & 0x10) bg_scrolly += 256; | |
| 305 | tnk3_draw_background(screen->machine, bitmap, cliprect, bg_scrollx, bg_scrolly, 64, 64, 0 ); | |
| 306 | } | |
| 419 | bg_scrolly = (bg_scrolly & 0xff) | ((data & 0x10) << 4); | |
| 420 | sp16_scrolly = (sp16_scrolly & 0xff) | ((data & 0x08) << 5); | |
| 421 | bg_scrollx = (bg_scrollx & 0xff) | ((data & 0x02) << 7); | |
| 422 | sp16_scrollx = (sp16_scrollx & 0xff) | ((data & 0x01) << 8); | |
| 423 | } | |
| 307 | 424 | |
| 308 | { | |
| 309 | int sp_scrollx = ram[0xca00] + 29; | |
| 310 | int sp_scrolly = ram[0xc900] + 9; | |
| 311 | if(attributes & 0x01) sp_scrollx += 256; | |
| 312 | if(attributes & 0x08) sp_scrolly += 256; | |
| 313 | athena_draw_sprites(screen->machine, bitmap, cliprect, sp_scrollx, sp_scrolly ); | |
| 314 | } | |
| 425 | WRITE8_HANDLER( aso_bg_bank_w ) | |
| 426 | { | |
| 427 | tilemap_set_palette_offset(bg_tilemap, ((data & 0xf) ^ 8) << 4); | |
| 428 | tilemap_set_pen_data_offset(bg_tilemap, ((data & 0x30) << 4) * machine->gfx[1]->char_modulo); | |
| 429 | } | |
| 315 | 430 | |
| 316 | { | |
| 317 | int bank = (attributes & 0x40) ? 1:0; | |
| 431 | WRITE8_HANDLER( ikari_bg_scroll_msb_w ) | |
| 432 | { | |
| 433 | bg_scrollx = (bg_scrollx & 0xff) | ((data & 0x02) << 7); | |
| 434 | bg_scrolly = (bg_scrolly & 0xff) | ((data & 0x01) << 8); | |
| 435 | } | |
| 318 | 436 | |
| 319 | tnk3_draw_text(screen->machine, bitmap, cliprect, bank, &ram[0xf800] ); | |
| 320 | tnk3_draw_status(screen->machine, bitmap, cliprect, bank, &ram[0xfc00] ); | |
| 321 | } | |
| 322 | return 0; | |
| 437 | WRITE8_HANDLER( ikari_sp_scroll_msb_w ) | |
| 438 | { | |
| 439 | sp32_scrollx = (sp32_scrollx & 0xff) | ((data & 0x20) << 3); | |
| 440 | sp16_scrollx = (sp16_scrollx & 0xff) | ((data & 0x10) << 4); | |
| 441 | sp32_scrolly = (sp32_scrolly & 0xff) | ((data & 0x08) << 5); | |
| 442 | sp16_scrolly = (sp16_scrolly & 0xff) | ((data & 0x04) << 6); | |
| 323 | 443 | } |
| 324 | 444 | |
| 325 | /************************************************************************************/ | |
| 445 | WRITE8_HANDLER( ikari_unknown_video_w ) | |
| 446 | { | |
| 447 | /* meaning of 0xc980 uncertain. | |
| 448 | Normally 0x20, ikaria/ikarijp sets it to 0x31 during test mode. | |
| 449 | Changing char bank is necessary to fix the display during the | |
| 450 | hard flags test and the test grid. | |
| 451 | Changing palette bank is necessary to fix colors in test mode. */ | |
| 326 | 452 | |
| 327 | VIDEO_START( sgladiat ) | |
| 453 | if (data != 0x20 && // normal | |
| 454 | data != 0x31 && // ikari test | |
| 455 | data != 0xaa) // victroad spurious during boot | |
| 456 | popmessage("attrs %02x contact MAMEDEV", data); | |
| 457 | ||
| 458 | tilemap_set_palette_offset(fg_tilemap, (data & 0x01) << 4); | |
| 459 | tilemap_set_pen_data_offset(fg_tilemap, ((data & 0x10) << 4) * machine->gfx[0]->char_modulo); | |
| 460 | } | |
| 461 | ||
| 462 | WRITE8_HANDLER( gwar_fg_bank_w ) | |
| 328 | 463 | { |
| 329 | tmpbitmap = auto_bitmap_alloc(512, 256, video_screen_get_format(machine->primary_screen)); | |
| 464 | tilemap_set_palette_offset(fg_tilemap, (data & 0xf) << 4); | |
| 465 | tilemap_set_pen_data_offset(fg_tilemap, ((data & 0x30) << 4) * machine->gfx[0]->char_modulo); | |
| 330 | 466 | } |
| 331 | 467 | |
| 332 | ||
| 468 | WRITE8_HANDLER( | |
| 333 | 469 | { |
| 334 | | |
| 470 | | |
| 335 | 471 | |
| 336 | int tile_number, color, sx, sy; | |
| 337 | int offs, x, y; | |
| 472 | sp32_scrollx = (sp32_scrollx & 0xff) | ((data & 0x80) << 1); | |
| 473 | sp16_scrollx = (sp16_scrollx & 0xff) | ((data & 0x40) << 2); | |
| 474 | sp32_scrolly = (sp32_scrolly & 0xff) | ((data & 0x20) << 3); | |
| 475 | sp16_scrolly = (sp16_scrolly & 0xff) | ((data & 0x10) << 4); | |
| 476 | bg_scrollx = (bg_scrollx & 0xff) | ((data & 0x02) << 7); | |
| 477 | bg_scrolly = (bg_scrolly & 0xff) | ((data & 0x01) << 8); | |
| 478 | } | |
| 338 | 479 | |
| 339 | for(x = 0; x < 64; x++) for(y = 0; y < 32; y++) | |
| 340 | { | |
| 341 | offs = (x<<5)+y; | |
| 342 | tile_number = videoram[offs]; | |
| 480 | WRITE8_HANDLER( gwara_videoattrs_w ) | |
| 481 | { | |
| 482 | flip_screen_set(data & 0x10); | |
| 343 | 483 | |
| 344 | color = 0; | |
| 345 | sx = x << 3; | |
| 346 | sy = y << 3; | |
| 484 | bg_scrollx = (bg_scrollx & 0xff) | ((data & 0x02) << 7); | |
| 485 | bg_scrolly = (bg_scrolly & 0xff) | ((data & 0x01) << 8); | |
| 486 | } | |
| 347 | 487 | |
| 348 | drawgfx(tmpbitmap,gfx,tile_number,color,0,0,sx,sy,0,TRANSPARENCY_NONE,0); | |
| 349 | } | |
| 350 | copyscrollbitmap(bitmap,tmpbitmap,1,&scrollx,1,&scrolly,cliprect); | |
| 488 | WRITE8_HANDLER( gwara_sp_scroll_msb_w ) | |
| 489 | { | |
| 490 | sp32_scrollx = (sp32_scrollx & 0xff) | ((data & 0x20) << 3); | |
| 491 | sp16_scrollx = (sp16_scrollx & 0xff) | ((data & 0x10) << 4); | |
| 492 | sp32_scrolly = (sp32_scrolly & 0xff) | ((data & 0x08) << 5); | |
| 493 | sp16_scrolly = (sp16_scrolly & 0xff) | ((data & 0x04) << 6); | |
| 351 | 494 | } |
| 352 | 495 | |
| 353 | ||
| 496 | WRITE8_H | |
| 354 | 497 | { |
| 355 | UINT8 *pMem = snk_rambase - 0xd000; | |
| 356 | int attributes, scrollx, scrolly; | |
| 498 | sprite_split_point = data; | |
| 499 | } | |
| 357 | 500 | |
| 358 | attributes = pMem[0xd300]; | |
| 501 | WRITE8_HANDLER( tdfever_sp_scroll_msb_w ) | |
| 502 | { | |
| 503 | sp32_scrolly = (sp32_scrolly & 0xff) | ((data & 0x80) << 1); | |
| 504 | sp32_scrollx = (sp32_scrollx & 0xff) | ((data & 0x40) << 2); | |
| 505 | } | |
| 359 | 506 | |
| 360 | scrollx = -pMem[0xd700] + ((attributes & 2) ? 256:0); | |
| 361 | scrolly = -pMem[0xd600]; | |
| 362 | scrollx += 15; | |
| 363 | scrolly += 8; | |
| 364 | sgladiat_draw_background(screen->machine, bitmap, cliprect, scrollx, scrolly ); | |
| 507 | WRITE8_HANDLER( tdfever_spriteram_w ) | |
| 508 | { | |
| 509 | /* partial updates avoid flickers in the fsoccer radar. */ | |
| 510 | if (offset < 0x80 && spriteram[offset] != data) | |
| 511 | { | |
| 512 | int vpos = video_screen_get_vpos(machine->primary_screen); | |
| 365 | 513 | |
| 366 | scrollx = pMem[0xd500] + ((attributes & 1) ? 256:0); | |
| 367 | scrolly = pMem[0xd400]; | |
| 368 | scrollx += 29; | |
| 369 | scrolly += 9; | |
| 370 | tnk3_draw_sprites(screen->machine, bitmap, cliprect, scrollx, scrolly ); | |
| 514 | if (vpos > 0) | |
| 515 | video_screen_update_partial(machine->primary_screen, vpos - 1); | |
| 516 | } | |
| 371 | 517 | |
| 372 | tnk3_draw_text(screen->machine, bitmap, cliprect, 0, &pMem[0xf000] ); | |
| 373 | return 0; | |
| 518 | spriteram[offset] = data; | |
| 374 | 519 | } |
| 375 | 520 | |
| 376 | 521 | /**************************************************************************************/ |
| 377 | 522 | |
| 378 | static void ikari_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int start, int xscroll, int yscroll, | |
| 379 | UINT8 *source, int mode ) | |
| 523 | static void tnk3_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, const int xscroll, const int yscroll) | |
| 380 | 524 | { |
| 381 | gfx_element *gfx = machine->gfx[mode]; | |
| 525 | const gfx_element *gfx = machine->gfx[2]; | |
| 526 | const int size = gfx->width; | |
| 382 | 527 | int tile_number, attributes, color, sx, sy; |
| 383 | int which, finish; | |
| 528 | int xflip,yflip; | |
| 529 | int offs; | |
| 384 | 530 | |
| 385 | | |
| 531 | /* jcross and | |
| 386 | 532 | |
| 387 | for(which = start*4; which < finish; which+=4) | |
| 533 | /* jcross has 256 tiles, attribute bit 6 MIGHT be x-flip (uncertain) */ | |
| 534 | /* sgladiat and tnk3 have 512 tiles, bit 6 is bank and bit 5 is y-flip */ | |
| 535 | /* athena has 1024 tiles, bit 6 and bit 5 are bank */ | |
| 536 | ||
| 537 | for (offs = 0; offs < num_sprites*4; offs += 4) | |
| 388 | 538 | { |
| 389 | if(*(UINT32*)(source+which) == 0 || *(UINT32*)(source+which) == -1) continue; | |
| 539 | tile_number = spriteram[offs+1]; | |
| 540 | attributes = spriteram[offs+3]; | |
| 541 | color = attributes & 0xf; | |
| 542 | sx = xscroll + 301 - size - spriteram[offs+2]; | |
| 543 | sy = -yscroll + 7 - size + spriteram[offs]; | |
| 544 | sx += (attributes & 0x80) << 1; | |
| 545 | sy += (attributes & 0x10) << 4; | |
| 546 | xflip = 0; | |
| 547 | yflip = 0; | |
| 390 | 548 | |
| 391 | tile_number = source[which+1]; | |
| 392 | attributes = source[which+3]; | |
| 393 | switch(mode) | |
| 549 | if (gfx->total_elements > 256) // all except jcross | |
| 394 | 550 | { |
| 395 | case 2: | |
| 396 | tile_number |= (attributes & 0x60) << 3; | |
| 397 | break; | |
| 398 | case 3: | |
| 399 | if(attributes & 0x40) tile_number |= 256; | |
| 400 | break; | |
| 551 | tile_number |= (attributes & 0x40) << 2; | |
| 401 | 552 | } |
| 402 | color = attributes & 0xf; | |
| 403 | sx = xscroll - source[which+2]; | |
| 404 | if(!(attributes & 0x80)) sx += 256; | |
| 405 | sy = -yscroll + source[which]; | |
| 406 | if(attributes & 0x10) sy += 256; | |
| 407 | sx = (sx - 16) & 0x1ff; | |
| 408 | sy = (sy - 16) & 0x1ff; | |
| 409 | if (sx > 512-16) sx -= 512; | |
| 410 | if (sy > 512-16) sy -= 512; | |
| 553 | else // jcross | |
| 554 | { | |
| 555 | xflip = attributes & 0x40; // uncertain (not used?) | |
| 556 | } | |
| 411 | 557 | |
| 412 | drawgfx(bitmap,gfx,tile_number,color,0,0,sx,sy,cliprect,TRANSPARENCY_PEN_TABLE,7); | |
| 413 | } | |
| 414 | } | |
| 558 | if (gfx->total_elements > 512) // athena | |
| 559 | { | |
| 560 | tile_number |= (attributes & 0x20) << 4; | |
| 561 | } | |
| 562 | else // all others | |
| 563 | { | |
| 564 | yflip = attributes & 0x20; | |
| 565 | } | |
| 415 | 566 | |
| 416 | VIDEO_UPDATE( ikari ) | |
| 417 | { | |
| 418 | UINT8 *ram = snk_rambase - 0xd000; | |
| 567 | if (flip_screen_get()) | |
| 568 | { | |
| 569 | sx = 89 - size - sx; // this causes slight misalignment in tnk3 but is correct for athena and fitegolf | |
| 570 | sy = 262 - size - sy; | |
| 571 | xflip = !xflip; | |
| 572 | yflip = !yflip; | |
| 573 | } | |
| 419 | 574 | |
| 420 | { | |
| 421 | int attributes = ram[0xc900]; | |
| 422 | int scrolly = 8-ram[0xc800] - ((attributes & 0x01) ? 256:0); | |
| 423 | int scrollx = 13-ram[0xc880] - ((attributes & 0x02) ? 256:0); | |
| 424 | tnk3_draw_background(screen->machine, bitmap, cliprect, scrollx, scrolly, 32, 32, 1 ); | |
| 425 | } | |
| 575 | sx &= 0x1ff; | |
| 576 | sy &= yscroll_mask; // sgladiat apparently has only 256 pixels of vertical scrolling range | |
| 577 | if (sx > 512-size) sx -= 512; | |
| 578 | if (sy > (yscroll_mask+1)-size) sy -= (yscroll_mask+1); | |
| 426 | 579 | |
| 427 | { | |
| 428 | int attributes = ram[0xcd00]; | |
| 429 | ||
| 430 | int sp16_scrolly = -7 + ram[0xca00] + ((attributes & 0x04) ? 256:0); | |
| 431 | int sp16_scrollx = 44 + ram[0xca80] + ((attributes & 0x10) ? 256:0); | |
| 432 | ||
| 433 | int sp32_scrolly = 9 + ram[0xcb00] + ((attributes & 0x08) ? 256:0); | |
| 434 | int sp32_scrollx = 28 + ram[0xcb80] + ((attributes & 0x20) ? 256:0); | |
| 435 | ||
| 436 | ikari_draw_sprites(screen->machine, bitmap, cliprect, 0, sp16_scrollx, sp16_scrolly, &ram[0xe800], 2 ); | |
| 437 | ikari_draw_sprites(screen->machine, bitmap, cliprect, 0, sp32_scrollx, sp32_scrolly, &ram[0xe000], 3 ); | |
| 438 | ikari_draw_sprites(screen->machine, bitmap, cliprect, 25, sp16_scrollx, sp16_scrolly, &ram[0xe800], 2 ); | |
| 580 | drawgfx(bitmap,gfx, | |
| 581 | tile_number, | |
| 582 | color, | |
| 583 | xflip,yflip, | |
| 584 | sx,sy, | |
| 585 | cliprect,TRANSPARENCY_PEN_TABLE,7); | |
| 439 | 586 | } |
| 440 | ||
| 441 | tnk3_draw_text(screen->machine, bitmap, cliprect, -1, &ram[0xf800] ); | |
| 442 | tnk3_draw_status(screen->machine, bitmap, cliprect, -1, &ram[0xfc00] ); | |
| 443 | return 0; | |
| 444 | 587 | } |
| 445 | 588 | |
| 446 | /**************************************************************/ | |
| 447 | 589 | |
| 448 | static void tdfever_draw_bg(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int xscroll, int yscroll ) | |
| 590 | static void ikari_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, | |
| 591 | const int start, const int xscroll, const int yscroll, const UINT8 *source, const int gfxnum ) | |
| 449 | 592 | { |
| 450 | const UINT8 *source = snk_rambase + 0x000; | |
| 451 | const gfx_element *gfx = machine->gfx[1]; | |
| 452 | ||
| 593 | const gfx_element *gfx = machine->gfx[gfxnum]; | |
| 594 | const int size = gfx->width; | |
| 453 | 595 | int tile_number, attributes, color, sx, sy; |
| 454 | int | |
| 596 | int which, finish; | |
| 455 | 597 | |
| 456 | for(x = 0; x < 32; x++) for(y = 0; y < 32; y++) | |
| 598 | finish = (start+25)*4; | |
| 599 | ||
| 600 | for (which = start*4; which < finish; which += 4) | |
| 457 | 601 | { |
| 458 | offs = (x<<6)+(y<<1); | |
| 459 | tile_number = source[offs]; | |
| 460 | attributes = source[offs+1]; | |
| 602 | tile_number = source[which+1]; | |
| 603 | attributes = source[which+3]; | |
| 604 | color = attributes & 0xf; | |
| 605 | sx = xscroll + 300 - size - source[which+2]; | |
| 606 | sy = -yscroll + 7 - size + source[which]; | |
| 607 | sx += (attributes & 0x80) << 1; | |
| 608 | sy += (attributes & 0x10) << 4; | |
| 461 | 609 | |
| 462 | tile_number |= (attributes & 0xf) << 8; | |
| 610 | switch (size) | |
| 611 | { | |
| 612 | case 16: | |
| 613 | tile_number |= (attributes & 0x60) << 3; | |
| 614 | break; | |
| 463 | 615 | |
| 464 | color = attributes >> 4; | |
| 465 | sx = x << 4; | |
| 466 | sy = y << 4; | |
| 616 | case 32: | |
| 617 | tile_number |= (attributes & 0x40) << 2; | |
| 618 | break; | |
| 619 | } | |
| 467 | 620 | |
| 468 | // intercept overflown tile indices | |
| 469 | if(tile_number >= gfx->total_elements) | |
| 470 | plot_box(tmpbitmap, sx, sy, gfx->width, gfx->height, get_black_pen(machine)); | |
| 471 | else | |
| 472 | drawgfx(tmpbitmap,gfx,tile_number,color,0,0,sx,sy,0,TRANSPARENCY_NONE,0); | |
| 621 | sx &= 0x1ff; | |
| 622 | sy &= 0x1ff; | |
| 623 | if (sx > 512-size) sx -= 512; | |
| 624 | if (sy > 512-size) sy -= 512; | |
| 625 | ||
| 626 | drawgfx(bitmap,gfx, | |
| 627 | tile_number, | |
| 628 | color, | |
| 629 | 0,0, | |
| 630 | sx,sy, | |
| 631 | cliprect,TRANSPARENCY_PEN_TABLE,7); | |
| 473 | 632 | } |
| 474 | copyscrollbitmap(bitmap,tmpbitmap,1,&xscroll,1,&yscroll,cliprect); | |
| 475 | 633 | } |
| 476 | 634 | |
| 635 | /**************************************************************/ | |
| 636 | ||
| 477 | 637 | /* |
| 478 | 638 | Sprite Format |
| 479 | 639 | ------------- |
| r3115 | r3116 | |
| 482 | 642 | byte2: x offset |
| 483 | 643 | byte3: attributes |
| 484 | 644 | |
| 485 | | |
| 645 | 32x32 | |
| 486 | 646 | |
| 487 | 647 | 76543210 |
| 488 | 648 | ----xxxx (color) |
| r3115 | r3116 | |
| 490 | 650 | -xx----- (bank number) |
| 491 | 651 | x------- (x offset bit8) |
| 492 | 652 | |
| 493 | | |
| 653 | 16x16 | |
| 494 | 654 | |
| 495 | 655 | 76543210 |
| 496 | 656 | -----xxx (color) |
| r3115 | r3116 | |
| 498 | 658 | -xx-x--- (bank number) |
| 499 | 659 | x------- (x offset bit8) |
| 500 | 660 | */ |
| 501 | static void tdfever_draw_sp(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int xscroll, int yscroll, int mode, int flipx ) | |
| 661 | static void tdfever_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, | |
| 662 | const int xscroll, const int yscroll, const UINT8 *source, const int gfxnum, const int hw_xflip, const int from, const int to ) | |
| 502 | 663 | { |
| 503 | const UINT8 *source = snk_rambase + ((mode==2)?0x1800:0x1000); | |
| 504 | const gfx_element *gfx = machine->gfx[(mode==1)?3:2]; | |
| 664 | const gfx_element *gfx = machine->gfx[gfxnum]; | |
| 665 | const int size = gfx->width; | |
| 505 | 666 | int tile_number, attributes, sx, sy, color, pen_mode; |
| 506 | int which, finish, sp_size; | |
| 667 | int which; | |
| 668 | int flipx, flipy; | |
| 507 | 669 | |
| 508 | | |
| 670 | pen_mode = ( | |
| 509 | 671 | |
| 510 | pen_mode = (snk_gamegroup & 1) ? TRANSPARENCY_PEN_TABLE : TRANSPARENCY_PEN; | |
| 511 | ||
| 512 | if(mode == 2) | |
| 672 | for(which = from*4; which < to*4; which+=4) | |
| 513 | 673 | { |
| 514 | finish = 64 * 4; | |
| 515 | sp_size = 16; | |
| 516 | } | |
| 517 | else | |
| 518 | { | |
| 519 | finish = 32 * 4; | |
| 520 | sp_size = 32; | |
| 521 | } | |
| 522 | ||
| 523 | for(which = 0; which < finish; which+=4) | |
| 524 | { | |
| 525 | if(*(UINT32*)(source+which) == 0 || *(UINT32*)(source+which) == -1) continue; | |
| 526 | ||
| 527 | 674 | tile_number = source[which+1]; |
| 528 | 675 | attributes = source[which+3]; |
| 676 | color = attributes & 0x0f; | |
| 677 | sx = -xscroll - 9 + source[which+2]; | |
| 678 | sy = -yscroll + 1 - size + source[which]; | |
| 679 | sx += (attributes & 0x80) << 1; | |
| 680 | sy += (attributes & 0x10) << 4; | |
| 529 | 681 | |
| 530 | sx = xscroll + source[which+2]; if(mode==0) sx = 256-sx; | |
| 531 | sy = yscroll + source[which]; | |
| 532 | sx += attributes<<1 & 0x100; | |
| 533 | sy += attributes<<4 & 0x100; | |
| 534 | sx &= 0x1ff; if(sx > 512-sp_size) sx -= 512; | |
| 535 | sy &= 0x1ff; if(sy > 512-sp_size) sy -= 512; | |
| 536 | ||
| 537 | switch(mode) | |
| 682 | switch (size) | |
| 538 | 683 | { |
| 539 | case 2: | |
| 540 | tile_number |= (attributes<<4 & 0x600) | (attributes<<5 & 0x100); | |
| 541 | color = attributes & 0x07; | |
| 542 | break; | |
| 684 | case 16: | |
| 685 | tile_number |= ((attributes & 0x08) << 5) | ((attributes & 0x60) << 4); | |
| 686 | color &= 7; // attribute bit 3 is used for bank select | |
| 687 | break; | |
| 543 | 688 | |
| 544 | default: | |
| 545 | tile_number |= attributes<<3 & 0x300; | |
| 546 | color = attributes & 0x0f; | |
| 689 | case 32: | |
| 690 | tile_number |= (attributes & 0x60) << 3; | |
| 691 | break; | |
| 547 | 692 | } |
| 548 | 693 | |
| 549 | drawgfx(bitmap,gfx,tile_number,color,flipx,0,sx,sy,cliprect,pen_mode,15); | |
| 550 | } | |
| 551 | } | |
| 694 | flipx = hw_xflip; | |
| 695 | flipy = 0; | |
| 552 | 696 | |
| 553 | static void tdfever_draw_tx(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int attributes, int dx, int dy, int base ) | |
| 554 | { | |
| 555 | const UINT8 *source = snk_rambase - 0xd000 + base; | |
| 556 | const gfx_element *gfx = machine->gfx[0]; | |
| 697 | if (hw_xflip) | |
| 698 | sx = 495 - size - sx; | |
| 557 | 699 | |
| 558 | int tile_high = (attributes & 0xf0) << 4; | |
| 559 | int color = attributes & 0xf; | |
| 560 | int tile_number, sx, sy; | |
| 561 | int x, y; | |
| 700 | if (flip_screen_get()) | |
| 701 | { | |
| 702 | sx = 495 - size - sx; | |
| 703 | sy = 258 - size - sy; | |
| 704 | flipx = !flipx; | |
| 705 | flipy = !flipy; | |
| 706 | } | |
| 562 | 707 | |
| 563 | for(x = 0; x < 64; x++) for(y = 0; y < 32; y++) | |
| 564 | { | |
| 565 | tile_number = source[(x<<5)+y]; | |
| 708 | sx &= 0x1ff; | |
| 709 | sy &= 0x1ff; | |
| 710 | if (sx > 512-size) sx -= 512; | |
| 711 | if (sy > 512-size) sy -= 512; | |
| 566 | 712 | |
| 567 | if(tile_number == 0x20) continue; | |
| 568 | ||
| 569 | sx = dx + x*8; | |
| 570 | sy = dy + y*8; | |
| 571 | ||
| 572 | drawgfx(bitmap,gfx,tile_high|tile_number,color,0,0,sx,sy,cliprect,TRANSPARENCY_PEN,15); | |
| 713 | drawgfx(bitmap,gfx, | |
| 714 | tile_number, | |
| 715 | color, | |
| 716 | flipx,flipy, | |
| 717 | sx,sy, | |
| 718 | cliprect,pen_mode,15); | |
| 573 | 719 | } |
| 574 | 720 | } |
| 575 | 721 | |
| 576 | 722 | /**************************************************************/ |
| 577 | 723 | |
| 578 | VIDEO_UPDATE( t | |
| 724 | VIDEO_UPDATE( tnk3 | |
| 579 | 725 | { |
| 580 | const UINT8 *ram = snk_rambase - 0xd000; | |
| 726 | tilemap_set_scrollx(bg_tilemap, 0, bg_scrollx); | |
| 727 | tilemap_set_scrolly(bg_tilemap, 0, bg_scrolly); | |
| 581 | 728 | |
| 582 | UINT8 bg_attributes = ram[0xc880]; | |
| 583 | UINT8 sp_attributes = ram[0xc900]; | |
| 584 | UINT8 tx_attributes = ram[0xc8c0]; | |
| 585 | int bg_scroll_x = -ram[0xc840] + ((bg_attributes & 0x02) ? 256:0); | |
| 586 | int bg_scroll_y = -ram[0xc800] + ((bg_attributes & 0x01) ? 256:0); | |
| 587 | int sp_scroll_x = -ram[0xc9c0] + ((sp_attributes & 0x40) ? 0:256); | |
| 588 | int sp_scroll_y = -ram[0xc980] + ((sp_attributes & 0x80) ? 256:0); | |
| 729 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 730 | tnk3_draw_sprites(screen->machine, bitmap, cliprect, sp16_scrollx, sp16_scrolly); | |
| 731 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); | |
| 589 | 732 | |
| 590 | // TODO bg_attribute & 0x10 is screen flip | |
| 733 | return 0; | |
| 734 | } | |
| 591 | 735 | |
| 592 | if(snk_gamegroup == 3 || snk_gamegroup == 5) // tdfever, tdfeverj | |
| 593 | { | |
| 594 | bg_scroll_x += 143; | |
| 595 | bg_scroll_y += -32; | |
| 596 | sp_scroll_x += 135; | |
| 597 | sp_scroll_y += -65; | |
| 598 | } | |
| 599 | else if(snk_gamegroup == 7) // ftsoccer | |
| 600 | { | |
| 601 | bg_scroll_x += 16; | |
| 602 | bg_scroll_y += 0; | |
| 603 | sp_scroll_x += 40; | |
| 604 | sp_scroll_y += -31; | |
| 605 | } | |
| 606 | tdfever_draw_bg(screen->machine, bitmap, cliprect, bg_scroll_x, bg_scroll_y ); | |
| 607 | 736 | |
| 608 | tdfever_draw_sp(screen->machine, bitmap, cliprect, sp_scroll_x, sp_scroll_y, 0, 1 ); | |
| 737 | VIDEO_UPDATE( ikari ) | |
| 738 | { | |
| 739 | tilemap_set_scrollx(bg_tilemap, 0, bg_scrollx); | |
| 740 | tilemap_set_scrolly(bg_tilemap, 0, bg_scrolly); | |
| 609 | 741 | |
| 610 | tdfever_draw_tx(screen->machine, bitmap, cliprect, tx_attributes, 0, 0, 0xf800 ); | |
| 742 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 743 | ||
| 744 | ikari_draw_sprites(screen->machine, bitmap, cliprect, 0, sp16_scrollx, sp16_scrolly, spriteram + 0x800, 2 ); | |
| 745 | ikari_draw_sprites(screen->machine, bitmap, cliprect, 0, sp32_scrollx, sp32_scrolly, spriteram, 3 ); | |
| 746 | ikari_draw_sprites(screen->machine, bitmap, cliprect, 25, sp16_scrollx, sp16_scrolly, spriteram + 0x800, 2 ); | |
| 747 | ||
| 748 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); | |
| 611 | 749 | return 0; |
| 612 | 750 | } |
| 613 | 751 | |
| 752 | ||
| 614 | 753 | VIDEO_UPDATE( gwar ) |
| 615 | 754 | { |
| 616 | const UINT8 *ram = snk_rambase - 0xd000; | |
| 617 | int gwar_sp_baseaddr, gwar_tx_baseaddr; | |
| 618 | UINT8 bg_attribute; | |
| 755 | tilemap_set_scrollx(bg_tilemap, 0, bg_scrollx); | |
| 756 | tilemap_set_scrolly(bg_tilemap, 0, bg_scrolly); | |
| 619 | 757 | |
| 620 | if(snk_gamegroup == 4) // gwara | |
| 621 | { | |
| 622 | gwar_sp_baseaddr = 0xf000; | |
| 623 | gwar_tx_baseaddr = 0xc800; | |
| 624 | } | |
| 625 | else | |
| 626 | { | |
| 627 | gwar_sp_baseaddr = 0xc000; | |
| 628 | gwar_tx_baseaddr = 0xf800; | |
| 629 | } | |
| 758 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 630 | 759 | |
| 631 | bg_attribute = ram[gwar_sp_baseaddr+0x880]; | |
| 760 | tdfever_draw_sprites(screen->machine, bitmap, cliprect, sp16_scrollx, sp16_scrolly, spriteram + 0x800, 2, 0, 0, sprite_split_point ); | |
| 761 | tdfever_draw_sprites(screen->machine, bitmap, cliprect, sp32_scrollx, sp32_scrolly, spriteram, 3, 0, 0, 32 ); | |
| 762 | tdfever_draw_sprites(screen->machine, bitmap, cliprect, sp16_scrollx, sp16_scrolly, spriteram + 0x800, 2, 0, sprite_split_point, 64 ); | |
| 632 | 763 | |
| 633 | | |
| 764 | | |
| 634 | 765 | |
| 635 | { | |
| 636 | int bg_scroll_y, bg_scroll_x; | |
| 766 | return 0; | |
| 767 | } | |
| 637 | 768 | |
| 638 | bg_scroll_x = -ram[gwar_sp_baseaddr+0x840] + 16; | |
| 639 | bg_scroll_y = -ram[gwar_sp_baseaddr+0x800]; | |
| 640 | 769 | |
| 641 | bg_scroll_x += (bg_attribute & 2) ? 256:0; | |
| 642 | bg_scroll_y += (bg_attribute & 1) ? 256:0; | |
| 770 | VIDEO_UPDATE( tdfever ) | |
| 771 | { | |
| 772 | tilemap_set_scrollx(bg_tilemap, 0, bg_scrollx); | |
| 773 | tilemap_set_scrolly(bg_tilemap, 0, bg_scrolly); | |
| 643 | 774 | |
| 644 | tdfever_draw_bg(screen->machine, bitmap, cliprect, bg_scroll_x, bg_scroll_y ); | |
| 645 | } | |
| 775 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 646 | 776 | |
| 647 | { | |
| 648 | UINT8 sp_attribute = ram[gwar_sp_baseaddr+0xac0]; | |
| 649 | int sp16_x = -ram[gwar_sp_baseaddr+0x940] - 9; | |
| 650 | int sp16_y = -ram[gwar_sp_baseaddr+0x900] - 15; | |
| 651 | int sp32_x = -ram[gwar_sp_baseaddr+0x9c0] - 9; | |
| 652 | int sp32_y = -ram[gwar_sp_baseaddr+0x980] - 31; | |
| 777 | tdfever_draw_sprites(screen->machine, bitmap, cliprect, sp32_scrollx, sp32_scrolly, spriteram, 2, 1, 0, 32 ); | |
| 653 | 778 | |
| 654 | if(snk_gamegroup == 2) // gwar, gwarj, gwarb, choppera | |
| 655 | { | |
| 656 | sp16_y += (bg_attribute & 0x10) ? 256:0; | |
| 657 | sp16_x += (bg_attribute & 0x40) ? 256:0; | |
| 658 | sp32_y += (bg_attribute & 0x20) ? 256:0; | |
| 659 | sp32_x += (bg_attribute & 0x80) ? 256:0; | |
| 660 | } | |
| 661 | else | |
| 662 | { | |
| 663 | UINT8 spp_attribute = ram[gwar_sp_baseaddr+0xa80]; | |
| 664 | sp16_x += (spp_attribute & 0x10) ? 256:0; | |
| 665 | sp16_y += (spp_attribute & 0x04) ? 256:0; | |
| 666 | sp32_x += (spp_attribute & 0x20) ? 256:0; | |
| 667 | sp32_y += (spp_attribute & 0x08) ? 256:0; | |
| 668 | } | |
| 779 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); | |
| 669 | 780 | |
| 670 | if(sp_attribute & 0xf8) // improves priority | |
| 671 | { | |
| 672 | tdfever_draw_sp(screen->machine, bitmap, cliprect, sp16_x, sp16_y, 2, 0 ); | |
| 673 | tdfever_draw_sp(screen->machine, bitmap, cliprect, sp32_x, sp32_y, 1, 0 ); | |
| 674 | } | |
| 675 | else | |
| 676 | { | |
| 677 | tdfever_draw_sp(screen->machine, bitmap, cliprect, sp32_x, sp32_y, 1, 0 ); | |
| 678 | tdfever_draw_sp(screen->machine, bitmap, cliprect, sp16_x, sp16_y, 2, 0 ); | |
| 679 | } | |
| 680 | } | |
| 681 | ||
| 682 | { | |
| 683 | UINT8 text_attribute = ram[gwar_sp_baseaddr+0x8c0]; | |
| 684 | tdfever_draw_tx(screen->machine, bitmap, cliprect, text_attribute, 0, 0, gwar_tx_baseaddr ); | |
| 685 | } | |
| 686 | 781 | return 0; |
| 687 | 782 | } |
| r3115 | r3116 | |
|---|---|---|
| 4 | 4 | #include "namconb1.h" |
| 5 | 5 | #include "namcoic.h" |
| 6 | 6 | #include "namcos2.h" |
| 7 | #include "audio/namcoc7x.h" | |
| 7 | 8 | |
| 8 | 9 | static UINT32 tilemap_tile_bank[4]; |
| 9 | 10 | |
| r3115 | r3116 | |
| 111 | 112 | static int toggle; |
| 112 | 113 | static UINT16 credits; |
| 113 | 114 | static int old_coin_state; |
| 114 | static int old_p1; | |
| 115 | static int old_p2; | |
| 116 | static int old_p3; | |
| 117 | static int old_p4; | |
| 115 | static UINT16 old_p1; | |
| 116 | static UINT16 old_p2; | |
| 117 | static UINT16 old_p3; | |
| 118 | static UINT16 old_p4; | |
| 118 | 119 | int new_coin_state = input_port_read(machine, "COIN") & 0x3; /* coin1,2 */ |
| 119 | unsigned dsw = input_port_read(machine, "DSW")<<16; | |
| 120 | unsigned p1 = input_port_read(machine, "P1"); | |
| 121 | unsigned p2 = input_port_read(machine, "P2"); | |
| 122 | unsigned p3; | |
| 123 | unsigned p4; | |
| 120 | UINT16 dsw = input_port_read(machine, "DSW"); | |
| 121 | UINT16 p1 = input_port_read(machine, "P1"); | |
| 122 | UINT16 p2 = input_port_read(machine, "P2"); | |
| 123 | UINT16 p3; | |
| 124 | UINT16 p4; | |
| 125 | ||
| 124 | 126 | toggle = !toggle; |
| 125 | if( toggle ) dsw &= ~(0x80<<16); | |
| 127 | if(toggle) | |
| 128 | dsw &= ~0x80; | |
| 129 | ||
| 130 | if(cpunum_is_suspended(1, SUSPEND_REASON_HALT)) | |
| 131 | return; | |
| 132 | ||
| 126 | 133 | if( namcos2_gametype == NAMCONB2_MACH_BREAKERS ) |
| 127 | 134 | { |
| 128 | 135 | p3 = input_port_read_safe(machine, "P3", 0); |
| r3115 | r3116 | |
| 144 | 151 | old_p3 = p3; |
| 145 | 152 | old_p4 = p4; |
| 146 | 153 | |
| 147 | namconb1_workram32[0x6000/4] = dsw|p1; | |
| 148 | namconb1_workram32[0x6004/4] = (p2<<16)|p3; | |
| 149 | namconb1_workram32[0x6008/4] = p4<<16; | |
| 154 | namcoc7x_soundram16_w(machine, 0x6000/2, dsw, 0xffff); | |
| 155 | namcoc7x_soundram16_w(machine, 0x6002/2, p1, 0xffff); | |
| 156 | namcoc7x_soundram16_w(machine, 0x6004/2, p2, 0xffff); | |
| 157 | namcoc7x_soundram16_w(machine, 0x6006/2, p3, 0xffff); | |
| 158 | namcoc7x_soundram16_w(machine, 0x6008/2, p4, 0xffff); | |
| 150 | 159 | |
| 151 | 160 | if( new_coin_state && !old_coin_state ) |
| 152 | 161 | { |
| 153 | 162 | credits++; |
| 154 | 163 | } |
| 155 | 164 | old_coin_state = new_coin_state; |
| 156 | namconb1_workram32[0x601e/4] &= 0xffff0000; | |
| 157 | namconb1_workram32[0x601e/4] |= credits; | |
| 165 | namcoc7x_soundram16_w(machine, 0x601e/2, credits, 0xffff); | |
| 158 | 166 | } /* handle_mcu */ |
| 159 | 167 | |
| 160 | 168 | static void |
| r3115 | r3116 | |
|---|---|---|
| 434 | 434 | |
| 435 | 435 | tilemap *tmptilemap0, *tmptilemap1; |
| 436 | 436 | |
| 437 | flip_screen_set(~input_port_read(screen->machine, "DSW | |
| 437 | flip_screen_set(~input_port_read(screen->machine, "DSW | |
| 438 | 438 | |
| 439 | 439 | /* Layers enable (not quite right) */ |
| 440 | 440 |
| r3115 | r3116 | |
|---|---|---|
| 57 | 57 | |
| 58 | 58 | UINT16 *rocknms_sub_priority; |
| 59 | 59 | |
| 60 | static int flipscreen_old; | |
| 60 | 61 | |
| 61 | 62 | /*************************************************************************** |
| 62 | 63 | |
| r3115 | r3116 | |
| 270 | 271 | |
| 271 | 272 | VIDEO_START( tetrisp2 ) |
| 272 | 273 | { |
| 274 | flipscreen_old = -1; | |
| 275 | ||
| 273 | 276 | tilemap_bg = tilemap_create( get_tile_info_bg,tilemap_scan_rows, |
| 274 | 277 | |
| 275 | 278 | 16,16,NX_0,NY_0); |
| r3115 | r3116 | |
| 295 | 298 | |
| 296 | 299 | VIDEO_START( rockntread ) |
| 297 | 300 | { |
| 301 | flipscreen_old = -1; | |
| 302 | ||
| 298 | 303 | tilemap_bg = tilemap_create( get_tile_info_bg,tilemap_scan_rows, |
| 299 | 304 | |
| 300 | 305 | 16, 16, 256, 16); // rockn ms(main),1,2,3,4 |
| r3115 | r3116 | |
| 315 | 320 | |
| 316 | 321 | VIDEO_START( rocknms ) |
| 317 | 322 | { |
| 318 | | |
| 323 | VIDEO | |
| 319 | 324 | |
| 320 | 16, 16, 256, 16); // rockn ms(main),1,2,3,4 | |
| 321 | ||
| 322 | tilemap_fg = tilemap_create(get_tile_info_fg,tilemap_scan_rows, | |
| 323 | ||
| 324 | 8, 8, 64, 64); | |
| 325 | ||
| 326 | tilemap_rot = tilemap_create(get_tile_info_rot,tilemap_scan_rows, | |
| 327 | ||
| 328 | 16, 16, 128, 128); | |
| 329 | ||
| 330 | 325 | tilemap_sub_bg = tilemap_create(get_tile_info_rocknms_sub_bg,tilemap_scan_rows, |
| 331 | 326 | |
| 332 | 327 | 16, 16, 32, 256); // rockn ms(sub) |
| r3115 | r3116 | |
| 339 | 334 | |
| 340 | 335 | 16, 16, 128, 128); |
| 341 | 336 | |
| 342 | tilemap_set_transparent_pen(tilemap_bg, 0); | |
| 343 | tilemap_set_transparent_pen(tilemap_fg, 0); | |
| 344 | tilemap_set_transparent_pen(tilemap_rot, 0); | |
| 345 | ||
| 346 | 337 | tilemap_set_transparent_pen(tilemap_sub_bg, 0); |
| 347 | 338 | tilemap_set_transparent_pen(tilemap_sub_fg, 0); |
| 348 | 339 | tilemap_set_transparent_pen(tilemap_sub_rot, 0); |
| r3115 | r3116 | |
| 518 | 509 | |
| 519 | 510 | VIDEO_UPDATE( tetrisp2 ) |
| 520 | 511 | { |
| 521 | static int flipscreen_old = -1; | |
| 522 | 512 | int flipscreen; |
| 523 | 513 | int asc_pri; |
| 524 | 514 | int scr_pri; |
| r3115 | r3116 | |
| 603 | 593 | |
| 604 | 594 | VIDEO_UPDATE( rockntread ) |
| 605 | 595 | { |
| 606 | static int flipscreen_old = -1; | |
| 607 | 596 | int flipscreen; |
| 608 | 597 | int asc_pri; |
| 609 | 598 | int scr_pri; |
| r3115 | r3116 | |
|---|---|---|
| 182 | 182 | |
| 183 | 183 | and allows the shift to be handled using two buttons */ |
| 184 | 184 | |
| 185 | ||
| 185 | CUSTOM_INPUT( cisch | |
| 186 | 186 | { |
| 187 | 187 | static int ret = 1; /* start with low shift */ |
| 188 | switch ( (input_port_read(machine, "FAKE") >> 2) & 3 ) | |
| 188 | switch ( (input_port_read(field->port->machine, "FAKE") >> 2) & 3 ) | |
| 189 | 189 | { |
| 190 | 190 | case 1 : ret = 1; break; // low shift: button 3 |
| 191 | 191 | case 2 : ret = 0; break; // high shift: button 4 |
| r3115 | r3116 | |
| 193 | 193 | return ret; |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | ||
| 197 | 196 | /* |
| 198 | 197 | F1 GP Star has a real pedal, while Cisco Heat's is connected to |
| 199 | 198 | a switch. The Former game stores, during boot, the value that |
| r3115 | r3116 | |
| 219 | 218 | switch (offset) |
| 220 | 219 | { |
| 221 | 220 | case 0x0000/2 : return input_port_read(machine, "IN1"); // Coins |
| 222 | case 0x0002/2 : return input_port_read(machine, "IN2") | |
| 221 | case 0x0002/2 : return input_port_read(machine, "IN2") | |
| 223 | 222 | case 0x0004/2 : return input_port_read(machine, "IN3"); // Motor Limit Switches |
| 224 | 223 | case 0x0006/2 : return input_port_read(machine, "IN4"); // DSW 1 & 2 |
| 225 | 224 | |
| r3115 | r3116 | |
| 315 | 314 | switch (offset) |
| 316 | 315 | { |
| 317 | 316 | case 0x0000/2 : return input_port_read(machine, "IN1"); // Coins |
| 318 | case 0x0002/2 : return input_port_read(machine, "IN2") | |
| 317 | case 0x0002/2 : return input_port_read(machine, "IN2") | |
| 319 | 318 | case 0x0004/2 : return input_port_read(machine, "IN3"); // Motor Limit Switches |
| 320 | 319 | case 0x0006/2 : return input_port_read(machine, "IN4"); // DSW 1 & 2 |
| 321 | 320 | |
| r3115 | r3116 | |
| 411 | 410 | |
| 412 | 411 | // case 0x0002/2 : return 0xFFFF; |
| 413 | 412 | |
| 414 | case 0x0004/2 : return input_port_read(machine, "IN2") | |
| 413 | case 0x0004/2 : return input_port_read(machine, "IN2") | |
| 415 | 414 | |
| 416 | 415 | case 0x0006/2 : return input_port_read(machine, "IN3"); // ? Read at boot only |
| 417 | 416 | |
| 418 | case 0x0008/2 : return soundlatch2_r(machine,0); // From sound cpu | |
| 417 | case 0x0008/2 : return soundlatch2_r(machine,0); // From sound cpu | |
| 419 | 418 | |
| 420 | 419 | case 0x000c/2 : return input_port_read(machine, "IN4"); // DSW 3 |
| 421 | 420 |
| r0 | r3116 | |
|---|---|---|
| 1 | /****************************************************************************** | |
| 2 | ||
| 3 | GAME-A-TRON gambling hardware | |
| 4 | ----------------------------- | |
| 5 | ||
| 6 | *** Video Hardware *** | |
| 7 | ||
| 8 | Written by Roberto Fresca. | |
| 9 | ||
| 10 | ||
| 11 | Games running on this hardware: | |
| 12 | ||
| 13 | * Poker 4-1, 1983, Game-A-Tron. | |
| 14 | * Pull Tabs, 1983, Game-A-Tron. | |
| 15 | ||
| 16 | ||
| 17 | *******************************************************************************/ | |
| 18 | ||
| 19 | ||
| 20 | #include "driver.h" | |
| 21 | ||
| 22 | static tilemap *bg_tilemap; | |
| 23 | ||
| 24 | ||
| 25 | WRITE8_HANDLER( gat_videoram_w ) | |
| 26 | { | |
| 27 | videoram[offset] = data; | |
| 28 | tilemap_mark_tile_dirty(bg_tilemap, offset); | |
| 29 | } | |
| 30 | ||
| 31 | static TILE_GET_INFO( get_bg_tile_info ) | |
| 32 | { | |
| 33 | /* - bits - | |
| 34 | 7654 3210 | |
| 35 | xxxx xxxx tiles code. | |
| 36 | ||
| 37 | only one color code | |
| 38 | */ | |
| 39 | ||
| 40 | int code = videoram[tile_index]; | |
| 41 | ||
| 42 | SET_TILE_INFO(0, code, 0, 0); | |
| 43 | } | |
| 44 | ||
| 45 | VIDEO_START( gat ) | |
| 46 | { | |
| 47 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_cols, 8, 16, 48, 16); | |
| 48 | } | |
| 49 | ||
| 50 | VIDEO_UPDATE( gat ) | |
| 51 | { | |
| 52 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 53 | return 0; | |
| 54 | } | |
| 55 | ||
| 56 | PALETTE_INIT( gat ) | |
| 57 | { | |
| 58 | } | |
| 59 |
| r3115 | r3116 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | drawgfx(bitmap, |
| 91 | 91 | screen->machine->gfx[RA_BGCHAR_BASE], |
| 92 | mem[offs + ( ra_bkgpage * 1024 )] | |
| 92 | mem[offs + ( ra_bkgpage * 1024 )] | |
| 93 | 93 | + ((( mem[offs + 0x4000 + ( ra_bkgpage * 1024 )] & 0xc0 ) >> 6 ) * 256 ) , |
| 94 | 94 | ra_bkgcol, |
| 95 | 95 | ra_flipx,(ra_bkgflip^ra_flipy), |
| r3115 | r3116 | |
|---|---|---|
| 6 | 6 | extern UINT16 *quantum_colorram; |
| 7 | 7 | extern UINT16 *quantum_vectorram; |
| 8 | 8 | |
| 9 | int avgdvg_done(void); | |
| 10 | 9 | CUSTOM_INPUT( avgdvg_done_r ); |
| 11 | 10 | WRITE8_HANDLER( avgdvg_go_w ); |
| 12 | 11 | WRITE8_HANDLER( avgdvg_reset_w ); |
| r3115 | r3116 | |
|---|---|---|
| 1019 | 1019 | 00-01 R operand 1 / operand 2 |
| 1020 | 1020 | 02-03 R operand 1 % operand 2? |
| 1021 | 1021 | 04-05 R sqrt(operand 3<<16) |
| 1022 | 06 R unknown - return value written to 13? | |
| 1022 | 1023 | |
| 1023 | 1024 | 06-07 W distance for collision check |
| 1024 | 1025 | 08-09 W Y pos of obj1 |
| r3115 | r3116 | |
| 5311 | 5312 | case 0x05: |
| 5312 | 5313 | return int_sqrt(op3<<16) & 0xff; |
| 5313 | 5314 | |
| 5315 | case 0x06: | |
| 5316 | return K051733_ram[0x13]; | |
| 5317 | ||
| 5314 | 5318 | case 0x07:{ |
| 5315 | 5319 | if (xobj1c + rad < xobj2c) |
| 5316 | 5320 | return 0x80; |
| r3115 | r3116 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | UINT16* pow_fg_videoram; |
| 18 | 18 | |
| 19 | static int pow_charbank; | |
| 20 | 19 | static int sprite_flip_axis; |
| 21 | 20 | static tilemap *fg_tilemap; |
| 22 | 21 | static int flipscreen; |
| r3115 | r3116 | |
| 29 | 28 | |
| 30 | 29 | static TILE_GET_INFO( get_pow_tile_info ) |
| 31 | 30 | { |
| 32 | int tile = (pow_fg_videoram[2*tile_index] & 0xff) | |
| 31 | int tile = (pow_fg_videoram[2*tile_index] & 0xff) | |
| 33 | 32 | int color = pow_fg_videoram[2*tile_index+1] & 0x07; |
| 34 | 33 | |
| 35 | 34 | SET_TILE_INFO(0, tile, color, 0); |
| r3115 | r3116 | |
| 140 | 139 | |
| 141 | 140 | sprite_flip_axis = data & 0x04; // for streetsm? though might not be present on this board |
| 142 | 141 | |
| 143 | if (pow_charbank != ((data & 0x70) >> 4)) | |
| 144 | { | |
| 145 | pow_charbank = (data & 0x70) >> 4; | |
| 146 | tilemap_mark_all_tiles_dirty(fg_tilemap); | |
| 147 | } | |
| 142 | tilemap_set_pen_data_offset(fg_tilemap, ((data & 0x70) << 4) * machine->gfx[0]->char_modulo); | |
| 148 | 143 | } |
| 149 | 144 | } |
| 150 | 145 |
| r3115 | r3116 | |
|---|---|---|
| 19 | 19 | |
| 20 | 20 | static UINT8 quizdna_bg_xscroll[2]; |
| 21 | 21 | |
| 22 | static int quizdna_flipscreen | |
| 22 | static int quizdna_flipscreen | |
| 23 | 23 | static int quizdna_video_enable; |
| 24 | 24 | |
| 25 | 25 | |
| r3115 | r3116 | |
| 56 | 56 | |
| 57 | 57 | VIDEO_START( quizdna ) |
| 58 | 58 | { |
| 59 | quizdna_flipscreen = -1; | |
| 60 | quizdna_video_enable = 0; | |
| 61 | quizdna_bg_xscroll[0] = 0; | |
| 62 | quizdna_bg_xscroll[1] = 0; | |
| 63 | ||
| 59 | 64 | quizdna_bg_ram = auto_malloc(0x2000); |
| 60 | 65 | quizdna_fg_ram = auto_malloc(0x1000); |
| 61 | 66 |
| r3115 | r3116 | |
|---|---|---|
| 27 | 27 | static UINT8 crtc_data[0x10]; |
| 28 | 28 | static emu_timer *crtc_timer; |
| 29 | 29 | |
| 30 | static UINT8 flipscreen_old | |
| 30 | static UINT8 flipscreen_old | |
| 31 | 31 | |
| 32 | 32 | static tilemap *bg_tilemap, *fg_tilemap; |
| 33 | 33 | |
| r3115 | r3116 | |
| 73 | 73 | * |
| 74 | 74 | *************************************/ |
| 75 | 75 | |
| 76 | ||
| 76 | static | |
| 77 | 77 | { |
| 78 | /* allocate tilemaps */ | |
| 79 | bg_tilemap = tilemap_create(get_fromance_bg_tile_info, tilemap_scan_rows, 8,4, 64,64); | |
| 80 | fg_tilemap = tilemap_create(get_fromance_fg_tile_info, tilemap_scan_rows, 8,4, 64,64); | |
| 78 | flipscreen_old = -1; | |
| 81 | 79 | |
| 82 | 80 | /* allocate local videoram */ |
| 83 | 81 | local_videoram[0] = auto_malloc(0x1000 * 3); |
| r3115 | r3116 | |
| 112 | 110 | state_save_register_global_pointer(local_paletteram, 0x800 * 2); |
| 113 | 111 | } |
| 114 | 112 | |
| 113 | VIDEO_START( fromance ) | |
| 114 | { | |
| 115 | /* allocate tilemaps */ | |
| 116 | bg_tilemap = tilemap_create(get_fromance_bg_tile_info, tilemap_scan_rows, 8,4, 64,64); | |
| 117 | fg_tilemap = tilemap_create(get_fromance_fg_tile_info, tilemap_scan_rows, 8,4, 64,64); | |
| 118 | ||
| 119 | init_common(); | |
| 120 | } | |
| 121 | ||
| 115 | 122 | VIDEO_START( nekkyoku ) |
| 116 | 123 | { |
| 117 | 124 | /* allocate tilemaps */ |
| 118 | 125 | bg_tilemap = tilemap_create(get_nekkyoku_bg_tile_info, tilemap_scan_rows, 8,4, 64,64); |
| 119 | 126 | fg_tilemap = tilemap_create(get_nekkyoku_fg_tile_info, tilemap_scan_rows, 8,4, 64,64); |
| 120 | 127 | |
| 121 | /* allocate local videoram */ | |
| 122 | local_videoram[0] = auto_malloc(0x1000 * 3); | |
| 123 | local_videoram[1] = auto_malloc(0x1000 * 3); | |
| 124 | ||
| 125 | /* allocate local palette RAM */ | |
| 126 | local_paletteram = auto_malloc(0x800 * 2); | |
| 127 | ||
| 128 | /* configure tilemaps */ | |
| 129 | tilemap_set_transparent_pen(fg_tilemap,15); | |
| 130 | ||
| 131 | /* reset the timer */ | |
| 132 | crtc_timer = timer_alloc(crtc_interrupt_gen, NULL); | |
| 133 | ||
| 134 | scrollx_ofs = 0x159; | |
| 135 | scrolly_ofs = 0x10; | |
| 136 | ||
| 137 | /* state save */ | |
| 138 | state_save_register_global(selected_videoram); | |
| 139 | state_save_register_global_pointer(local_videoram[0], 0x1000 * 3); | |
| 140 | state_save_register_global_pointer(local_videoram[1], 0x1000 * 3); | |
| 141 | state_save_register_global(selected_paletteram); | |
| 142 | state_save_register_global_array(scrollx); | |
| 143 | state_save_register_global_array(scrolly); | |
| 144 | state_save_register_global(gfxreg); | |
| 145 | state_save_register_global(flipscreen); | |
| 146 | state_save_register_global(flipscreen_old); | |
| 147 | state_save_register_global(scrollx_ofs); | |
| 148 | state_save_register_global(scrolly_ofs); | |
| 149 | state_save_register_global(crtc_register); | |
| 150 | state_save_register_global_array(crtc_data); | |
| 151 | state_save_register_global_pointer(local_paletteram, 0x800 * 2); | |
| 128 | init_common(); | |
| 152 | 129 | } |
| 153 | 130 | |
| 154 | 131 | VIDEO_START( pipedrm ) |
| r3115 | r3116 | |
|---|---|---|
| 352 | 352 | } |
| 353 | 353 | } |
| 354 | 354 | printf(" Non mapped, Probably not encrypted: %d\n",unmapped); |
| 355 | printf(" Non mapped, but Probably encrypted: | |
| 356 | %d\n",unmapped_encrypted); | |
| 355 | printf(" Non mapped, but Probably encrypted: %d\n",unmapped_encrypted); | |
| 357 | 356 | |
| 358 | 357 | while (1) |
| 359 | 358 | { |
| 360 | 359 | void write_rom_section(char *prefix,char *suffix,int |
| 361 | 360 | start,int end); |
| 362 | 361 | char c; |
| 363 | printf(" Enter D to Merge mapped and unmapped and dump to | |
| 364 | rom file,\n"); | |
| 362 | printf(" Enter D to Merge mapped and unmapped and dump to rom file,\n"); | |
| 365 | 363 | printf(" Enter Q to quit.\n"); |
| 366 | 364 | c=tolower(getchar()); |
| 367 | 365 | while (getchar()!='\n') {} |
| r3115 | r3116 | |
| 371 | 369 | { |
| 372 | 370 | char line[100],*l; |
| 373 | 371 | int i; |
| 374 | printf("Enter file prefix (files will be named | |
| 375 | 'prefix'.8d 'prefix'.8e, etc.\n"); | |
| 372 | printf("Enter file prefix (files will be named 'prefix'.8d 'prefix'.8e, etc.\n"); | |
| 376 | 373 | gets(line); |
| 377 | 374 | // kill newline: |
| 378 | 375 | for (l=line;*l!='\n' && *l!='\0';l++) |
| r0 | r3116 | |
|---|---|---|
| 1 | <?xml version="1.0"?> | |
| 2 | <mamelayout version="2"> | |
| 3 | <element name="hold1" defstate="1"> | |
| 4 | <rect> | |
| 5 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 6 | </rect> | |
| 7 | <text string="DISCARD 1" state="1"> | |
| 8 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 9 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 10 | </text> | |
| 11 | </element> | |
| 12 | ||
| 13 | <element name="hold2" defstate="1"> | |
| 14 | <rect> | |
| 15 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 16 | </rect> | |
| 17 | <text string="DISCARD 2" state="1"> | |
| 18 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 19 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 20 | </text> | |
| 21 | </element> | |
| 22 | ||
| 23 | <element name="hold3" defstate="1"> | |
| 24 | <rect> | |
| 25 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 26 | </rect> | |
| 27 | <text string="DISCARD 3" state="1"> | |
| 28 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 29 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 30 | </text> | |
| 31 | </element> | |
| 32 | ||
| 33 | <element name="hold4" defstate="1"> | |
| 34 | <rect> | |
| 35 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 36 | </rect> | |
| 37 | <text string="DISCARD 4" state="1"> | |
| 38 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 39 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 40 | </text> | |
| 41 | </element> | |
| 42 | ||
| 43 | <element name="hold5" defstate="1"> | |
| 44 | <rect> | |
| 45 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 46 | </rect> | |
| 47 | <text string="DISCARD 5" state="1"> | |
| 48 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 49 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 50 | </text> | |
| 51 | </element> | |
| 52 | ||
| 53 | <element name="stand" defstate="1"> | |
| 54 | <rect> | |
| 55 | <color red="1.0" green="0.5" blue="0.0" /> | |
| 56 | </rect> | |
| 57 | <text string="FB-DRAW / STAND" state="1"> | |
| 58 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 59 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 60 | </text> | |
| 61 | </element> | |
| 62 | ||
| 63 | <element name="hit" defstate="1"> | |
| 64 | <rect> | |
| 65 | <color red="1.0" green="0.5" blue="0.0" /> | |
| 66 | </rect> | |
| 67 | <text string="DEAL / HIT" state="1"> | |
| 68 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 69 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 70 | </text> | |
| 71 | </element> | |
| 72 | ||
| 73 | <element name="bet" defstate="1"> | |
| 74 | <rect> | |
| 75 | <color red="1.0" green="0.5" blue="0.0" /> | |
| 76 | </rect> | |
| 77 | <text string="ANTE / BET" state="1"> | |
| 78 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 79 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 80 | </text> | |
| 81 | </element> | |
| 82 | ||
| 83 | <element name="start" defstate="1"> | |
| 84 | <rect> | |
| 85 | <color red="1.0" green="0.5" blue="0.0" /> | |
| 86 | </rect> | |
| 87 | <text string="START" state="1"> | |
| 88 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 89 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 90 | </text> | |
| 91 | </element> | |
| 92 | ||
| 93 | ||
| 94 | <view name="Button Lamps"> | |
| 95 | <screen index="0"> | |
| 96 | <bounds left="0" top="0" right="4" bottom="3" /> | |
| 97 | </screen> | |
| 98 | ||
| 99 | <bezel name="lamp8" element="hold1"> | |
| 100 | <bounds x="0" y="3.02" width="0.72" height="0.24" /> | |
| 101 | </bezel> | |
| 102 | ||
| 103 | <bezel name="lamp7" element="hold2"> | |
| 104 | <bounds x="0.82" y="3.02" width="0.72" height="0.24" /> | |
| 105 | </bezel> | |
| 106 | ||
| 107 | <bezel name="lamp6" element="stand"> | |
| 108 | <bounds x="0.82" y="3.28" width="0.72" height="0.24" /> | |
| 109 | </bezel> | |
| 110 | ||
| 111 | <bezel name="lamp0" element="hold3"> | |
| 112 | <bounds x="1.64" y="3.02" width="0.72" height="0.24" /> | |
| 113 | </bezel> | |
| 114 | ||
| 115 | <bezel name="lamp5" element="hit"> | |
| 116 | <bounds x="1.64" y="3.28" width="0.72" height="0.24" /> | |
| 117 | </bezel> | |
| 118 | ||
| 119 | <bezel name="lamp1" element="hold4"> | |
| 120 | <bounds x="2.46" y="3.02" width="0.72" height="0.24" /> | |
| 121 | </bezel> | |
| 122 | ||
| 123 | <bezel name="lamp3" element="bet"> | |
| 124 | <bounds x="2.46" y="3.28" width="0.72" height="0.24" /> | |
| 125 | </bezel> | |
| 126 | ||
| 127 | <bezel name="lamp2" element="hold5"> | |
| 128 | <bounds x="3.28" y="3.02" width="0.72" height="0.24" /> | |
| 129 | </bezel> | |
| 130 | ||
| 131 | <bezel name="lamp4" element="start"> | |
| 132 | <bounds x="3.28" y="3.28" width="0.72" height="0.24" /> | |
| 133 | </bezel> | |
| 134 | </view> | |
| 135 | </mamelayout> |
| r0 | r3116 | |
|---|---|---|
| 1 | <?xml version="1.0"?> | |
| 2 | <mamelayout version="2"> | |
| 3 | <element name="tab1" defstate="1"> | |
| 4 | <rect> | |
| 5 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 6 | </rect> | |
| 7 | <text string="SUPER STAR" state="1"> | |
| 8 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 9 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 10 | </text> | |
| 11 | </element> | |
| 12 | ||
| 13 | <element name="tab2" defstate="1"> | |
| 14 | <rect> | |
| 15 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 16 | </rect> | |
| 17 | <text string="LADY LUCK" state="1"> | |
| 18 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 19 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 20 | </text> | |
| 21 | </element> | |
| 22 | ||
| 23 | <element name="tab3" defstate="1"> | |
| 24 | <rect> | |
| 25 | <color red="1.0" green="0.0" blue="0.0" /> | |
| 26 | </rect> | |
| 27 | <text string="BIG BAR" state="1"> | |
| 28 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 29 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 30 | </text> | |
| 31 | </element> | |
| 32 | ||
| 33 | <element name="bet" defstate="1"> | |
| 34 | <rect> | |
| 35 | <color red="1.0" green="0.5" blue="0.0" /> | |
| 36 | </rect> | |
| 37 | <text string="ANTE/BET" state="1"> | |
| 38 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 39 | <bounds x="0" y="0.1" width="1" height="0.8" /> | |
| 40 | </text> | |
| 41 | </element> | |
| 42 | ||
| 43 | ||
| 44 | <view name="Button Lamps"> | |
| 45 | <screen index="0"> | |
| 46 | <bounds left="0" top="0" right="4" bottom="3" /> | |
| 47 | </screen> | |
| 48 | ||
| 49 | <bezel name="lamp8" element="tab1"> | |
| 50 | <bounds x="0.30" y="3.02" width="1.00" height="0.24" /> | |
| 51 | </bezel> | |
| 52 | ||
| 53 | <bezel name="lamp0" element="tab2"> | |
| 54 | <bounds x="1.50" y="3.02" width="1.00" height="0.24" /> | |
| 55 | </bezel> | |
| 56 | ||
| 57 | <bezel name="lamp3" element="bet"> | |
| 58 | <bounds x="1.50" y="3.28" width="1.00" height="0.24" /> | |
| 59 | </bezel> | |
| 60 | ||
| 61 | <bezel name="lamp2" element="tab3"> | |
| 62 | <bounds x="2.70" y="3.02" width="1.00" height="0.24" /> | |
| 63 | </bezel> | |
| 64 | ||
| 65 | </view> | |
| 66 | </mamelayout> |
| r3115 | r3116 | |
|---|---|---|
| 130 | 130 | ADDRESS_MAP_END |
| 131 | 131 | |
| 132 | 132 | static ADDRESS_MAP_START( readport, ADDRESS_SPACE_IO, 8 ) |
| 133 | AM_RANGE(0xe0, 0xe0) AM_WRITENOP // 8156 command/status reg (write c0 = command START = (start of timer) | |
| 134 | AM_RANGE(0xe1, 0xe1) AM_READ(input_port_0_r) //8156 PA | |
| 135 | AM_RANGE(0xe2, 0xe2) AM_READ(input_port_1_r) //8156 PB | |
| 136 | AM_RANGE(0xe3, 0xe3) AM_READ(input_port_2_r) //8156 PC = 6 bit ! //2 bits tested af f4c6 | |
| 137 | AM_RANGE(0xe4, 0xe4) AM_WRITENOP // 8156 timer reg1 (write 7f = CNT length) | |
| 138 | AM_RANGE(0xe5, 0xe5) AM_WRITENOP // 8156 timer reg2 (write c0 = timer mode - automatic reload, i.e. single pulse every time TC is reached) | |
| 133 | AM_RANGE(0xe0, 0xe0) AM_WRITENOP // 8156 command/status reg (write c0 = command START = (start of timer) | |
| 134 | AM_RANGE(0xe1, 0xe1) AM_READ_PORT("INPUTS") // 8156 PA | |
| 135 | AM_RANGE(0xe2, 0xe2) AM_READ_PORT("DSW1") // 8156 PB | |
| 136 | AM_RANGE(0xe3, 0xe3) AM_READ_PORT("DSW2") // 8156 PC = 6 bit ! //2 bits tested af f4c6 | |
| 137 | AM_RANGE(0xe4, 0xe4) AM_WRITENOP // 8156 timer reg1 (write 7f = CNT length) | |
| 138 | AM_RANGE(0xe5, 0xe5) AM_WRITENOP // 8156 timer reg2 (write c0 = timer mode - automatic reload, i.e. single pulse every time TC is reached) | |
| 139 | 139 | |
| 140 | 140 | AM_RANGE(0xe8, 0xe8) AM_WRITE(sn76496_0_w) |
| 141 | 141 | AM_RANGE(0xe9, 0xe9) AM_WRITE(sn76496_1_w) |
| r3115 | r3116 | |
| 163 | 163 | /* input ports */ |
| 164 | 164 | |
| 165 | 165 | static INPUT_PORTS_START( sbugger ) |
| 166 | PORT_START("INPUTS") | |
| 166 | PORT_START("INPUTS") | |
| 167 | 167 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_2WAY |
| 168 | 168 | PORT_DIPNAME( 0x02, 0x02, "PA 1" ) |
| 169 | 169 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 177 | 177 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 178 | 178 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 179 | 179 | |
| 180 | PORT_START("DSW1") | |
| 180 | PORT_START("DSW1") | |
| 181 | 181 | PORT_DIPNAME( 0x01, 0x01, "PB 0" ) |
| 182 | 182 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 183 | 183 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 201 | 201 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 202 | 202 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 203 | 203 | |
| 204 | PORT_START("DSW2") | |
| 204 | PORT_START("DSW2") | |
| 205 | 205 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Difficulty ) ) //enemy speed |
| 206 | 206 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 207 | 207 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) |
| 208 | 208 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) |
| 209 | 209 | PORT_DIPSETTING( 0x03, DEF_STR( Hardest ) ) |
| 210 | ||
| 211 | 210 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Allow_Continue ) ) |
| 212 | 211 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 213 | 212 | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) |
| 214 | ||
| 215 | 213 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) //bonus stage related (code at $f94 & $df8) |
| 216 | 214 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 217 | 215 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
|---|---|---|
| 72 | 72 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 73 | 73 | AM_RANGE(0x100000, 0x103fff) AM_RAM_WRITE(targeth_vram_w) AM_BASE(&targeth_videoram) /* Video RAM */ |
| 74 | 74 | AM_RANGE(0x108000, 0x108007) AM_WRITE(SMH_RAM) AM_BASE(&targeth_vregs) /* Video Registers */ |
| 75 | AM_RANGE(0x108000, 0x108001) AM_READ(input_port_0_word_r) /* Gun 1P X */ | |
| 76 | AM_RANGE(0x108002, 0x108003) AM_READ(input_port_1_word_r) /* Gun 1P Y */ | |
| 77 | AM_RANGE(0x108004, 0x108005) AM_READ(input_port_2_word_r) /* Gun 2P X */ | |
| 78 | AM_RANGE(0x108006, 0x108007) AM_READ(input_port_3_word_r) /* Gun 2P Y */ | |
| 75 | AM_RANGE(0x108000, 0x108001) AM_READ_PORT("GUNX1") | |
| 76 | AM_RANGE(0x108002, 0x108003) AM_READ_PORT("GUNY1") | |
| 77 | AM_RANGE(0x108004, 0x108005) AM_READ_PORT("GUNX2") | |
| 78 | AM_RANGE(0x108006, 0x108007) AM_READ_PORT("GUNY2") | |
| 79 | 79 | AM_RANGE(0x108000, 0x108007) AM_WRITE(SMH_RAM) AM_BASE(&targeth_vregs) /* Video Registers */ |
| 80 | 80 | AM_RANGE(0x10800c, 0x10800d) AM_WRITE(SMH_NOP) /* CLR Video INT */ |
| 81 | 81 | AM_RANGE(0x200000, 0x2007ff) AM_RAM_WRITE(paletteram16_xBBBBBGGGGGRRRRR_word_w) AM_BASE(&paletteram16) /* Palette */ |
| 82 | 82 | AM_RANGE(0x440000, 0x440fff) AM_RAM AM_BASE(&targeth_spriteram) /* Sprite RAM */ |
| 83 | AM_RANGE(0x700000, 0x700001) AM_READ(input_port_4_word_r) /* DIPSW #2 */ | |
| 84 | AM_RANGE(0x700002, 0x700003) AM_READ(input_port_5_word_r) /* DIPSW #1 */ | |
| 85 | AM_RANGE(0x700006, 0x700007) AM_READ(input_port_6_word_r) /* Coins, Start & Fire buttons */ | |
| 86 | AM_RANGE(0x700008, 0x700009) AM_READ(input_port_7_word_r) /* Service & Guns Reload? */ | |
| 83 | AM_RANGE(0x700000, 0x700001) AM_READ_PORT("DSW2") | |
| 84 | AM_RANGE(0x700002, 0x700003) AM_READ_PORT("DSW1") | |
| 85 | AM_RANGE(0x700006, 0x700007) AM_READ_PORT("SYSTEM") /* Coins, Start & Fire buttons */ | |
| 86 | AM_RANGE(0x700008, 0x700009) AM_READ_PORT("SERVICE") /* Service & Guns Reload? */ | |
| 87 | 87 | AM_RANGE(0x70000a, 0x70001b) AM_WRITE(SMH_NOP) /* ??? Guns reload related? */ |
| 88 | 88 | AM_RANGE(0x70000c, 0x70000d) AM_WRITE(OKIM6295_bankswitch_w) /* OKI6295 bankswitch */ |
| 89 | 89 | AM_RANGE(0x70000e, 0x70000f) AM_READWRITE(okim6295_status_0_lsb_r, okim6295_data_0_lsb_w) /* OKI6295 status register */ |
| r3115 | r3116 | |
| 92 | 92 | ADDRESS_MAP_END |
| 93 | 93 | |
| 94 | 94 | static INPUT_PORTS_START( targeth ) |
| 95 | PORT_START("GUNX1") | |
| 95 | PORT_START("GUNX1") | |
| 96 | 96 | 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) |
| 97 | 97 | PORT_BIT( 0xfe00, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 98 | 98 | |
| 99 | PORT_START("GUNY1") | |
| 99 | PORT_START("GUNY1") | |
| 100 | 100 | PORT_BIT( 0x01ff, 128, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.041, -0.011, 0) PORT_MINMAX(4,255) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_PLAYER(1) |
| 101 | 101 | PORT_BIT( 0xfe00, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 102 | 102 | |
| 103 | PORT_START("GUNX2") | |
| 103 | PORT_START("GUNX2") | |
| 104 | 104 | PORT_BIT( 0x01ff, 400 + 4, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.05, -0.028, 0) PORT_MINMAX( 0, 400 + 4) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_PLAYER(2) |
| 105 | 105 | PORT_BIT( 0xfe00, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 106 | 106 | |
| 107 | PORT_START("GUNY2") | |
| 107 | PORT_START("GUNY2") | |
| 108 | 108 | PORT_BIT( 0x01ff, 255, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.041, -0.011, 0) PORT_MINMAX(4,255) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_PLAYER(2) |
| 109 | 109 | PORT_BIT( 0xfe00, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 110 | 110 | |
| 111 | PORT_START("DSW2") /* DSW #2 */ | |
| 112 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 113 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) | |
| 114 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 115 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 116 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 117 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 118 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 119 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 120 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 121 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 122 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 123 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 124 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 125 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 126 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 127 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 128 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 129 | PORT_DIPNAME( 0x40, 0x40, "Gun alarm" ) /* This doesn't work. What's supposed to do? */ | |
| 130 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 131 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 132 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 133 | ||
| 134 | PORT_START("DSW1") /* DSW #1 */ | |
| 111 | PORT_START("DSW1") | |
| 135 | 112 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 136 | 113 | PORT_DIPSETTING( 0x02, DEF_STR( 6C_1C ) ) |
| 137 | 114 | PORT_DIPSETTING( 0x03, DEF_STR( 5C_1C ) ) |
| r3115 | r3116 | |
| 155 | 132 | PORT_DIPSETTING( 0x00, "Start 2C/Continue 1C" ) |
| 156 | 133 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Free_Play ) ) |
| 157 | 134 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 135 | ||
| 136 | PORT_START("DSW2") | |
| 137 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 138 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) | |
| 139 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 140 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 141 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 142 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 143 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 158 | 144 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 145 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 146 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 147 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 148 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 149 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 150 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 151 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 152 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 153 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 154 | PORT_DIPNAME( 0x40, 0x40, "Gun alarm" ) /* This doesn't work. What's supposed to do? */ | |
| 155 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 156 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 157 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 158 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 159 | 159 | |
| 160 | PORT_START("SYSTEM") | |
| 160 | PORT_START("SYSTEM") | |
| 161 | 161 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 162 | 162 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 163 | 163 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 167 | 167 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 168 | 168 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 169 | 169 | |
| 170 | PORT_START("SERVICE") | |
| 170 | PORT_START("SERVICE") | |
| 171 | 171 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 172 | 172 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* this MUST be low or the game doesn't boot */ |
| 173 | 173 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) /* Reload 1P? */ |
| r3115 | r3116 | |
|---|---|---|
| 514 | 514 | AM_RANGE(0xd002, 0xd002) AM_READ(nycaptor_generic_control_r) |
| 515 | 515 | AM_RANGE(0xd400, 0xd400) AM_READ(from_snd_r) |
| 516 | 516 | AM_RANGE(0xd401, 0xd401) AM_READ(unk_r) |
| 517 | AM_RANGE(0xd800, 0xd800) AM_READ(input_port_0_r) | |
| 518 | AM_RANGE(0xd801, 0xd801) AM_READ(input_port_1_r) | |
| 519 | AM_RANGE(0xd802, 0xd802) AM_READ(input_port_2_r) | |
| 520 | AM_RANGE(0xd803, 0xd803) AM_READ(input_port_3_r) | |
| 521 | AM_RANGE(0xd804, 0xd804) AM_READ(input_port_4_r) | |
| 517 | AM_RANGE(0xd800, 0xd800) AM_READ_PORT("DSW0") | |
| 518 | AM_RANGE(0xd801, 0xd801) AM_READ_PORT("DSW1") | |
| 519 | AM_RANGE(0xd802, 0xd802) AM_READ_PORT("DSW2") | |
| 520 | AM_RANGE(0xd803, 0xd803) AM_READ_PORT("IN0") | |
| 521 | AM_RANGE(0xd804, 0xd804) AM_READ_PORT("IN1") | |
| 522 | 522 | AM_RANGE(0xd805, 0xd805) AM_READ(cyclshtg_mcu_status_r) |
| 523 | 523 | AM_RANGE(0xd806, 0xd806) AM_READ(SMH_NOP) |
| 524 | 524 | AM_RANGE(0xd807, 0xd807) AM_READ(cyclshtg_mcu_status_r) |
| r3115 | r3116 | |
|---|---|---|
| 275 | 275 | AM_RANGE(0x10c000, 0x10ffff) AM_READ(SMH_RAM) /* main RAM */ |
| 276 | 276 | AM_RANGE(0x200000, 0x200fff) AM_READ(SMH_RAM) /* palette */ |
| 277 | 277 | AM_RANGE(0x201000, 0x203fff) AM_READ(SMH_RAM) /* read in initial checks */ |
| 278 | AM_RANGE(0x390000, 0x390003) AM_READ(input_port_0_word_r) | |
| 279 | AM_RANGE(0x3b0000, 0x3b0003) AM_READ(input_port_1_word_r) | |
| 278 | AM_RANGE(0x390000, 0x390003) AM_READ_PORT("DSWA") | |
| 279 | AM_RANGE(0x3b0000, 0x3b0003) AM_READ_PORT("DSWB") | |
| 280 | 280 | AM_RANGE(0x3e0000, 0x3e0001) AM_READ(SMH_NOP) |
| 281 | 281 | AM_RANGE(0x3e0002, 0x3e0003) AM_READ(taitosound_comm16_lsb_r) |
| 282 | 282 | AM_RANGE(0x800000, 0x8007ff) AM_READ(rainbow_cchip_ram_r) |
| r3115 | r3116 | |
| 310 | 310 | AM_RANGE(0x10c000, 0x10ffff) AM_READ(SMH_RAM) /* main RAM */ |
| 311 | 311 | AM_RANGE(0x200000, 0x200fff) AM_READ(SMH_RAM) /* palette */ |
| 312 | 312 | AM_RANGE(0x201000, 0x203fff) AM_READ(SMH_RAM) /* read in initial checks */ |
| 313 | AM_RANGE(0x400000, 0x400001) AM_READ(input_port_0_word_r) | |
| 314 | AM_RANGE(0x400002, 0x400003) AM_READ(input_port_1_word_r) | |
| 315 | AM_RANGE(0x401000, 0x401001) AM_READ(input_port_2_word_r) | |
| 316 | AM_RANGE(0x401002, 0x401003) AM_READ(input_port_3_word_r) | |
| 313 | AM_RANGE(0x400000, 0x400001) AM_READ_PORT("DSWA") | |
| 314 | AM_RANGE(0x400002, 0x400003) AM_READ_PORT("DSWB") | |
| 315 | AM_RANGE(0x401000, 0x401001) AM_READ_PORT("401001") | |
| 316 | AM_RANGE(0x401002, 0x401003) AM_READ_PORT("401003") | |
| 317 | 317 | AM_RANGE(0x420000, 0x420001) AM_READ(SMH_NOP) /* read, but result not used */ |
| 318 | 318 | AM_RANGE(0x440000, 0x4407ff) AM_READ(SMH_RAM) |
| 319 | 319 | AM_RANGE(0xc00000, 0xc0ffff) AM_READ(PC080SN_word_0_r) |
| r3115 | r3116 | |
|---|---|---|
| 234 | 234 | AM_RANGE(0x08, 0x0b) AM_READNOP //sound status? |
| 235 | 235 | AM_RANGE(0x18, 0x1b) AM_READNOP //sound status? |
| 236 | 236 | AM_RANGE(0x20, 0x23) AM_WRITE(pasha2_lamps_w) |
| 237 | AM_RANGE(0x40, 0x43) AM_READ(input_port_0_word_r) | |
| 238 | AM_RANGE(0x60, 0x63) AM_READ(input_port_1_word_r) | |
| 239 | AM_RANGE(0x80, 0x83) AM_READ(input_port_2_word_r) | |
| 237 | AM_RANGE(0x40, 0x43) AM_READ_PORT("COINS") | |
| 238 | AM_RANGE(0x60, 0x63) AM_READ_PORT("DSW") | |
| 239 | AM_RANGE(0x80, 0x83) AM_READ_PORT("INPUTS") | |
| 240 | 240 | AM_RANGE(0xa0, 0xa3) AM_WRITENOP //soundlatch? |
| 241 | 241 | AM_RANGE(0xc0, 0xc3) AM_WRITE(pasha2_misc_w) |
| 242 | 242 | AM_RANGE(0xe0, 0xe3) AM_READWRITE(oki_0_r, oki_0_w) |
| r3115 | r3116 | |
|---|---|---|
| 124 | 124 | case 0x06/2: |
| 125 | 125 | if (ACCESSING_BITS_0_7) |
| 126 | 126 | { |
| 127 | data = input_port_read(machine, "DSW") | |
| 127 | data = input_port_read(machine, "DSW") | |
| 128 | 128 | |
| 129 | 129 | if (init_eeprom_count) |
| 130 | 130 | { |
| r3115 | r3116 | |
| 390 | 390 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 391 | 391 | |
| 392 | 392 | PORT_START("DSW") |
| 393 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 393 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 394 | 394 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM ready (always 1) */ |
| 395 | 395 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) |
| 396 | 396 | PORT_DIPNAME( 0x10, 0x00, "Monitors" ) |
| r3115 | r3116 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | static void update_interrupts(running_machine *machine) |
| 46 | 46 | { |
| 47 | int newstate = 0; | |
| 48 | int newstate2 = 0; | |
| 49 | ||
| 50 | if (atarigen_video_int_state) | |
| 51 | newstate |= 4, newstate2 |= 4; | |
| 52 | if (atarigen_sound_int_state) | |
| 53 | newstate |= 6; | |
| 54 | ||
| 55 | if (newstate) | |
| 56 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 57 | else | |
| 58 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 59 | ||
| 60 | if (newstate2) | |
| 61 | cpunum_set_input_line(machine, 1, newstate2, ASSERT_LINE); | |
| 62 | else | |
| 63 | cpunum_set_input_line(machine, 1, 7, CLEAR_LINE); | |
| 47 | cpunum_set_input_line(machine, 0, 4, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 48 | cpunum_set_input_line(machine, 1, 4, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 49 | cpunum_set_input_line(machine, 0, 6, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 64 | 50 | } |
| 65 | 51 | |
| 66 | 52 |
| r3115 | r3116 | |
|---|---|---|
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 33 | AM_RANGE(0x3080, 0x3080) AM_READ(input_port_0_r) /* IO Coin */ | |
| 34 | AM_RANGE(0x3081, 0x3081) AM_READ(input_port_1_r) /* P1 IO */ | |
| 35 | AM_RANGE(0x3082, 0x3082) AM_READ(input_port_2_r) /* P2 IO */ | |
| 36 | AM_RANGE(0x3083, 0x3083) AM_READ(input_port_3_r) /* DSW 0 */ | |
| 37 | AM_RANGE(0x3000, 0x3000) AM_READ(input_port_4_r) /* DSW 1 */ | |
| 38 | AM_RANGE(0x3100, 0x3100) AM_READ(input_port_5_r) /* DSW 2 */ | |
| 33 | AM_RANGE(0x3080, 0x3080) AM_READ_PORT("SYSTEM") | |
| 34 | AM_RANGE(0x3081, 0x3081) AM_READ_PORT("P1") | |
| 35 | AM_RANGE(0x3082, 0x3082) AM_READ_PORT("P2") | |
| 36 | AM_RANGE(0x3083, 0x3083) AM_READ_PORT("DSW1") | |
| 37 | AM_RANGE(0x3000, 0x3000) AM_READ_PORT("DSW2") | |
| 38 | AM_RANGE(0x3100, 0x3100) AM_READ_PORT("DSW3") | |
| 39 | 39 | AM_RANGE(0x4000, 0x5fff) AM_READ(SMH_RAM) |
| 40 | 40 | AM_RANGE(0x6000, 0xffff) AM_READ(SMH_ROM) |
| 41 | 41 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 61 | 61 | |
| 62 | 62 | |
| 63 | 63 | static INPUT_PORTS_START( rocnrope ) |
| 64 | PORT_START(" | |
| 64 | PORT_START("SYSTEM") | |
| 65 | 65 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 66 | 66 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 67 | 67 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 71 | 71 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 72 | 72 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 73 | 73 | |
| 74 | PORT_START(" | |
| 74 | PORT_START("P | |
| 75 | 75 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 76 | 76 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 77 | 77 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| r3115 | r3116 | |
| 81 | 81 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 82 | 82 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 83 | 83 | |
| 84 | PORT_START(" | |
| 84 | PORT_START("P | |
| 85 | 85 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| 86 | 86 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 87 | 87 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 91 | 91 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 92 | 92 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 93 | 93 | |
| 94 | PORT_START("DSW | |
| 94 | PORT_START("DSW1") | |
| 95 | 95 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 96 | 96 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 97 | 97 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 126 | 126 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) |
| 127 | 127 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 128 | 128 | PORT_DIPSETTING( 0x00, "Disabled" ) |
| 129 | /* 0x00 disables Coin 2. It still accepts coins and makes the sound, but | |
| 130 | it doesn't give you any credit */ | |
| 129 | /* 0x00 disables Coin 2. It still accepts coins and makes the sound, but it doesn't give you any credit */ | |
| 131 | 130 | |
| 132 | PORT_START("DSW | |
| 131 | PORT_START("DSW2") | |
| 133 | 132 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 134 | 133 | PORT_DIPSETTING( 0x03, "3" ) |
| 135 | 134 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
| 159 | 158 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 160 | 159 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 161 | 160 | |
| 162 | PORT_START("DSW | |
| 161 | PORT_START("DSW3") | |
| 163 | 162 | PORT_DIPNAME( 0x07, 0x07, "First Bonus" ) |
| 164 | 163 | PORT_DIPSETTING( 0x07, "20000" ) |
| 165 | 164 | PORT_DIPSETTING( 0x05, "30000" ) |
| r3115 | r3116 | |
|---|---|---|
| 159 | 159 | #include "includes/docastle.h" |
| 160 | 160 | |
| 161 | 161 | |
| 162 | static int adpcm_pos, adpcm_idle; | |
| 163 | static int adpcm_data; | |
| 164 | static int adpcm_status; | |
| 165 | ||
| 166 | ||
| 162 | 167 | /* Read/Write Handlers */ |
| 163 | 168 | |
| 164 | static int adpcm_pos, adpcm_idle; | |
| 165 | 169 | |
| 166 | 170 | static void idsoccer_adpcm_int(running_machine *machine, int chip) |
| 167 | 171 | { |
| 168 | static int adpcm_data = -1; | |
| 169 | ||
| 170 | 172 | if (adpcm_pos >= memory_region_length(machine, "adpcm")) |
| 171 | 173 | { |
| 172 | 174 | adpcm_idle = 1; |
| r3115 | r3116 | |
| 187 | 189 | static READ8_HANDLER( idsoccer_adpcm_status_r ) |
| 188 | 190 | { |
| 189 | 191 | // this is wrong, but the samples work anyway!! |
| 190 | static int i; | |
| 191 | i ^= 0x80; | |
| 192 | return i; | |
| 192 | adpcm_status ^= 0x80; | |
| 193 | return adpcm_status; | |
| 193 | 194 | } |
| 194 | 195 | |
| 195 | 196 | static WRITE8_HANDLER( idsoccer_adpcm_w ) |
| r3115 | r3116 | |
| 571 | 572 | |
| 572 | 573 | /* Machine Drivers */ |
| 573 | 574 | |
| 575 | static MACHINE_RESET( docastle ) | |
| 576 | { | |
| 577 | adpcm_pos = adpcm_idle = 0; | |
| 578 | adpcm_data = -1; | |
| 579 | adpcm_status = 0; | |
| 580 | } | |
| 581 | ||
| 582 | ||
| 574 | 583 | static MACHINE_DRIVER_START( docastle ) |
| 575 | 584 | // basic machine hardware |
| 576 | 585 | // MDRV_CPU_ADD("main", Z80, 4000000) // 4 MHz |
| r3115 | r3116 | |
| 603 | 612 | MDRV_VIDEO_START(docastle) |
| 604 | 613 | MDRV_VIDEO_UPDATE(docastle) |
| 605 | 614 | |
| 615 | MDRV_MACHINE_RESET( docastle ) | |
| 616 | ||
| 606 | 617 | // sound hardware |
| 607 | 618 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 608 | 619 |
| r3115 | r3116 | |
|---|---|---|
| 52 | 52 | UINT32 r = 0; |
| 53 | 53 | |
| 54 | 54 | if (ACCESSING_BITS_24_31) |
| 55 | r |= | |
| 55 | r |= | |
| 56 | 56 | |
| 57 | 57 | return r; |
| 58 | 58 | } |
| r3115 | r3116 | |
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | static | |
| 70 | static CUSTOM_I | |
| 71 | 71 | { |
| 72 | return (input_port_read(machine, "P1") << 28) | ((input_port_read(machine, "STICKX1") & 0xfff) << 16) | (input_port_read(machine, "STICKY1") & 0xfff); | |
| 72 | const char *tag = param; | |
| 73 | return input_port_read(field->port->machine, tag) & 0xfff; | |
| 73 | 74 | } |
| 74 | 75 | |
| 75 | static READ32_HANDLER( control2_r ) | |
| 76 | { | |
| 77 | return (input_port_read(machine, "P2") << 28) | ((input_port_read(machine, "STICKX2") & 0xfff) << 16) | (input_port_read(machine, "STICKY2") & 0xfff); | |
| 78 | } | |
| 79 | ||
| 80 | 76 | static WRITE32_HANDLER( int_ack_w ) |
| 81 | 77 | { |
| 82 | 78 | cpunum_set_input_line(machine, 0, INPUT_LINE_IRQ1, CLEAR_LINE); |
| r3115 | r3116 | |
| 104 | 100 | static ADDRESS_MAP_START( ultrsprt_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| 105 | 101 | AM_RANGE(0x00000000, 0x0007ffff) AM_RAM AM_BASE(&vram) |
| 106 | 102 | AM_RANGE(0x70000000, 0x70000003) AM_READWRITE(eeprom_r, eeprom_w) |
| 107 | AM_RANGE(0x70000020, 0x70000023) AM_READ(control1_r) | |
| 108 | AM_RANGE(0x70000040, 0x70000043) AM_READ(control2_r) | |
| 103 | AM_RANGE(0x70000020, 0x70000023) AM_READ_PORT("P1") | |
| 104 | AM_RANGE(0x70000040, 0x70000043) AM_READ_PORT("P2") | |
| 109 | 105 | AM_RANGE(0x70000080, 0x70000087) AM_WRITE(K056800_host_w) |
| 110 | 106 | AM_RANGE(0x70000088, 0x7000008f) AM_READ(K056800_host_r) |
| 111 | 107 | AM_RANGE(0x700000e0, 0x700000e3) AM_WRITE(int_ack_w) |
| r3115 | r3116 | |
| 179 | 175 | |
| 180 | 176 | static INPUT_PORTS_START( ultrsprt ) |
| 181 | 177 | PORT_START("P1") |
| 182 | PORT_BIT( 0x4, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 183 | PORT_BIT( 0x2, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 184 | PORT_BIT( 0x1, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 178 | PORT_BIT( 0x00000fff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(analog_ctrl_r, "STICKY1") | |
| 179 | PORT_BIT( 0x0fff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(analog_ctrl_r, "STICKX1") | |
| 180 | PORT_BIT( 0x40000000, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 181 | PORT_BIT( 0x20000000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 182 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 185 | 183 | |
| 184 | PORT_START("P2") | |
| 185 | PORT_BIT( 0x00000fff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(analog_ctrl_r, "STICKY2") | |
| 186 | PORT_BIT( 0x0fff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(analog_ctrl_r, "STICKX2") | |
| 187 | PORT_BIT( 0x40000000, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 188 | PORT_BIT( 0x20000000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 189 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 190 | ||
| 191 | PORT_START("SERVICE") | |
| 192 | PORT_BIT( 0x02000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 193 | PORT_SERVICE_NO_TOGGLE( 0x08000000, IP_ACTIVE_LOW ) | |
| 194 | ||
| 186 | 195 | PORT_START("STICKX1") |
| 187 | 196 | PORT_BIT( 0xfff, 0x800, IPT_AD_STICK_X ) PORT_MINMAX(0x000,0xfff) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 188 | 197 | |
| 189 | 198 | PORT_START("STICKY1") |
| 190 | 199 | PORT_BIT( 0xfff, 0x800, IPT_AD_STICK_Y ) PORT_MINMAX(0x000,0xfff) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) PORT_REVERSE PORT_PLAYER(1) |
| 191 | 200 | |
| 192 | PORT_START("P2") | |
| 193 | PORT_BIT( 0x4, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 194 | PORT_BIT( 0x2, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 195 | PORT_BIT( 0x1, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 196 | ||
| 197 | 201 | PORT_START("STICKX2") |
| 198 | 202 | PORT_BIT( 0xfff, 0x800, IPT_AD_STICK_X ) PORT_MINMAX(0x000,0xfff) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) PORT_PLAYER(2) |
| 199 | 203 | |
| 200 | 204 | PORT_START("STICKY2") |
| 201 | 205 | PORT_BIT( 0xfff, 0x800, IPT_AD_STICK_Y ) PORT_MINMAX(0x000,0xfff) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) PORT_REVERSE PORT_PLAYER(2) |
| 202 | ||
| 203 | PORT_START("SERVICE") | |
| 204 | PORT_SERVICE_NO_TOGGLE( 0x1, IP_ACTIVE_LOW ) | |
| 205 | ||
| 206 | 206 | INPUT_PORTS_END |
| 207 | 207 | |
| 208 | 208 | static void eeprom_handler(mame_file *file, int read_or_write) |
| r3115 | r3116 | |
|---|---|---|
| 40 | 40 | |
| 41 | 41 | static void update_interrupts(running_machine *machine) |
| 42 | 42 | { |
| 43 | int newstate = 0; | |
| 44 | ||
| 45 | if (atarigen_scanline_int_state) | |
| 46 | newstate = 4; | |
| 47 | ||
| 48 | if (newstate) | |
| 49 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 50 | else | |
| 51 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 43 | cpunum_set_input_line(machine, 0, 4, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 52 | 44 | } |
| 53 | 45 | |
| 54 | 46 | |
| r3115 | r3116 | |
| 186 | 178 | AM_RANGE(0x500000, 0x500fff) AM_MIRROR(0x019000) AM_READWRITE(atarigen_eeprom_r, atarigen_eeprom_w) AM_BASE(&atarigen_eeprom) AM_SIZE(&atarigen_eeprom_size) |
| 187 | 179 | AM_RANGE(0x5a6000, 0x5a6001) AM_MIRROR(0x019ffe) AM_WRITE(atarigen_eeprom_enable_w) |
| 188 | 180 | AM_RANGE(0x640000, 0x640001) AM_MIRROR(0x019ffe) AM_WRITE(latch_w) |
| 189 | AM_RANGE(0x640000, 0x640001) AM_MIRROR(0x019ffc) AM_READ(input_port_0_word_r) | |
| 190 | AM_RANGE(0x640002, 0x640003) AM_MIRROR(0x019ffc) AM_READ(input_port_1_word_r) | |
| 191 | AM_RANGE(0x6c0000, 0x6c0001) AM_MIRROR(0x019ff8) AM_READ(input_port_2_word_r) | |
| 192 | AM_RANGE(0x6c0002, 0x6c0003) AM_MIRROR(0x019ff8) AM_READ(input_port_3_word_r) | |
| 193 | AM_RANGE(0x6c0004, 0x6c0005) AM_MIRROR(0x019ff8) AM_READ(input_port_4_word_r) | |
| 194 | AM_RANGE(0x6c0006, 0x6c0007) AM_MIRROR(0x019ff8) AM_READ(input_port_5_word_r) | |
| 181 | AM_RANGE(0x640000, 0x640001) AM_MIRROR(0x019ffc) AM_READ_PORT("IN0") | |
| 182 | AM_RANGE(0x640002, 0x640003) AM_MIRROR(0x019ffc) AM_READ_PORT("IN1") | |
| 183 | AM_RANGE(0x6c0000, 0x6c0001) AM_MIRROR(0x019ff8) AM_READ_PORT("TRACK0") | |
| 184 | AM_RANGE(0x6c0002, 0x6c0003) AM_MIRROR(0x019ff8) AM_READ_PORT("TRACK1") | |
| 185 | AM_RANGE(0x6c0004, 0x6c0005) AM_MIRROR(0x019ff8) AM_READ_PORT("TRACK2") | |
| 186 | AM_RANGE(0x6c0006, 0x6c0007) AM_MIRROR(0x019ff8) AM_READ_PORT("TRACK3") | |
| 195 | 187 | AM_RANGE(0x726000, 0x726001) AM_MIRROR(0x019ffe) AM_WRITE(watchdog_reset16_w) |
| 196 | 188 | AM_RANGE(0x7e6000, 0x7e6001) AM_MIRROR(0x019ffe) AM_WRITE(atarigen_scanline_int_ack_w) |
| 197 | 189 | ADDRESS_MAP_END |
| r3115 | r3116 | |
|---|---|---|
| 166 | 166 | AM_RANGE(0xa800, 0xafff) AM_READ(SMH_RAM) |
| 167 | 167 | AM_RANGE(0xb000, 0xb7ff) AM_READ(SMH_RAM) |
| 168 | 168 | AM_RANGE(0xb800, 0xbbff) AM_READ(SMH_RAM) |
| 169 | AM_RANGE(0xd000, 0xd000) AM_READ(input_port_0_r) /* player 1 input */ | |
| 170 | AM_RANGE(0xd001, 0xd001) AM_READ(input_port_1_r) /* player 2 input */ | |
| 171 | AM_RANGE(0xd002, 0xd002) AM_READ(input_port_2_r) /* coin */ | |
| 172 | AM_RANGE(0xd004, 0xd004) AM_READ(input_port_3_r) /* DSW1 */ | |
| 173 | AM_RANGE(0xd005, 0xd005) AM_READ(input_port_4_r) /* DSW2 */ | |
| 169 | AM_RANGE(0xd000, 0xd000) AM_READ_PORT("P1") | |
| 170 | AM_RANGE(0xd001, 0xd001) AM_READ_PORT("P2") | |
| 171 | AM_RANGE(0xd002, 0xd002) AM_READ_PORT("SYSTEM") | |
| 172 | AM_RANGE(0xd004, 0xd004) AM_READ_PORT("DSW1") | |
| 173 | AM_RANGE(0xd005, 0xd005) AM_READ_PORT("DSW2") | |
| 174 | 174 | ADDRESS_MAP_END |
| 175 | 175 | |
| 176 | 176 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 317 | 317 | |
| 318 | 318 | |
| 319 | 319 | static INPUT_PORTS_START( senjyo ) |
| 320 | PORT_START("P1") | |
| 320 | PORT_START("P1") | |
| 321 | 321 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 322 | 322 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 323 | 323 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 327 | 327 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 328 | 328 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 329 | 329 | |
| 330 | PORT_START("P2") | |
| 330 | PORT_START("P2") | |
| 331 | 331 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 332 | 332 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 333 | 333 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 337 | 337 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 338 | 338 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 339 | 339 | |
| 340 | PORT_START("SYSTEM") | |
| 340 | PORT_START("SYSTEM") | |
| 341 | 341 | /* coin input for both must be active between 2 and 9 frames to be consistently recognized */ |
| 342 | 342 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(2) |
| 343 | 343 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(2) |
| r3115 | r3116 | |
| 348 | 348 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 349 | 349 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 350 | 350 | |
| 351 | PORT_START("DSW1") | |
| 351 | PORT_START("DSW1") | |
| 352 | 352 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) |
| 353 | 353 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 354 | 354 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) |
| r3115 | r3116 | |
| 371 | 371 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 372 | 372 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 373 | 373 | |
| 374 | PORT_START("DSW2") | |
| 374 | PORT_START("DSW2") | |
| 375 | 375 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 376 | 376 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 377 | 377 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 398 | 398 | INPUT_PORTS_END |
| 399 | 399 | |
| 400 | 400 | static INPUT_PORTS_START( starforc ) |
| 401 | PORT_START("P1") | |
| 401 | PORT_START("P1") | |
| 402 | 402 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 403 | 403 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 404 | 404 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 408 | 408 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 409 | 409 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 410 | 410 | |
| 411 | PORT_START("P2") | |
| 411 | PORT_START("P2") | |
| 412 | 412 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 413 | 413 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 414 | 414 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 418 | 418 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 419 | 419 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 420 | 420 | |
| 421 | PORT_START("SYSTEM") | |
| 421 | PORT_START("SYSTEM") | |
| 422 | 422 | /* coin input for both must be active between 2 and 9 frames to be consistently recognized */ |
| 423 | 423 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(2) |
| 424 | 424 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(2) |
| r3115 | r3116 | |
| 429 | 429 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 430 | 430 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 431 | 431 | |
| 432 | PORT_START("DSW1") | |
| 432 | PORT_START("DSW1") | |
| 433 | 433 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) |
| 434 | 434 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| 435 | 435 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 452 | 452 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 453 | 453 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 454 | 454 | |
| 455 | PORT_START("DSW2") | |
| 455 | PORT_START("DSW2") | |
| 456 | 456 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Bonus_Life ) ) |
| 457 | 457 | PORT_DIPSETTING( 0x00, "50k, 200k and 500k" ) |
| 458 | 458 | PORT_DIPSETTING( 0x01, "100k, 300k and 800k" ) |
| r3115 | r3116 | |
| 479 | 479 | INPUT_PORTS_END |
| 480 | 480 | |
| 481 | 481 | static INPUT_PORTS_START( baluba ) |
| 482 | PORT_START("P1") | |
| 482 | PORT_START("P1") | |
| 483 | 483 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 484 | 484 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 485 | 485 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 489 | 489 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 490 | 490 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 491 | 491 | |
| 492 | PORT_START("P2") | |
| 492 | PORT_START("P2") | |
| 493 | 493 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 494 | 494 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 495 | 495 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 499 | 499 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 500 | 500 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 501 | 501 | |
| 502 | PORT_START("SYSTEM") | |
| 502 | PORT_START("SYSTEM") | |
| 503 | 503 | /* coin input for both must be active between 2 and 9 frames to be consistently recognized */ |
| 504 | 504 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(2) |
| 505 | 505 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(2) |
| r3115 | r3116 | |
| 510 | 510 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 511 | 511 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 512 | 512 | |
| 513 | PORT_START("DSW1") | |
| 513 | PORT_START("DSW1") | |
| 514 | 514 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) |
| 515 | 515 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| 516 | 516 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 533 | 533 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 534 | 534 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 535 | 535 | |
| 536 | PORT_START("DSW2") | |
| 536 | PORT_START("DSW2") | |
| 537 | 537 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Bonus_Life ) ) |
| 538 | 538 | PORT_DIPSETTING( 0x00, "30k, 100k and 200k" ) |
| 539 | 539 | PORT_DIPSETTING( 0x01, "50k, 200k and 500k" ) |
| r3115 | r3116 | |
|---|---|---|
| 164 | 164 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 165 | 165 | AM_RANGE(0x100000, 0x103fff) AM_READ(SMH_RAM) |
| 166 | 166 | AM_RANGE(0x300000, 0x300001) AM_READ(snowbros_68000_sound_r) |
| 167 | AM_RANGE(0x500000, 0x500001) AM_READ(input_port_0_word_r) | |
| 168 | AM_RANGE(0x500002, 0x500003) AM_READ(input_port_1_word_r) | |
| 169 | AM_RANGE(0x500004, 0x500005) AM_READ(input_port_2_word_r) | |
| 167 | AM_RANGE(0x500000, 0x500001) AM_READ_PORT("DSW1") | |
| 168 | AM_RANGE(0x500002, 0x500003) AM_READ_PORT("DSW2") | |
| 169 | AM_RANGE(0x500004, 0x500005) AM_READ_PORT("SYSTEM") | |
| 170 | 170 | AM_RANGE(0x600000, 0x6001ff) AM_READ(SMH_RAM) |
| 171 | 171 | AM_RANGE(0x700000, 0x701fff) AM_READ(pandora_spriteram_LSB_r) |
| 172 | 172 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 213 | 213 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 214 | 214 | AM_RANGE(0x100000, 0x103fff) AM_READ(SMH_RAM) |
| 215 | 215 | AM_RANGE(0x300000, 0x300001) AM_READ(snowbros_68000_sound_r) |
| 216 | AM_RANGE(0x500000, 0x500001) AM_READ(input_port_0_word_r) | |
| 217 | AM_RANGE(0x500002, 0x500003) AM_READ(input_port_1_word_r) | |
| 218 | AM_RANGE(0x500004, 0x500005) AM_READ(input_port_2_word_r) | |
| 216 | AM_RANGE(0x500000, 0x500001) AM_READ_PORT("DSW1") | |
| 217 | AM_RANGE(0x500002, 0x500003) AM_READ_PORT("DSW2") | |
| 218 | AM_RANGE(0x500004, 0x500005) AM_READ_PORT("SYSTEM") | |
| 219 | 219 | AM_RANGE(0x600000, 0x6001ff) AM_READ(SMH_RAM) |
| 220 | 220 | AM_RANGE(0x700000, 0x701fff) AM_READ(SMH_RAM) |
| 221 | 221 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 238 | 238 | static ADDRESS_MAP_START( honeydol_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 239 | 239 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 240 | 240 | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 241 | AM_RANGE(0x900000, 0x900001) AM_READ(input_port_0_word_r) | |
| 242 | AM_RANGE(0x900002, 0x900003) AM_READ(input_port_1_word_r) | |
| 243 | AM_RANGE(0x900004, 0x900005) AM_READ(input_port_2_word_r) | |
| 241 | AM_RANGE(0x900000, 0x900001) AM_READ_PORT("DSW1") | |
| 242 | AM_RANGE(0x900002, 0x900003) AM_READ_PORT("DSW2") | |
| 243 | AM_RANGE(0x900004, 0x900005) AM_READ_PORT("SYSTEM") | |
| 244 | 244 | AM_RANGE(0xa00000, 0xa007ff) AM_READ(SMH_RAM) |
| 245 | 245 | AM_RANGE(0xb00000, 0xb01fff) AM_READ(SMH_RAM) |
| 246 | 246 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 298 | 298 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 299 | 299 | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 300 | 300 | AM_RANGE(0x300000, 0x300001) AM_READ(snowbros_68000_sound_r) |
| 301 | AM_RANGE(0x500000, 0x500001) AM_READ(input_port_0_word_r) | |
| 302 | AM_RANGE(0x500002, 0x500003) AM_READ(input_port_1_word_r) | |
| 303 | AM_RANGE(0x500004, 0x500005) AM_READ(input_port_2_word_r) | |
| 301 | AM_RANGE(0x500000, 0x500001) AM_READ_PORT("DSW1") | |
| 302 | AM_RANGE(0x500002, 0x500003) AM_READ_PORT("DSW2") | |
| 303 | AM_RANGE(0x500004, 0x500005) AM_READ_PORT("SYSTEM") | |
| 304 | 304 | AM_RANGE(0x600000, 0x6001ff) AM_READ(SMH_RAM) |
| 305 | 305 | AM_RANGE(0x700000, 0x701fff) AM_READ(SMH_RAM) |
| 306 | 306 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 365 | 365 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 366 | 366 | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 367 | 367 | |
| 368 | AM_RANGE(0x500000, 0x500001) AM_READ(input_port_0_word_r) | |
| 369 | AM_RANGE(0x500002, 0x500003) AM_READ(input_port_1_word_r) | |
| 370 | AM_RANGE(0x500004, 0x500005) AM_READ(input_port_2_word_r) | |
| 368 | AM_RANGE(0x500000, 0x500001) AM_READ_PORT("DSW1") | |
| 369 | AM_RANGE(0x500002, 0x500003) AM_READ_PORT("DSW2") | |
| 370 | AM_RANGE(0x500004, 0x500005) AM_READ_PORT("SYSTEM") | |
| 371 | 371 | |
| 372 | 372 | AM_RANGE(0x600000, 0x6001ff) AM_READ(SMH_RAM) |
| 373 | 373 | AM_RANGE(0x700000, 0x701fff) AM_READ(pandora_spriteram_LSB_r) |
| r3115 | r3116 | |
| 513 | 513 | AM_RANGE( 0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 514 | 514 | AM_RANGE( 0x100000, 0x103fff) AM_READ(SMH_RAM) |
| 515 | 515 | AM_RANGE( 0x300000, 0x300001) AM_READ(sb3_sound_r) // ? |
| 516 | AM_RANGE( 0x500000, 0x500001) AM_READ(input_port_0_word_r) | |
| 517 | AM_RANGE( 0x500002, 0x500003) AM_READ(input_port_1_word_r) | |
| 518 | AM_RANGE( 0x500004, 0x500005) AM_READ(input_port_2_word_r) | |
| 516 | AM_RANGE( 0x500000, 0x500001) AM_READ_PORT("DSW1") | |
| 517 | AM_RANGE( 0x500002, 0x500003) AM_READ_PORT("DSW2") | |
| 518 | AM_RANGE( 0x500004, 0x500005) AM_READ_PORT("SYSTEM") | |
| 519 | 519 | AM_RANGE( 0x600000, 0x6003ff) AM_READ(SMH_RAM) |
| 520 | 520 | AM_RANGE( 0x700000, 0x7021ff) AM_READ(SMH_RAM) |
| 521 | 521 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 538 | 538 | static ADDRESS_MAP_START( finalttr_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 539 | 539 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 540 | 540 | AM_RANGE(0x100000, 0x103fff) AM_READ(SMH_RAM) |
| 541 | AM_RANGE(0x500000, 0x500001) AM_READ(input_port_0_word_r) | |
| 542 | AM_RANGE(0x500002, 0x500003) AM_READ(input_port_1_word_r) | |
| 543 | AM_RANGE(0x500004, 0x500005) AM_READ(input_port_2_word_r) | |
| 541 | AM_RANGE(0x500000, 0x500001) AM_READ_PORT("DSW1") | |
| 542 | AM_RANGE(0x500002, 0x500003) AM_READ_PORT("DSW2") | |
| 543 | AM_RANGE(0x500004, 0x500005) AM_READ_PORT("SYSTEM") | |
| 544 | 544 | |
| 545 | 545 | AM_RANGE(0x600000, 0x6001ff) AM_READ(SMH_RAM) |
| 546 | 546 | AM_RANGE(0x700000, 0x701fff) AM_READ(pandora_spriteram_LSB_r) |
| r3115 | r3116 | |
| 572 | 572 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 573 | 573 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 574 | 574 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) |
| 575 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x00) | |
| 576 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x00) | |
| 577 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x00) | |
| 578 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x01) | |
| 575 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) | |
| 576 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) | |
| 577 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) | |
| 578 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) | |
| 579 | 579 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) |
| 580 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x01) | |
| 581 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x01) | |
| 580 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) | |
| 581 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) | |
| 582 | 582 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) |
| 583 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x01) | |
| 584 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x01) | |
| 585 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x01) | |
| 586 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x01) | |
| 587 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x00) | |
| 588 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x00) | |
| 589 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x00) | |
| 590 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW1",0x01,PORTCOND_EQUALS,0x00) | |
| 583 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) | |
| 584 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) | |
| 585 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) | |
| 586 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) | |
| 587 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) | |
| 588 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) | |
| 589 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) | |
| 590 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) | |
| 591 | 591 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 592 | 592 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 593 | 593 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r3115 | r3116 | |
|---|---|---|
| 253 | 253 | AM_RANGE(0x0200, 0x07ff) AM_RAMBANK(1) AM_BASE(&mhavoc_zram0) |
| 254 | 254 | AM_RANGE(0x0800, 0x09ff) AM_RAM |
| 255 | 255 | AM_RANGE(0x0a00, 0x0fff) AM_RAMBANK(1) AM_BASE(&mhavoc_zram1) |
| 256 | AM_RANGE(0x1000, 0x1000) AM_READ(mhavoc_gamma_r) /* Gamma Read Port */ | |
| 257 | AM_RANGE(0x1200, 0x1200) AM_READWRITE(mhavoc_port_0_r, SMH_NOP) /* Alpha Input Port 0 */ | |
| 258 | AM_RANGE(0x1400, 0x141f) AM_RAM AM_BASE(&mhavoc_colorram) /* ColorRAM */ | |
| 259 | AM_RANGE(0x1600, 0x1600) AM_WRITE(mhavoc_out_0_w) /* Control Signals */ | |
| 260 | AM_RANGE(0x1640, 0x1640) AM_WRITE(avgdvg_go_w) /* Vector Generator GO */ | |
| 261 | AM_RANGE(0x1680, 0x1680) AM_WRITE(watchdog_reset_w) /* Watchdog Clear */ | |
| 262 | AM_RANGE(0x16c0, 0x16c0) AM_WRITE(avgdvg_reset_w) /* Vector Generator Reset */ | |
| 263 | AM_RANGE(0x1700, 0x1700) AM_WRITE(mhavoc_alpha_irq_ack_w) /* IRQ ack */ | |
| 264 | AM_RANGE(0x1740, 0x1740) AM_WRITE(mhavoc_rom_banksel_w) /* Program ROM Page Select */ | |
| 265 | AM_RANGE(0x1780, 0x1780) AM_WRITE(mhavoc_ram_banksel_w) /* Program RAM Page Select */ | |
| 266 | AM_RANGE(0x17c0, 0x17c0) AM_WRITE(mhavoc_gamma_w) /* Gamma Communication Write Port */ | |
| 267 | AM_RANGE(0x1800, 0x1fff) AM_RAM /* Shared Beta Ram */ | |
| 268 | AM_RANGE(0x2000, 0x3fff) AM_ROMBANK(2) /* Paged Program ROM (32K) */ | |
| 269 | AM_RANGE(0x4000, 0x4fff) AM_RAM AM_BASE(&vectorram) AM_SIZE(&vectorram_size) AM_REGION("alpha", 0x4000)/* Vector Generator RAM */ | |
| 270 | AM_RANGE(0x5000, 0x7fff) AM_ROM /* Vector ROM */ | |
| 271 | AM_RANGE(0x8000, 0xffff) AM_READ(SMH_ROM) /* Program ROM (32K) */ | |
| 256 | AM_RANGE(0x1000, 0x1000) AM_READ(mhavoc_gamma_r) /* Gamma Read Port */ | |
| 257 | AM_RANGE(0x1200, 0x1200) AM_READ_PORT("IN0") AM_WRITENOP /* Alpha Input Port 0 */ | |
| 258 | AM_RANGE(0x1400, 0x141f) AM_RAM AM_BASE(&mhavoc_colorram) /* ColorRAM */ | |
| 259 | AM_RANGE(0x1600, 0x1600) AM_WRITE(mhavoc_out_0_w) /* Control Signals */ | |
| 260 | AM_RANGE(0x1640, 0x1640) AM_WRITE(avgdvg_go_w) /* Vector Generator GO */ | |
| 261 | AM_RANGE(0x1680, 0x1680) AM_WRITE(watchdog_reset_w) /* Watchdog Clear */ | |
| 262 | AM_RANGE(0x16c0, 0x16c0) AM_WRITE(avgdvg_reset_w) /* Vector Generator Reset */ | |
| 263 | AM_RANGE(0x1700, 0x1700) AM_WRITE(mhavoc_alpha_irq_ack_w) /* IRQ ack */ | |
| 264 | AM_RANGE(0x1740, 0x1740) AM_WRITE(mhavoc_rom_banksel_w) /* Program ROM Page Select */ | |
| 265 | AM_RANGE(0x1780, 0x1780) AM_WRITE(mhavoc_ram_banksel_w) /* Program RAM Page Select */ | |
| 266 | AM_RANGE(0x17c0, 0x17c0) AM_WRITE(mhavoc_gamma_w) /* Gamma Communication Write Port */ | |
| 267 | AM_RANGE(0x1800, 0x1fff) AM_RAM /* Shared Beta Ram */ | |
| 268 | AM_RANGE(0x2000, 0x3fff) AM_ROMBANK(2) /* Paged Program ROM (32K) */ | |
| 269 | AM_RANGE(0x4000, 0x4fff) AM_RAM AM_BASE(&vectorram) AM_SIZE(&vectorram_size) AM_REGION("alpha", 0x4000) /* Vector Generator RAM */ | |
| 270 | AM_RANGE(0x5000, 0x7fff) AM_ROM /* Vector ROM */ | |
| 271 | AM_RANGE(0x8000, 0xffff) AM_READ(SMH_ROM) /* Program ROM (32K) */ | |
| 272 | 272 | ADDRESS_MAP_END |
| 273 | 273 | |
| 274 | 274 | |
| r3115 | r3116 | |
| 283 | 283 | AM_RANGE(0x0000, 0x07ff) AM_RAM /* Program RAM (2K) */ |
| 284 | 284 | AM_RANGE(0x0800, 0x0fff) AM_RAM AM_MIRROR (0x1800) |
| 285 | 285 | AM_RANGE(0x2000, 0x203f) AM_READWRITE(quad_pokey_r, quad_pokey_w) /* Quad Pokey read */ |
| 286 | AM_RANGE(0x2800, 0x2800) AM_READ | |
| 286 | AM_RANGE(0x2800, 0x2800) AM_READ | |
| 287 | 287 | AM_RANGE(0x3000, 0x3000) AM_READ(mhavoc_alpha_r) /* Alpha Comm. Read Port*/ |
| 288 | 288 | AM_RANGE(0x3800, 0x3803) AM_READ_PORT("DIAL") /* Roller Controller Input*/ |
| 289 | 289 | AM_RANGE(0x4000, 0x4000) AM_READ_PORT("DSW2") AM_WRITE(mhavoc_gamma_irq_ack_w) /* DSW at 8S, IRQ Acknowledge*/ |
| r3115 | r3116 | |
| 308 | 308 | AM_RANGE(0x0800, 0x09ff) AM_RAM |
| 309 | 309 | AM_RANGE(0x0a00, 0x0fff) AM_RAMBANK(1) AM_BASE(&mhavoc_zram1) |
| 310 | 310 | AM_RANGE(0x1020, 0x103f) AM_READWRITE(dual_pokey_r, dual_pokey_w) |
| 311 | AM_RANGE(0x1040, 0x1040) AM_READ | |
| 311 | AM_RANGE(0x1040, 0x1040) AM_READ_POR | |
| 312 | 312 | AM_RANGE(0x1060, 0x1060) AM_READ_PORT("IN1") /* Gamma Input Port */ |
| 313 | 313 | AM_RANGE(0x1080, 0x1080) AM_READ_PORT("DIAL") /* Roller Controller Input*/ |
| 314 | 314 | AM_RANGE(0x10a0, 0x10a0) AM_WRITE(alphaone_out_0_w) /* Control Signals */ |
| r3115 | r3116 | |
| 334 | 334 | * |
| 335 | 335 | *************************************/ |
| 336 | 336 | |
| 337 | static CUSTOM_INPUT( clock_r ) | |
| 338 | { | |
| 339 | /* 2.4kHz (divide 2.5MHz by 1024) */ | |
| 340 | return (cpunum_gettotalcycles(0) & 0x400) ? 0 : 1; | |
| 341 | } | |
| 342 | ||
| 343 | ||
| 344 | /* 2008-08 FP: | |
| 345 | IN0 Bit 4 is tested in the second input test, but it's not clear its effect. | |
| 346 | According to the memory map at top it should be Diagnostic Step, but it's | |
| 347 | actually IN0 Bit 5 to have this function. I marked it as UNKNOWN for the moment */ | |
| 337 | 348 | static INPUT_PORTS_START( mhavoc ) |
| 338 | PORT_START("IN0") /* IN0 - alpha (player_1 = 0) */ | |
| 339 | PORT_BIT ( 0x03, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 340 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) | |
| 341 | PORT_BIT ( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) | |
| 342 | PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) | |
| 343 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Diag Step/Coin C") PORT_CODE(KEYCODE_F1) | |
| 344 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) /* Left Coin Switch */ | |
| 345 | PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) /* Right Coin */ | |
| 349 | PORT_START("IN0") /* alpha */ | |
| 350 | /* Bits 7-6 = selected based on player_1 */ | |
| 351 | /* Bits 5-4 = common */ | |
| 352 | /* Bit 3 = Gamma rcvd flag */ | |
| 353 | /* Bit 2 = Gamma xmtd flag */ | |
| 354 | /* Bit 1 = 2.4kHz (divide 2.5MHz by 1024) */ | |
| 355 | /* Bit 0 = Vector generator halt flag */ | |
| 356 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(avgdvg_done_r, NULL) | |
| 357 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(clock_r, NULL) | |
| 358 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(gamma_xmtd_r, NULL) | |
| 359 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(gamma_rcvd_r, NULL) | |
| 360 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 361 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Diag Step/Coin C") PORT_CODE(KEYCODE_F1) | |
| 362 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(mhavoc_bit67_r, "COIN\0SERVICE") | |
| 346 | 363 | |
| 347 | PORT_START("IN1") /* IN1 - gamma */ | |
| 348 | PORT_BIT ( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 349 | PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 350 | PORT_BIT ( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 351 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 352 | PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 364 | PORT_START("IN1") /* gamma */ | |
| 365 | /* Bits 7-2 = input switches */ | |
| 366 | /* Bit 1 = Alpha rcvd flag */ | |
| 367 | /* Bit 0 = Alpha xmtd flag */ | |
| 368 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(alpha_xmtd_r, NULL) | |
| 369 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(alpha_rcvd_r, NULL) | |
| 370 | PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 371 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 372 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 373 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 374 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 353 | 375 | |
| 354 | PORT_START("DIAL") /* | |
| 376 | PORT_START("DIAL") /* | |
| 355 | 377 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_REVERSE |
| 356 | 378 | |
| 357 | 379 | PORT_START("DSW1") /* DIP Switch at position 13/14S */ |
| r3115 | r3116 | |
| 398 | 420 | PORT_DIPSETTING( 0x60, "1 each 5" ) |
| 399 | 421 | PORT_DIPSETTING( 0xe0, DEF_STR( None ) ) |
| 400 | 422 | |
| 401 | PORT_START("IN2") /* IN5 - dummy for player_1 = 1 on alpha */ | |
| 402 | PORT_BIT ( 0x3f, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 403 | PORT_DIPNAME( 0x40, 0x40, "Credit to start" ) | |
| 404 | PORT_DIPSETTING( 0x40, "1" ) | |
| 423 | PORT_START("COIN") /* dummy for player_1 = 0 on alpha */ | |
| 424 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) /* Left Coin Switch */ | |
| 425 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) /* Right Coin */ | |
| 426 | ||
| 427 | PORT_START("SERVICE") /* dummy for player_1 = 1 on alpha */ | |
| 428 | PORT_DIPNAME( 0x01, 0x01, "Credit to start" ) | |
| 429 | PORT_DIPSETTING( 0x01, "1" ) | |
| 405 | 430 | PORT_DIPSETTING( 0x00, "2" ) |
| 406 | PORT_SERVICE( 0x | |
| 431 | PORT_SERVICE( 0x | |
| 407 | 432 | INPUT_PORTS_END |
| 408 | 433 | |
| 434 | static INPUT_PORTS_START( mhavocrv ) | |
| 435 | PORT_INCLUDE( mhavoc ) | |
| 409 | 436 | |
| 437 | PORT_MODIFY("IN1") | |
| 438 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(tms5220_r, NULL) | |
| 439 | PORT_BIT( 0x0b, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 440 | INPUT_PORTS_END | |
| 441 | ||
| 410 | 442 | static INPUT_PORTS_START( mhavocp ) |
| 411 | PORT_START("IN0") /* IN0 - alpha (player_1 = 0) */ | |
| 412 | PORT_BIT ( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 413 | PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 414 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Diag Step/Coin C") PORT_CODE(KEYCODE_F1) | |
| 415 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) /* Left Coin Switch */ | |
| 416 | PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) /* Right Coin */ | |
| 443 | PORT_INCLUDE( mhavoc ) | |
| 417 | 444 | |
| 418 | PORT_START("IN1") /* IN1 - gamma */ | |
| 419 | PORT_BIT ( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 420 | PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 421 | PORT_BIT ( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 422 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 423 | PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 424 | ||
| 425 | PORT_START("DIAL") /* IN2 - gamma */ | |
| 426 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_REVERSE | |
| 427 | ||
| 428 | PORT_START("DSW1") /* DIP Switch at position 13/14S */ | |
| 445 | PORT_MODIFY("DSW1") | |
| 429 | 446 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:7,8") |
| 430 | 447 | PORT_DIPSETTING( 0x00, "1" ) |
| 431 | 448 | PORT_DIPSETTING( 0x01, "2" ) |
| 432 | 449 | PORT_DIPSETTING( 0x02, "3" ) |
| 433 | 450 | PORT_DIPSETTING( 0x03, "4" ) |
| 434 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 435 | PORT_DIPSETTING( 0x0c, "50000") | |
| 436 | PORT_DIPSETTING( 0x00, "100000") | |
| 437 | PORT_DIPSETTING( 0x04, "200000") | |
| 438 | PORT_DIPSETTING( 0x08, DEF_STR( None )) | |
| 439 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:3,4") | |
| 440 | PORT_DIPSETTING( 0x10, DEF_STR( Easy )) | |
| 441 | PORT_DIPSETTING( 0x00, DEF_STR( Medium )) | |
| 442 | PORT_DIPSETTING( 0x30, DEF_STR( Hard )) | |
| 443 | PORT_DIPSETTING( 0x20, "Demo") | |
| 444 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") | |
| 445 | PORT_DIPSETTING( 0x00, "3 (2 in Free Play)") | |
| 446 | PORT_DIPSETTING( 0xc0, "4 (3 in Free Play)") | |
| 447 | PORT_DIPSETTING( 0x80, "5 (4 in Free Play)") | |
| 448 | PORT_DIPSETTING( 0x40, "6 (5 in Free Play)") | |
| 449 | ||
| 450 | PORT_START("DSW2") /* DIP Switch at position 8S */ | |
| 451 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:7,8") | |
| 452 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) | |
| 453 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) | |
| 454 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 455 | PORT_DIPSETTING( 0x01, DEF_STR( Free_Play ) ) | |
| 456 | PORT_DIPNAME( 0x0c, 0x0c, "Right Coin Mechanism" ) PORT_DIPLOCATION("SW2:5,6") | |
| 457 | PORT_DIPSETTING( 0x0c, "x1" ) | |
| 458 | PORT_DIPSETTING( 0x08, "x4" ) | |
| 459 | PORT_DIPSETTING( 0x04, "x5" ) | |
| 460 | PORT_DIPSETTING( 0x00, "x6" ) | |
| 461 | PORT_DIPNAME( 0x10, 0x10, "Left Coin Mechanism" ) PORT_DIPLOCATION("SW2:4") | |
| 462 | PORT_DIPSETTING( 0x10, "x1" ) | |
| 463 | PORT_DIPSETTING( 0x00, "x2" ) | |
| 464 | PORT_DIPNAME( 0xe0, 0xe0, "Bonus Credits" ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 465 | PORT_DIPSETTING( 0x80, "2 each 4" ) | |
| 466 | PORT_DIPSETTING( 0x40, "1 each 3" ) | |
| 467 | PORT_DIPSETTING( 0xa0, "1 each 4" ) | |
| 468 | PORT_DIPSETTING( 0x60, "1 each 5" ) | |
| 469 | PORT_DIPSETTING( 0xe0, DEF_STR( None ) ) | |
| 470 | ||
| 471 | PORT_START("IN2") /* IN5 - dummy for player_1 = 1 on alpha */ | |
| 472 | PORT_BIT ( 0x3f, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 473 | PORT_DIPNAME( 0x40, 0x40, "Credit to start" ) | |
| 474 | PORT_DIPSETTING( 0x40, "1" ) | |
| 475 | PORT_DIPSETTING( 0x00, "2" ) | |
| 476 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 477 | 451 | INPUT_PORTS_END |
| 478 | 452 | |
| 479 | ||
| 480 | 453 | static INPUT_PORTS_START( alphaone ) |
| 481 | PORT_START("IN0") /* IN0 - alpha (player_1 = 0) */ | |
| 482 | PORT_BIT ( 0x03, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 483 | PORT_BIT ( 0x7c, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 484 | PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 454 | PORT_START("IN0") /* alpha (player_1 = 0) */ | |
| 455 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(avgdvg_done_r, NULL) | |
| 456 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(clock_r, NULL) | |
| 457 | PORT_BIT( 0x7c, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 458 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 485 | 459 | |
| 486 | PORT_START("IN1") /* IN1 - gamma */ | |
| 487 | PORT_BIT ( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 460 | PORT_START("IN1") /* gamma */ | |
| 461 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 488 | 462 | PORT_SERVICE( 0x10, IP_ACTIVE_LOW ) |
| 489 | PORT_BIT ( 0x20, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 490 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 491 | PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 463 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 464 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 465 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 492 | 466 | |
| 493 | PORT_START("DIAL") /* | |
| 467 | PORT_START("DIAL") /* | |
| 494 | 468 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_REVERSE |
| 495 | 469 | INPUT_PORTS_END |
| 496 | 470 | |
| r3115 | r3116 | |
| 787 | 761 | { |
| 788 | 762 | /* install the speech support that was only optionally stuffed for use */ |
| 789 | 763 | /* in the Return to Vax hack */ |
| 790 | memory_install_read8_handler(machine, 1, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2800, 0, 0, mhavoc_port_1_sp_r); | |
| 791 | 764 | memory_install_write8_handler(machine, 1, ADDRESS_SPACE_PROGRAM, 0x5800, 0x5800, 0, 0, speech_data_w); |
| 792 | 765 | memory_install_write8_handler(machine, 1, ADDRESS_SPACE_PROGRAM, 0x5900, 0x5900, 0, 0, speech_strobe_w); |
| 793 | 766 | } |
| r3115 | r3116 | |
| 802 | 775 | |
| 803 | 776 | GAME( 1983, mhavoc, 0, mhavoc, mhavoc, 0, ROT0, "Atari", "Major Havoc (rev 3)", GAME_SUPPORTS_SAVE ) |
| 804 | 777 | GAME( 1983, mhavoc2, mhavoc, mhavoc, mhavoc, 0, ROT0, "Atari", "Major Havoc (rev 2)", GAME_SUPPORTS_SAVE ) |
| 805 | GAME( 1983, mhavocrv, mhavoc, mhavocrv, mhavoc, | |
| 778 | GAME( 1983, mhavocrv, mhavoc, mhavocrv, mhavocrv, | |
| 806 | 779 | GAME( 1983, mhavocp, mhavoc, mhavoc, mhavocp, 0, ROT0, "Atari", "Major Havoc (prototype)", GAME_SUPPORTS_SAVE ) |
| 807 | 780 | GAME( 1983, alphaone, mhavoc, alphaone, alphaone, 0, ROT0, "Atari", "Alpha One (prototype, 3 lives)", GAME_SUPPORTS_SAVE ) |
| 808 | 781 | GAME( 1983, alphaona, mhavoc, alphaone, alphaone, 0, ROT0, "Atari", "Alpha One (prototype, 5 lives)", GAME_SUPPORTS_SAVE ) |
| r3115 | r3116 | |
|---|---|---|
| 86 | 86 | |
| 87 | 87 | static void update_main_irqs(running_machine *machine) |
| 88 | 88 | { |
| 89 | int irq = 0; | |
| 89 | cpunum_set_input_line(machine, 0, 2, timer_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 90 | cpunum_set_input_line(machine, 0, 4, vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 90 | 91 | |
| 91 | /* the IRQs are effectively ORed together */ | |
| 92 | if (vblank_irq_state) | |
| 93 | irq |= 4; | |
| 94 | if (timer_irq_state) | |
| 95 | irq |= 2; | |
| 92 | if(!gprider_hack) | |
| 93 | cpunum_set_input_line(machine, 0, 6, timer_irq_state && vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 96 | 94 | |
| 97 | if (gprider_hack && irq > 4) | |
| 98 | irq = 4; | |
| 99 | ||
| 100 | /* assert the lines that are live, or clear everything if nothing is live */ | |
| 101 | if (irq != 0) | |
| 102 | { | |
| 103 | cpunum_set_input_line(machine, 0, irq, ASSERT_LINE); | |
| 95 | if(timer_irq_state || vblank_irq_state) | |
| 104 | 96 | cpu_boost_interleave(attotime_zero, ATTOTIME_IN_USEC(100)); |
| 105 | } | |
| 106 | else | |
| 107 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 108 | 97 | } |
| 109 | 98 | |
| 110 | 99 |
| r3115 | r3116 | |
|---|---|---|
| 85 | 85 | AM_RANGE(0x1400, 0x17ff) AM_RAM_WRITE(sonson_colorram_w) AM_BASE(&colorram) |
| 86 | 86 | AM_RANGE(0x2020, 0x207f) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 87 | 87 | AM_RANGE(0x3000, 0x3000) AM_WRITE(sonson_scrollx_w) |
| 88 | AM_RANGE(0x3002, 0x3002) AM_READ(input_port_0_r) /* IN0 */ | |
| 89 | AM_RANGE(0x3003, 0x3003) AM_READ(input_port_1_r) /* IN1 */ | |
| 90 | AM_RANGE(0x3004, 0x3004) AM_READ(input_port_2_r) /* IN2 */ | |
| 91 | AM_RANGE(0x3005, 0x3005) AM_READ(input_port_3_r) /* DSW0 */ | |
| 92 | AM_RANGE(0x3006, 0x3006) AM_READ(input_port_4_r) /* DSW1 */ | |
| 88 | AM_RANGE(0x3002, 0x3002) AM_READ_PORT("P1") | |
| 89 | AM_RANGE(0x3003, 0x3003) AM_READ_PORT("P2") | |
| 90 | AM_RANGE(0x3004, 0x3004) AM_READ_PORT("SYSTEM") | |
| 91 | AM_RANGE(0x3005, 0x3005) AM_READ_PORT("DSW1") | |
| 92 | AM_RANGE(0x3006, 0x3006) AM_READ_PORT("DSW2") | |
| 93 | 93 | AM_RANGE(0x3008, 0x3008) AM_WRITENOP // might be Y scroll, but the game always sets it to 0 |
| 94 | 94 | AM_RANGE(0x3010, 0x3010) AM_WRITE(soundlatch_w) |
| 95 | 95 | AM_RANGE(0x3018, 0x3018) AM_WRITE(sonson_flipscreen_w) |
| r3115 | r3116 | |
| 110 | 110 | |
| 111 | 111 | |
| 112 | 112 | static INPUT_PORTS_START( sonson ) |
| 113 | PORT_START("P1") | |
| 113 | PORT_START("P1") | |
| 114 | 114 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 115 | 115 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 116 | 116 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r3115 | r3116 | |
| 120 | 120 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 121 | 121 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 122 | 122 | |
| 123 | PORT_START("P2") | |
| 123 | PORT_START("P2") | |
| 124 | 124 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 125 | 125 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 126 | 126 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 130 | 130 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 131 | 131 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 132 | 132 | |
| 133 | PORT_START("SYSTEM") | |
| 133 | PORT_START("SYSTEM") | |
| 134 | 134 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 135 | 135 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 136 | 136 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r3115 | r3116 | |
| 140 | 140 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 141 | 141 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 142 | 142 | |
| 143 | PORT_START("DSW1") | |
| 143 | PORT_START("DSW1") | |
| 144 | 144 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 145 | 145 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 146 | 146 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 167 | 167 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) |
| 168 | 168 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 169 | 169 | |
| 170 | PORT_START("DSW2") | |
| 170 | PORT_START("DSW2") | |
| 171 | 171 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 172 | 172 | PORT_DIPSETTING( 0x03, "3" ) |
| 173 | 173 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
|---|---|---|
| 57 | 57 | |
| 58 | 58 | static void update_irq_state(running_machine *machine) |
| 59 | 59 | { |
| 60 | int irq_lines = 0; | |
| 61 | ||
| 62 | if (tms_irq) | |
| 63 | irq_lines |= 4; | |
| 64 | if (hack_irq) | |
| 65 | irq_lines |= 5; | |
| 66 | ||
| 67 | if (irq_lines) | |
| 68 | cpunum_set_input_line(machine, 0, irq_lines, ASSERT_LINE); | |
| 69 | else | |
| 70 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 60 | cpunum_set_input_line(machine, 0, 4, tms_irq ? ASSERT_LINE : CLEAR_LINE); | |
| 61 | cpunum_set_input_line(machine, 0, 5, hack_irq ? ASSERT_LINE : CLEAR_LINE); | |
| 71 | 62 | } |
| 72 | 63 | |
| 73 | 64 |
| r3115 | r3116 | |
|---|---|---|
| 213 | 213 | AM_RANGE(0x074000, 0x074003) AM_WRITE(twincobr_fgscroll_w) /* fg layer scroll */ |
| 214 | 214 | AM_RANGE(0x074004, 0x074005) AM_WRITE(twincobr_fgoffs_w) /* offset in fg video RAM */ |
| 215 | 215 | AM_RANGE(0x076000, 0x076003) AM_WRITE(twincobr_exscroll_w) /* Spare layer scroll */ |
| 216 | AM_RANGE(0x078000, 0x078001) AM_READ(input_port_3_word_r) /* Flying Shark - DSW A */ | |
| 217 | AM_RANGE(0x078002, 0x078003) AM_READ(input_port_4_word_r) /* Flying Shark - DSW B */ | |
| 218 | AM_RANGE(0x078004, 0x078005) AM_READ(input_port_1_word_r) /* Player 1 inputs */ | |
| 219 | AM_RANGE(0x078006, 0x078007) AM_READ(input_port_2_word_r) /* Player 2 inputs */ | |
| 220 | AM_RANGE(0x078008, 0x078009) AM_READ(input_port_0_word_r) /* V-Blank & FShark Coin/Start */ | |
| 216 | AM_RANGE(0x078000, 0x078001) AM_READ_PORT("DSWA") | |
| 217 | AM_RANGE(0x078002, 0x078003) AM_READ_PORT("DSWB") | |
| 218 | AM_RANGE(0x078004, 0x078005) AM_READ_PORT("P1") | |
| 219 | AM_RANGE(0x078006, 0x078007) AM_READ_PORT("P2") | |
| 220 | AM_RANGE(0x078008, 0x078009) AM_READ_PORT("VBLANK") /* V-Blank & FShark Coin/Start */ | |
| 221 | 221 | AM_RANGE(0x07800a, 0x07800b) AM_WRITE(fshark_coin_dsp_w) /* Flying Shark DSP Comms & coin stuff */ |
| 222 | 222 | AM_RANGE(0x07800c, 0x07800d) AM_WRITE(twincobr_control_w) /* Twin Cobra DSP Comms & system control */ |
| 223 | 223 | AM_RANGE(0x07a000, 0x07afff) AM_READWRITE(twincobr_sharedram_r, twincobr_sharedram_w) /* 16-bit on 68000 side, 8-bit on Z80 side */ |
| r3115 | r3116 | |
| 238 | 238 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 239 | 239 | AM_RANGE(0x00, 0x00) AM_READWRITE(ym3812_status_port_0_r, ym3812_control_port_0_w) |
| 240 | 240 | AM_RANGE(0x01, 0x01) AM_WRITE(ym3812_write_port_0_w) |
| 241 | AM_RANGE(0x10, 0x10) AM_READ | |
| 241 | AM_RANGE(0x10, 0x10) AM_READ | |
| 242 | 242 | AM_RANGE(0x20, 0x20) AM_WRITE(twincobr_coin_w) /* Twin Cobra coin count-lockout */ |
| 243 | AM_RANGE(0x40, 0x40) AM_READ(input_port_3_r) /* Twin Cobra - DSW A */ | |
| 244 | AM_RANGE(0x50, 0x50) AM_READ(input_port_4_r) /* Twin Cobra - DSW B */ | |
| 243 | AM_RANGE(0x40, 0x40) AM_READ_PORT("DSWA") | |
| 244 | AM_RANGE(0x50, 0x50) AM_READ_PORT("DSWB") | |
| 245 | 245 | ADDRESS_MAP_END |
| 246 | 246 | |
| 247 | 247 | |
| r3115 | r3116 | |
| 279 | 279 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 280 | 280 | |
| 281 | 281 | #define TOAPLAN_JAPAN_DSW_A \ |
| 282 | PORT_START("DSWA") /* DSW A */ \ | |
| 283 | 282 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) \ |
| 284 | 283 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) \ |
| 285 | 284 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) \ |
| r3115 | r3116 | |
| 304 | 303 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) |
| 305 | 304 | |
| 306 | 305 | #define TWINCOBR_VBLANK_INPUT( active_level ) \ |
| 307 | PORT_START("VBLANK") \ | |
| 308 | 306 | PORT_BIT( 0x7f, active_level, IPT_UNKNOWN ) \ |
| 309 | 307 | PORT_BIT( 0x80, active_level, IPT_VBLANK ) |
| 310 | 308 | |
| 311 | 309 | #define TWINCOBR_SYSTEM_INPUTS \ |
| 312 | PORT_START("SYSTEM") \ | |
| 313 | 310 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN3 ) \ |
| 314 | 311 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_TILT ) \ |
| 315 | 312 | PORT_DIPNAME( 0x04, 0x00, "Cross Hatch Pattern" ) \ |
| r3115 | r3116 | |
| 322 | 319 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 323 | 320 | |
| 324 | 321 | #define TWINCOBR_DSW_B /* not KTIGER */ \ |
| 325 | PORT_START("DSWB") /* DSW B */ \ | |
| 326 | 322 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) \ |
| 327 | 323 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) \ |
| 328 | 324 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) \ |
| r3115 | r3116 | |
| 346 | 342 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 347 | 343 | |
| 348 | 344 | #define FSHARK_SYSTEM_INPUTS /* V-Blank is also here */ \ |
| 349 | PORT_START("SYSTEM") \ | |
| 350 | 345 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN3 ) \ |
| 351 | 346 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_TILT ) /* tilt causes freeze */ \ |
| 352 | 347 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) /* reset button */ \ |
| r3115 | r3116 | |
| 357 | 352 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 358 | 353 | |
| 359 | 354 | #define FSHARK_DSW_B \ |
| 360 | PORT_START("DSWB") /* DSW B */ \ | |
| 361 | 355 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) \ |
| 362 | 356 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) \ |
| 363 | 357 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) \ |
| r3115 | r3116 | |
| 384 | 378 | |
| 385 | 379 | |
| 386 | 380 | static INPUT_PORTS_START( twincobr ) |
| 381 | PORT_START("VBLANK") | |
| 387 | 382 | TWINCOBR_VBLANK_INPUT( IP_ACTIVE_HIGH ) |
| 388 | 383 | |
| 389 | 384 | PORT_START("P1") |
| r3115 | r3116 | |
| 392 | 387 | PORT_START("P2") |
| 393 | 388 | TOAPLAN_PLAYER_INPUT( 2 ) |
| 394 | 389 | |
| 395 | PORT_START("DSWA") | |
| 390 | PORT_START("DSWA") | |
| 396 | 391 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 397 | 392 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 398 | 393 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 416 | 411 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) |
| 417 | 412 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) |
| 418 | 413 | |
| 414 | PORT_START("DSWB") | |
| 419 | 415 | TWINCOBR_DSW_B |
| 420 | 416 | |
| 417 | PORT_START("SYSTEM") | |
| 421 | 418 | TWINCOBR_SYSTEM_INPUTS |
| 422 | 419 | INPUT_PORTS_END |
| 423 | 420 | |
| 424 | 421 | static INPUT_PORTS_START( twincobu ) |
| 422 | PORT_START("VBLANK") | |
| 425 | 423 | TWINCOBR_VBLANK_INPUT( IP_ACTIVE_HIGH ) |
| 426 | 424 | |
| 427 | 425 | PORT_START("P1") |
| r3115 | r3116 | |
| 430 | 428 | PORT_START("P2") |
| 431 | 429 | TOAPLAN_PLAYER_INPUT( 2 ) |
| 432 | 430 | |
| 433 | PORT_START("DSWA") | |
| 431 | PORT_START("DSWA") | |
| 434 | 432 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 435 | 433 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 436 | 434 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 454 | 452 | PORT_DIPSETTING( 0xc0, DEF_STR( 2C_3C ) ) |
| 455 | 453 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) |
| 456 | 454 | |
| 455 | PORT_START("DSWB") | |
| 457 | 456 | TWINCOBR_DSW_B |
| 458 | 457 | |
| 458 | PORT_START("SYSTEM") | |
| 459 | 459 | TWINCOBR_SYSTEM_INPUTS |
| 460 | 460 | INPUT_PORTS_END |
| 461 | 461 | |
| 462 | 462 | static INPUT_PORTS_START( ktiger ) |
| 463 | PORT_START("VBLANK") | |
| 463 | 464 | TWINCOBR_VBLANK_INPUT( IP_ACTIVE_HIGH ) |
| 464 | 465 | |
| 465 | 466 | PORT_START("P1") |
| r3115 | r3116 | |
| 468 | 469 | PORT_START("P2") |
| 469 | 470 | TOAPLAN_PLAYER_INPUT( 2 ) |
| 470 | 471 | |
| 472 | PORT_START("DSWA") | |
| 471 | 473 | TOAPLAN_JAPAN_DSW_A |
| 472 | 474 | |
| 473 | PORT_START("DSWB") | |
| 475 | PORT_START("DSWB") | |
| 474 | 476 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) |
| 475 | 477 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) |
| 476 | 478 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 493 | 495 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 494 | 496 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) |
| 495 | 497 | |
| 498 | PORT_START("SYSTEM") | |
| 496 | 499 | TWINCOBR_SYSTEM_INPUTS |
| 497 | 500 | INPUT_PORTS_END |
| 498 | 501 | |
| 499 | 502 | static INPUT_PORTS_START( fshark ) |
| 503 | PORT_START("VBLANK") | |
| 500 | 504 | FSHARK_SYSTEM_INPUTS |
| 501 | 505 | |
| 502 | 506 | PORT_START("P1") |
| r3115 | r3116 | |
| 505 | 509 | PORT_START("P2") |
| 506 | 510 | TOAPLAN_PLAYER_INPUT( 2 ) |
| 507 | 511 | |
| 508 | PORT_START("DSWA") | |
| 512 | PORT_START("DSWA") | |
| 509 | 513 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) |
| 510 | 514 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| 511 | 515 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 529 | 533 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) |
| 530 | 534 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) |
| 531 | 535 | |
| 536 | PORT_START("DSWB") | |
| 532 | 537 | FSHARK_DSW_B |
| 538 | ||
| 539 | PORT_START("SYSTEM") | |
| 540 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 533 | 541 | INPUT_PORTS_END |
| 534 | 542 | |
| 535 | 543 | static INPUT_PORTS_START( skyshark ) |
| 544 | PORT_START("VBLANK") | |
| 536 | 545 | FSHARK_SYSTEM_INPUTS |
| 537 | 546 | |
| 538 | 547 | PORT_START("P1") |
| r3115 | r3116 | |
| 541 | 550 | PORT_START("P2") |
| 542 | 551 | TOAPLAN_PLAYER_INPUT( 2 ) |
| 543 | 552 | |
| 544 | PORT_START("DSWA") | |
| 553 | PORT_START("DSWA") | |
| 545 | 554 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) |
| 546 | 555 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| 547 | 556 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 565 | 574 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 566 | 575 | /* PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) Same as previous */ |
| 567 | 576 | |
| 577 | PORT_START("DSWB") | |
| 568 | 578 | FSHARK_DSW_B |
| 579 | ||
| 580 | PORT_START("SYSTEM") | |
| 581 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 569 | 582 | INPUT_PORTS_END |
| 570 | 583 | |
| 571 | 584 | static INPUT_PORTS_START( hishouza ) |
| 585 | PORT_START("VBLANK") | |
| 572 | 586 | FSHARK_SYSTEM_INPUTS |
| 573 | 587 | |
| 574 | 588 | PORT_START("P1") |
| r3115 | r3116 | |
| 577 | 591 | PORT_START("P2") |
| 578 | 592 | TOAPLAN_PLAYER_INPUT( 2 ) |
| 579 | 593 | |
| 594 | PORT_START("DSWA") | |
| 580 | 595 | TOAPLAN_JAPAN_DSW_A |
| 581 | 596 | |
| 597 | PORT_START("DSWB") | |
| 582 | 598 | FSHARK_DSW_B |
| 599 | ||
| 600 | PORT_START("SYSTEM") | |
| 601 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 583 | 602 | INPUT_PORTS_END |
| 584 | 603 | |
| 585 | 604 | static INPUT_PORTS_START( gulfwar2 ) |
| 605 | PORT_START("VBLANK") | |
| 586 | 606 | TWINCOBR_VBLANK_INPUT( IP_ACTIVE_LOW ) |
| 587 | 607 | |
| 588 | 608 | PORT_START("P1") |
| r3115 | r3116 | |
| 591 | 611 | PORT_START("P2") |
| 592 | 612 | TOAPLAN_PLAYER_INPUT( 2 ) |
| 593 | 613 | |
| 594 | PORT_START("DSWA") | |
| 614 | PORT_START("DSWA") | |
| 595 | 615 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 596 | 616 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 597 | 617 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 615 | 635 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) |
| 616 | 636 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) |
| 617 | 637 | |
| 638 | PORT_START("DSWB") | |
| 618 | 639 | TWINCOBR_DSW_B |
| 619 | 640 | |
| 641 | PORT_START("SYSTEM") | |
| 620 | 642 | TWINCOBR_SYSTEM_INPUTS |
| 621 | 643 | INPUT_PORTS_END |
| 622 | 644 |
| r3115 | r3116 | |
|---|---|---|
| 19 | 19 | #include "cpu/m6805/m6805.h" |
| 20 | 20 | #include "sound/ay8910.h" |
| 21 | 21 | #include "sound/dac.h" |
| 22 | #include "includes/buggychl.h" | |
| 22 | 23 | |
| 23 | ||
| 24 | /* bking3 mcu communication */ | |
| 25 | extern MACHINE_RESET( buggychl ); | |
| 26 | extern READ8_HANDLER( buggychl_68705_portA_r ); | |
| 27 | extern WRITE8_HANDLER( buggychl_68705_portA_w ); | |
| 28 | extern WRITE8_HANDLER( buggychl_68705_ddrA_w ); | |
| 29 | extern READ8_HANDLER( buggychl_68705_portB_r ); | |
| 30 | extern WRITE8_HANDLER( buggychl_68705_portB_w ); | |
| 31 | extern WRITE8_HANDLER( buggychl_68705_ddrB_w ); | |
| 32 | extern READ8_HANDLER( buggychl_68705_portC_r ); | |
| 33 | extern WRITE8_HANDLER( buggychl_68705_portC_w ); | |
| 34 | extern WRITE8_HANDLER( buggychl_68705_ddrC_w ); | |
| 35 | extern WRITE8_HANDLER( buggychl_mcu_w ); | |
| 36 | extern READ8_HANDLER( buggychl_mcu_r ); | |
| 37 | extern READ8_HANDLER( buggychl_mcu_status_r ); | |
| 38 | ||
| 39 | 24 | extern PALETTE_INIT( bking ); |
| 40 | 25 | |
| 41 | 26 | extern VIDEO_START( bking ); |
| r3115 | r3116 | |
| 62 | 47 | UINT8 *bking_playfield_ram; |
| 63 | 48 | |
| 64 | 49 | static int bking3_addr_h, bking3_addr_l; |
| 65 | static int sndnmi_enable | |
| 50 | static int sndnmi_enable | |
| 66 | 51 | |
| 67 | 52 | static READ8_HANDLER( bking_sndnmi_disable_r ) |
| 68 | 53 | { |
| r3115 | r3116 | |
| 789 | 774 | ROM_LOAD( "a24-21.25", 0x0000, 0x1000, CRC(3106fcac) SHA1(08454adfb58e5df84140d86ed52fa4ef684df9f1) ) /* extra rom on the same SUB PCB where is the mcu */ |
| 790 | 775 | ROM_END |
| 791 | 776 | |
| 792 | GAME( 1982, bking, 0, bking, bking, 0, ROT270, "Taito Corporation", "Birdie King", 0 ) | |
| 793 | GAME( 1983, bking2, 0, bking, bking2, 0, ROT90, "Taito Corporation", "Birdie King 2", 0 ) | |
| 794 | GAME( 1984, bking3, 0, bking3, bking2, 0, ROT90, "Taito Corporation", "Birdie King 3", 0 ) | |
| 777 | static DRIVER_INIT( bking ) | |
| 778 | { | |
| 779 | sndnmi_enable = 1; | |
| 780 | } | |
| 781 | ||
| 782 | GAME( 1982, bking, 0, bking, bking, bking, ROT270, "Taito Corporation", "Birdie King", 0 ) | |
| 783 | GAME( 1983, bking2, 0, bking, bking2, bking, ROT90, "Taito Corporation", "Birdie King 2", 0 ) | |
| 784 | GAME( 1984, bking3, 0, bking3, bking2, bking, ROT90, "Taito Corporation", "Birdie King 3", 0 ) |
| r3115 | r3116 | |
|---|---|---|
| 262 | 262 | AM_RANGE(0x4000, 0x43ff) AM_RAM /* 2114 x 2 (0x400 x 4bit each) */ |
| 263 | 263 | |
| 264 | 264 | /* 4800-480f connected to the 74LS259, A3 is data line so 4800-4807 write 0, and 4808-480f write 1 */ |
| 265 | AM_RANGE(0x4800, 0x4800) AM_WRITE(cpu_shared_ctrl_sub_w | |
| 265 | AM_RANGE(0x4800, 0x4800) AM_READ_PORT("DSW") AM_WRITE(cpu_shared_ctrl_sub_w | |
| 266 | 266 | AM_RANGE(0x4801, 0x4801) AM_WRITE(nmi_disable_and_clear_line_w) |
| 267 | 267 | AM_RANGE(0x4802, 0x4802) AM_NOP |
| 268 | 268 | AM_RANGE(0x4803, 0x4803) AM_NOP |
| r3115 | r3116 | |
| 275 | 275 | AM_RANGE(0x480c, 0x480c) AM_WRITE(shougi_mcu_halt_on_w) |
| 276 | 276 | AM_RANGE(0x480f, 0x480f) AM_NOP |
| 277 | 277 | |
| 278 | AM_RANGE(0x5000, 0x5000) AM_READ(input_port_0_r) | |
| 279 | AM_RANGE(0x5800, 0x5800) AM_READ(input_port_1_r) AM_WRITE(shougi_watchdog_reset_w) /* game won't boot if watchdog doesn't work */ | |
| 278 | AM_RANGE(0x5000, 0x5000) AM_READ_PORT("P1") | |
| 279 | AM_RANGE(0x5800, 0x5800) AM_READ_PORT("P2") AM_WRITE(shougi_watchdog_reset_w) /* game won't boot if watchdog doesn't work */ | |
| 280 | 280 | AM_RANGE(0x6000, 0x6000) AM_WRITE(ay8910_control_port_0_w) |
| 281 | 281 | AM_RANGE(0x6800, 0x6800) AM_WRITE(ay8910_write_port_0_w) |
| 282 | 282 | AM_RANGE(0x7000, 0x73ff) AM_RAM AM_SHARE(1) /* 2114 x 2 (0x400 x 4bit each) */ |
| r3115 | r3116 | |
| 313 | 313 | |
| 314 | 314 | |
| 315 | 315 | static INPUT_PORTS_START( shougi ) |
| 316 | PORT_START("P | |
| 316 | PORT_START("P | |
| 317 | 317 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 ) |
| 318 | 318 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| 319 | 319 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 323 | 323 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 324 | 324 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 325 | 325 | |
| 326 | PORT_START("P | |
| 326 | PORT_START("P | |
| 327 | 327 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 328 | 328 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 329 | 329 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| r3115 | r3116 | |
|---|---|---|
| 236 | 236 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 237 | 237 | AM_RANGE(0x10, 0x10) AM_WRITE(fromance_crtc_data_w) |
| 238 | 238 | AM_RANGE(0x11, 0x11) AM_WRITE(fromance_crtc_register_w) |
| 239 | AM_RANGE(0x20, 0x20) AM_READWRITE(input_port_0_r, sound_command_w) | |
| 240 | AM_RANGE(0x21, 0x21) AM_READWRITE(input_port_1_r, pipedrm_bankswitch_w) | |
| 239 | AM_RANGE(0x20, 0x20) AM_READ_PORT("P1") AM_WRITE(sound_command_w) | |
| 240 | AM_RANGE(0x21, 0x21) AM_READ_PORT("P2") AM_WRITE(pipedrm_bankswitch_w) | |
| 241 | 241 | AM_RANGE(0x22, 0x25) AM_WRITE(fromance_scroll_w) |
| 242 | AM_RANGE(0x22, 0x22) AM_READ(input_port_2_r) | |
| 243 | AM_RANGE(0x23, 0x23) AM_READ(input_port_3_r) | |
| 244 | AM_RANGE(0x24, 0x24) AM_READ(input_port_4_r) | |
| 242 | AM_RANGE(0x22, 0x22) AM_READ_PORT("DSW1") | |
| 243 | AM_RANGE(0x23, 0x23) AM_READ_PORT("DSW2") | |
| 244 | AM_RANGE(0x24, 0x24) AM_READ_PORT("SYSTEM") | |
| 245 | 245 | AM_RANGE(0x25, 0x25) AM_READ(pending_command_r) |
| 246 | 246 | ADDRESS_MAP_END |
| 247 | 247 | |
| r3115 | r3116 | |
| 313 | 313 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 314 | 314 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 315 | 315 | |
| 316 | PORT_START("SYSTEM") /* $24 */ | |
| 317 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 318 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 319 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) | |
| 320 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) | |
| 321 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 322 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 323 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 324 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 325 | ||
| 316 | 326 | PORT_START("DSW1") /* $22 */ |
| 317 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A )) | |
| 318 | PORT_DIPSETTING( 0x06, DEF_STR( 5C_1C )) | |
| 319 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C )) | |
| 320 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C )) | |
| 321 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C )) | |
| 327 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) | |
| 328 | PORT_DIPSETTING( 0x06, DEF_STR( 5C_1C ) ) | |
| 329 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) | |
| 330 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) | |
| 331 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) | |
| 322 | 332 | PORT_DIPSETTING( 0x04, "6 Coins/4 Credits" ) |
| 323 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_3C )) | |
| 324 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C )) | |
| 333 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_3C ) ) | |
| 334 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) | |
| 325 | 335 | PORT_DIPSETTING( 0x02, "5 Coins/6 Credits" ) |
| 326 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_5C )) | |
| 327 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C )) | |
| 328 | // PORT_DIPSETTING( 0x05, DEF_STR( 2C_3C )) | |
| 329 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C )) | |
| 330 | PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C )) | |
| 331 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C )) | |
| 332 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C )) | |
| 333 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C )) | |
| 334 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B )) | |
| 335 | PORT_DIPSETTING( 0x60, DEF_STR( 5C_1C )) | |
| 336 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C )) | |
| 337 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C )) | |
| 338 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C )) | |
| 336 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_5C ) ) | |
| 337 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) | |
| 338 | // PORT_DIPSETTING( 0x05, DEF_STR( 2C_3C ) ) | |
| 339 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) | |
| 340 | PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) | |
| 341 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) | |
| 342 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) | |
| 343 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) | |
| 344 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) | |
| 345 | PORT_DIPSETTING( 0x60, DEF_STR( 5C_1C ) ) | |
| 346 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) | |
| 347 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) | |
| 348 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) | |
| 339 | 349 | PORT_DIPSETTING( 0x40, "6 Coins/4 Credits" ) |
| 340 | PORT_DIPSETTING( 0x30, DEF_STR( 4C_3C )) | |
| 341 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C )) | |
| 350 | PORT_DIPSETTING( 0x30, DEF_STR( 4C_3C ) ) | |
| 351 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) | |
| 342 | 352 | PORT_DIPSETTING( 0x20, "5 Coins/6 Credits" ) |
| 343 | PORT_DIPSETTING( 0x10, DEF_STR( 4C_5C )) | |
| 344 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C )) | |
| 345 | // PORT_DIPSETTING( 0x50, DEF_STR( 2C_3C )) | |
| 346 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C )) | |
| 347 | PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C )) | |
| 348 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C )) | |
| 349 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C )) | |
| 350 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C )) | |
| 353 | PORT_DIPSETTING( 0x10, DEF_STR( 4C_5C ) ) | |
| 354 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) | |
| 355 | // PORT_DIPSETTING( 0x50, DEF_STR( 2C_3C ) ) | |
| 356 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) | |
| 357 | PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) | |
| 358 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) | |
| 359 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) | |
| 360 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) | |
| 351 | 361 | |
| 352 | 362 | PORT_START("DSW2") /* $23 */ |
| 353 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty )) | |
| 363 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 354 | 364 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 355 | 365 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| 356 | 366 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 357 | 367 | PORT_DIPSETTING( 0x00, "Super" ) |
| 358 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives )) | |
| 368 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) ) | |
| 359 | 369 | PORT_DIPSETTING( 0x0c, "1" ) |
| 360 | 370 | PORT_DIPSETTING( 0x08, "2" ) |
| 361 | 371 | PORT_DIPSETTING( 0x04, "3" ) |
| 362 | 372 | PORT_DIPSETTING( 0x00, "4" ) |
| 363 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds )) | |
| 364 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) | |
| 365 | PORT_DIPSETTING( 0x10, DEF_STR( On )) | |
| 366 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen )) | |
| 367 | PORT_DIPSETTING( 0x20, DEF_STR( Off )) | |
| 368 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 373 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) | |
| 374 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 375 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 376 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) | |
| 377 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 378 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 369 | 379 | PORT_DIPNAME( 0x40, 0x40, "Training Mode" ) |
| 370 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) | |
| 371 | PORT_DIPSETTING( 0x40, DEF_STR( On )) | |
| 380 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 381 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 372 | 382 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 373 | ||
| 374 | PORT_START("SYSTEM") /* $24 */ | |
| 375 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 376 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 377 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) | |
| 378 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) | |
| 379 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 380 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 381 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 382 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 383 | 383 | INPUT_PORTS_END |
| 384 | 384 | |
| 385 | 385 | |
| r3115 | r3116 | |
| 404 | 404 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 405 | 405 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 406 | 406 | |
| 407 | PORT_START("SYSTEM") /* $24 */ | |
| 408 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 409 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 410 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) | |
| 411 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) | |
| 412 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 413 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 414 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 415 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 416 | ||
| 407 | 417 | PORT_START("DSW1") /* $22 */ |
| 408 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A )) | |
| 409 | PORT_DIPSETTING( 0x09, DEF_STR( 5C_1C )) | |
| 410 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C )) | |
| 411 | PORT_DIPSETTING( 0x07, DEF_STR( 3C_1C )) | |
| 412 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_1C )) | |
| 418 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) ) | |
| 419 | PORT_DIPSETTING( 0x09, DEF_STR( 5C_1C ) ) | |
| 420 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C ) ) | |
| 421 | PORT_DIPSETTING( 0x07, DEF_STR( 3C_1C ) ) | |
| 422 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_1C ) ) | |
| 413 | 423 | PORT_DIPSETTING( 0x0b, "6 Coins/4 Credits" ) |
| 414 | PORT_DIPSETTING( 0x0c, DEF_STR( 4C_3C )) | |
| 415 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C )) | |
| 424 | PORT_DIPSETTING( 0x0c, DEF_STR( 4C_3C ) ) | |
| 425 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 416 | 426 | PORT_DIPSETTING( 0x0d, "5 Coins/6 Credits" ) |
| 417 | PORT_DIPSETTING( 0x0e, DEF_STR( 4C_5C )) | |
| 418 | PORT_DIPSETTING( 0x0f, DEF_STR( 2C_3C )) | |
| 419 | // PORT_DIPSETTING( 0x0a, DEF_STR( 2C_3C )) | |
| 420 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C )) | |
| 421 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C )) | |
| 422 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C )) | |
| 423 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_5C )) | |
| 424 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_6C )) | |
| 425 | PORT_DIPNAME( 0xf0, 0x00, DEF_STR( Coin_B )) | |
| 426 | PORT_DIPSETTING( 0x90, DEF_STR( 5C_1C )) | |
| 427 | PORT_DIPSETTING( 0x80, DEF_STR( 4C_1C )) | |
| 428 | PORT_DIPSETTING( 0x70, DEF_STR( 3C_1C )) | |
| 429 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C )) | |
| 427 | PORT_DIPSETTING( 0x0e, DEF_STR( 4C_5C ) ) | |
| 428 | PORT_DIPSETTING( 0x0f, DEF_STR( 2C_3C ) ) | |
| 429 | // PORT_DIPSETTING( 0x0a, DEF_STR( 2C_3C ) ) | |
| 430 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 431 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) | |
| 432 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) | |
| 433 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_5C ) ) | |
| 434 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_6C ) ) | |
| 435 | PORT_DIPNAME( 0xf0, 0x00, DEF_STR( Coin_B ) ) | |
| 436 | PORT_DIPSETTING( 0x90, DEF_STR( 5C_1C ) ) | |
| 437 | PORT_DIPSETTING( 0x80, DEF_STR( 4C_1C ) ) | |
| 438 | PORT_DIPSETTING( 0x70, DEF_STR( 3C_1C ) ) | |
| 439 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 430 | 440 | PORT_DIPSETTING( 0xb0, "6 Coins/4 Credits" ) |
| 431 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_3C )) | |
| 432 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C )) | |
| 441 | PORT_DIPSETTING( 0xc0, DEF_STR( 4C_3C ) ) | |
| 442 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 433 | 443 | PORT_DIPSETTING( 0xd0, "5 Coins/6 Credits" ) |
| 434 | PORT_DIPSETTING( 0xe0, DEF_STR( 4C_5C )) | |
| 435 | PORT_DIPSETTING( 0xf0, DEF_STR( 2C_3C )) | |
| 436 | // PORT_DIPSETTING( 0xa0, DEF_STR( 2C_3C )) | |
| 437 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_2C )) | |
| 438 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_3C )) | |
| 439 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_4C )) | |
| 440 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C )) | |
| 441 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C )) | |
| 444 | PORT_DIPSETTING( 0xe0, DEF_STR( 4C_5C ) ) | |
| 445 | PORT_DIPSETTING( 0xf0, DEF_STR( 2C_3C ) ) | |
| 446 | // PORT_DIPSETTING( 0xa0, DEF_STR( 2C_3C ) ) | |
| 447 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_2C ) ) | |
| 448 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_3C ) ) | |
| 449 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_4C ) ) | |
| 450 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 451 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C ) ) | |
| 442 | 452 | |
| 443 | 453 | PORT_START("DSW2") /* $23 */ |
| 444 | 454 | PORT_DIPNAME( 0x03, 0x00, "Difficulty 1" ) |
| r3115 | r3116 | |
| 452 | 462 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| 453 | 463 | PORT_DIPSETTING( 0x0c, "Super" ) |
| 454 | 464 | PORT_SERVICE( 0x10, IP_ACTIVE_HIGH ) |
| 455 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Flip_Screen )) | |
| 456 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) | |
| 457 | PORT_DIPSETTING( 0x20, DEF_STR( On )) | |
| 458 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds )) | |
| 459 | PORT_DIPSETTING( 0x40, DEF_STR( Off )) | |
| 460 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 465 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Flip_Screen ) ) | |
| 466 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 467 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 468 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 469 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 470 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 461 | 471 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 462 | ||
| 463 | PORT_START("SYSTEM") /* $24 */ | |
| 464 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 465 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 466 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) | |
| 467 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) | |
| 468 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 469 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 470 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 471 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 472 | 472 | INPUT_PORTS_END |
| 473 | 473 | |
| 474 | 474 |
| r3115 | r3116 | |
|---|---|---|
| 49 | 49 | static UINT8 discoboy_ram_bank; |
| 50 | 50 | static UINT8 port_00; |
| 51 | 51 | static UINT8 discoboy_gfxbank; |
| 52 | static int adpcm_data; | |
| 52 | 53 | |
| 53 | 54 | static VIDEO_START( discoboy ) |
| 54 | 55 | { |
| r3115 | r3116 | |
| 330 | 331 | |
| 331 | 332 | /* Sound */ |
| 332 | 333 | |
| 333 | static int adpcm_data = 0x80; | |
| 334 | ||
| 335 | 334 | //static WRITE8_HANDLER( splash_adpcm_data_w ){ |
| 336 | 335 | // adpcm_data = data; |
| 337 | 336 | //} |
| r3115 | r3116 | |
| 460 | 459 | static GFXDECODE_START( discoboy ) |
| 461 | 460 | GFXDECODE_ENTRY( "gfx1", 0, tiles8x8_layout, 0x000, 128 ) |
| 462 | 461 | GFXDECODE_ENTRY( "gfx2", 0, tiles8x8_layout2, 0x000, 128 ) |
| 463 | ||
| 464 | 462 | GFXDECODE_END |
| 465 | 463 | |
| 466 | 464 | |
| r3115 | r3116 | |
| 471 | 469 | MSM5205_S48_4B /* ??? unknown hz */ |
| 472 | 470 | }; |
| 473 | 471 | |
| 472 | static MACHINE_RESET( discoboy ) | |
| 473 | { | |
| 474 | discoboy_ram_bank = 0; | |
| 475 | port_00 = 0; | |
| 476 | discoboy_gfxbank = 0; | |
| 477 | adpcm_data = 0x80; | |
| 478 | } | |
| 474 | 479 | |
| 475 | 480 | static MACHINE_DRIVER_START( discoboy ) |
| 476 | 481 | /* basic machine hardware */ |
| r3115 | r3116 | |
| 499 | 504 | MDRV_VIDEO_START(discoboy) |
| 500 | 505 | MDRV_VIDEO_UPDATE(discoboy) |
| 501 | 506 | |
| 507 | MDRV_MACHINE_RESET( discoboy ) | |
| 508 | ||
| 502 | 509 | /* sound hardware */ |
| 503 | 510 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 504 | 511 |
| r3115 | r3116 | |
|---|---|---|
| 135 | 135 | |
| 136 | 136 | /************************************* |
| 137 | 137 | * |
| 138 | * Input ports | |
| 139 | * | |
| 140 | *************************************/ | |
| 141 | ||
| 142 | static READ32_HANDLER( port0_r ) | |
| 143 | { | |
| 144 | return input_port_read(machine, "IN0") << 16; | |
| 145 | } | |
| 146 | ||
| 147 | ||
| 148 | static READ32_HANDLER( port1_r ) | |
| 149 | { | |
| 150 | return (input_port_read(machine, "IN1") << 16) | (eeprom_read_bit() << 29); | |
| 151 | } | |
| 152 | ||
| 153 | ||
| 154 | static READ32_HANDLER( port2_r ) | |
| 155 | { | |
| 156 | return input_port_read(machine, "DSW1") << 16; | |
| 157 | } | |
| 158 | ||
| 159 | ||
| 160 | ||
| 161 | /************************************* | |
| 162 | * | |
| 163 | 138 | * Output ports |
| 164 | 139 | * |
| 165 | 140 | *************************************/ |
| r3115 | r3116 | |
| 311 | 286 | AM_RANGE(0x00900000, 0x00900003) AM_WRITE(policetr_palette_offset_w) |
| 312 | 287 | AM_RANGE(0x00920000, 0x00920003) AM_WRITE(policetr_palette_data_w) |
| 313 | 288 | AM_RANGE(0x00a00000, 0x00a00003) AM_WRITE(control_w) |
| 314 | AM_RANGE(0x00a00000, 0x00a00003) AM_READ(port0_r) | |
| 315 | AM_RANGE(0x00a20000, 0x00a20003) AM_READ(port1_r) | |
| 316 | AM_RANGE(0x00a40000, 0x00a40003) AM_READ(port2_r) | |
| 289 | AM_RANGE(0x00a00000, 0x00a00003) AM_READ_PORT("IN0") | |
| 290 | AM_RANGE(0x00a20000, 0x00a20003) AM_READ_PORT("IN1") | |
| 291 | AM_RANGE(0x00a40000, 0x00a40003) AM_READ_PORT("DSW") | |
| 317 | 292 | AM_RANGE(0x00e00000, 0x00e00003) AM_WRITENOP // watchdog??? |
| 318 | 293 | AM_RANGE(0x1fc00000, 0x1fc7ffff) AM_ROM AM_REGION("user1", 0) |
| 319 | 294 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 330 | 305 | AM_RANGE(0x00700000, 0x00700003) AM_WRITE(bsmt2000_reg_w) |
| 331 | 306 | AM_RANGE(0x00800000, 0x0080000f) AM_WRITE(policetr_video_w) |
| 332 | 307 | AM_RANGE(0x00a00000, 0x00a00003) AM_WRITE(control_w) |
| 333 | AM_RANGE(0x00a00000, 0x00a00003) AM_READ(port0_r) | |
| 334 | AM_RANGE(0x00a20000, 0x00a20003) AM_READ(port1_r) | |
| 335 | AM_RANGE(0x00a40000, 0x00a40003) AM_READ(port2_r) | |
| 308 | AM_RANGE(0x00a00000, 0x00a00003) AM_READ_PORT("IN0") | |
| 309 | AM_RANGE(0x00a20000, 0x00a20003) AM_READ_PORT("IN1") | |
| 310 | AM_RANGE(0x00a40000, 0x00a40003) AM_READ_PORT("DSW") | |
| 336 | 311 | AM_RANGE(0x00e00000, 0x00e00003) AM_WRITENOP // watchdog??? |
| 337 | 312 | AM_RANGE(0x1fc00000, 0x1fcfffff) AM_ROM AM_REGION("user1", 0) |
| 338 | 313 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 347 | 322 | |
| 348 | 323 | static INPUT_PORTS_START( policetr ) |
| 349 | 324 | PORT_START("IN0") |
| 350 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 351 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 352 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 353 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 354 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 355 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 356 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 357 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 358 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 359 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 360 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 361 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 362 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 363 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 364 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 365 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 325 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 326 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 327 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 328 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 329 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 330 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 331 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 332 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 333 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 334 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 335 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 336 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 337 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 338 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 339 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 340 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 366 | 341 | |
| 367 | 342 | PORT_START("IN1") |
| 368 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START2 ) | |
| 369 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START1 ) | |
| 370 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 371 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 372 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 373 | PORT_SERVICE( 0x0020, IP_ACTIVE_LOW ) /* Not actually a dipswitch */ | |
| 374 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 375 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 376 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 377 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 378 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 379 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 380 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 381 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM read */ | |
| 382 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 383 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 343 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 344 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 345 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 346 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 347 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 348 | PORT_SERVICE( 0x00200000, IP_ACTIVE_LOW ) /* Not actually a dipswitch */ | |
| 349 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 350 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 351 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 352 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 353 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 354 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 355 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 356 | PORT_BIT( 0x20000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM read */ | |
| 357 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 358 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 384 | 359 | |
| 385 | PORT_START("DSW1") | |
| 386 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW1:1" ) | |
| 387 | PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW1:2" ) | |
| 388 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW1:3" ) | |
| 389 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW1:4" ) | |
| 390 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW1:5" ) | |
| 391 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW1:6" ) | |
| 392 | PORT_DIPNAME( 0x40, 0x40, "Monitor Sync") PORT_DIPLOCATION("SW1:7") | |
| 393 | PORT_DIPSETTING( 0x00, "+") | |
| 394 | PORT_DIPSETTING( 0x40, "-") | |
| 395 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen )) PORT_DIPLOCATION("SW1:8") /* For use with mirrored CRTs - Not supported */ | |
| 396 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) | |
| 397 | PORT_DIPSETTING( 0x80, DEF_STR( On )) /* Will invert the Y axis of guns */ | |
| 398 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 360 | PORT_START("DSW") | |
| 361 | PORT_DIPUNUSED_DIPLOC( 0x00010000, 0x00010000, "SW1:1" ) | |
| 362 | PORT_DIPUNUSED_DIPLOC( 0x00020000, 0x00020000, "SW1:2" ) | |
| 363 | PORT_DIPUNUSED_DIPLOC( 0x00040000, 0x00040000, "SW1:3" ) | |
| 364 | PORT_DIPUNUSED_DIPLOC( 0x00080000, 0x00080000, "SW1:4" ) | |
| 365 | PORT_DIPUNUSED_DIPLOC( 0x00100000, 0x00100000, "SW1:5" ) | |
| 366 | PORT_DIPUNUSED_DIPLOC( 0x00200000, 0x00200000, "SW1:6" ) | |
| 367 | PORT_DIPNAME( 0x00400000, 0x00400000, "Monitor Sync") PORT_DIPLOCATION("SW1:7") | |
| 368 | PORT_DIPSETTING( 0x00000000, "+") | |
| 369 | PORT_DIPSETTING( 0x00400000, "-") | |
| 370 | PORT_DIPNAME( 0x00800000, 0x00800000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:8") /* For use with mirrored CRTs - Not supported */ | |
| 371 | PORT_DIPSETTING( 0x00000000, DEF_STR( Off ) ) | |
| 372 | PORT_DIPSETTING( 0x00800000, DEF_STR( On ) ) /* Will invert the Y axis of guns */ | |
| 373 | PORT_BIT( 0xff000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 399 | 374 | |
| 400 | 375 | PORT_START("GUNX1") /* fake analog X */ |
| 401 | 376 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.012, 0.008, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) |
| r3115 | r3116 | |
|---|---|---|
| 892 | 892 | { |
| 893 | 893 | if( ACCESSING_BITS_0_7 ) |
| 894 | 894 | { |
| 895 | return | |
| 895 | return | |
| 896 | 896 | } |
| 897 | 897 | return 0xffffffff; |
| 898 | 898 | } |
| r3115 | r3116 | |
| 901 | 901 | { |
| 902 | 902 | if( ACCESSING_BITS_0_7 ) |
| 903 | 903 | { |
| 904 | return | |
| 904 | return | |
| 905 | 905 | } |
| 906 | 906 | return 0xffffffff; |
| 907 | 907 | } |
| r3115 | r3116 | |
| 1118 | 1118 | /********************************************************************/ |
| 1119 | 1119 | |
| 1120 | 1120 | static INPUT_PORTS_START( spi_2button ) |
| 1121 | PORT_START("P1") | |
| 1122 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1123 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1124 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1125 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1126 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1127 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1128 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1129 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1121 | PORT_START("INPUTS") | |
| 1122 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1123 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1124 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1125 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1126 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1127 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1128 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1129 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1130 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1131 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1132 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1133 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1134 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1135 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1136 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1137 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1138 | PORT_BIT( 0xffff0000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1130 | 1139 | |
| 1131 | PORT_START("P2") | |
| 1132 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1133 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1134 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1135 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1136 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1137 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1138 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1139 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1140 | ||
| 1141 | 1140 | PORT_START("SYSTEM") |
| 1142 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1143 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1144 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW) /* Test Button */ | |
| 1145 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service Coin") PORT_CODE(KEYCODE_7) | |
| 1146 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1141 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1142 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1143 | PORT_SERVICE_NO_TOGGLE( 0x00000004, IP_ACTIVE_LOW) /* Test Button */ | |
| 1144 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service Coin") PORT_CODE(KEYCODE_7) | |
| 1145 | PORT_BIT( 0x00000040, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 1146 | PORT_BIT( 0x000000b0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1147 | PORT_BIT( 0xffffff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1147 | 1148 | |
| 1148 | PORT_START("JP1") | |
| 1149 | PORT_START("JP1") | |
| 1149 | 1150 | PORT_DIPNAME( 0x03, 0x03, "JP1" ) |
| 1150 | 1151 | PORT_DIPSETTING( 0x03, "Update" ) |
| 1151 | 1152 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 1159 | 1160 | INPUT_PORTS_END |
| 1160 | 1161 | |
| 1161 | 1162 | static INPUT_PORTS_START( spi_3button ) |
| 1162 | PORT_START("P1") | |
| 1163 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1164 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1165 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1166 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1167 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1168 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1169 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1170 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1163 | PORT_INCLUDE( spi_2button ) | |
| 1171 | 1164 | |
| 1172 | PORT_START("P2") | |
| 1173 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1174 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1175 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1176 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1177 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1178 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1179 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1180 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1181 | ||
| 1182 | PORT_START("SYSTEM") | |
| 1183 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1184 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1185 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) | |
| 1186 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service Coin") PORT_CODE(KEYCODE_7) | |
| 1187 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1188 | ||
| 1189 | PORT_START("JP1") | |
| 1190 | PORT_DIPNAME( 0x03, 0x03, "JP1" ) | |
| 1191 | PORT_DIPSETTING( 0x03, "Update" ) | |
| 1192 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1193 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1194 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1195 | ||
| 1196 | PORT_START("COIN") | |
| 1197 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1198 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1199 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1165 | PORT_MODIFY("INPUTS") | |
| 1166 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1167 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1200 | 1168 | INPUT_PORTS_END |
| 1201 | 1169 | |
| 1202 | 1170 | static INPUT_PORTS_START( seibu386_2button ) |
| 1203 | PORT_START("P1") | |
| 1204 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1205 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1206 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1207 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1208 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1209 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1210 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1211 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1171 | PORT_START("INPUTS") | |
| 1172 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1173 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1174 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1175 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1176 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1177 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1178 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1179 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1180 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1181 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1182 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1183 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1184 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1185 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1186 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1187 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1188 | PORT_BIT( 0xffff0000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1212 | 1189 | |
| 1213 | PORT_START("P2") | |
| 1214 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1215 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1216 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1217 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1218 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1219 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1220 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1221 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1222 | ||
| 1223 | 1190 | PORT_START("SYSTEM") |
| 1224 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1225 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1226 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW) /* Test Button */ | |
| 1227 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service Coin") PORT_CODE(KEYCODE_7) | |
| 1228 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1229 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1230 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1191 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1192 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1193 | PORT_SERVICE_NO_TOGGLE( 0x00000004, IP_ACTIVE_LOW) /* Test Button */ | |
| 1194 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service Coin") PORT_CODE(KEYCODE_7) | |
| 1195 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1196 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1197 | PORT_BIT( 0x000000c0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1198 | PORT_BIT( 0xffffff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1231 | 1199 | |
| 1232 | PORT_START("JP1") | |
| 1200 | PORT_START("JP1") | |
| 1233 | 1201 | PORT_DIPNAME( 0x03, 0x03, "JP1" ) |
| 1234 | 1202 | PORT_DIPSETTING( 0x03, "Update" ) |
| 1235 | 1203 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 1274 | 1242 | } |
| 1275 | 1243 | |
| 1276 | 1244 | static INPUT_PORTS_START( spi_ejanhs ) |
| 1277 | PORT_START("P1") | |
| 1278 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(ejanhs_encode, "IN0BITS") | |
| 1245 | PORT_START("INPUTS") | |
| 1246 | PORT_BIT( 0x0000003f, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(ejanhs_encode, "IN0BITS") | |
| 1247 | PORT_BIT( 0x00003f00, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(ejanhs_encode, "IN1BITS") | |
| 1248 | PORT_BIT( 0xffff0000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1279 | 1249 | |
| 1280 | PORT_START("P2") | |
| 1281 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(ejanhs_encode, "IN1BITS") | |
| 1282 | ||
| 1283 | 1250 | PORT_START("SYSTEM") |
| 1284 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) | |
| 1285 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service Coin") PORT_CODE(KEYCODE_7) | |
| 1286 | PORT_BIT( 0xf3, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1251 | PORT_SERVICE_NO_TOGGLE( 0x00000004, IP_ACTIVE_LOW ) | |
| 1252 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service Coin") PORT_CODE(KEYCODE_7) | |
| 1253 | PORT_BIT( 0x000000f3, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1254 | PORT_BIT( 0xffffff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1287 | 1255 | |
| 1288 | 1256 | PORT_START("JP1") |
| 1289 | 1257 | PORT_DIPNAME( 0x03, 0x03, "JP1" ) |
| r3115 | r3116 | |
| 1298 | 1266 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1299 | 1267 | |
| 1300 | 1268 | PORT_START("IN0BITS") |
| 1301 | PORT_BIT( 0x001, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 A") PORT_CODE(KEYCODE_A) | |
| 1302 | PORT_BIT( 0x002, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 B") PORT_CODE(KEYCODE_B) | |
| 1303 | PORT_BIT( 0x004, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 E") PORT_CODE(KEYCODE_E) | |
| 1304 | PORT_BIT( 0x008, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 F") PORT_CODE(KEYCODE_F) | |
| 1305 | PORT_BIT( 0x010, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 I") PORT_CODE(KEYCODE_I) | |
| 1306 | PORT_BIT( 0x020, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 J") PORT_CODE(KEYCODE_J) | |
| 1307 | PORT_BIT( 0x040, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 M") PORT_CODE(KEYCODE_M) | |
| 1308 | PORT_BIT( 0x080, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 N") PORT_CODE(KEYCODE_N) | |
| 1309 | PORT_BIT( 0x100, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 Kan") PORT_CODE(KEYCODE_LCONTROL) | |
| 1310 | PORT_BIT( 0x200, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 Reach") PORT_CODE(KEYCODE_LSHIFT) | |
| 1311 | PORT_BIT( 0x400, IP_ACTIVE_HIGH, IPT_START1 ) PORT_PLAYER(1) | |
| 1269 | PORT_BIT( 0x001, IP_ACTIVE_HIGH, IPT_MAHJONG_A ) PORT_PLAYER(1) | |
| 1270 | PORT_BIT( 0x002, IP_ACTIVE_HIGH, IPT_MAHJONG_B ) PORT_PLAYER(1) | |
| 1271 | PORT_BIT( 0x004, IP_ACTIVE_HIGH, IPT_MAHJONG_E ) PORT_PLAYER(1) | |
| 1272 | PORT_BIT( 0x008, IP_ACTIVE_HIGH, IPT_MAHJONG_F ) PORT_PLAYER(1) | |
| 1273 | PORT_BIT( 0x010, IP_ACTIVE_HIGH, IPT_MAHJONG_I ) PORT_PLAYER(1) | |
| 1274 | PORT_BIT( 0x020, IP_ACTIVE_HIGH, IPT_MAHJONG_J ) PORT_PLAYER(1) | |
| 1275 | PORT_BIT( 0x040, IP_ACTIVE_HIGH, IPT_MAHJONG_M ) PORT_PLAYER(1) | |
| 1276 | PORT_BIT( 0x080, IP_ACTIVE_HIGH, IPT_MAHJONG_N ) PORT_PLAYER(1) | |
| 1277 | PORT_BIT( 0x100, IP_ACTIVE_HIGH, IPT_MAHJONG_KAN ) PORT_PLAYER(1) | |
| 1278 | PORT_BIT( 0x200, IP_ACTIVE_HIGH, IPT_MAHJONG_REACH ) PORT_PLAYER(1) | |
| 1279 | PORT_BIT( 0x400, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1312 | 1280 | |
| 1313 | 1281 | PORT_START("IN1BITS") |
| 1314 | PORT_BIT( 0x001, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 C") PORT_CODE(KEYCODE_C) | |
| 1315 | PORT_BIT( 0x002, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 D") PORT_CODE(KEYCODE_D) | |
| 1316 | PORT_BIT( 0x004, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 G") PORT_CODE(KEYCODE_G) | |
| 1317 | PORT_BIT( 0x008, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 H") PORT_CODE(KEYCODE_H) | |
| 1318 | PORT_BIT( 0x010, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 K") PORT_CODE(KEYCODE_K) | |
| 1319 | PORT_BIT( 0x020, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 L") PORT_CODE(KEYCODE_L) | |
| 1320 | PORT_BIT( 0x040, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 Chi") PORT_CODE(KEYCODE_SPACE) | |
| 1321 | PORT_BIT( 0x080, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 Pon") PORT_CODE(KEYCODE_LALT) | |
| 1322 | PORT_BIT( 0x100, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("P1 Ron") PORT_CODE(KEYCODE_Z) | |
| 1282 | PORT_BIT( 0x001, IP_ACTIVE_HIGH, IPT_MAHJONG_C ) PORT_PLAYER(1) | |
| 1283 | PORT_BIT( 0x002, IP_ACTIVE_HIGH, IPT_MAHJONG_D ) PORT_PLAYER(1) | |
| 1284 | PORT_BIT( 0x004, IP_ACTIVE_HIGH, IPT_MAHJONG_G ) PORT_PLAYER(1) | |
| 1285 | PORT_BIT( 0x008, IP_ACTIVE_HIGH, IPT_MAHJONG_H ) PORT_PLAYER(1) | |
| 1286 | PORT_BIT( 0x010, IP_ACTIVE_HIGH, IPT_MAHJONG_K ) PORT_PLAYER(1) | |
| 1287 | PORT_BIT( 0x020, IP_ACTIVE_HIGH, IPT_MAHJONG_L ) PORT_PLAYER(1) | |
| 1288 | PORT_BIT( 0x040, IP_ACTIVE_HIGH, IPT_MAHJONG_CHI ) PORT_PLAYER(1) | |
| 1289 | PORT_BIT( 0x080, IP_ACTIVE_HIGH, IPT_MAHJONG_PON ) PORT_PLAYER(1) | |
| 1290 | PORT_BIT( 0x100, IP_ACTIVE_HIGH, IPT_MAHJONG_RON ) PORT_PLAYER(1) | |
| 1323 | 1291 | INPUT_PORTS_END |
| 1324 | 1292 | |
| 1325 | 1293 | /********************************************************************/ |
| r3115 | r3116 | |
|---|---|---|
| 159 | 159 | |
| 160 | 160 | static ADDRESS_MAP_START( sauro_readport, ADDRESS_SPACE_IO, 8 ) |
| 161 | 161 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 162 | AM_RANGE(0x00, 0x00) AM_READ(input_port_2_r) | |
| 163 | AM_RANGE(0x20, 0x20) AM_READ(input_port_3_r) | |
| 164 | AM_RANGE(0x40, 0x40) AM_READ(input_port_0_r) | |
| 165 | AM_RANGE(0x60, 0x60) AM_READ(input_port_1_r) | |
| 162 | AM_RANGE(0x00, 0x00) AM_READ_PORT("DSW1") | |
| 163 | AM_RANGE(0x20, 0x20) AM_READ_PORT("DSW2") | |
| 164 | AM_RANGE(0x40, 0x40) AM_READ_PORT("P1") | |
| 165 | AM_RANGE(0x60, 0x60) AM_READ_PORT("P2") | |
| 166 | 166 | ADDRESS_MAP_END |
| 167 | 167 | |
| 168 | 168 | static ADDRESS_MAP_START( sauro_writeport, ADDRESS_SPACE_IO, 8 ) |
| r3115 | r3116 | |
| 204 | 204 | static ADDRESS_MAP_START( trckydoc_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 205 | 205 | AM_RANGE(0x0000, 0xdfff) AM_READ(SMH_ROM) |
| 206 | 206 | AM_RANGE(0xe000, 0xe7ff) AM_READ(SMH_RAM) |
| 207 | AM_RANGE(0xf800, 0xf800) AM_READ(input_port_2_r) | |
| 208 | AM_RANGE(0xf808, 0xf808) AM_READ(input_port_3_r) | |
| 209 | AM_RANGE(0xf810, 0xf810) AM_READ(input_port_0_r) | |
| 210 | AM_RANGE(0xf818, 0xf818) AM_READ(input_port_1_r) | |
| 207 | AM_RANGE(0xf800, 0xf800) AM_READ_PORT("DSW1") | |
| 208 | AM_RANGE(0xf808, 0xf808) AM_READ_PORT("DSW2") | |
| 209 | AM_RANGE(0xf810, 0xf810) AM_READ_PORT("P1") | |
| 210 | AM_RANGE(0xf818, 0xf818) AM_READ_PORT("P2") | |
| 211 | 211 | AM_RANGE(0xf828, 0xf828) AM_READ(watchdog_reset_r) |
| 212 | 212 | ADDRESS_MAP_END |
| 213 | 213 | |
| r3115 | r3116 | |
| 230 | 230 | ADDRESS_MAP_END |
| 231 | 231 | |
| 232 | 232 | static INPUT_PORTS_START( tecfri ) |
| 233 | PORT_START("P1") | |
| 233 | PORT_START("P1") | |
| 234 | 234 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 235 | 235 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 236 | 236 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r3115 | r3116 | |
| 240 | 240 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 241 | 241 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 242 | 242 | |
| 243 | PORT_START("P2") | |
| 243 | PORT_START("P2") | |
| 244 | 244 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 245 | 245 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| 246 | 246 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| r3115 | r3116 | |
|---|---|---|
| 240 | 240 | |
| 241 | 241 | static ADDRESS_MAP_START( readport, ADDRESS_SPACE_IO, 8 ) |
| 242 | 242 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 243 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) /* joy1 */ | |
| 244 | AM_RANGE(0x04, 0x04) AM_READ(input_port_1_r) /* joy2 */ | |
| 245 | AM_RANGE(0x08, 0x08) AM_READ(input_port_2_r) /* coin,start */ | |
| 246 | AM_RANGE(0x0c, 0x0c) AM_READ(input_port_3_r) /* DIP2 */ | |
| 247 | AM_RANGE(0x0e, 0x0e) AM_READ(input_port_3_r) /* DIP2 blckgalb reads it from here */ | |
| 248 | AM_RANGE(0x0d, 0x0d) AM_READ(input_port_4_r) /* DIP1 some games read it from here... */ | |
| 249 | AM_RANGE(0x10, 0x10) AM_READ(input_port_4_r) /* DIP1 ... and some others from here */ | |
| 250 | /* but there are games which check BOTH! */ | |
| 243 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") | |
| 244 | AM_RANGE(0x04, 0x04) AM_READ_PORT("P2") | |
| 245 | AM_RANGE(0x08, 0x08) AM_READ_PORT("SYSTEM") | |
| 246 | AM_RANGE(0x0c, 0x0c) AM_READ_PORT("DSW2") /* DIP2 */ | |
| 247 | AM_RANGE(0x0e, 0x0e) AM_READ_PORT("DSW2") /* DIP2 blckgalb reads it from here */ | |
| 248 | AM_RANGE(0x0d, 0x0d) AM_READ_PORT("DSW1") /* DIP1 some games read it from here... */ | |
| 249 | AM_RANGE(0x10, 0x10) AM_READ_PORT("DSW1") /* DIP1 ... and some others from here */ | |
| 250 | /* but there are games which check BOTH! */ | |
| 251 | 251 | |
| 252 | AM_RANGE(0x11, 0x11) AM_READ | |
| 252 | AM_RANGE(0x11, 0x11) AM_READ | |
| 253 | 253 | |
| 254 | 254 | |
| 255 | 255 | AM_RANGE(0x15, 0x15) AM_READ(system1_videomode_r) |
| r3115 | r3116 | |
| 266 | 266 | |
| 267 | 267 | static ADDRESS_MAP_START( wbml_readport, ADDRESS_SPACE_IO, 8 ) |
| 268 | 268 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 269 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) /* joy1 */ | |
| 270 | AM_RANGE(0x04, 0x04) AM_READ(input_port_1_r) /* joy2 */ | |
| 271 | AM_RANGE(0x08, 0x08) AM_READ(input_port_2_r) /* coin,start */ | |
| 272 | AM_RANGE(0x0c, 0x0c) AM_READ(input_port_3_r) /* DIP2 */ | |
| 273 | AM_RANGE(0x0d, 0x0d) AM_READ(input_port_4_r) /* DIP1 some games read it from here... */ | |
| 274 | AM_RANGE(0x10, 0x10) AM_READ(input_port_4_r) /* DIP1 ... and some others from here */ | |
| 275 | /* but there are games which check BOTH! */ | |
| 269 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") | |
| 270 | AM_RANGE(0x04, 0x04) AM_READ_PORT("P2") | |
| 271 | AM_RANGE(0x08, 0x08) AM_READ_PORT("SYSTEM") | |
| 272 | AM_RANGE(0x0c, 0x0c) AM_READ_PORT("DSW2") /* DIP2 */ | |
| 273 | AM_RANGE(0x0d, 0x0d) AM_READ_PORT("DSW1") /* DIP1 some games read it from here... */ | |
| 274 | AM_RANGE(0x10, 0x10) AM_READ_PORT("DSW1") /* DIP1 ... and some others from here */ | |
| 275 | /* but there are games which check BOTH! */ | |
| 276 | 276 | AM_RANGE(0x15, 0x15) AM_READ(system1_videomode_r) |
| 277 | 277 | AM_RANGE(0x16, 0x16) AM_READ(wbml_videoram_bank_latch_r) |
| 278 | 278 | AM_RANGE(0x19, 0x19) AM_READ(system1_videomode_r) /* mirror address */ |
| r3115 | r3116 | |
| 280 | 280 | |
| 281 | 281 | static ADDRESS_MAP_START( sht_readport, ADDRESS_SPACE_IO, 8 ) |
| 282 | 282 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 283 | // AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) /* joy1 */ | |
| 284 | // AM_RANGE(0x04, 0x04) AM_READ(input_port_1_r) /* joy2 */ | |
| 285 | AM_RANGE(0x08, 0x08) AM_READ(input_port_2_r) /* coin,start */ | |
| 286 | AM_RANGE(0x0c, 0x0c) AM_READ(input_port_3_r) /* DIP2 */ | |
| 287 | AM_RANGE(0x0d, 0x0d) AM_READ(input_port_4_r) /* DIP1 some games read it from here... */ | |
| 288 | AM_RANGE(0x10, 0x10) AM_READ(input_port_4_r) /* DIP1 ... and some others from here */ | |
| 289 | /* but there are games which check BOTH! */ | |
| 283 | /* AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") */ | |
| 284 | /* AM_RANGE(0x04, 0x04) AM_READ_PORT("P2") */ | |
| 285 | AM_RANGE(0x08, 0x08) AM_READ_PORT("SYSTEM") | |
| 286 | AM_RANGE(0x0c, 0x0c) AM_READ_PORT("DSW2") /* DIP2 */ | |
| 287 | AM_RANGE(0x0d, 0x0d) AM_READ_PORT("DSW1") /* DIP1 some games read it from here... */ | |
| 288 | AM_RANGE(0x10, 0x10) AM_READ_PORT("DSW1") /* DIP1 ... and some others from here */ | |
| 289 | /* but there are games which check BOTH! */ | |
| 290 | 290 | |
| 291 | AM_RANGE(0x12, 0x12) AM_READ | |
| 291 | AM_RANGE(0x12, 0x12) AM_READ | |
| 292 | 292 | |
| 293 | AM_RANGE(0x1c, 0x1c) AM_READ(input_port_6_r) // gunx | |
| 294 | AM_RANGE(0x1d, 0x1d) AM_READ(input_port_7_r) // guny | |
| 293 | AM_RANGE(0x1c, 0x1c) AM_READ_PORT("GUNX") | |
| 294 | AM_RANGE(0x1d, 0x1d) AM_READ_PORT("GUNY") | |
| 295 | 295 | |
| 296 | AM_RANGE(0x18, 0x18) AM_READ | |
| 296 | AM_RANGE(0x18, 0x18) AM_READ | |
| 297 | 297 | |
| 298 | 298 | |
| 299 | 299 | AM_RANGE(0x15, 0x15) AM_READ(system1_videomode_r) |
| r3115 | r3116 | |
| 305 | 305 | |
| 306 | 306 | static ADDRESS_MAP_START( nobo_readport, ADDRESS_SPACE_IO, 8 ) |
| 307 | 307 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 308 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) /* Player 1 inputs */ | |
| 309 | AM_RANGE(0x04, 0x04) AM_READ(input_port_1_r) /* Player 2 inputs */ | |
| 310 | AM_RANGE(0x08, 0x08) AM_READ(input_port_2_r) /* System inputs */ | |
| 311 | AM_RANGE(0x0c, 0x0c) AM_READ(input_port_3_r) /* DSW1 */ | |
| 312 | AM_RANGE(0x0d, 0x0d) AM_READ(input_port_4_r) /* DSW0 */ | |
| 308 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") | |
| 309 | AM_RANGE(0x04, 0x04) AM_READ_PORT("P2") | |
| 310 | AM_RANGE(0x08, 0x08) AM_READ_PORT("SYSTEM") | |
| 311 | AM_RANGE(0x0c, 0x0c) AM_READ_PORT("DSW2") /* DIP2 */ | |
| 312 | AM_RANGE(0x0d, 0x0d) AM_READ_PORT("DSW1") /* DIP1 some games read it from here... */ | |
| 313 | 313 | AM_RANGE(0x15, 0x15) AM_READ(system1_videomode_r) |
| 314 | 314 | AM_RANGE(0x16, 0x16) AM_READ(inport16_r) /* Used - check code at 0x05cb */ |
| 315 | 315 | AM_RANGE(0x1c, 0x1c) AM_READ(inport1c_r) /* Shouldn't be called ! */ |
| r3115 | r3116 | |
| 410 | 410 | ADDRESS_MAP_END |
| 411 | 411 | |
| 412 | 412 | |
| 413 | #define IN0_PORT \ | |
| 414 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) \ | |
| 415 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) \ | |
| 416 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) \ | |
| 417 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ | |
| 418 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) \ | |
| 419 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) \ | |
| 420 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 421 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 422 | ||
| 423 | #define DSW1_PORT \ | |
| 413 | #define COINAGE_PORT \ | |
| 424 | 414 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW A:1,2,3,4") \ |
| 425 | 415 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) \ |
| 426 | 416 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) \ |
| r3115 | r3116 | |
| 462 | 452 | PORT_DIPSETTING( 0x80, "Port $0D" ) \ |
| 463 | 453 | PORT_DIPSETTING( 0x00, "Port $10" ) |
| 464 | 454 | |
| 465 | static INPUT_PORTS_START( starjack ) | |
| 466 | PORT_START("P1") /* IN1 */ | |
| 455 | static INPUT_PORTS_START( common ) | |
| 456 | PORT_START("P1") | |
| 467 | 457 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 468 | 458 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 469 | 459 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r3115 | r3116 | |
| 473 | 463 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 474 | 464 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 475 | 465 | |
| 476 | PORT_START("P2") | |
| 466 | PORT_START("P2") | |
| 477 | 467 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 478 | 468 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 479 | 469 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r3115 | r3116 | |
| 483 | 473 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 484 | 474 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 485 | 475 | |
| 486 | PORT_START("SYSTEM") /* IN0 */ | |
| 487 | IN0_PORT | |
| 476 | PORT_START("SYSTEM") | |
| 477 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 478 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 479 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) | |
| 480 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 481 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 482 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 483 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 484 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 488 | 485 | |
| 489 | PORT_START("DSW1") /* DSW1 */ | |
| 490 | DSW1_PORT | |
| 486 | PORT_START("DSW2") | |
| 487 | COINAGE_PORT | |
| 488 | INPUT_PORTS_END | |
| 491 | 489 | |
| 492 | PORT_START("DSW0") /* DSW0 */ | |
| 490 | ||
| 491 | static INPUT_PORTS_START( starjack ) | |
| 492 | PORT_INCLUDE( common ) | |
| 493 | ||
| 494 | PORT_START("DSW1") | |
| 493 | 495 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 494 | 496 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 495 | 497 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 515 | 517 | INPUT_PORTS_END |
| 516 | 518 | |
| 517 | 519 | static INPUT_PORTS_START( starjacs ) |
| 518 | PORT_START("P1") /* IN1 */ | |
| 519 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 520 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 521 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 522 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 523 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 524 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 525 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 526 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 520 | PORT_INCLUDE( common ) | |
| 527 | 521 | |
| 528 | PORT_START("P2") /* IN2 */ | |
| 529 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 530 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 531 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 532 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 533 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 534 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 535 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 536 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 537 | ||
| 538 | PORT_START("SYSTEM") /* IN0 */ | |
| 539 | IN0_PORT | |
| 540 | ||
| 541 | PORT_START("DSW1") /* DSW1 */ | |
| 542 | DSW1_PORT | |
| 543 | ||
| 544 | PORT_START("DSW0") /* DSW0 */ | |
| 522 | PORT_START("DSW1") | |
| 545 | 523 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 546 | 524 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 547 | 525 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 566 | 544 | INPUT_PORTS_END |
| 567 | 545 | |
| 568 | 546 | static INPUT_PORTS_START( regulus ) |
| 569 | PORT_START("P1") /* IN1 */ | |
| 570 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 571 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 572 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 573 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 574 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 575 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 576 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 577 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 547 | PORT_INCLUDE( common ) | |
| 578 | 548 | |
| 579 | PORT_START("P2") /* IN2 */ | |
| 580 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 581 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 582 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 583 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 584 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 585 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 586 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 587 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 588 | ||
| 589 | PORT_START("SYSTEM") /* IN0 */ | |
| 590 | IN0_PORT | |
| 591 | ||
| 592 | PORT_START("DSW1") /* DSW1 */ | |
| 593 | DSW1_PORT | |
| 594 | ||
| 595 | PORT_START("DSW0") /* DSW0 */ | |
| 549 | PORT_START("DSW1") | |
| 596 | 550 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 597 | 551 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 598 | 552 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 620 | 574 | |
| 621 | 575 | /* Same as 'regulus', but no DEF_STR( Allow_Continue ) Dip Switch */ |
| 622 | 576 | static INPUT_PORTS_START( reguluso ) |
| 623 | PORT_START("P1") /* IN1 */ | |
| 624 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 625 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 626 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 627 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 628 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 629 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 630 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 631 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 577 | PORT_INCLUDE( regulus ) | |
| 632 | 578 | |
| 633 | PORT_START("P2") /* IN2 */ | |
| 634 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 635 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 636 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 637 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 638 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 639 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 640 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 641 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 642 | ||
| 643 | PORT_START("SYSTEM") /* IN0 */ | |
| 644 | IN0_PORT | |
| 645 | ||
| 646 | PORT_START("DSW1") /* DSW1 */ | |
| 647 | DSW1_PORT | |
| 648 | ||
| 649 | PORT_START("DSW0") /* DSW0 */ | |
| 650 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 651 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 652 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 653 | PORT_DIPNAME( 0x02, 0x02, "Unused SW 0-1" ) | |
| 654 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 655 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 656 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 657 | PORT_DIPSETTING( 0x0c, "3" ) | |
| 658 | PORT_DIPSETTING( 0x08, "4" ) | |
| 659 | PORT_DIPSETTING( 0x04, "5" ) | |
| 660 | PORT_DIPSETTING( 0x00, DEF_STR( Infinite ) ) | |
| 661 | PORT_DIPNAME( 0x10, 0x10, "Unused SW 0-4" ) | |
| 662 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 663 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 664 | PORT_DIPNAME( 0x20, 0x20, "Unused SW 0-5" ) | |
| 665 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 666 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 667 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) | |
| 668 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 669 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 579 | PORT_MODIFY("DSW1") | |
| 670 | 580 | PORT_DIPNAME( 0x80, 0x80, "Unused SW 0-7" ) |
| 671 | 581 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 672 | 582 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 673 | 583 | INPUT_PORTS_END |
| 674 | 584 | |
| 675 | 585 | static INPUT_PORTS_START( upndown ) |
| 676 | PORT_START("P1") /* IN1 */ | |
| 677 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 678 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 679 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 680 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 681 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 682 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 683 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 684 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 586 | PORT_INCLUDE( common ) | |
| 685 | 587 | |
| 686 | PORT_START("P2") /* IN2 */ | |
| 687 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 688 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 689 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 690 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 691 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 692 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 693 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 694 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 588 | PORT_MODIFY("P1") | |
| 589 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no button 2 */ | |
| 695 | 590 | |
| 696 | PORT_START("SYSTEM") /* IN0 */ | |
| 697 | IN0_PORT | |
| 591 | PORT_MODIFY("P2") | |
| 592 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no button 2 */ | |
| 698 | 593 | |
| 699 | PORT_START("DSW1") /* DSW1 */ | |
| 700 | DSW1_PORT | |
| 701 | ||
| 702 | PORT_START("DSW0") /* DSW0 */ | |
| 594 | PORT_START("DSW1") | |
| 703 | 595 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 704 | 596 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 705 | 597 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 725 | 617 | INPUT_PORTS_END |
| 726 | 618 | |
| 727 | 619 | static INPUT_PORTS_START( mrviking ) |
| 728 | PORT_START("P1") /* IN1 */ | |
| 729 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 620 | PORT_INCLUDE( common ) | |
| 621 | ||
| 622 | PORT_MODIFY("P1") | |
| 730 | 623 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 731 | 624 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 732 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 733 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 734 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 735 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 736 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 737 | 625 | |
| 738 | PORT_START("P2") /* IN2 */ | |
| 739 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 626 | PORT_MODIFY("P2") | |
| 740 | 627 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 741 | 628 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 742 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 743 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 744 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 745 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 746 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 747 | 629 | |
| 748 | PORT_START("SYSTEM") /* IN0 */ | |
| 749 | IN0_PORT | |
| 750 | ||
| 751 | PORT_START("DSW1") /* DSW1 */ | |
| 752 | DSW1_PORT | |
| 753 | ||
| 754 | PORT_START("DSW0") /* DSW0 */ | |
| 630 | PORT_START("DSW1") | |
| 755 | 631 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 756 | 632 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 757 | 633 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 777 | 653 | /* Same as 'mrviking', but no "Maximum Credits" Dip Switch and "Difficulty" Dip Switch is |
| 778 | 654 | handled by bit 7 instead of bit 6 (so bit 6 is unused) */ |
| 779 | 655 | static INPUT_PORTS_START( mrvikngj ) |
| 780 | PORT_START("P1") /* IN1 */ | |
| 781 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 782 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 783 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 784 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 785 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 786 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 787 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 788 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 656 | PORT_INCLUDE( mrviking ) | |
| 789 | 657 | |
| 790 | PORT_START("P2") /* IN2 */ | |
| 791 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 792 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 793 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 794 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 795 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 796 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 797 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 798 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 799 | ||
| 800 | PORT_START("SYSTEM") /* IN0 */ | |
| 801 | IN0_PORT | |
| 802 | ||
| 803 | PORT_START("DSW1") /* DSW1 */ | |
| 804 | DSW1_PORT | |
| 805 | ||
| 806 | PORT_START("DSW0") /* DSW0 */ | |
| 807 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 808 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 809 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 658 | PORT_MODIFY("DSW1") | |
| 810 | 659 | PORT_DIPNAME( 0x02, 0x02, "Unused SW 0-1" ) |
| 811 | 660 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 812 | 661 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 813 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 814 | PORT_DIPSETTING( 0x0c, "3" ) | |
| 815 | PORT_DIPSETTING( 0x08, "4" ) | |
| 816 | PORT_DIPSETTING( 0x04, "5" ) | |
| 817 | PORT_DIPSETTING( 0x00, DEF_STR( Infinite ) ) | |
| 818 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 819 | PORT_DIPSETTING( 0x30, "10k, 30k then every 30k" ) | |
| 820 | PORT_DIPSETTING( 0x20, "20k, 40k then every 30k" ) | |
| 821 | PORT_DIPSETTING( 0x10, "30k, then every 30k" ) | |
| 822 | PORT_DIPSETTING( 0x00, "40k, then every 30k" ) | |
| 823 | 662 | PORT_DIPNAME( 0x40, 0x40, "Unused SW 0-6" ) |
| 824 | 663 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 825 | 664 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 829 | 668 | INPUT_PORTS_END |
| 830 | 669 | |
| 831 | 670 | static INPUT_PORTS_START( swat ) |
| 832 | PORT_START("P1") /* IN1 */ | |
| 833 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 834 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 835 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 836 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 671 | PORT_INCLUDE( common ) | |
| 672 | ||
| 673 | PORT_MODIFY("P1") | |
| 837 | 674 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 838 | 675 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 839 | 676 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 840 | 677 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 841 | 678 | |
| 842 | PORT_START("P2") /* IN2 */ | |
| 843 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 844 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 845 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 846 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 679 | PORT_MODIFY("P2") | |
| 847 | 680 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 848 | 681 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 849 | 682 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 850 | 683 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| 851 | 684 | |
| 852 | PORT_START("SYSTEM") /* IN0 */ | |
| 853 | IN0_PORT | |
| 854 | ||
| 855 | PORT_START("DSW1") /* DSW1 */ | |
| 856 | DSW1_PORT | |
| 857 | ||
| 858 | PORT_START("DSW0") /* DSW0 */ | |
| 685 | PORT_START("DSW1") | |
| 859 | 686 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 860 | 687 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 861 | 688 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 882 | 709 | INPUT_PORTS_END |
| 883 | 710 | |
| 884 | 711 | static INPUT_PORTS_START( flicky ) |
| 885 | PORT_START("P1") /* IN1 */ | |
| 886 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 887 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 888 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 889 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 890 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 891 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 712 | PORT_INCLUDE( common ) | |
| 713 | ||
| 714 | PORT_MODIFY("P1") | |
| 715 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no button 2 */ | |
| 716 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* only 2way inputs */ | |
| 717 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* only 2way inputs */ | |
| 892 | 718 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 893 | 719 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 894 | 720 | |
| 895 | PORT_START("P2") /* IN2 */ | |
| 896 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 897 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 898 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 899 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 900 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 901 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 721 | PORT_MODIFY("P2") | |
| 722 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* no button 2 */ | |
| 723 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* only 2way inputs */ | |
| 724 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* only 2way inputs */ | |
| 902 | 725 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 903 | 726 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 904 | 727 | |
| 905 | PORT_START("SYSTEM") /* IN0 */ | |
| 906 | IN0_PORT | |
| 907 | ||
| 908 | PORT_START("DSW1") /* DSW1 */ | |
| 909 | DSW1_PORT | |
| 910 | ||
| 911 | PORT_START("DSW0") /* DSW0 */ | |
| 728 | PORT_START("DSW1") | |
| 912 | 729 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 913 | 730 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 914 | 731 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 932 | 749 | INPUT_PORTS_END |
| 933 | 750 | |
| 934 | 751 | static INPUT_PORTS_START( wmatch ) |
| 935 | PORT_START("P1") | |
| 752 | PORT_START("P1") | |
| 936 | 753 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY |
| 937 | 754 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY |
| 938 | 755 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_8WAY |
| r3115 | r3116 | |
| 942 | 759 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY |
| 943 | 760 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY |
| 944 | 761 | |
| 945 | PORT_START("P2") | |
| 762 | PORT_START("P2") | |
| 946 | 763 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 947 | 764 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY PORT_COCKTAIL |
| 948 | 765 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 952 | 769 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 953 | 770 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 954 | 771 | |
| 955 | PORT_START("SYSTEM") | |
| 772 | PORT_START("SYSTEM") | |
| 956 | 773 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 957 | 774 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 958 | 775 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) |
| 959 | 776 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 960 | 777 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 961 | 778 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 962 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* TURN P1 */ | |
| 963 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL /* TURN P2 */ | |
| 779 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* TURN P1 */ | |
| 780 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL /* TURN P2 */ | |
| 964 | 781 | |
| 965 | PORT_START("DSW1") /* DSW1 */ | |
| 966 | DSW1_PORT | |
| 782 | PORT_START("DSW2") | |
| 783 | COINAGE_PORT | |
| 967 | 784 | |
| 968 | PORT_START("DSW | |
| 785 | PORT_START("DSW1") | |
| 969 | 786 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 970 | 787 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 971 | 788 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 990 | 807 | INPUT_PORTS_END |
| 991 | 808 | |
| 992 | 809 | static INPUT_PORTS_START( bullfgt ) |
| 993 | PORT_START("P1") /* IN1 */ | |
| 994 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 995 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 996 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 997 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 998 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 999 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1000 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1001 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 810 | PORT_INCLUDE( common ) | |
| 1002 | 811 | |
| 1003 | PORT_START("P2") /* IN2 */ | |
| 1004 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1005 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1006 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1007 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1008 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1009 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1010 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1011 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1012 | ||
| 1013 | PORT_START("SYSTEM") /* IN0 */ | |
| 1014 | IN0_PORT | |
| 1015 | ||
| 1016 | PORT_START("DSW1") /* DSW1 */ | |
| 1017 | DSW1_PORT | |
| 1018 | ||
| 1019 | PORT_START("DSW0") /* DSW0 */ | |
| 812 | PORT_START("DSW1") | |
| 1020 | 813 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1021 | 814 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1022 | 815 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1040 | 833 | INPUT_PORTS_END |
| 1041 | 834 | |
| 1042 | 835 | static INPUT_PORTS_START( spatter ) |
| 1043 | PORT_START("P1") /* IN1 */ | |
| 1044 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1045 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1046 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1047 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1048 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1049 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1050 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1051 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 836 | PORT_INCLUDE( common ) | |
| 1052 | 837 | |
| 1053 | PORT_START("P2") /* IN2 */ | |
| 1054 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1055 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1056 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1057 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1058 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1059 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1060 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1061 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1062 | ||
| 1063 | PORT_START("SYSTEM") /* IN0 */ | |
| 1064 | IN0_PORT | |
| 1065 | ||
| 1066 | PORT_START("DSW1") /* DSW1 */ | |
| 1067 | DSW1_PORT | |
| 1068 | ||
| 1069 | PORT_START("DSW0") /* DSW0 */ | |
| 838 | PORT_START("DSW1") | |
| 1070 | 839 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1071 | 840 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1072 | 841 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1090 | 859 | INPUT_PORTS_END |
| 1091 | 860 | |
| 1092 | 861 | static INPUT_PORTS_START( pitfall2 ) |
| 1093 | PORT_START("P1") /* IN1 */ | |
| 1094 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1095 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1096 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1097 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1098 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1099 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1100 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1101 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 862 | PORT_INCLUDE( common ) | |
| 1102 | 863 | |
| 1103 | PORT_START("P2") /* IN2 */ | |
| 1104 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1105 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1106 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1107 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1108 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1109 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1110 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1111 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1112 | ||
| 1113 | PORT_START("SYSTEM") /* IN0 */ | |
| 1114 | IN0_PORT | |
| 1115 | ||
| 1116 | PORT_START("DSW1") /* DSW1 */ | |
| 1117 | DSW1_PORT | |
| 1118 | ||
| 1119 | PORT_START("DSW0") /* DSW0 */ | |
| 864 | PORT_START("DSW1") | |
| 1120 | 865 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1121 | 866 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1122 | 867 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1143 | 888 | INPUT_PORTS_END |
| 1144 | 889 | |
| 1145 | 890 | static INPUT_PORTS_START( pitfallu ) |
| 1146 | PORT_START("P1") /* IN1 */ | |
| 1147 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1148 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1149 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1150 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1151 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1152 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1153 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1154 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 891 | PORT_INCLUDE( common ) | |
| 1155 | 892 | |
| 1156 | PORT_START("P2") /* IN2 */ | |
| 1157 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1158 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1159 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1160 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1161 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1162 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1163 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1164 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1165 | ||
| 1166 | PORT_START("SYSTEM") /* IN0 */ | |
| 1167 | IN0_PORT | |
| 1168 | ||
| 1169 | PORT_START("DSW1") /* DSW1 */ | |
| 1170 | DSW1_PORT | |
| 1171 | ||
| 1172 | PORT_START("DSW0") /* DSW0 */ | |
| 893 | PORT_START("DSW1") /* DSW0 */ | |
| 1173 | 894 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1174 | 895 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1175 | 896 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1195 | 916 | INPUT_PORTS_END |
| 1196 | 917 | |
| 1197 | 918 | static INPUT_PORTS_START( seganinj ) |
| 1198 | PORT_START("P1") /* IN1 */ | |
| 919 | PORT_INCLUDE( common ) | |
| 920 | ||
| 921 | PORT_MODIFY("P1") | |
| 1199 | 922 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 1200 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1201 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1202 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1203 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1204 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1205 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1206 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1207 | 923 | |
| 1208 | PORT_ | |
| 924 | PORT_MODIFY("P1") | |
| 1209 | 925 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL |
| 1210 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1211 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1212 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1213 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1214 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1215 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1216 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1217 | 926 | |
| 1218 | PORT_START("SYSTEM") /* IN0 */ | |
| 1219 | IN0_PORT | |
| 1220 | ||
| 1221 | PORT_START("DSW1") /* DSW1 */ | |
| 1222 | DSW1_PORT | |
| 1223 | ||
| 1224 | PORT_START("DSW0") /* DSW0 */ | |
| 927 | PORT_START("DSW1") | |
| 1225 | 928 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1226 | 929 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1227 | 930 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1246 | 949 | INPUT_PORTS_END |
| 1247 | 950 | |
| 1248 | 951 | static INPUT_PORTS_START( imsorry ) |
| 1249 | PORT_START("P1") /* IN1 */ | |
| 1250 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1251 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1252 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1253 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1254 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1255 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1256 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1257 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 952 | PORT_INCLUDE( common ) | |
| 1258 | 953 | |
| 1259 | PORT_START("P2") /* IN2 */ | |
| 1260 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1261 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1262 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1263 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1264 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1265 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1266 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1267 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1268 | ||
| 1269 | PORT_START("SYSTEM") /* IN0 */ | |
| 1270 | IN0_PORT | |
| 1271 | ||
| 1272 | PORT_START("DSW1") /* DSW1 */ | |
| 1273 | DSW1_PORT | |
| 1274 | ||
| 1275 | PORT_START("DSW0") /* DSW0 */ | |
| 954 | PORT_START("DSW1") | |
| 1276 | 955 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1277 | 956 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1278 | 957 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1296 | 975 | INPUT_PORTS_END |
| 1297 | 976 | |
| 1298 | 977 | static INPUT_PORTS_START( teddybb ) |
| 1299 | PORT_START("P1") /* IN1 */ | |
| 1300 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 978 | PORT_INCLUDE( common ) | |
| 979 | ||
| 980 | PORT_MODIFY("P1") | |
| 1301 | 981 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1302 | 982 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1303 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1304 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1305 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1306 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1307 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1308 | 983 | |
| 1309 | PORT_START("P2") /* IN2 */ | |
| 1310 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 984 | PORT_MODIFY("P2") | |
| 1311 | 985 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 1312 | 986 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 1313 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1314 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1315 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1316 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1317 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1318 | 987 | |
| 1319 | PORT_START("SYSTEM") /* IN0 */ | |
| 1320 | IN0_PORT | |
| 1321 | ||
| 1322 | PORT_START("DSW1") /* DSW1 */ | |
| 1323 | DSW1_PORT | |
| 1324 | ||
| 1325 | PORT_START("DSW0") /* DSW0 */ | |
| 988 | PORT_START("DSW1") | |
| 1326 | 989 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1327 | 990 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1328 | 991 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1346 | 1009 | INPUT_PORTS_END |
| 1347 | 1010 | |
| 1348 | 1011 | static INPUT_PORTS_START( hvymetal ) |
| 1349 | PORT_START("P1") /* IN1 */ | |
| 1350 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1012 | PORT_INCLUDE( common ) | |
| 1013 | ||
| 1014 | PORT_MODIFY("P1") | |
| 1351 | 1015 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1352 | 1016 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1353 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1354 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1355 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1356 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1357 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1358 | 1017 | |
| 1359 | PORT_START("P2") /* IN2 */ | |
| 1360 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1018 | PORT_MODIFY("P2") | |
| 1361 | 1019 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 1362 | 1020 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 1363 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1364 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1365 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1366 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1367 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1368 | 1021 | |
| 1369 | PORT_START("SYSTEM") /* IN0 */ | |
| 1370 | IN0_PORT | |
| 1371 | ||
| 1372 | PORT_START("DSW1") /* DSW1 */ | |
| 1373 | DSW1_PORT | |
| 1374 | ||
| 1375 | PORT_START("DSW0") /* DSW1 */ | |
| 1022 | PORT_START("DSW1") | |
| 1376 | 1023 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1377 | 1024 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1378 | 1025 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1398 | 1045 | INPUT_PORTS_END |
| 1399 | 1046 | |
| 1400 | 1047 | static INPUT_PORTS_START( myhero ) |
| 1401 | PORT_START("P1") /* IN1 */ | |
| 1402 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1048 | PORT_INCLUDE( common ) | |
| 1049 | ||
| 1050 | PORT_MODIFY("P1") | |
| 1403 | 1051 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1404 | 1052 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1405 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1406 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1407 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1408 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1409 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1410 | 1053 | |
| 1411 | PORT_START("P2") /* IN2 */ | |
| 1412 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1054 | PORT_MODIFY("P2") | |
| 1413 | 1055 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 1414 | 1056 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 1415 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1416 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1417 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1418 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1419 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1420 | 1057 | |
| 1421 | PORT_START("SYSTEM") /* IN0 */ | |
| 1422 | IN0_PORT | |
| 1423 | ||
| 1424 | PORT_START("DSW1") /* DSW1 */ | |
| 1425 | DSW1_PORT | |
| 1426 | ||
| 1427 | PORT_START("DSW0") /* DSW0 */ | |
| 1058 | PORT_START("DSW1") | |
| 1428 | 1059 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1429 | 1060 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1430 | 1061 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1448 | 1079 | INPUT_PORTS_END |
| 1449 | 1080 | |
| 1450 | 1081 | static INPUT_PORTS_START( shtngmst ) |
| 1451 | PORT_START("P1") | |
| 1082 | PORT_START("P1") | |
| 1452 | 1083 | /* |
| 1453 | 1084 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1454 | 1085 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r3115 | r3116 | |
| 1460 | 1091 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 1461 | 1092 | */ |
| 1462 | 1093 | |
| 1463 | PORT_START("P2") | |
| 1094 | PORT_START("P2") | |
| 1464 | 1095 | /* |
| 1465 | 1096 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1466 | 1097 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| r3115 | r3116 | |
| 1472 | 1103 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 1473 | 1104 | */ |
| 1474 | 1105 | |
| 1475 | PORT_START("SYSTEM") /* IN0 */ | |
| 1476 | IN0_PORT | |
| 1106 | PORT_START("SYSTEM") | |
| 1107 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1108 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1109 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) | |
| 1110 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1111 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1112 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1113 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1114 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1477 | 1115 | |
| 1478 | PORT_START("DSW1") /* DSW1 */ | |
| 1479 | PORT_DIPNAME( 0x01, 0x01, "DSW1" ) | |
| 1116 | PORT_START("DSW2") | |
| 1117 | PORT_DIPNAME( 0x01, 0x01, "DSW2" ) | |
| 1480 | 1118 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1481 | 1119 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1482 | 1120 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
| 1501 | 1139 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1502 | 1140 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1503 | 1141 | |
| 1504 | PORT_START("DSW0") /* DSW0 */ | |
| 1505 | DSW1_PORT | |
| 1142 | PORT_START("DSW1") | |
| 1143 | COINAGE_PORT | |
| 1506 | 1144 | |
| 1507 | 1145 | PORT_START("TRIGGER") /* trigger is in here */ |
| 1508 | 1146 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1548 | 1186 | |
| 1549 | 1187 | |
| 1550 | 1188 | static INPUT_PORTS_START( chplft ) |
| 1551 | PORT_START("P1") /* IN1 */ | |
| 1552 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1553 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1554 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1555 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1556 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1557 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1558 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1559 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1189 | PORT_INCLUDE( common ) | |
| 1560 | 1190 | |
| 1561 | PORT_START("P2") /* IN2 */ | |
| 1562 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1563 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1564 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1565 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1566 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1567 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1568 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1569 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1570 | ||
| 1571 | PORT_START("SYSTEM") /* IN0 */ | |
| 1572 | IN0_PORT | |
| 1573 | ||
| 1574 | PORT_START("DSW1") /* DSW1 */ | |
| 1191 | PORT_MODIFY("DSW2") | |
| 1575 | 1192 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") |
| 1576 | 1193 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1577 | 1194 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1596 | 1213 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1597 | 1214 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1598 | 1215 | |
| 1599 | PORT_START("DSW0") /* DSW0 */ | |
| 1600 | DSW1_PORT | |
| 1216 | PORT_START("DSW1") | |
| 1217 | COINAGE_PORT | |
| 1601 | 1218 | INPUT_PORTS_END |
| 1602 | 1219 | |
| 1603 | 1220 | static INPUT_PORTS_START( 4dwarrio ) |
| 1604 | PORT_START("P1") /* IN1 */ | |
| 1605 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1606 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1607 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1608 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1609 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1610 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1611 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1612 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1221 | PORT_INCLUDE( common ) | |
| 1613 | 1222 | |
| 1614 | PORT_START("P2") /* IN2 */ | |
| 1615 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1616 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1617 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1618 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1619 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1620 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1621 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1622 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1623 | ||
| 1624 | PORT_START("SYSTEM") /* IN0 */ | |
| 1625 | IN0_PORT | |
| 1626 | ||
| 1627 | PORT_START("DSW1") /* DSW1 */ | |
| 1628 | DSW1_PORT | |
| 1629 | ||
| 1630 | PORT_START("DSW0") /* DSW0 */ | |
| 1223 | PORT_START("DSW1") | |
| 1631 | 1224 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1632 | 1225 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1633 | 1226 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1652 | 1245 | INPUT_PORTS_END |
| 1653 | 1246 | |
| 1654 | 1247 | static INPUT_PORTS_START( brain ) |
| 1655 | PORT_START("P1") /* IN1 */ | |
| 1656 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1657 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1658 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1659 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1660 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1661 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1662 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1663 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1248 | PORT_INCLUDE( common ) | |
| 1664 | 1249 | |
| 1665 | PORT_START("P2") /* IN2 */ | |
| 1666 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1667 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1668 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1669 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1670 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1671 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1672 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1673 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1674 | ||
| 1675 | PORT_START("SYSTEM") /* IN0 */ | |
| 1676 | IN0_PORT | |
| 1677 | ||
| 1678 | PORT_START("DSW1") /* DSW1 */ | |
| 1679 | DSW1_PORT | |
| 1680 | ||
| 1681 | PORT_START("DSW0") /* DSW0 */ | |
| 1250 | PORT_START("DSW1") | |
| 1682 | 1251 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1683 | 1252 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1684 | 1253 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1705 | 1274 | INPUT_PORTS_END |
| 1706 | 1275 | |
| 1707 | 1276 | static INPUT_PORTS_START( gardia ) |
| 1708 | PORT_START("P1") /* IN1 */ | |
| 1709 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1710 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1711 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1712 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1713 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1714 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1715 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1716 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1277 | PORT_INCLUDE( common ) | |
| 1717 | 1278 | |
| 1718 | PORT_START("P2") /* IN2 */ | |
| 1719 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1720 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1721 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1722 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1723 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1724 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1725 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1726 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1727 | ||
| 1728 | PORT_START("SYSTEM") /* IN0 */ | |
| 1729 | IN0_PORT | |
| 1730 | ||
| 1731 | PORT_START("DSW1") /* DSW1 */ | |
| 1732 | DSW1_PORT | |
| 1733 | ||
| 1734 | PORT_START("DSW0") /* DSW0 */ | |
| 1279 | PORT_START("DSW1") | |
| 1735 | 1280 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1736 | 1281 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1737 | 1282 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1757 | 1302 | INPUT_PORTS_END |
| 1758 | 1303 | |
| 1759 | 1304 | static INPUT_PORTS_START( raflesia ) |
| 1760 | PORT_START("P1") /* IN1 */ | |
| 1761 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1762 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1763 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1764 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1765 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1766 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1767 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1768 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1305 | PORT_INCLUDE( common ) | |
| 1769 | 1306 | |
| 1770 | PORT_START("P2") /* IN2 */ | |
| 1771 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1772 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1773 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1774 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1775 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1776 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1777 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1778 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1779 | ||
| 1780 | PORT_START("SYSTEM") /* IN0 */ | |
| 1781 | IN0_PORT | |
| 1782 | ||
| 1783 | PORT_START("DSW1") /* DSW1 */ | |
| 1784 | DSW1_PORT | |
| 1785 | ||
| 1786 | PORT_START("DSW0") /* DSW0 */ | |
| 1307 | PORT_START("DSW1") | |
| 1787 | 1308 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1788 | 1309 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1789 | 1310 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1807 | 1328 | INPUT_PORTS_END |
| 1808 | 1329 | |
| 1809 | 1330 | static INPUT_PORTS_START( wboy ) |
| 1810 | PORT_START("P1") /* IN1 */ | |
| 1811 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1331 | PORT_INCLUDE( common ) | |
| 1332 | ||
| 1333 | PORT_MODIFY("P1") | |
| 1812 | 1334 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1813 | 1335 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1814 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1815 | 1336 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ |
| 1816 | 1337 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ |
| 1817 | 1338 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1818 | 1339 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1819 | 1340 | |
| 1820 | PORT_START("P2") /* IN2 */ | |
| 1821 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1341 | PORT_MODIFY("P2") | |
| 1822 | 1342 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 1823 | 1343 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 1824 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1825 | 1344 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ |
| 1826 | 1345 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ |
| 1827 | 1346 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL |
| 1828 | 1347 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL |
| 1829 | 1348 | |
| 1830 | PORT_START("SYSTEM") /* IN0 */ | |
| 1831 | IN0_PORT | |
| 1832 | ||
| 1833 | PORT_START("DSW1") /* DSW1 */ | |
| 1834 | DSW1_PORT | |
| 1835 | ||
| 1836 | PORT_START("DSW0") /* DSW0 */ | |
| 1349 | PORT_START("DSW1") | |
| 1837 | 1350 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") |
| 1838 | 1351 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1839 | 1352 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1860 | 1373 | INPUT_PORTS_END |
| 1861 | 1374 | |
| 1862 | 1375 | static INPUT_PORTS_START( wboy3 ) |
| 1863 | PORT_START("P1") /* IN1 */ | |
| 1864 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1865 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1866 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1867 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1868 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ | |
| 1869 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ | |
| 1870 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1871 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1376 | PORT_INCLUDE( wboy ) | |
| 1872 | 1377 | |
| 1873 | PORT_START("P2") /* IN2 */ | |
| 1874 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1875 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1876 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1877 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1878 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ | |
| 1879 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ | |
| 1880 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1881 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1882 | ||
| 1883 | PORT_START("SYSTEM") /* IN0 */ | |
| 1884 | IN0_PORT | |
| 1885 | ||
| 1886 | PORT_START("DSW1") /* DSW1 */ | |
| 1887 | DSW1_PORT | |
| 1888 | ||
| 1889 | PORT_START("DSW0") /* DSW0 */ | |
| 1890 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") | |
| 1891 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1892 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 1893 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW B:2") | |
| 1894 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1895 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1378 | PORT_MODIFY("DSW1") /* DSW0 */ | |
| 1896 | 1379 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW B:3,4") |
| 1897 | 1380 | PORT_DIPSETTING( 0x0c, "1" ) |
| 1898 | 1381 | PORT_DIPSETTING( 0x08, "2" ) |
| 1899 | 1382 | PORT_DIPSETTING( 0x04, "3" ) |
| 1900 | 1383 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 1901 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW B:5") | |
| 1902 | PORT_DIPSETTING( 0x10, "30k 100k 170k 240k" ) | |
| 1903 | PORT_DIPSETTING( 0x00, "30k 120k 210k 300k" ) | |
| 1904 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:6") | |
| 1905 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1906 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) | |
| 1907 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW B:7") | |
| 1908 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 1909 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 1910 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW B:8") | |
| 1911 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1912 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1913 | 1384 | INPUT_PORTS_END |
| 1914 | 1385 | |
| 1915 | 1386 | static INPUT_PORTS_START( wboysys2 ) |
| 1916 | PORT_START("P1") /* IN1 */ | |
| 1917 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1387 | PORT_INCLUDE( common ) | |
| 1388 | ||
| 1389 | PORT_MODIFY("P1") | |
| 1918 | 1390 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1919 | 1391 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1920 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1921 | 1392 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ |
| 1922 | 1393 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ |
| 1923 | 1394 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1924 | 1395 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1925 | 1396 | |
| 1926 | PORT_START("P2") /* IN2 */ | |
| 1927 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1397 | PORT_MODIFY("P2") | |
| 1928 | 1398 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 1929 | 1399 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 1930 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1931 | 1400 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ |
| 1932 | 1401 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ |
| 1933 | 1402 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL |
| 1934 | 1403 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL |
| 1935 | 1404 | |
| 1936 | PORT_START("SYSTEM") /* IN0 */ | |
| 1937 | IN0_PORT | |
| 1938 | ||
| 1939 | PORT_START("DSW1") /* DSW0 */ | |
| 1405 | PORT_MODIFY("DSW2") | |
| 1940 | 1406 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") |
| 1941 | 1407 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1942 | 1408 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1961 | 1427 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1962 | 1428 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1963 | 1429 | |
| 1964 | PORT_START("DSW0") /* DSW1 */ | |
| 1965 | DSW1_PORT | |
| 1430 | PORT_START("DSW1") | |
| 1431 | COINAGE_PORT | |
| 1966 | 1432 | INPUT_PORTS_END |
| 1967 | 1433 | |
| 1968 | 1434 | /* same as wboy, additional Energy Consumption switch */ |
| 1969 | 1435 | static INPUT_PORTS_START( wbdeluxe ) |
| 1970 | PORT_START("P1") /* IN1 */ | |
| 1971 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Has to be 0 otherwise the game resets */ | |
| 1972 | /* if you die after level 1. */ | |
| 1973 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1974 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1975 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1976 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ | |
| 1977 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ | |
| 1978 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1979 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1436 | PORT_INCLUDE( wboy ) | |
| 1980 | 1437 | |
| 1981 | PORT_START("P2") /* IN2 */ | |
| 1982 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1983 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1984 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1985 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1986 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ | |
| 1987 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ | |
| 1988 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1989 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1990 | ||
| 1991 | PORT_START("SYSTEM") /* IN0 */ | |
| 1992 | IN0_PORT | |
| 1993 | ||
| 1994 | PORT_START("DSW1") /* DSW1 */ | |
| 1995 | DSW1_PORT | |
| 1996 | ||
| 1997 | PORT_START("DSW0") /* DSW0 */ | |
| 1998 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW B:1") | |
| 1999 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2000 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 2001 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW B:2") | |
| 2002 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 2003 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2004 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW B:3,4") | |
| 2005 | PORT_DIPSETTING( 0x0c, "3" ) | |
| 2006 | PORT_DIPSETTING( 0x08, "4" ) | |
| 2007 | PORT_DIPSETTING( 0x04, "5" ) | |
| 2008 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 2009 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW B:5") | |
| 2010 | PORT_DIPSETTING( 0x10, "30k 100k 170k 240k" ) | |
| 2011 | PORT_DIPSETTING( 0x00, "30k 120k 210k 300k" ) | |
| 2012 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:6") | |
| 2013 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 2014 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) | |
| 2015 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW B:7") | |
| 2016 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 2017 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 1438 | PORT_MODIFY("P1") | |
| 1439 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Has to be 0 otherwise the game resets */ | |
| 1440 | /* if you die after level 1. */ | |
| 1441 | PORT_MODIFY("DSW1") | |
| 2018 | 1442 | PORT_DIPNAME( 0x80, 0x00, "Energy Consumption" ) PORT_DIPLOCATION("SW B:8") |
| 2019 | 1443 | PORT_DIPSETTING( 0x00, "Slow" ) |
| 2020 | 1444 | PORT_DIPSETTING( 0x80, "Fast" ) |
| 2021 | 1445 | INPUT_PORTS_END |
| 2022 | 1446 | |
| 2023 | 1447 | static INPUT_PORTS_START( wboyu ) |
| 2024 | PORT_START("P1") /* IN1 */ | |
| 2025 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2026 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 2027 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 2028 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2029 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ | |
| 2030 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ | |
| 2031 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 2032 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1448 | PORT_INCLUDE( wboy ) | |
| 2033 | 1449 | |
| 2034 | PORT_START("P2") /* IN2 */ | |
| 2035 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2036 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2037 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2038 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2039 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* down - unused */ | |
| 2040 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* up - unused */ | |
| 2041 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 2042 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 2043 | ||
| 2044 | PORT_START("SYSTEM") /* IN0 */ | |
| 2045 | IN0_PORT | |
| 2046 | ||
| 2047 | PORT_START("DSW1") /* DSW0 */ | |
| 1450 | PORT_MODIFY("DSW2") | |
| 2048 | 1451 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2049 | 1452 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 2050 | 1453 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 2069 | 1472 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2070 | 1473 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2071 | 1474 | |
| 2072 | PORT_ | |
| 1475 | PORT_MODIFY("DSW1") | |
| 2073 | 1476 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| 2074 | 1477 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 2075 | 1478 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 2141 | 1544 | */ |
| 2142 | 1545 | |
| 2143 | 1546 | static INPUT_PORTS_START( blockgal ) |
| 2144 | PORT_START("P1") | |
| 1547 | PORT_START("P1") | |
| 2145 | 1548 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(60) PORT_KEYDELTA(15) PORT_REVERSE |
| 2146 | 1549 | |
| 2147 | PORT_START("P2") | |
| 1550 | PORT_START("P2") | |
| 2148 | 1551 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(60) PORT_KEYDELTA(15) PORT_REVERSE PORT_COCKTAIL |
| 2149 | 1552 | |
| 2150 | PORT_START("SYSTEM") | |
| 1553 | PORT_START("SYSTEM") | |
| 2151 | 1554 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2152 | 1555 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2153 | 1556 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 2157 | 1560 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 2158 | 1561 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 2159 | 1562 | |
| 2160 | PORT_START("DSW | |
| 1563 | PORT_START("DSW2") | |
| 2161 | 1564 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2162 | 1565 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 2163 | 1566 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 2181 | 1584 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2182 | 1585 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 2183 | 1586 | |
| 2184 | PORT_START("DSW0") /* DSW1 */ | |
| 2185 | DSW1_PORT | |
| 1587 | PORT_START("DSW1") | |
| 1588 | COINAGE_PORT | |
| 2186 | 1589 | INPUT_PORTS_END |
| 2187 | 1590 | |
| 2188 | 1591 | static INPUT_PORTS_START( tokisens ) |
| 2189 | PORT_START("P1") /* IN1 */ | |
| 2190 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2191 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 2192 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 2193 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2194 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2195 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2196 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2197 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1592 | PORT_INCLUDE( common ) | |
| 2198 | 1593 | |
| 2199 | PORT_START("P2") /* IN2 */ | |
| 2200 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2201 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2202 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2203 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2204 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2205 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2206 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2207 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2208 | ||
| 2209 | PORT_START("SYSTEM") /* IN0 */ | |
| 2210 | IN0_PORT | |
| 2211 | ||
| 2212 | PORT_START("DSW1") /* DSW0 */ | |
| 1594 | PORT_MODIFY("DSW2") | |
| 2213 | 1595 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2214 | 1596 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 2215 | 1597 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 2234 | 1616 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2235 | 1617 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2236 | 1618 | |
| 2237 | PORT_START("DSW0") /* DSW1 */ | |
| 2238 | DSW1_PORT | |
| 1619 | PORT_START("DSW1") | |
| 1620 | COINAGE_PORT | |
| 2239 | 1621 | INPUT_PORTS_END |
| 2240 | 1622 | |
| 2241 | 1623 | static INPUT_PORTS_START( wbml ) |
| 2242 | PORT_START("P1") /* IN1 */ | |
| 2243 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2244 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 2245 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 2246 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2247 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2248 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2249 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2250 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1624 | PORT_INCLUDE( common ) | |
| 2251 | 1625 | |
| 2252 | PORT_START("P2") /* IN2 */ | |
| 2253 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2254 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2255 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2256 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2257 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2258 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2259 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2260 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2261 | ||
| 2262 | PORT_START("SYSTEM") /* IN0 */ | |
| 2263 | IN0_PORT | |
| 2264 | ||
| 2265 | PORT_START("DSW1") /* DSW1 */ | |
| 1626 | PORT_MODIFY("DSW2") | |
| 2266 | 1627 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2267 | 1628 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 2268 | 1629 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 2287 | 1648 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2288 | 1649 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2289 | 1650 | |
| 2290 | PORT_START("DSW0") /* DSW0 */ | |
| 2291 | DSW1_PORT | |
| 1651 | PORT_START("DSW1") | |
| 1652 | COINAGE_PORT | |
| 2292 | 1653 | INPUT_PORTS_END |
| 2293 | 1654 | |
| 2294 | 1655 | static INPUT_PORTS_START( noboranb ) |
| 2295 | PORT_START("P1") /* IN1 */ | |
| 2296 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1656 | PORT_INCLUDE( common ) | |
| 1657 | ||
| 1658 | PORT_MODIFY("P1") | |
| 2297 | 1659 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) // shot |
| 2298 | 1660 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) // fly |
| 2299 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2300 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2301 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2302 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2303 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 2304 | 1661 | |
| 2305 | PORT_START("P2") /* IN2 */ | |
| 2306 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1662 | PORT_MODIFY("P2") | |
| 2307 | 1663 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL // shot |
| 2308 | 1664 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL // fly |
| 2309 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2310 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2311 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2312 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2313 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2314 | 1665 | |
| 2315 | PORT_START("SYSTEM") /* IN0 */ | |
| 2316 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2317 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2318 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) | |
| 2319 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2320 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2321 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2322 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2323 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2324 | ||
| 2325 | PORT_START("DSW1") /* DSW1 */ | |
| 1666 | PORT_MODIFY("DSW2") | |
| 2326 | 1667 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 2327 | 1668 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 2328 | 1669 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 2345 | 1686 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2346 | 1687 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 2347 | 1688 | |
| 2348 | PORT_START("DSW | |
| 1689 | PORT_START("DSW1") | |
| 2349 | 1690 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 2350 | 1691 | PORT_DIPSETTING( 0x02, "2" ) |
| 2351 | 1692 | PORT_DIPSETTING( 0x03, "3" ) |
| r3115 | r3116 | |
| 2377 | 1718 | |
| 2378 | 1719 | */ |
| 2379 | 1720 | static INPUT_PORTS_START( ufosensi ) |
| 2380 | PORT_START("P1") /* IN1 */ | |
| 1721 | PORT_INCLUDE( common ) | |
| 1722 | ||
| 1723 | PORT_MODIFY("P1") | |
| 2381 | 1724 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 2382 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 2383 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 2384 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2385 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2386 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2387 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2388 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 2389 | 1725 | |
| 2390 | PORT_ | |
| 1726 | PORT_MODIFY("P2") | |
| 2391 | 1727 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL |
| 2392 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2393 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2394 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2395 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2396 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2397 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2398 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2399 | 1728 | |
| 2400 | PORT_START("SYSTEM") /* IN0 */ | |
| 2401 | IN0_PORT | |
| 2402 | ||
| 2403 | PORT_START("DSW1") /* DSW1 */ | |
| 1729 | PORT_MODIFY("DSW2") | |
| 2404 | 1730 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Difficulty ) ) |
| 2405 | 1731 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 2406 | 1732 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 2424 | 1750 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2425 | 1751 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2426 | 1752 | |
| 2427 | PORT_START("DSW | |
| 1753 | PORT_START("DSW1") | |
| 2428 | 1754 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 2429 | 1755 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) |
| 2430 | 1756 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 87 | 87 | |
| 88 | 88 | static ADDRESS_MAP_START( powerins_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 89 | 89 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM ) // ROM |
| 90 | AM_RANGE(0x100000, 0x100001) AM_READ(input_port_0_word_r ) // Coins + Start Buttons | |
| 91 | AM_RANGE(0x100002, 0x100003) AM_READ(input_port_1_word_r ) // P1 + P2 | |
| 92 | AM_RANGE(0x100008, 0x100009) AM_READ(input_port_2_word_r ) // DSW 1 | |
| 93 | AM_RANGE(0x10000a, 0x10000b) AM_READ(input_port_3_word_r ) // DSW 2 | |
| 94 | AM_RANGE(0x10003e, 0x10003f) AM_READ(okim6295_status_0_lsb_r ) // OKI Status (used by powerina) | |
| 90 | AM_RANGE(0x100000, 0x100001) AM_READ_PORT("SYSTEM") | |
| 91 | AM_RANGE(0x100002, 0x100003) AM_READ_PORT("P1_P2") | |
| 92 | AM_RANGE(0x100008, 0x100009) AM_READ_PORT("DSW1") | |
| 93 | AM_RANGE(0x10000a, 0x10000b) AM_READ_PORT("DSW2") | |
| 94 | AM_RANGE(0x10003e, 0x10003f) AM_READ(okim6295_status_0_lsb_r) // OKI Status (used by powerina) | |
| 95 | 95 | AM_RANGE(0x120000, 0x120fff) AM_READ(SMH_RAM ) // Palette |
| 96 | 96 | AM_RANGE(0x130000, 0x130007) AM_READ(SMH_RAM ) // VRAM 0 Control |
| 97 | 97 | AM_RANGE(0x140000, 0x143fff) AM_READ(SMH_RAM ) // VRAM 0 |
| r3115 | r3116 | |
| 103 | 103 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM ) // ROM |
| 104 | 104 | AM_RANGE(0x100014, 0x100015) AM_WRITE(powerins_flipscreen_w ) // Flip Screen |
| 105 | 105 | AM_RANGE(0x100016, 0x100017) AM_WRITE(SMH_NOP ) // ? always 1 |
| 106 | AM_RANGE(0x100018, 0x100019) AM_WRITE(powerins_tilebank_w | |
| 106 | AM_RANGE(0x100018, 0x100019) AM_WRITE(powerins_tilebank_w | |
| 107 | 107 | AM_RANGE(0x10001e, 0x10001f) AM_WRITE(powerins_soundlatch_w ) // Sound Latch |
| 108 | AM_RANGE(0x100030, 0x100031) AM_WRITE(powerins_okibank_w | |
| 108 | AM_RANGE(0x100030, 0x100031) AM_WRITE(powerins_okibank_w | |
| 109 | 109 | AM_RANGE(0x10003e, 0x10003f) AM_WRITE(okim6295_data_0_lsb_w ) // used by powerina |
| 110 | 110 | AM_RANGE(0x120000, 0x120fff) AM_WRITE(powerins_paletteram16_w) AM_BASE(&paletteram16 ) // Palette |
| 111 | AM_RANGE(0x130000, 0x130007) AM_WRITE(SMH_RAM) AM_BASE(&powerins_vctrl_0 | |
| 111 | AM_RANGE(0x130000, 0x130007) AM_WRITE(SMH_RAM) AM_BASE(&powerins_vctrl_0 | |
| 112 | 112 | AM_RANGE(0x140000, 0x143fff) AM_WRITE(powerins_vram_0_w) AM_BASE(&powerins_vram_0 ) // VRAM 0 |
| 113 | 113 | AM_RANGE(0x170000, 0x170fff) AM_WRITE(powerins_vram_1_w) AM_BASE(&powerins_vram_1 ) // VRAM 1 |
| 114 | 114 | AM_RANGE(0x171000, 0x171fff) AM_WRITE(powerins_vram_1_w ) // Mirror of VRAM 1? |
| 115 | AM_RANGE(0x180000, 0x18ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16 | |
| 115 | AM_RANGE(0x180000, 0x18ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16 | |
| 116 | 116 | ADDRESS_MAP_END |
| 117 | 117 | |
| 118 | 118 | /* In powerina there is a hidden test mode screen because it's a bootleg |
| r3115 | r3116 | |
| 157 | 157 | ***************************************************************************/ |
| 158 | 158 | |
| 159 | 159 | static INPUT_PORTS_START( powerins ) |
| 160 | PORT_START("SYSTEM") // IN0 - $100000 - Coins | |
| 161 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 162 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 160 | PORT_START("SYSTEM") /* $100000 */ | |
| 161 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 162 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 163 | 163 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 164 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) | |
| 165 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) | |
| 164 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) | |
| 165 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) | |
| 166 | 166 | PORT_SERVICE_NO_TOGGLE( 0x0020, IP_ACTIVE_LOW ) |
| 167 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 168 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 167 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 168 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 169 | 169 | |
| 170 | PORT_START("P1_P2") / | |
| 170 | PORT_START("P1_P2") /* | |
| 171 | 171 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 172 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | |
| 172 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | |
| 173 | 173 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 174 | 174 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 175 | 175 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 178 | 178 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| 179 | 179 | |
| 180 | 180 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 181 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | |
| 181 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | |
| 182 | 182 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 183 | 183 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 184 | 184 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 186 | 186 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 187 | 187 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 188 | 188 | |
| 189 | PORT_START("DSW1") / | |
| 189 | PORT_START("DSW1") /* | |
| 190 | 190 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:8") |
| 191 | 191 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 192 | 192 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 194 | 194 | PORT_DIPSETTING( 0x0008, DEF_STR( 4C_1C ) ) |
| 195 | 195 | PORT_DIPSETTING( 0x0004, DEF_STR( 3C_1C ) ) |
| 196 | 196 | PORT_DIPSETTING( 0x000c, DEF_STR( 2C_1C ) ) |
| 197 | ||
| 197 | | |
| 198 | 198 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_1C ) ) |
| 199 | 199 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 200 | 200 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_3C ) ) |
| r3115 | r3116 | |
| 203 | 203 | PORT_DIPSETTING( 0x0040, DEF_STR( 4C_1C ) ) |
| 204 | 204 | PORT_DIPSETTING( 0x0020, DEF_STR( 3C_1C ) ) |
| 205 | 205 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_1C ) ) |
| 206 | ||
| 206 | | |
| 207 | 207 | PORT_DIPSETTING( 0x0070, DEF_STR( 1C_1C ) ) |
| 208 | 208 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) |
| 209 | 209 | PORT_DIPSETTING( 0x0050, DEF_STR( 1C_3C ) ) |
| r3115 | r3116 | |
| 212 | 212 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 213 | 213 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 214 | 214 | |
| 215 | PORT_START("DSW2") / | |
| 215 | PORT_START("DSW2") /* | |
| 216 | 216 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Chutes" ) PORT_DIPLOCATION("SW2:8") |
| 217 | 217 | PORT_DIPSETTING( 0x0001, "1 Chute" ) |
| 218 | 218 | PORT_DIPSETTING( 0x0000, "2 Chutes" ) |
| r3115 | r3116 | |
|---|---|---|
| 125 | 125 | |
| 126 | 126 | static ADDRESS_MAP_START( portmap, ADDRESS_SPACE_IO, 8 ) |
| 127 | 127 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 128 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) | |
| 129 | AM_RANGE(0x10, 0x10) AM_READ(input_port_1_r) | |
| 130 | AM_RANGE(0x40, 0x40) AM_READ(input_port_2_r) | |
| 128 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") | |
| 129 | AM_RANGE(0x10, 0x10) AM_READ_PORT("IN1") | |
| 130 | AM_RANGE(0x40, 0x40) AM_READ_PORT("IN2") | |
| 131 | 131 | AM_RANGE(0x50, 0x50) AM_WRITE(ay8910_control_port_0_w) |
| 132 | 132 | AM_RANGE(0x51, 0x51) AM_WRITE(ay8910_write_port_0_w) |
| 133 | 133 | AM_RANGE(0x60, 0x60) AM_WRITE(port60_w) |
| r3115 | r3116 | |
|---|---|---|
| 260 | 260 | return ((dipsw_a << 8) | dipsw_b); |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | static READ16_HANDLER( niyanpai_inputport_0_r ) | |
| 264 | { | |
| 265 | return ((input_port_read(machine, "P1") << 8) | (input_port_read(machine, "P2") << 0)); | |
| 266 | } | |
| 267 | ||
| 268 | static READ16_HANDLER( niyanpai_inputport_1_r ) | |
| 269 | { | |
| 270 | return ((input_port_read(machine, "SYSTEM") << 8) | 0xff); | |
| 271 | } | |
| 272 | ||
| 273 | 263 | static READ16_HANDLER( musobana_inputport_0_r ) |
| 274 | 264 | { |
| 275 | 265 | int portdata; |
| 276 | 266 | |
| 277 | 267 | switch ((musobana_inputport ^ 0xff00) >> 8) |
| 278 | 268 | { |
| 279 | case 0x01: portdata = ((input_port_read(machine, "KEY0") << 8) | (input_port_read(machine, "KEY5"))); break; | |
| 280 | case 0x02: portdata = ((input_port_read(machine, "KEY1") << 8) | (input_port_read(machine, "KEY6"))); break; | |
| 281 | case 0x04: portdata = ((input_port_read(machine, "KEY2") << 8) | (input_port_read(machine, "KEY7"))); break; | |
| 282 | case 0x08: portdata = ((input_port_read(machine, "KEY3") << 8) | (input_port_read(machine, "KEY8"))); break; | |
| 283 | case 0x10: portdata = ((input_port_read(machine, "KEY4") << 8) | (input_port_read(machine, "KEY9"))); break; | |
| 284 | default: portdata = (((input_port_read(machine, "KEY0") << 8) | (input_port_read(machine, "KEY5")))) & (((input_port_read(machine, "KEY1") << 8) | (input_port_read(machine, "KEY6")))) | |
| 285 | & (((input_port_read(machine, "KEY2") << 8) | (input_port_read(machine, "KEY7")))) & (((input_port_read(machine, "KEY3") << 8) | (input_port_read(machine, "KEY8")))) | |
| 286 | & (((input_port_read(machine, "KEY4") << 8) | (input_port_read(machine, "KEY9")))); break; | |
| 269 | case 0x01: portdata = input_port_read(machine, "KEY0"); break; | |
| 270 | case 0x02: portdata = input_port_read(machine, "KEY1"); break; | |
| 271 | case 0x04: portdata = input_port_read(machine, "KEY2"); break; | |
| 272 | case 0x08: portdata = input_port_read(machine, "KEY3"); break; | |
| 273 | case 0x10: portdata = input_port_read(machine, "KEY4"); break; | |
| 274 | default: portdata = input_port_read(machine, "KEY0") & input_port_read(machine, "KEY1") & input_port_read(machine, "KEY2") | |
| 275 | & input_port_read(machine, "KEY3") & input_port_read(machine, "KEY4"); break; | |
| 287 | 276 | } |
| 288 | 277 | |
| 289 | 278 | return (portdata); |
| 290 | 279 | } |
| 291 | 280 | |
| 292 | static | |
| 281 | static CUSTOM_I | |
| 293 | 282 | { |
| 294 | 283 | // tmp68301_parallel_interface[0x05] |
| 295 | 284 | // bit 0 coin counter |
| 296 | 285 | // bit 2 motor on |
| 297 | 286 | // bit 3 coin lock |
| 298 | 287 | |
| 299 | if (tmp68301_parallel_interface_r(machine, 0x0005, 0x00ff) & 0x0004) musobana_outcoin_flag ^= 1; | |
| 288 | if (tmp68301_parallel_interface_r(field->port->machine, 0x0005, 0x00ff) & 0x0004) musobana_outcoin_flag ^= 1; | |
| 300 | 289 | else musobana_outcoin_flag = 1; |
| 301 | 290 | |
| 302 | return | |
| 291 | return | |
| 303 | 292 | } |
| 304 | 293 | |
| 305 | 294 | static WRITE16_HANDLER ( musobana_inputport_w ) |
| r3115 | r3116 | |
| 322 | 311 | AM_RANGE(0x240800, 0x240803) AM_READ(niyanpai_blitter_2_r) |
| 323 | 312 | |
| 324 | 313 | AM_RANGE(0x280000, 0x280001) AM_READ(niyanpai_dipsw_r) |
| 325 | AM_RANGE(0x280200, 0x280201) AM_READ(niyanpai_inputport_0_r) | |
| 326 | AM_RANGE(0x280400, 0x280401) AM_READ(niyanpai_inputport_1_r) | |
| 314 | AM_RANGE(0x280200, 0x280201) AM_READ_PORT("P1_P2") | |
| 315 | AM_RANGE(0x280400, 0x280401) AM_READ_PORT("SYSTEM") | |
| 327 | 316 | |
| 328 | 317 | AM_RANGE(0xfffc00, 0xfffc0f) AM_READ(tmp68301_address_decoder_r) |
| 329 | 318 | AM_RANGE(0xfffc80, 0xfffc9f) AM_READ(tmp68301_interrupt_controller_r) |
| r3115 | r3116 | |
| 383 | 372 | |
| 384 | 373 | AM_RANGE(0x280000, 0x280001) AM_READ(niyanpai_dipsw_r) |
| 385 | 374 | AM_RANGE(0x280200, 0x280201) AM_READ(musobana_inputport_0_r) |
| 386 | AM_RANGE(0x280400, 0x280401) AM_READ | |
| 375 | AM_RANGE(0x280400, 0x280401) AM_READ | |
| 387 | 376 | |
| 388 | 377 | AM_RANGE(0xfffc00, 0xfffc0f) AM_READ(tmp68301_address_decoder_r) |
| 389 | 378 | AM_RANGE(0xfffc80, 0xfffc9f) AM_READ(tmp68301_interrupt_controller_r) |
| r3115 | r3116 | |
| 445 | 434 | |
| 446 | 435 | AM_RANGE(0x280000, 0x280001) AM_READ(niyanpai_dipsw_r) |
| 447 | 436 | AM_RANGE(0x280200, 0x280201) AM_READ(musobana_inputport_0_r) |
| 448 | AM_RANGE(0x280400, 0x280401) AM_READ | |
| 437 | AM_RANGE(0x280400, 0x280401) AM_READ | |
| 449 | 438 | |
| 450 | 439 | AM_RANGE(0xfffc00, 0xfffc0f) AM_READ(tmp68301_address_decoder_r) |
| 451 | 440 | AM_RANGE(0xfffc80, 0xfffc9f) AM_READ(tmp68301_interrupt_controller_r) |
| r3115 | r3116 | |
| 538 | 527 | |
| 539 | 528 | |
| 540 | 529 | static INPUT_PORTS_START( niyanpai ) |
| 541 | PORT_START("DSWA") /* (0) DIPSW-A */ | |
| 530 | PORT_START("SYSTEM") | |
| 531 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) // ? | |
| 532 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 | |
| 533 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 | |
| 534 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START3 ) // CREDIT CLEAR | |
| 535 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START2 ) // START2 | |
| 536 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER | |
| 537 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_START1 ) // START1 | |
| 538 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // ? | |
| 539 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) // TEST | |
| 540 | ||
| 541 | PORT_START("P1_P2") | |
| 542 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 543 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 544 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 545 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 546 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 547 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 548 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 549 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 550 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 551 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 552 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 553 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 554 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 555 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 556 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 557 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 558 | ||
| 559 | PORT_START("DSWA") | |
| 542 | 560 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 543 | 561 | PORT_DIPSETTING( 0x03, "1" ) |
| 544 | 562 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 562 | 580 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 563 | 581 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 564 | 582 | |
| 565 | PORT_START("DSWB") | |
| 583 | PORT_START("DSWB") | |
| 566 | 584 | PORT_DIPNAME( 0x01, 0x00, "Nudity" ) |
| 567 | 585 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 568 | 586 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 570 | 588 | PORT_DIPNAME( 0x80, 0x80, "Graphic ROM Test" ) |
| 571 | 589 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 572 | 590 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 591 | INPUT_PORTS_END | |
| 573 | 592 | |
| 574 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 575 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 | |
| 576 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 | |
| 577 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 ) // CREDIT CLEAR | |
| 578 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) // START2 | |
| 579 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER | |
| 580 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) // START1 | |
| 581 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) // ? | |
| 582 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) // TEST | |
| 593 | INPUT_PORTS_START( nbmjctrl_16 ) | |
| 594 | PORT_START("KEY0") | |
| 595 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START2 ) | |
| 596 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) PORT_PLAYER(2) | |
| 597 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_M ) PORT_PLAYER(2) | |
| 598 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_I ) PORT_PLAYER(2) | |
| 599 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_E ) PORT_PLAYER(2) | |
| 600 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_MAHJONG_A ) PORT_PLAYER(2) | |
| 601 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 602 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 603 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 604 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) | |
| 605 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_MAHJONG_M ) | |
| 606 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_MAHJONG_I ) | |
| 607 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_MAHJONG_E ) | |
| 608 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_MAHJONG_A ) | |
| 609 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 610 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 583 | 611 | |
| 584 | PORT_START("P1") /* (3) PLAYER-1 */ | |
| 585 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 586 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 587 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 588 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 589 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 590 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 591 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 592 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 612 | PORT_START("KEY1") | |
| 613 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_BET ) PORT_PLAYER(2) | |
| 614 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) PORT_PLAYER(2) | |
| 615 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_N ) PORT_PLAYER(2) | |
| 616 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_J ) PORT_PLAYER(2) | |
| 617 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_F ) PORT_PLAYER(2) | |
| 618 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_MAHJONG_B ) PORT_PLAYER(2) | |
| 619 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 620 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 621 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_MAHJONG_BET ) | |
| 622 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) | |
| 623 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_MAHJONG_N ) | |
| 624 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_MAHJONG_J ) | |
| 625 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_MAHJONG_F ) | |
| 626 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_MAHJONG_B ) | |
| 627 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 628 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 593 | 629 | |
| 594 | PORT_START("P2") /* (4) PLAYER-2 */ | |
| 595 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 596 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 597 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 598 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 599 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 600 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 601 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 602 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 603 | INPUT_PORTS_END | |
| 630 | PORT_START("KEY2") | |
| 631 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 632 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) PORT_PLAYER(2) | |
| 633 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) PORT_PLAYER(2) | |
| 634 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_K ) PORT_PLAYER(2) | |
| 635 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_G ) PORT_PLAYER(2) | |
| 636 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_MAHJONG_C ) PORT_PLAYER(2) | |
| 637 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 638 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 639 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 640 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) | |
| 641 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) | |
| 642 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_MAHJONG_K ) | |
| 643 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_MAHJONG_G ) | |
| 644 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_MAHJONG_C ) | |
| 645 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 646 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 604 | 647 | |
| 605 | static INPUT_PORTS_START( musobana ) | |
| 648 | PORT_START("KEY3") | |
| 649 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 650 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 651 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) PORT_PLAYER(2) | |
| 652 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_L ) PORT_PLAYER(2) | |
| 653 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_H ) PORT_PLAYER(2) | |
| 654 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_MAHJONG_D ) PORT_PLAYER(2) | |
| 655 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 656 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 657 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 658 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 659 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) | |
| 660 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_MAHJONG_L ) | |
| 661 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_MAHJONG_H ) | |
| 662 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_MAHJONG_D ) | |
| 663 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 664 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 606 | 665 | |
| 607 | // I don't have manual for this game. | |
| 666 | PORT_START("KEY4") | |
| 667 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL ) PORT_PLAYER(2) | |
| 668 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_BIG ) PORT_PLAYER(2) | |
| 669 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) PORT_PLAYER(2) | |
| 670 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_DOUBLE_UP ) PORT_PLAYER(2) | |
| 671 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_SCORE ) PORT_PLAYER(2) | |
| 672 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_MAHJONG_LAST_CHANCE ) PORT_PLAYER(2) | |
| 673 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 674 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 675 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL ) | |
| 676 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_MAHJONG_BIG ) | |
| 677 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) | |
| 678 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_MAHJONG_DOUBLE_UP ) | |
| 679 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_MAHJONG_SCORE ) | |
| 680 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_MAHJONG_LAST_CHANCE ) | |
| 681 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 682 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 683 | INPUT_PORTS_END | |
| 608 | 684 | |
| 609 | PORT_START("DSWA") /* (0) DIPSW-A */ | |
| 685 | static INPUT_PORTS_START( musobana ) // I don't have manual for this game. | |
| 686 | PORT_START("DSWA") | |
| 610 | 687 | PORT_DIPNAME( 0x03, 0x03, "Game Out" ) |
| 611 | 688 | PORT_DIPSETTING( 0x03, "90% (Easy)" ) |
| 612 | 689 | PORT_DIPSETTING( 0x02, "80%" ) |
| r3115 | r3116 | |
| 630 | 707 | PORT_DIPSETTING( 0x80, "Medal Type" ) |
| 631 | 708 | PORT_DIPSETTING( 0x00, "Credit Type" ) |
| 632 | 709 | |
| 633 | PORT_START("DSWB") | |
| 710 | PORT_START("DSWB") | |
| 634 | 711 | PORT_DIPNAME( 0x03, 0x03, "Bet Min" ) |
| 635 | 712 | PORT_DIPSETTING( 0x03, "1" ) |
| 636 | 713 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 654 | 731 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 655 | 732 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 656 | 733 | |
| 657 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 658 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 | |
| 659 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 | |
| 660 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 ) // CREDIT CLEAR | |
| 661 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET | |
| 662 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER | |
| 663 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) // OUT COIN | |
| 664 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 665 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) // TEST | |
| 734 | PORT_START("SYSTEM") | |
| 735 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 | |
| 736 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 | |
| 737 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START3 ) // CREDIT CLEAR | |
| 738 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET | |
| 739 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER | |
| 740 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(musobana_outcoin_flag_r, NULL) // OUT COIN | |
| 741 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 742 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) // TEST | |
| 666 | 743 | |
| 667 | PORT_INCLUDE( nbmjc | |
| 744 | PORT_INCLUDE( nbmjc | |
| 668 | 745 | INPUT_PORTS_END |
| 669 | 746 | |
| 670 | static INPUT_PORTS_START( 4psimasy ) | |
| 671 | ||
| 672 | // I don't have manual for this game. | |
| 673 | ||
| 674 | PORT_START("DSWA") /* (0) DIPSW-A */ | |
| 747 | static INPUT_PORTS_START( 4psimasy ) // I don't have manual for this game. | |
| 748 | PORT_START("DSWA") | |
| 675 | 749 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 676 | 750 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 677 | 751 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 697 | 771 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 698 | 772 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 699 | 773 | |
| 700 | PORT_START("DSWB") | |
| 774 | PORT_START("DSWB") | |
| 701 | 775 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 702 | 776 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 703 | 777 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 723 | 797 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 724 | 798 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 725 | 799 | |
| 726 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 727 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 | |
| 728 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 | |
| 729 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 ) // CREDIT CLEAR | |
| 730 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET | |
| 731 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER | |
| 732 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) // OUT COIN | |
| 733 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 734 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) // TEST | |
| 800 | PORT_START("SYSTEM") | |
| 801 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 | |
| 802 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 | |
| 803 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START3 ) // CREDIT CLEAR | |
| 804 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET | |
| 805 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER | |
| 806 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(musobana_outcoin_flag_r, NULL) // OUT COIN | |
| 807 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 808 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) // TEST | |
| 735 | 809 | |
| 736 | PORT_INCLUDE( nbmjc | |
| 810 | PORT_INCLUDE( nbmjc | |
| 737 | 811 | INPUT_PORTS_END |
| 738 | 812 | |
| 739 | static INPUT_PORTS_START( mhhonban ) | |
| 740 | ||
| 741 | // I don't have manual for this game. | |
| 742 | ||
| 743 | PORT_START("DSWA") /* (0) DIPSW-A */ | |
| 813 | static INPUT_PORTS_START( mhhonban ) // I don't have manual for this game. | |
| 814 | PORT_START("DSWA") | |
| 744 | 815 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 745 | 816 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 746 | 817 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 766 | 837 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 767 | 838 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 768 | 839 | |
| 769 | PORT_START("DSWB") | |
| 840 | PORT_START("DSWB") | |
| 770 | 841 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 771 | 842 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 772 | 843 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 792 | 863 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 793 | 864 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 794 | 865 | |
| 795 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 796 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 | |
| 797 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 | |
| 798 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 ) // CREDIT CLEAR | |
| 799 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET | |
| 800 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER | |
| 801 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) // OUT COIN | |
| 802 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 803 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) // TEST | |
| 866 | PORT_START("SYSTEM") | |
| 867 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 | |
| 868 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 | |
| 869 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START3 ) // CREDIT CLEAR | |
| 870 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET | |
| 871 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER | |
| 872 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(musobana_outcoin_flag_r, NULL) // OUT COIN | |
| 873 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 874 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) // TEST | |
| 804 | 875 | |
| 805 | PORT_INCLUDE( nbmjc | |
| 876 | PORT_INCLUDE( nbmjc | |
| 806 | 877 | INPUT_PORTS_END |
| 807 | 878 | |
| 808 | 879 |
| r3115 | r3116 | |
|---|---|---|
| 356 | 356 | |
| 357 | 357 | for ( i = 0; i < 6; i++) |
| 358 | 358 | { |
| 359 | Stepper_reset_position(i); | |
| 360 | if ( Stepper_optic_state(i) ) pattern |= 1<<i; | |
| 359 | stepper_reset_position(i); | |
| 360 | if ( stepper_optic_state(i) ) pattern |= 1<<i; | |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | optic_pattern = pattern; |
| r3115 | r3116 | |
| 567 | 567 | { |
| 568 | 568 | reel34_latch = data; |
| 569 | 569 | |
| 570 | if ( Stepper_update(2, data ) ) reel_changed |= 0x04; | |
| 571 | if ( Stepper_update(3, data>>4) ) reel_changed |= 0x08; | |
| 570 | if ( stepper_update(2, data ) ) reel_changed |= 0x04; | |
| 571 | if ( stepper_update(3, data>>4) ) reel_changed |= 0x08; | |
| 572 | 572 | |
| 573 | if ( | |
| 573 | if ( stepper_optic_state(2) ) optic_pattern |= 0x04; | |
| 574 | 574 | else optic_pattern &= ~0x04; |
| 575 | if ( | |
| 575 | if ( stepper_optic_state(3) ) optic_pattern |= 0x08; | |
| 576 | 576 | else optic_pattern &= ~0x08; |
| 577 | 577 | |
| 578 | 578 | draw_reel((2)); |
| r3115 | r3116 | |
| 585 | 585 | { |
| 586 | 586 | reel56_latch = data; |
| 587 | 587 | |
| 588 | if ( Stepper_update(4, data ) ) reel_changed |= 0x10; | |
| 589 | if ( Stepper_update(5, data>>4) ) reel_changed |= 0x20; | |
| 588 | if ( stepper_update(4, data ) ) reel_changed |= 0x10; | |
| 589 | if ( stepper_update(5, data>>4) ) reel_changed |= 0x20; | |
| 590 | 590 | |
| 591 | if ( | |
| 591 | if ( stepper_optic_state(4) ) optic_pattern |= 0x10; | |
| 592 | 592 | else optic_pattern &= ~0x10; |
| 593 | if ( | |
| 593 | if ( stepper_optic_state(5) ) optic_pattern |= 0x20; | |
| 594 | 594 | else optic_pattern &= ~0x20; |
| 595 | 595 | |
| 596 | 596 | draw_reel((4)); |
| r3115 | r3116 | |
|---|---|---|
| 496 | 496 | |
| 497 | 497 | Input port definitions |
| 498 | 498 | |
| 499 | NOTE: The driver reads data from eight input ports, even if they are unused. | |
| 500 | So I left them mapped. See for reference the READ32_HANDLERs : | |
| 501 | "nova_input_port_0_r", "nova_input_port_3_r", "nova_input_port_dip_r" | |
| 499 | NOTE: The driver reads data from eight 8bit input ports, even if they | |
| 500 | are unused. So I left them mapped. | |
| 501 | ||
| 502 | 502 | **********************************************************************************/ |
| 503 | 503 | |
| 504 | static CUSTOM_INPUT( paddle_r ) | |
| 505 | { | |
| 506 | const char *tag = param; | |
| 507 | return input_port_read(field->port->machine, tag); | |
| 508 | } | |
| 509 | ||
| 504 | 510 | static INPUT_PORTS_START( skns ) /* 3 buttons, 2 players */ |
| 511 | PORT_START("400000") | |
| 512 | PORT_BIT( 0x000000ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 513 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 514 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_START2 ) | |
| 515 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 516 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 517 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_SERVICE ) | |
| 518 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_TILT ) | |
| 519 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 520 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 505 | 521 | |
| 506 | PORT_START("IN0") /* IN0 */ | |
| 507 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 508 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 509 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 510 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 511 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 512 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 513 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 514 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 522 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 523 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 524 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 525 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 526 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 527 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 528 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 529 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 530 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 531 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 532 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 533 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 534 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 535 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 536 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 537 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 515 | 538 | |
| 516 | PORT_START("IN1") /* IN1 */ | |
| 517 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 518 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 519 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 520 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 521 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 522 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 523 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 524 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 539 | PORT_START("400004") | |
| 540 | PORT_SERVICE( 0x00000001, IP_ACTIVE_LOW ) | |
| 541 | PORT_DIPNAME( 0x00000002, 0x00000002, DEF_STR( Flip_Screen ) ) // This port affects 0x000000040191c8 function | |
| 542 | PORT_DIPSETTING( 0x00000002, DEF_STR( Off ) ) | |
| 543 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 544 | PORT_DIPNAME( 0x00000004, 0x00000004, DEF_STR( Unknown ) ) | |
| 545 | PORT_DIPSETTING( 0x00000004, DEF_STR( Off ) ) | |
| 546 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 547 | PORT_DIPNAME( 0x00000008, 0x00000008, DEF_STR( Unknown ) ) | |
| 548 | PORT_DIPSETTING( 0x00000008, DEF_STR( Off ) ) | |
| 549 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 550 | PORT_DIPNAME( 0x00000010, 0x00000010, DEF_STR( Unknown ) ) | |
| 551 | PORT_DIPSETTING( 0x00000010, DEF_STR( Off ) ) | |
| 552 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 553 | PORT_DIPNAME( 0x00000020, 0x00000020, DEF_STR( Unknown ) ) | |
| 554 | PORT_DIPSETTING( 0x00000020, DEF_STR( Off ) ) | |
| 555 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 556 | PORT_DIPNAME( 0x00000040, 0x00000040, "Use Backup Ram" ) | |
| 557 | PORT_DIPSETTING( 0x00000000, DEF_STR( No ) ) | |
| 558 | PORT_DIPSETTING( 0x00000040, DEF_STR( Yes ) ) | |
| 559 | PORT_DIPNAME( 0x00000080, 0x00000080, "Freeze" ) | |
| 560 | PORT_DIPSETTING( 0x00000000, "Freezes the game") | |
| 561 | PORT_DIPSETTING( 0x00000080, "Right value") | |
| 562 | PORT_BIT( 0x0000ff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(paddle_r, "Paddle C") | |
| 563 | PORT_BIT( 0x00ff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(paddle_r, "Paddle B") | |
| 564 | PORT_BIT( 0xff000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(paddle_r, "Paddle A") | |
| 525 | 565 | |
| 526 | PORT_START("IN2") /* IN2 */ | |
| 527 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 528 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 529 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 530 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 531 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) | |
| 532 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_TILT ) | |
| 533 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 534 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 566 | PORT_START("40000c") | |
| 567 | PORT_BIT( 0x000000ff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(paddle_r, "Paddle D") | |
| 568 | PORT_BIT( 0xffffff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 535 | 569 | |
| 536 | PORT_START(" | |
| 570 | PORT_START("Paddle A") | |
| 537 | 571 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 538 | 572 | |
| 539 | PORT_START("Paddle | |
| 573 | PORT_START("Paddle B") | |
| 540 | 574 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 541 | 575 | |
| 542 | PORT_START("Paddle | |
| 576 | PORT_START("Paddle C") | |
| 543 | 577 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 544 | 578 | |
| 545 | PORT_START("Paddle | |
| 579 | PORT_START("Paddle D") | |
| 546 | 580 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 547 | ||
| 548 | PORT_START("DSW") /* DSW */ | |
| 549 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) | |
| 550 | PORT_DIPNAME( 0x02, 0x02, DEF_STR(Flip_Screen) ) // This port affects 0x040191c8 function | |
| 551 | PORT_DIPSETTING( 0x02, DEF_STR(Off) ) | |
| 552 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 553 | PORT_DIPNAME( 0x04, 0x04, DEF_STR(Unknown) ) | |
| 554 | PORT_DIPSETTING( 0x04, DEF_STR(Off) ) | |
| 555 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 556 | PORT_DIPNAME( 0x08, 0x08, DEF_STR(Unknown) ) | |
| 557 | PORT_DIPSETTING( 0x08, DEF_STR(Off) ) | |
| 558 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 559 | PORT_DIPNAME( 0x10, 0x10, DEF_STR(Unknown) ) | |
| 560 | PORT_DIPSETTING( 0x10, DEF_STR(Off) ) | |
| 561 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 562 | PORT_DIPNAME( 0x20, 0x20, DEF_STR(Unknown) ) | |
| 563 | PORT_DIPSETTING( 0x20, DEF_STR(Off) ) | |
| 564 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 565 | PORT_DIPNAME( 0x40, 0x40, "Use Backup Ram" ) | |
| 566 | PORT_DIPSETTING( 0x00, DEF_STR(No) ) | |
| 567 | PORT_DIPSETTING( 0x40, DEF_STR(Yes) ) | |
| 568 | PORT_DIPNAME( 0x80, 0x80, "Freeze" ) | |
| 569 | PORT_DIPSETTING( 0x00, "Freezes the game") | |
| 570 | PORT_DIPSETTING( 0x80, "Right value") | |
| 571 | ||
| 572 | PORT_START("Paddle D") /* Paddle D */ | |
| 573 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 574 | ||
| 575 | 581 | INPUT_PORTS_END |
| 576 | 582 | |
| 577 | 583 | static INPUT_PORTS_START( skns_1p ) /* 2 buttons, 1 player */ |
| 584 | PORT_INCLUDE( skns ) | |
| 578 | 585 | |
| 579 | PORT_START("IN0") /* IN0 */ | |
| 580 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 581 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 582 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 583 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 584 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 585 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 586 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 587 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 588 | ||
| 586 | PORT_MODIFY("400000") | |
| 589 | 587 | /* jjparads and jjparad2 are 1 player only games |
| 590 | 588 | ryouran and teljan have an unemulated feature |
| 591 | 589 | that allows to play them in two player mode |
| 592 | 590 | via a cable-network connection (untestable) |
| 593 | 591 | Service mode test shows only P1 inputs */ |
| 594 | PORT_START("IN1") /* IN1 */ | |
| 595 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 596 | ||
| 592 | PORT_BIT( 0x00ff0000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 597 | 593 | /* same as above, coin 2 and start 2 are untestable |
| 598 | 594 | in ryouran and teljan. So I left disabled for now */ |
| 599 | PORT_START("IN2") /* IN2 */ | |
| 600 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 601 | //PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) | |
| 602 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 603 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 604 | //PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 605 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 606 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) | |
| 607 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_TILT ) | |
| 608 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 609 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 595 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNUSED ) /* Start 2 */ | |
| 596 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNUSED ) /* Coin 2 */ | |
| 597 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Button 3 */ | |
| 610 | 598 | |
| 611 | PORT_START("IN3") /* IN3 */ | |
| 612 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 613 | ||
| 614 | PORT_START("Paddle A") /* Paddle A */ | |
| 615 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 616 | ||
| 617 | PORT_START("Paddle B") /* Paddle B */ | |
| 618 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 619 | ||
| 620 | PORT_START("Paddle C") /* Paddle C */ | |
| 621 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 622 | ||
| 623 | PORT_START("DSW") /* DSW */ | |
| 624 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) | |
| 625 | PORT_DIPNAME( 0x02, 0x02, DEF_STR(Flip_Screen) ) // This port affects 0x040191c8 function | |
| 626 | PORT_DIPSETTING( 0x02, DEF_STR(Off) ) | |
| 627 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 628 | PORT_DIPNAME( 0x04, 0x04, DEF_STR(Unknown) ) | |
| 629 | PORT_DIPSETTING( 0x04, DEF_STR(Off) ) | |
| 630 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 631 | PORT_DIPNAME( 0x08, 0x08, DEF_STR(Unknown) ) | |
| 632 | PORT_DIPSETTING( 0x08, DEF_STR(Off) ) | |
| 633 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 634 | PORT_DIPNAME( 0x10, 0x10, "Test Mode" ) | |
| 635 | PORT_DIPSETTING( 0x10, DEF_STR(Off) ) | |
| 636 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 637 | PORT_DIPNAME( 0x20, 0x20, DEF_STR(Unknown) ) | |
| 638 | PORT_DIPSETTING( 0x20, DEF_STR(Off) ) | |
| 639 | PORT_DIPSETTING( 0x00, DEF_STR(On) ) | |
| 640 | PORT_DIPNAME( 0x40, 0x40, "Use Backup Ram" ) | |
| 641 | PORT_DIPSETTING( 0x00, DEF_STR(No) ) | |
| 642 | PORT_DIPSETTING( 0x40, DEF_STR(Yes) ) | |
| 643 | PORT_DIPNAME( 0x80, 0x80, "Freeze" ) | |
| 644 | PORT_DIPSETTING( 0x00, "Freezes the game") | |
| 645 | PORT_DIPSETTING( 0x80, "Right value") | |
| 646 | ||
| 647 | PORT_START("Paddle D") /* Paddle D */ | |
| 648 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 649 | ||
| 599 | PORT_MODIFY("400004") | |
| 600 | PORT_DIPNAME( 0x00000010, 0x00000010, "Test Mode" ) | |
| 601 | PORT_DIPSETTING( 0x00000010, DEF_STR(Off) ) | |
| 602 | PORT_DIPSETTING( 0x00000000, DEF_STR(On) ) | |
| 650 | 603 | INPUT_PORTS_END |
| 651 | 604 | |
| 652 | 605 | static INPUT_PORTS_START( cyvern ) /* 2 buttons, 2 players */ |
| 653 | 606 | PORT_INCLUDE( skns ) |
| 654 | 607 | |
| 655 | PORT_MODIFY("IN0") | |
| 656 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 657 | ||
| 658 | PORT_MODIFY("IN1") | |
| 659 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 660 | ||
| 608 | PORT_MODIFY("400000") | |
| 609 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Button 3 */ | |
| 610 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Button 3 */ | |
| 661 | 611 | INPUT_PORTS_END |
| 662 | 612 | |
| 663 | 613 | static INPUT_PORTS_START( galpanis ) /* 1 button, 2 players */ |
| 664 | 614 | PORT_INCLUDE( skns ) |
| 665 | 615 | |
| 666 | PORT_MODIFY("IN0") | |
| 667 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 668 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 669 | ||
| 670 | PORT_MODIFY("IN1") | |
| 671 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 672 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 673 | ||
| 616 | PORT_MODIFY("400000") | |
| 617 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Button 2 */ | |
| 618 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Button 3 */ | |
| 619 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Button 2 */ | |
| 620 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Button 3 */ | |
| 674 | 621 | INPUT_PORTS_END |
| 675 | 622 | |
| 676 | 623 | static INPUT_PORTS_START( puzzloop ) /* 2 buttons, 2 players, paddle */ |
| 677 | 624 | PORT_INCLUDE( skns ) |
| 678 | 625 | |
| 679 | PORT_MODIFY("IN0") | |
| 680 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 626 | PORT_MODIFY("400000") | |
| 627 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Button 3 */ | |
| 628 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Button 3 */ | |
| 681 | 629 | |
| 682 | PORT_MODIFY("IN1") | |
| 683 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 684 | ||
| 685 | 630 | PORT_MODIFY("Paddle A") /* Paddle A */ |
| 686 | PORT_BIT( 0x | |
| 631 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(1) | |
| 687 | 632 | |
| 688 | 633 | PORT_MODIFY("Paddle B") /* Paddle B */ |
| 689 | PORT_BIT( 0xFF, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(2) | |
| 690 | ||
| 634 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(2) | |
| 691 | 635 | INPUT_PORTS_END |
| 692 | 636 | |
| 693 | 637 | static INPUT_PORTS_START( vblokbrk ) /* 3 buttons, 2 players, paddle */ |
| 694 | 638 | PORT_INCLUDE( skns ) |
| 695 | 639 | |
| 696 | 640 | PORT_MODIFY("Paddle A") /* Paddle A */ |
| 697 | PORT_BIT( 0x | |
| 641 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(1) | |
| 698 | 642 | |
| 699 | 643 | PORT_MODIFY("Paddle B") /* Paddle B */ |
| 700 | PORT_BIT( 0xFF, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(2) | |
| 701 | ||
| 644 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(2) | |
| 702 | 645 | INPUT_PORTS_END |
| 703 | 646 | |
| 704 | 647 | |
| 705 | static READ32_HANDLER( nova_input_port_0_r ) | |
| 706 | { | |
| 707 | return input_port_read(machine, "IN0")<<24 | input_port_read(machine, "IN1")<<16 | input_port_read(machine, "IN2")<<8 | input_port_read(machine, "IN3"); | |
| 708 | } | |
| 709 | ||
| 710 | static READ32_HANDLER( nova_input_port_3_r ) | |
| 711 | { | |
| 712 | return input_port_read(machine, "Paddle D") | 0xffffff00; | |
| 713 | } | |
| 714 | ||
| 715 | static READ32_HANDLER( nova_input_port_dip_r ) | |
| 716 | { | |
| 717 | return input_port_read(machine, "Paddle A")<<24 | input_port_read(machine, "Paddle B")<<16 | input_port_read(machine, "Paddle C")<<8 | input_port_read(machine, "DSW"); | |
| 718 | } | |
| 719 | ||
| 720 | 648 | static UINT32 timer_0_temp[4]; |
| 721 | 649 | |
| 722 | 650 | static WRITE32_HANDLER( skns_msm6242_w ) |
| r3115 | r3116 | |
| 862 | 790 | |
| 863 | 791 | static ADDRESS_MAP_START( skns_readmem, ADDRESS_SPACE_PROGRAM, 32 ) |
| 864 | 792 | AM_RANGE(0x00000000, 0x0007ffff) AM_READ(SMH_ROM) /* BIOS ROM */ |
| 865 | AM_RANGE(0x00400000, 0x00400003) AM_READ(nova_input_port_0_r) | |
| 866 | AM_RANGE(0x00400004, 0x00400007) AM_READ(nova_input_port_dip_r) | |
| 793 | AM_RANGE(0x00400000, 0x00400003) AM_READ_PORT("400000") | |
| 794 | AM_RANGE(0x00400004, 0x00400007) AM_READ_PORT("400004") | |
| 867 | 795 | AM_RANGE(0x00400008, 0x0040000b) AM_READ(SMH_RAM) |
| 868 | 796 | /* In between is write only */ |
| 869 | AM_RANGE(0x0040000c, 0x0040000f) AM_READ | |
| 797 | AM_RANGE(0x0040000c, 0x0040000f) AM_READ | |
| 870 | 798 | AM_RANGE(0x00800000, 0x00801fff) AM_READ(SMH_RAM) /* 'backup' RAM */ |
| 871 | 799 | // AM_RANGE(0x00c00000, 0x00c00003) AM_READ(skns_ymz280_r) /* ymz280 (sound) */ |
| 872 | 800 | AM_RANGE(0x01000000, 0x0100000f) AM_READ(skns_msm6242_r) |
| r3115 | r3116 | |
|---|---|---|
| 442 | 442 | ROM_REGION( 0x100000, NAMCONB1_TILEMASKREGION, 0 ) // "SSHAPE" (mask for other tiles?) |
| 443 | 443 | ROM_LOAD("se1_ssh.18u", 0x000000, 0x100000, CRC(7a8e0bda) SHA1(f6a508d90274d0205fec0c46f5f783a2715c0c6e) ) |
| 444 | 444 | |
| 445 | ROM_REGION( 0x100000, " | |
| 445 | ROM_REGION( 0x100000, "c7x | |
| 446 | 446 | ROM_LOAD("se1_spr.21l", 0x000000, 0x80000, CRC(850a27ac) SHA1(7d5db840ec67659a1f2e69a62cdb03ce6ee0b47b) ) |
| 447 | 447 | NAMCO_C7X_BIOS |
| 448 | 448 | |
| r3115 | r3116 | |
| 479 | 479 | ROM_REGION( 0x80000, NAMCONB1_TILEMASKREGION, 0 ) // "SSHAPE" (mask for other tiles?) |
| 480 | 480 | ROM_LOAD("flr1ssh.18u", 0x000000, 0x080000, CRC(f70cb2bf) SHA1(dbddda822287783a43415172b81d0382a8ac43d8) ) |
| 481 | 481 | |
| 482 | ROM_REGION( 0x100000, " | |
| 482 | ROM_REGION( 0x100000, "c7x | |
| 483 | 483 | ROM_LOAD("flr1spr.21l", 0x000000, 0x20000, CRC(69bb0f5e) SHA1(6831d618de42a165e508ad37db594d3aa290c530) ) |
| 484 | 484 | NAMCO_C7X_BIOS |
| 485 | 485 | |
| r3115 | r3116 | |
| 516 | 516 | ROM_REGION( 0x80000, NAMCONB1_TILEMASKREGION, 0 ) // "SSHAPE" (mask for other tiles?) |
| 517 | 517 | ROM_LOAD("flr1ssh.18u", 0x000000, 0x080000, CRC(f70cb2bf) SHA1(dbddda822287783a43415172b81d0382a8ac43d8) ) |
| 518 | 518 | |
| 519 | ROM_REGION( 0x100000, " | |
| 519 | ROM_REGION( 0x100000, "c7x | |
| 520 | 520 | ROM_LOAD("flr1spr.21l", 0x000000, 0x20000, CRC(69bb0f5e) SHA1(6831d618de42a165e508ad37db594d3aa290c530) ) |
| 521 | 521 | NAMCO_C7X_BIOS |
| 522 | 522 | |
| r3115 | r3116 | |
| 553 | 553 | ROM_REGION( 0x80000, NAMCONB1_TILEMASKREGION, 0 ) // "SSHAPE" (mask for other tiles?) |
| 554 | 554 | ROM_LOAD("flr1ssh.18u", 0x000000, 0x080000, CRC(f70cb2bf) SHA1(dbddda822287783a43415172b81d0382a8ac43d8) ) |
| 555 | 555 | |
| 556 | ROM_REGION( 0x100000, " | |
| 556 | ROM_REGION( 0x100000, "c7x | |
| 557 | 557 | ROM_LOAD("flr1spr.21l", 0x000000, 0x20000, CRC(69bb0f5e) SHA1(6831d618de42a165e508ad37db594d3aa290c530) ) |
| 558 | 558 | NAMCO_C7X_BIOS |
| 559 | 559 |
| r3115 | r3116 | |
|---|---|---|
| 103 | 103 | |
| 104 | 104 | static ADDRESS_MAP_START( readmem_alt, ADDRESS_SPACE_PROGRAM, 8 ) |
| 105 | 105 | AM_RANGE(0x0000, 0x0fff) AM_READ(SMH_RAM) |
| 106 | AM_RANGE(0x1000, 0x1000) AM_READ(input_port_0_r) | |
| 107 | AM_RANGE(0x1001, 0x1001) AM_READ(input_port_1_r) | |
| 108 | AM_RANGE(0x1002, 0x1002) AM_READ(input_port_2_r) | |
| 109 | AM_RANGE(0x1003, 0x1003) AM_READ(input_port_3_r) | |
| 106 | AM_RANGE(0x1000, 0x1000) AM_READ_PORT("DSW1") | |
| 107 | AM_RANGE(0x1001, 0x1001) AM_READ_PORT("P1") | |
| 108 | AM_RANGE(0x1002, 0x1002) AM_READ_PORT("P2") | |
| 109 | AM_RANGE(0x1003, 0x1003) AM_READ_PORT("DSW2") | |
| 110 | 110 | AM_RANGE(0x2000, 0x21ff) AM_READ(SMH_RAM) |
| 111 | 111 | AM_RANGE(0x2800, 0x2800) AM_READ(ym2203_status_port_0_r) |
| 112 | 112 | AM_RANGE(0x3000, 0x37ff) AM_READ(SMH_RAM) /* foreground */ |
| r3115 | r3116 | |
| 146 | 146 | /*******************************************************************************/ |
| 147 | 147 | |
| 148 | 148 | static INPUT_PORTS_START( shootout ) |
| 149 | PORT_START("P1") | |
| 150 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 151 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 152 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 153 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 154 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 155 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 156 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) | |
| 157 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 158 | ||
| 159 | PORT_START("P2") | |
| 160 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 161 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 162 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 163 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 164 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 165 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 166 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 167 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 168 | ||
| 149 | 169 | PORT_START("DSW1") |
| 150 | 170 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 151 | 171 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 168 | 188 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 169 | 189 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 170 | 190 | |
| 171 | PORT_START("P1") | |
| 172 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 173 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 174 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 175 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 176 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 177 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 178 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) | |
| 179 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 180 | ||
| 181 | PORT_START("P2") | |
| 182 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 183 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 184 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 185 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 186 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 187 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 188 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 189 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 190 | ||
| 191 | 191 | PORT_START("DSW2") |
| 192 | 192 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 193 | 193 | PORT_DIPSETTING( 0x01, "1" ) |
| r3115 | r3116 | |
|---|---|---|
| 112 | 112 | } zn_config_table[] = |
| 113 | 113 | { |
| 114 | 114 | { "nbajamex", ac01, ac02 }, /* black screen */ |
| 115 | { "jdredd", ac01, ac02 }, /* OK ( missing guns ) */ | |
| 116 | { "jdreddb", ac01, ac02 }, /* OK ( missing guns ) */ | |
| 115 | { "jdredd", ac01, ac02 }, /* OK */ | |
| 116 | { "jdreddb", ac01, ac02 }, /* OK */ | |
| 117 | 117 | { "primrag2", tw01, tw02 }, /* locks up when starting a game */ |
| 118 | 118 | { "hvnsgate", at01, at02 }, /* OK */ |
| 119 | 119 | { "ts2", cp01, cp02 }, /* OK */ |
| r3115 | r3116 | |
| 156 | 156 | { "cbaj", mg01, mg03 }, /* OK */ |
| 157 | 157 | { "shngmtkb", mg01, mg04 }, /* OK */ |
| 158 | 158 | { "doapp", mg01, mg05 }, /* OK */ |
| 159 | { "flamegun", mg01, mg06 }, /* OK, geometry issues */ | |
| 160 | { "flameguj", mg01, mg06 }, /* OK, geometry issues */ | |
| 159 | { "flamegun", mg01, mg06 }, /* OK */ | |
| 160 | { "flameguj", mg01, mg06 }, /* OK */ | |
| 161 | 161 | { "glpracr3", mg01, mg08 }, |
| 162 | 162 | { "tondemo", mg01, mg09 }, /* OK */ |
| 163 | 163 | { "1on1gov", mg01, mg10 }, /* OK */ |
| r3115 | r3116 | |
| 165 | 165 | { "tblkkuzu", mg01, mg12 }, /* OK */ |
| 166 | 166 | { "tecmowcm", mg01, mg13 }, /* OK */ |
| 167 | 167 | { "mfjump", mg01, mg14 }, /* OK */ |
| 168 | { "sfchamp", tt01, tt02 }, /* stuck in test mode */ | |
| 169 | { "sfchampj", tt01, tt02 }, /* stuck in test mode */ | |
| 168 | { "sfchamp", tt01, tt02 }, /* OK */ | |
| 169 | { "sfchampj", tt01, tt02 }, /* OK */ | |
| 170 | 170 | { "psyforce", tt01, tt03 }, /* OK */ |
| 171 | 171 | { "psyforcj", tt01, tt03 }, /* OK */ |
| 172 | 172 | { "psyfrcex", tt01, tt03 }, /* OK */ |
| 173 | 173 | { "raystorm", tt01, tt04 }, /* OK */ |
| 174 | 174 | { "raystorj", tt01, tt04 }, /* OK */ |
| 175 | { "ftimpact", tt01, tt05 }, /* stuck in test mode */ | |
| 176 | { "ftimpcta", tt01, tt05 }, /* OK, geometry issues */ | |
| 177 | { "mgcldate", tt01, tt06 }, /* stuck in test mode */ | |
| 175 | { "ftimpact", tt01, tt05 }, /* OK */ | |
| 176 | { "ftimpcta", tt01, tt05 }, /* OK */ | |
| 177 | { "mgcldate", tt01, tt06 }, /* OK */ | |
| 178 | 178 | { "mgcldtex", tt01, tt06 }, /* OK */ |
| 179 | 179 | { "gdarius", tt01, tt07 }, /* OK */ |
| 180 | 180 | { "gdariusb", tt01, tt07 }, /* OK */ |
| 181 | 181 | { "gdarius2", tt01, tt07 }, /* OK */ |
| 182 | 182 | { "taitogn", tt10, tt16 }, /* shows gnet logo */ |
| 183 | { "aerofgts", kn01, kn02 }, /* OK */ | |
| 183 | 184 | { "sncwgltd", kn01, kn02 }, /* OK */ |
| 184 | 185 | { NULL, NULL, NULL } |
| 185 | 186 | }; |
| r3115 | r3116 | |
| 188 | 189 | static UINT32 m_b_znsecport; |
| 189 | 190 | static int m_n_dip_bit; |
| 190 | 191 | static int m_b_lastclock; |
| 192 | static emu_timer *dip_timer; | |
| 191 | 193 | |
| 192 | 194 | static READ32_HANDLER( znsecsel_r ) |
| 193 | 195 | { |
| r3115 | r3116 | |
| 201 | 203 | { |
| 202 | 204 | if( m_b_lastclock ) |
| 203 | 205 | { |
| 204 | psx_sio_input( Machine, 0, PSX_SIO_IN_DATA, ( znsec_step( 0, ( n_data & PSX_SIO_OUT_DATA ) | |
| 206 | psx_sio_input( Machine, 0, PSX_SIO_IN_DATA, ( znsec_step( 0, ( n_data & PSX_SIO_OUT_DATA ) != 0 | |
| 205 | 207 | } |
| 206 | 208 | m_b_lastclock = 0; |
| 207 | 209 | } |
| r3115 | r3116 | |
| 217 | 219 | { |
| 218 | 220 | if( m_b_lastclock ) |
| 219 | 221 | { |
| 220 | psx_sio_input( Machine, 0, PSX_SIO_IN_DATA, ( znsec_step( 1, ( n_data & PSX_SIO_OUT_DATA ) | |
| 222 | psx_sio_input( Machine, 0, PSX_SIO_IN_DATA, ( znsec_step( 1, ( n_data & PSX_SIO_OUT_DATA ) != 0 | |
| 221 | 223 | } |
| 222 | 224 | m_b_lastclock = 0; |
| 223 | 225 | } |
| r3115 | r3116 | |
| 248 | 250 | { |
| 249 | 251 | if( m_b_lastclock ) |
| 250 | 252 | { |
| 251 | verboselog( 2, "read dip %02x -> %02x\n", n_data, ( ( input_port_read(Machine, "DSW") >> m_n_dip_bit ) & 1 ) * PSX_SIO_IN_DATA ); | |
| 252 | psx_sio_input( Machine, 0, PSX_SIO_IN_DATA, ( ( input_port_read(Machine, "DSW") >> m_n_dip_bit ) & 1 ) * PSX_SIO_IN_DATA ); | |
| 253 | int bit = ( ( input_port_read(Machine, "DSW") >> m_n_dip_bit ) & 1 ); | |
| 254 | verboselog( 2, "read dip %02x -> %02x\n", n_data, bit * PSX_SIO_IN_DATA ); | |
| 255 | psx_sio_input( Machine, 0, PSX_SIO_IN_DATA, bit * PSX_SIO_IN_DATA ); | |
| 253 | 256 | m_n_dip_bit++; |
| 254 | 257 | m_n_dip_bit &= 7; |
| 255 | 258 | } |
| r3115 | r3116 | |
| 268 | 271 | if( ( m_n_znsecsel & 0x80 ) == 0 ) |
| 269 | 272 | { |
| 270 | 273 | psx_sio_install_handler( 0, sio_pad_handler ); |
| 274 | psx_sio_input( Machine, 0, PSX_SIO_IN_DSR, 0 ); | |
| 271 | 275 | } |
| 272 | 276 | else if( ( m_n_znsecsel & 0x08 ) == 0 ) |
| 273 | 277 | { |
| 274 | 278 | znsec_start( 1 ); |
| 275 | 279 | psx_sio_install_handler( 0, sio_znsec1_handler ); |
| 280 | psx_sio_input( Machine, 0, PSX_SIO_IN_DSR, 0 ); | |
| 276 | 281 | } |
| 277 | 282 | else if( ( m_n_znsecsel & 0x04 ) == 0 ) |
| 278 | 283 | { |
| 279 | 284 | znsec_start( 0 ); |
| 280 | 285 | psx_sio_install_handler( 0, sio_znsec0_handler ); |
| 286 | psx_sio_input( Machine, 0, PSX_SIO_IN_DSR, 0 ); | |
| 281 | 287 | } |
| 282 | 288 | else |
| 283 | 289 | { |
| 290 | m_n_dip_bit = 0; | |
| 291 | m_b_lastclock = 1; | |
| 292 | ||
| 284 | 293 | psx_sio_install_handler( 0, sio_dip_handler ); |
| 294 | psx_sio_input( Machine, 0, PSX_SIO_IN_DSR, 0 ); | |
| 295 | ||
| 296 | timer_adjust_oneshot( dip_timer, ATTOTIME_IN_CYCLES( 100, 0 ), 1 ); | |
| 285 | 297 | } |
| 286 | 298 | |
| 287 | 299 | verboselog( 2, "znsecsel_w( %08x, %08x, %08x )\n", offset, data, mem_mask ); |
| 288 | 300 | } |
| 289 | 301 | |
| 302 | static TIMER_CALLBACK( dip_timer_fired ) | |
| 303 | { | |
| 304 | psx_sio_input( Machine, 0, PSX_SIO_IN_DSR, param * PSX_SIO_IN_DSR ); | |
| 305 | ||
| 306 | if( param ) | |
| 307 | { | |
| 308 | timer_adjust_oneshot( dip_timer, ATTOTIME_IN_CYCLES( 50, 0 ), 0 ); | |
| 309 | } | |
| 310 | } | |
| 311 | ||
| 290 | 312 | static READ32_HANDLER( boardconfig_r ) |
| 291 | 313 | { |
| 292 | 314 | /* |
| r3115 | r3116 | |
| 362 | 384 | AM_RANGE(0x1fa00100, 0x1fa00103) AM_READ_PORT("P2") |
| 363 | 385 | AM_RANGE(0x1fa00200, 0x1fa00203) AM_READ_PORT("SERVICE") |
| 364 | 386 | AM_RANGE(0x1fa00300, 0x1fa00303) AM_READ_PORT("SYSTEM") |
| 365 | AM_RANGE(0x1fa10000, 0x1fa10003) AM_READ_PORT("EXTRA1") | |
| 366 | AM_RANGE(0x1fa10100, 0x1fa10103) AM_READ_PORT("EXTRA2") | |
| 387 | AM_RANGE(0x1fa10000, 0x1fa10003) AM_READ_PORT("P3") | |
| 388 | AM_RANGE(0x1fa10100, 0x1fa10103) AM_READ_PORT("P4") | |
| 367 | 389 | AM_RANGE(0x1fa10200, 0x1fa10203) AM_READ(boardconfig_r) |
| 368 | 390 | AM_RANGE(0x1fa10300, 0x1fa10303) AM_READWRITE(znsecsel_r, znsecsel_w) |
| 369 | 391 | AM_RANGE(0x1fa20000, 0x1fa20003) AM_WRITE(coin_w) |
| 370 | 392 | AM_RANGE(0x1fa30000, 0x1fa30003) AM_NOP /* ?? */ |
| 371 | 393 | AM_RANGE(0x1fa40000, 0x1fa40003) AM_READNOP /* ?? */ |
| 372 | 394 | AM_RANGE(0x1fa60000, 0x1fa60003) AM_READNOP /* ?? */ |
| 373 | AM_RANGE(0x1faf0000, 0x1faf07ff) AM_READWRITE8(at28c16_ | |
| 395 | AM_RANGE(0x1faf0000, 0x1faf07ff) AM_DEVREADWRITE8(AT28C16, "at28c16", at28c16_ | |
| 374 | 396 | AM_RANGE(0x1fb20000, 0x1fb20007) AM_READ(unknown_r) |
| 375 | 397 | AM_RANGE(0x1fc00000, 0x1fc7ffff) AM_ROM AM_SHARE(2) AM_REGION("user1", 0) /* bios */ |
| 376 | 398 | AM_RANGE(0x80000000, 0x803fffff) AM_RAM AM_SHARE(1) /* ram mirror */ |
| r3115 | r3116 | |
| 403 | 425 | n_game++; |
| 404 | 426 | } |
| 405 | 427 | |
| 406 | | |
| 428 | d | |
| 407 | 429 | } |
| 408 | 430 | |
| 409 | 431 | static const psx_spu_interface psxspu_interface = |
| r3115 | r3116 | |
| 421 | 443 | psx_machine_init(machine); |
| 422 | 444 | } |
| 423 | 445 | |
| 446 | static const at28c16_config at28c16_intf = | |
| 447 | { | |
| 448 | "at28c16", NULL | |
| 449 | }; | |
| 450 | ||
| 424 | 451 | static MACHINE_DRIVER_START( zn1_1mb_vram ) |
| 425 | 452 | /* basic machine hardware */ |
| 426 | 453 | MDRV_CPU_ADD( "MAIN", PSXCPU, XTAL_67_7376MHz ) |
| r3115 | r3116 | |
| 448 | 475 | MDRV_SOUND_CONFIG( psxspu_interface ) |
| 449 | 476 | MDRV_SOUND_ROUTE(0, "left", 0.35) |
| 450 | 477 | MDRV_SOUND_ROUTE(1, "right", 0.35) |
| 478 | ||
| 479 | MDRV_DEVICE_ADD( "at28c16", AT28C16 ) | |
| 480 | MDRV_DEVICE_CONFIG( at28c16_intf ) | |
| 451 | 481 | MACHINE_DRIVER_END |
| 452 | 482 | |
| 453 | 483 | static MACHINE_DRIVER_START( zn1_2mb_vram ) |
| r3115 | r3116 | |
| 484 | 514 | MDRV_SOUND_CONFIG( psxspu_interface ) |
| 485 | 515 | MDRV_SOUND_ROUTE(0, "left", 0.35) |
| 486 | 516 | MDRV_SOUND_ROUTE(1, "right", 0.35) |
| 517 | ||
| 518 | MDRV_DEVICE_ADD( "at28c16", AT28C16 ) | |
| 519 | MDRV_DEVICE_CONFIG( at28c16_intf ) | |
| 487 | 520 | MACHINE_DRIVER_END |
| 488 | 521 | |
| 489 | 522 | /* |
| r3115 | r3116 | |
| 682 | 715 | MDRV_CPU_VBLANK_INT_HACK( qsound_interrupt, 4 ) /* 4 interrupts per frame ?? */ |
| 683 | 716 | |
| 684 | 717 | MDRV_MACHINE_RESET( coh1000c ) |
| 685 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 686 | 718 | |
| 687 | 719 | MDRV_SOUND_ADD( "qsound", QSOUND, QSOUND_CLOCK ) |
| 688 | 720 | MDRV_SOUND_ROUTE(0, "left", 1.0) |
| r3115 | r3116 | |
| 698 | 730 | MDRV_CPU_VBLANK_INT_HACK( qsound_interrupt, 4 ) /* 4 interrupts per frame ?? */ |
| 699 | 731 | |
| 700 | 732 | MDRV_MACHINE_RESET( coh1000c ) |
| 701 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 702 | 733 | |
| 703 | 734 | MDRV_SOUND_ADD( "qsound", QSOUND, QSOUND_CLOCK ) |
| 704 | 735 | MDRV_SOUND_ROUTE(0, "left", 1.0) |
| r3115 | r3116 | |
| 880 | 911 | MDRV_CPU_VBLANK_INT_HACK( qsound_interrupt, 4 ) /* 4 interrupts per frame ?? */ |
| 881 | 912 | |
| 882 | 913 | MDRV_MACHINE_RESET( coh3002c ) |
| 883 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 884 | 914 | |
| 885 | 915 | MDRV_SOUND_ADD( "qsound", QSOUND, QSOUND_CLOCK ) |
| 886 | 916 | MDRV_SOUND_ROUTE(0, "left", 1.0) |
| r3115 | r3116 | |
| 1117 | 1147 | memory_set_bankptr( 1, memory_region( machine, "user2" ) + ( ( data & 3 ) * 0x800000 ) ); |
| 1118 | 1148 | } |
| 1119 | 1149 | |
| 1120 | static INTERRUPT_GEN( coh1000t_vblank ) | |
| 1121 | { | |
| 1122 | /* kludge: stop dropping into test mode on bootup */ | |
| 1123 | if( strcmp( machine->gamedrv->name, "raystorm" ) == 0 ) | |
| 1124 | { | |
| 1125 | if( g_p_n_psxram[ 0x1b358 / 4 ] == 0x34020001 ) | |
| 1126 | { | |
| 1127 | g_p_n_psxram[ 0x1b358 / 4 ] = 0x34020000; | |
| 1128 | } | |
| 1129 | } | |
| 1130 | /* kludge: stop dropping into test mode on bootup */ | |
| 1131 | if( strcmp( machine->gamedrv->name, "raystorj" ) == 0 ) | |
| 1132 | { | |
| 1133 | if( g_p_n_psxram[ 0x1b358 / 4 ] == 0x34020001 ) | |
| 1134 | { | |
| 1135 | g_p_n_psxram[ 0x1b358 / 4 ] = 0x34020000; | |
| 1136 | } | |
| 1137 | } | |
| 1138 | if(strcmp( machine->gamedrv->name, "gdarius" ) == 0 ) | |
| 1139 | { | |
| 1140 | if (psxreadbyte(0x165d53) == 0) | |
| 1141 | { | |
| 1142 | psxwritebyte(0x165d53, 1); | |
| 1143 | } | |
| 1144 | } | |
| 1145 | if(strcmp( machine->gamedrv->name, "gdariusb" ) == 0 ) | |
| 1146 | { | |
| 1147 | if (psxreadbyte(0x165dfb) == 0) | |
| 1148 | { | |
| 1149 | psxwritebyte(0x165dfb, 1); | |
| 1150 | } | |
| 1151 | } | |
| 1152 | if(strcmp( machine->gamedrv->name, "gdarius2" ) == 0 ) | |
| 1153 | { | |
| 1154 | if (psxreadbyte(0x16be3b) == 0) | |
| 1155 | { | |
| 1156 | psxwritebyte(0x16be3b, 1); | |
| 1157 | } | |
| 1158 | } | |
| 1159 | if(strcmp( machine->gamedrv->name, "ftimpcta" ) == 0 ) | |
| 1160 | { | |
| 1161 | if (psxreadbyte(0x0f8997) == 0) | |
| 1162 | { | |
| 1163 | psxwritebyte(0x0f8997, 1); | |
| 1164 | } | |
| 1165 | } | |
| 1166 | if(strcmp( machine->gamedrv->name, "ftimpact" ) == 0 ) /* WRONG!!!- Copied from ftimpcta */ | |
| 1167 | { | |
| 1168 | if (psxreadbyte(0x0f8997) == 0) /* WRONG!!!- Copied from ftimpcta */ | |
| 1169 | { | |
| 1170 | psxwritebyte(0x0f8997, 1); /* WRONG!!!- Copied from ftimpcta */ | |
| 1171 | } | |
| 1172 | } | |
| 1173 | psx_vblank(machine, cpunum); | |
| 1174 | } | |
| 1175 | ||
| 1176 | 1150 | static WRITE8_HANDLER( fx1a_sound_bankswitch_w ) |
| 1177 | 1151 | { |
| 1178 | 1152 | memory_set_bankptr( 10, memory_region( machine, "audio" ) + 0x10000 + ( ( ( data - 1 ) & 0x07 ) * 0x4000 ) ); |
| r3115 | r3116 | |
| 1213 | 1187 | memory_set_bankptr( 1, memory_region( machine, "user2" ) ); /* banked game rom */ |
| 1214 | 1188 | memory_set_bankptr( 2, taitofx1_eeprom1 ); |
| 1215 | 1189 | zn_machine_init(machine); |
| 1216 | ||
| 1217 | // patch to make psyforce boot | |
| 1218 | if ((!strcmp(machine->gamedrv->name, "psyforce")) || | |
| 1219 | (!strcmp(machine->gamedrv->name, "psyforcj")) || | |
| 1220 | (!strcmp(machine->gamedrv->name, "psyfrcex"))) | |
| 1221 | { | |
| 1222 | // note: these values can be anything non-zero | |
| 1223 | // perhaps Taito expects RAM to be initialized to 0xff on power-up? | |
| 1224 | psxwritebyte(0x3fffda, 0xb5); | |
| 1225 | psxwritebyte(0x3fffdb, 0x6b); | |
| 1226 | } | |
| 1227 | 1190 | } |
| 1228 | 1191 | |
| 1229 | 1192 | static NVRAM_HANDLER( coh1000ta ) |
| 1230 | 1193 | { |
| 1231 | NVRAM_HANDLER_CALL(at28c16_0); | |
| 1232 | 1194 | if (read_or_write) |
| 1233 | 1195 | { |
| 1234 | 1196 | mame_fwrite(file, taitofx1_eeprom1, taitofx1_eeprom_size1); |
| r3115 | r3116 | |
| 1273 | 1235 | static MACHINE_DRIVER_START( coh1000ta ) |
| 1274 | 1236 | MDRV_IMPORT_FROM( zn1_1mb_vram ) |
| 1275 | 1237 | |
| 1276 | MDRV_CPU_MODIFY( "MAIN" ) | |
| 1277 | MDRV_CPU_VBLANK_INT("main", coh1000t_vblank) | |
| 1278 | ||
| 1279 | 1238 | MDRV_CPU_ADD("audio", Z80, 16000000 / 4 ) /* 4 MHz */ |
| 1280 | 1239 | MDRV_CPU_PROGRAM_MAP( fx1a_sound_map, 0 ) |
| 1281 | 1240 | MDRV_MACHINE_RESET( coh1000ta ) |
| r3115 | r3116 | |
| 1333 | 1292 | |
| 1334 | 1293 | static NVRAM_HANDLER( coh1000tb ) |
| 1335 | 1294 | { |
| 1336 | NVRAM_HANDLER_CALL(at28c16_0); | |
| 1337 | 1295 | if (read_or_write) |
| 1338 | 1296 | { |
| 1339 | 1297 | mame_fwrite(file, taitofx1_eeprom1, taitofx1_eeprom_size1); |
| r3115 | r3116 | |
| 1354 | 1312 | static MACHINE_DRIVER_START( coh1000tb ) |
| 1355 | 1313 | MDRV_IMPORT_FROM( zn1_2mb_vram ) |
| 1356 | 1314 | |
| 1357 | MDRV_CPU_MODIFY( "MAIN" ) | |
| 1358 | MDRV_CPU_VBLANK_INT("main", coh1000t_vblank) | |
| 1359 | ||
| 1360 | 1315 | MDRV_MACHINE_RESET( coh1000tb ) |
| 1361 | 1316 | MDRV_NVRAM_HANDLER( coh1000tb ) |
| 1362 | 1317 | MACHINE_DRIVER_END |
| r3115 | r3116 | |
| 1522 | 1477 | MDRV_IMPORT_FROM( zn2 ) |
| 1523 | 1478 | |
| 1524 | 1479 | MDRV_MACHINE_RESET( coh3002t ) |
| 1525 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 1526 | 1480 | MACHINE_DRIVER_END |
| 1527 | 1481 | |
| 1528 | 1482 | /* |
| r3115 | r3116 | |
| 1704 | 1658 | MDRV_IMPORT_FROM( zn1_2mb_vram ) |
| 1705 | 1659 | |
| 1706 | 1660 | MDRV_MACHINE_RESET( coh1000w ) |
| 1707 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 1708 | 1661 | |
| 1709 | 1662 | MDRV_IDE_CONTROLLER_ADD("ide", atpsx_interrupt) |
| 1710 | 1663 | MACHINE_DRIVER_END |
| r3115 | r3116 | |
| 1917 | 1870 | MDRV_CPU_PROGRAM_MAP( psarc_snd_map, 0 ) |
| 1918 | 1871 | |
| 1919 | 1872 | MDRV_MACHINE_RESET( coh1002e ) |
| 1920 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 1921 | 1873 | |
| 1922 | 1874 | MDRV_SOUND_ADD( "ymf", YMF271, 16934400 ) |
| 1923 | 1875 | MDRV_SOUND_ROUTE(0, "left", 1.0) |
| r3115 | r3116 | |
| 2055 | 2007 | MDRV_IMPORT_FROM( zn1_2mb_vram ) |
| 2056 | 2008 | |
| 2057 | 2009 | MDRV_MACHINE_RESET( bam2 ) |
| 2058 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 2059 | 2010 | MACHINE_DRIVER_END |
| 2060 | 2011 | |
| 2061 | 2012 | /* |
| r3115 | r3116 | |
| 2238 | 2189 | |
| 2239 | 2190 | static READ32_DEVICE_HANDLER( jdredd_idestat_r ) |
| 2240 | 2191 | { |
| 2241 | return ide_controller_r(device, 0x1f7); | |
| 2192 | return ide_controller_r( device, 0x1f7 ); | |
| 2242 | 2193 | } |
| 2243 | 2194 | |
| 2244 | 2195 | static READ32_DEVICE_HANDLER( jdredd_ide_r ) |
| 2245 | 2196 | { |
| 2246 | int reg = offset*2; | |
| 2247 | int shift = 0; | |
| 2248 | int ret; | |
| 2197 | UINT32 data = 0; | |
| 2249 | 2198 | |
| 2250 | if | |
| 2199 | if | |
| 2251 | 2200 | { |
| 2252 | shift = 16; | |
| 2253 | reg++; | |
| 2201 | data |= ide_controller_r( device, 0x1f0 + ( offset * 2 ) ) << 0; | |
| 2254 | 2202 | } |
| 2255 | | |
| 2203 | | |
| 2256 | 2204 | { |
| 2257 | if (reg != 0) | |
| 2258 | { | |
| 2259 | logerror("JDREDD IDE: read 16-bit from non-DATA register %d!\n", reg); | |
| 2260 | } | |
| 2205 | data |= ide_controller_r( device, 0x1f0 + ( offset * 2 ) ) << 8; | |
| 2206 | } | |
| 2207 | if( ACCESSING_BITS_16_23 ) | |
| 2208 | { | |
| 2209 | data |= ide_controller_r( device, 0x1f1 + ( offset * 2 ) ) << 16; | |
| 2210 | } | |
| 2211 | if( ACCESSING_BITS_24_31 ) | |
| 2212 | { | |
| 2213 | data |= ide_controller_r( device, 0x1f1 + ( offset * 2 ) ) << 24; | |
| 2214 | } | |
| 2261 | 2215 | |
| 2262 | return (ide_controller_r(device, 0x1f0) | (ide_controller_r(device, 0x1f0)<<8)); | |
| 2216 | return data; | |
| 2217 | } | |
| 2218 | ||
| 2219 | static WRITE32_DEVICE_HANDLER( jdredd_ide_w ) | |
| 2220 | { | |
| 2221 | if( ACCESSING_BITS_0_7 ) | |
| 2222 | { | |
| 2223 | ide_controller_w( device, 0x1f0 + ( offset * 2 ), data >> 0 ); | |
| 2263 | 2224 | } |
| 2225 | if( ACCESSING_BITS_8_15 ) | |
| 2226 | { | |
| 2227 | ide_controller_w( device, 0x1f0 + ( offset * 2 ), data >> 8 ); | |
| 2228 | } | |
| 2229 | if( ACCESSING_BITS_16_23 ) | |
| 2230 | { | |
| 2231 | ide_controller_w( device, 0x1f1 + ( offset * 2 ), data >> 16 ); | |
| 2232 | } | |
| 2233 | if( ACCESSING_BITS_24_31 ) | |
| 2234 | { | |
| 2235 | ide_controller_w( device, 0x1f1 + ( offset * 2 ), data >> 24 ); | |
| 2236 | } | |
| 2237 | } | |
| 2264 | 2238 | |
| 2265 | ||
| 2239 | s | |
| 2266 | 2240 | |
| 2267 | return ret; | |
| 2241 | static CUSTOM_INPUT( jdredd_gun_mux_read ) | |
| 2242 | { | |
| 2243 | return jdredd_gun_mux; | |
| 2268 | 2244 | } |
| 2269 | 2245 | |
| 2270 | ||
| 2246 | ||
| 2271 | 2247 | { |
| 2272 | int reg = offset*2; | |
| 2248 | int x; | |
| 2249 | int y; | |
| 2273 | 2250 | |
| 2274 | if (mem_mask == 0x00ff0000) | |
| 2251 | jdredd_gun_mux = !jdredd_gun_mux; | |
| 2252 | ||
| 2253 | if( jdredd_gun_mux == 0 ) | |
| 2275 | 2254 | { |
| 2276 | data >>= 16; | |
| 2277 | reg++; | |
| 2255 | x = input_port_read(machine, "GUN1X"); | |
| 2256 | y = input_port_read(machine, "GUN1Y"); | |
| 2278 | 2257 | } |
| 2258 | else | |
| 2259 | { | |
| 2260 | x = input_port_read(machine, "GUN2X"); | |
| 2261 | y = input_port_read(machine, "GUN2Y"); | |
| 2262 | } | |
| 2279 | 2263 | |
| 2280 | ide_controller_w(device, 0x1f0 + reg, data); | |
| 2264 | if( x > 0x393 && x < 0xcb2 && | |
| 2265 | y > 0x02d && y < 0x217 ) | |
| 2266 | { | |
| 2267 | psx_lightgun_set( x, y ); | |
| 2268 | } | |
| 2269 | ||
| 2270 | psx_vblank( machine, cpunum ); | |
| 2281 | 2271 | } |
| 2282 | 2272 | |
| 2283 | 2273 | static size_t nbajamex_eeprom_size; |
| r3115 | r3116 | |
| 2358 | 2348 | MDRV_IMPORT_FROM( zn1_2mb_vram ) |
| 2359 | 2349 | |
| 2360 | 2350 | MDRV_MACHINE_RESET( coh1000a ) |
| 2361 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 2362 | 2351 | MACHINE_DRIVER_END |
| 2363 | 2352 | |
| 2364 | 2353 | static MACHINE_DRIVER_START( coh1000a_ide ) |
| 2365 | 2354 | MDRV_IMPORT_FROM( zn1_2mb_vram ) |
| 2366 | 2355 | |
| 2356 | MDRV_CPU_MODIFY( "MAIN" ) | |
| 2357 | MDRV_CPU_VBLANK_INT("main", jdredd_vblank) | |
| 2358 | ||
| 2367 | 2359 | MDRV_MACHINE_RESET( coh1000a ) |
| 2368 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 2369 | 2360 | |
| 2370 | 2361 | MDRV_IDE_CONTROLLER_ADD("ide", jdredd_ide_interrupt) |
| 2371 | 2362 | MACHINE_DRIVER_END |
| r3115 | r3116 | |
| 2512 | 2503 | // MDRV_CPU_PROGRAM_MAP( atlus_snd_map, 0 ) |
| 2513 | 2504 | |
| 2514 | 2505 | MDRV_MACHINE_RESET( coh1001l ) |
| 2515 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 2516 | 2506 | |
| 2517 | 2507 | // MDRV_SOUND_ADD( "ymz", wYMZ280B, ymz280b_intf ) |
| 2518 | 2508 | MACHINE_DRIVER_END |
| r3115 | r3116 | |
| 2551 | 2541 | zn_machine_init(machine); |
| 2552 | 2542 | } |
| 2553 | 2543 | |
| 2554 | static INTERRUPT_GEN( coh1002v_vblank ) | |
| 2555 | { | |
| 2556 | /* kludge: to stop dropping into test mode on bootup */ | |
| 2557 | if(strcmp( machine->gamedrv->name, "sncwgltd" ) == 0 ) | |
| 2558 | { | |
| 2559 | if (psxreadbyte(0x0db422) == 0) | |
| 2560 | { | |
| 2561 | psxwritebyte(0x0db422, 1); | |
| 2562 | } | |
| 2563 | if (psxreadbyte(0x0db423) == 0) | |
| 2564 | { | |
| 2565 | psxwritebyte(0x0db423, 1); | |
| 2566 | } | |
| 2567 | } | |
| 2568 | psx_vblank(machine, cpunum); | |
| 2569 | } | |
| 2570 | ||
| 2571 | 2544 | static MACHINE_DRIVER_START( coh1002v ) |
| 2572 | 2545 | MDRV_IMPORT_FROM( zn1_2mb_vram ) |
| 2573 | 2546 | |
| 2574 | MDRV_CPU_MODIFY( "MAIN" ) | |
| 2575 | MDRV_CPU_VBLANK_INT("main", coh1002v_vblank) | |
| 2576 | ||
| 2577 | 2547 | MDRV_MACHINE_RESET( coh1002v ) |
| 2578 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 2579 | 2548 | MACHINE_DRIVER_END |
| 2580 | 2549 | |
| 2581 | 2550 | /* |
| r3115 | r3116 | |
| 2813 | 2782 | MDRV_IMPORT_FROM( zn1_2mb_vram ) |
| 2814 | 2783 | |
| 2815 | 2784 | MDRV_MACHINE_RESET( coh1002m ) |
| 2816 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 2817 | 2785 | MACHINE_DRIVER_END |
| 2818 | 2786 | |
| 2819 | 2787 | static MACHINE_DRIVER_START( coh1002msnd ) |
| r3115 | r3116 | |
| 2824 | 2792 | MDRV_CPU_IO_MAP( cbaj_z80_port_map, 0 ) |
| 2825 | 2793 | |
| 2826 | 2794 | MDRV_MACHINE_RESET( coh1002m ) |
| 2827 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 2828 | 2795 | |
| 2829 | 2796 | MDRV_SOUND_ADD("ymz", YMZ280B, 16934400) |
| 2830 | 2797 | MDRV_SOUND_ROUTE(0, "left", 1.0) |
| r3115 | r3116 | |
| 2838 | 2805 | MDRV_CPU_PROGRAM_MAP( link_map, 0 ) |
| 2839 | 2806 | |
| 2840 | 2807 | MDRV_MACHINE_RESET( coh1002m ) |
| 2841 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 2842 | 2808 | MACHINE_DRIVER_END |
| 2843 | 2809 | |
| 2844 | 2810 | static INPUT_PORTS_START( zn ) |
| 2845 | PORT_START("P1") | |
| 2811 | PORT_START("P1") | |
| 2846 | 2812 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 2847 | 2813 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 2848 | 2814 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2852 | 2818 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 2853 | 2819 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2854 | 2820 | |
| 2855 | PORT_START("P2") | |
| 2821 | PORT_START("P2") | |
| 2856 | 2822 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 2857 | 2823 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 2858 | 2824 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 2862 | 2828 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 2863 | 2829 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2864 | 2830 | |
| 2865 | PORT_START("SERVICE") | |
| 2831 | PORT_START("SERVICE") | |
| 2866 | 2832 | PORT_SERVICE_NO_TOGGLE( 0x01, IP_ACTIVE_LOW ) |
| 2867 | 2833 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 2868 | 2834 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) |
| 2869 | 2835 | PORT_BIT( 0xf8, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2870 | 2836 | |
| 2871 | PORT_START("SYSTEM") | |
| 2837 | PORT_START("SYSTEM") | |
| 2872 | 2838 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 2873 | 2839 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 2840 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 ) | |
| 2841 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START4 ) | |
| 2874 | 2842 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2875 | 2843 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2876 | PORT_BIT( 0xcc, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2844 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 2845 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 2877 | 2846 | |
| 2878 | PORT_START("EXTRA1") /* IN4 */ | |
| 2879 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 2880 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) | |
| 2881 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON6 ) | |
| 2882 | PORT_BIT( 0x8f, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2847 | PORT_START("P3") | |
| 2848 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 2849 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 2850 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 2851 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 2852 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 2853 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 2854 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 2855 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2883 | 2856 | |
| 2884 | PORT_START("EXTRA2") /* IN5 */ | |
| 2885 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 2886 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 2887 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 2888 | PORT_BIT( 0x8f, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2857 | PORT_START("P4") | |
| 2858 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) | |
| 2859 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) | |
| 2860 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) | |
| 2861 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) | |
| 2862 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 2863 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 2864 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 2865 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2889 | 2866 | |
| 2890 | PORT_START("UNK") /* IN6 */ | |
| 2891 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2892 | ||
| 2893 | PORT_START("DSW") /* IN7 */ | |
| 2867 | PORT_START("DSW") | |
| 2894 | 2868 | PORT_DIPNAME( 0x01, 0x01, "Freeze" ) |
| 2895 | 2869 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2896 | 2870 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2905 | 2879 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2906 | 2880 | INPUT_PORTS_END |
| 2907 | 2881 | |
| 2882 | static INPUT_PORTS_START( zn6b ) | |
| 2883 | PORT_INCLUDE( zn ) | |
| 2908 | 2884 | |
| 2885 | PORT_MODIFY("SYSTEM") | |
| 2886 | PORT_BIT( 0xcc, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2887 | ||
| 2888 | PORT_MODIFY("P3") | |
| 2889 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2890 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 2891 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) | |
| 2892 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON6 ) | |
| 2893 | ||
| 2894 | PORT_MODIFY("P4") | |
| 2895 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2896 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 2897 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 2898 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 2899 | INPUT_PORTS_END | |
| 2900 | ||
| 2901 | INPUT_PORTS_START( jdredd ) | |
| 2902 | PORT_INCLUDE( zn ) | |
| 2903 | ||
| 2904 | PORT_MODIFY("P1") | |
| 2905 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2906 | PORT_BIT( 0x6f, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2907 | ||
| 2908 | PORT_MODIFY("P2") | |
| 2909 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2910 | PORT_BIT( 0x6f, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2911 | ||
| 2912 | PORT_MODIFY("SERVICE") | |
| 2913 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(jdredd_gun_mux_read, NULL) | |
| 2914 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2915 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2916 | ||
| 2917 | PORT_MODIFY("SYSTEM") | |
| 2918 | PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2919 | ||
| 2920 | PORT_MODIFY("P3") | |
| 2921 | PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2922 | ||
| 2923 | PORT_MODIFY("P4") | |
| 2924 | PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2925 | ||
| 2926 | PORT_START("GUN1X") | |
| 2927 | PORT_BIT( 0xffff, 0x0822, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_MINMAX(0x393-1,0xcb2+1) PORT_SENSITIVITY(100) PORT_KEYDELTA(50) PORT_PLAYER(1) | |
| 2928 | ||
| 2929 | PORT_START("GUN1Y") | |
| 2930 | PORT_BIT( 0xffff, 0x0122, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX(0x02d-1,0x217+1) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) PORT_PLAYER(1) | |
| 2931 | ||
| 2932 | PORT_START("GUN2X") | |
| 2933 | PORT_BIT( 0xffff, 0x0822, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_MINMAX(0x393-1,0xcb2+1) PORT_SENSITIVITY(100) PORT_KEYDELTA(50) PORT_PLAYER(2) | |
| 2934 | ||
| 2935 | PORT_START("GUN2Y") | |
| 2936 | PORT_BIT( 0xffff, 0x0122, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX(0x02d-1,0x217+1) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) PORT_PLAYER(2) | |
| 2937 | INPUT_PORTS_END | |
| 2938 | ||
| 2939 | INPUT_PORTS_START( primrag2 ) | |
| 2940 | PORT_INCLUDE( zn ) | |
| 2941 | ||
| 2942 | PORT_MODIFY("SYSTEM") | |
| 2943 | PORT_BIT( 0xcc, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2944 | ||
| 2945 | PORT_MODIFY("P3") | |
| 2946 | PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2947 | ||
| 2948 | PORT_MODIFY("P4") | |
| 2949 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 2950 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) | |
| 2951 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON6 ) | |
| 2952 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2953 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 2954 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 2955 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 2956 | INPUT_PORTS_END | |
| 2957 | ||
| 2909 | 2958 | /* Capcom ZN1 */ |
| 2910 | 2959 | |
| 2911 | 2960 | #define CPZN1_BIOS \ |
| r3115 | r3116 | |
| 3842 | 3891 | ROM_LOAD( "ooo-6.u0223", 0x2000000, 0x400000, CRC(f74f38b6) SHA1(ff7f0ebff85fc982f8d1c13d6649d4c7c5da6c45) ) |
| 3843 | 3892 | ROM_LOAD( "ooo-7.u0323", 0x2400000, 0x400000, CRC(0e58777c) SHA1(9f8ee3c6d6d8b1482522500e18217577056d8c98) ) |
| 3844 | 3893 | |
| 3845 | ROM_REGION( 0x800, "user4", 0 ) /* at28c16 */ | |
| 3846 | ROM_LOAD( "at28c16", 0x0000000, 0x000800, BAD_DUMP CRC(ff7b63e3) SHA1(febf073c91041394cabdc1c37cbce344b14cd6bd) ) | |
| 3894 | ROM_REGION( 0x800, "at28c16", 0 ) /* at28c16 */ | |
| 3895 | ROM_LOAD( "at28c16", 0x0000000, 0x000800, BAD_DUMP CRC(ff7b63e3) SHA1(febf073c91041394cabdc1c37cbce344b14cd6bd) ) | |
| 3847 | 3896 | ROM_END |
| 3848 | 3897 | |
| 3849 | 3898 | /* video system */ |
| r3115 | r3116 | |
| 3852 | 3901 | ROM_REGION32_LE( 0x080000, "user1", 0 ) \ |
| 3853 | 3902 | ROM_LOAD( "coh-1002v.353", 0x0000000, 0x080000, CRC(5ff165f3) SHA1(8f59314c1093446b9bcb06d232244da6df78e206) ) |
| 3854 | 3903 | |
| 3904 | ROM_START( vspsx ) | |
| 3905 | KN_BIOS | |
| 3906 | ROM_END | |
| 3907 | ||
| 3908 | ROM_START( aerofgts ) | |
| 3909 | KN_BIOS | |
| 3910 | ||
| 3911 | ROM_REGION32_LE( 0x0280000, "user2", 0 ) | |
| 3912 | ROM_LOAD( "vs.ic5", 0x0000000, 0x080000, CRC(453dd514) SHA1(189fe5598485de160f5c0add90235ed63ed92747) ) | |
| 3913 | ROM_LOAD( "vs.ic6", 0x0080000, 0x080000, CRC(24257295) SHA1(fe6d969c407f2c26c3af2a2a5015dc83b1675e9a) ) | |
| 3914 | ROM_LOAD( "vs.ic7", 0x0100000, 0x080000, CRC(df5ba2f7) SHA1(19153084e7cff632380b67a2fff800644a2fbf7d) ) | |
| 3915 | ROM_LOAD( "vs.ic8", 0x0180000, 0x080000, CRC(df638f92) SHA1(5704eed2ef798a91a0398948af0324955ec38534) ) | |
| 3916 | ROM_LOAD( "vs.ic9", 0x0200000, 0x080000, CRC(1294aa24) SHA1(07ca2cc3f117cfd48d2ca558d9435a3fc238c0fe) ) | |
| 3917 | ||
| 3918 | ROM_REGION32_LE( 0x1800000, "user3", 0 ) | |
| 3919 | ROM_LOAD( "ic11.bin", 0x0000000, 0x400000, CRC(a93f6fee) SHA1(6f079643b50833f8fb497c49945ad23326cc9170) ) | |
| 3920 | ROM_LOAD( "ic12.bin", 0x0400000, 0x400000, CRC(9f584ef7) SHA1(12c04e198f17d1915f58e83aff45ca2e76773df8) ) | |
| 3921 | ROM_LOAD( "ic13.bin", 0x0800000, 0x400000, CRC(652e9c78) SHA1(a929b2944de72606338acb822c1031463e2b1cc5) ) | |
| 3922 | ROM_LOAD( "ic14.bin", 0x0c00000, 0x400000, CRC(c4ef1424) SHA1(1734a6ee6d0be94d24afefcf2a125b74747f53d0) ) | |
| 3923 | ROM_LOAD( "ic15.bin", 0x1000000, 0x400000, CRC(2551d816) SHA1(e1500d4bfa8cc55220c366a5852263ac2070da82) ) | |
| 3924 | ROM_LOAD( "ic16.bin", 0x1400000, 0x400000, CRC(21b401bc) SHA1(89374b80453c474aa1dd3a219422f557f95a262c) ) | |
| 3925 | ROM_END | |
| 3926 | ||
| 3855 | 3927 | ROM_START( sncwgltd ) |
| 3856 | 3928 | KN_BIOS |
| 3857 | 3929 | |
| r3115 | r3116 | |
| 4376 | 4448 | /* A dummy driver, so that the bios can be debugged, and to serve as */ |
| 4377 | 4449 | /* parent for the coh-1000c.353 file, so that we do not have to include */ |
| 4378 | 4450 | /* it in every zip file */ |
| 4379 | GAME( 1995, cpzn1, 0, coh1000c, zn, coh1000c, ROT0, "Sony/Capcom", "ZN1", GAME_IS_BIOS_ROOT ) | |
| 4451 | GAME( 1995, cpzn1, 0, coh1000c, zn, coh1000c, ROT0, "Sony/Capcom", "ZN1", GAME_IS_BIOS_ROOT ) | |
| 4380 | 4452 | |
| 4381 | GAME( 1995, ts2, cpzn1, coh1000c, zn, coh1000c, ROT0, "Capcom/Takara", "Battle Arena Toshinden 2 (USA 951124)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4382 | GAME( 1995, ts2j, ts2, coh1000c, zn, coh1000c, ROT0, "Capcom/Takara", "Battle Arena Toshinden 2 (JAPAN 951124)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4383 | GAME( 1996, starglad, cpzn1, coh1000c, zn, coh1000c, ROT0, "Capcom", "Star Gladiator (USA 960627)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4384 | GAME( 1996, sfex, cpzn1, coh1002c, zn, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX (EURO 961219)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4385 | GAME( 1996, sfexu, sfex, coh1002c, zn, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX (USA 961219)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4386 | GAME( 1996, sfexa, sfex, coh1002c, zn, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX (ASIA 961219)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4387 | GAME( 1996, sfexj, sfex, coh1002c, zn, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX (JAPAN 961130)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4388 | GAME( 1996, glpracr, cpzn1, coh1000c, zn, coh1000c, ROT0, "Tecmo", "Gallop Racer (JAPAN Ver 9.01.12)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4389 | GAME( 1997, sfexp, cpzn1, coh1002c, zn, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX Plus (USA 970407)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4390 | GAME( 1997, sfexpu1, sfexp, coh1002c, zn, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX Plus (USA 970311)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4391 | GAME( 1997, sfexpj, sfexp, coh1002c, zn, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX Plus (JAPAN 970311)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4453 | GAME( 1995, ts2, cpzn1, coh1000c, zn6b, coh1000c, ROT0, "Capcom/Takara", "Battle Arena Toshinden 2 (USA 951124)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4454 | GAME( 1995, ts2j, ts2, coh1000c, zn6b, coh1000c, ROT0, "Capcom/Takara", "Battle Arena Toshinden 2 (JAPAN 951124)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4455 | GAME( 1996, starglad, cpzn1, coh1000c, zn6b, coh1000c, ROT0, "Capcom", "Star Gladiator (USA 960627)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4456 | GAME( 1996, sfex, cpzn1, coh1002c, zn6b, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX (EURO 961219)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4457 | GAME( 1996, sfexu, sfex, coh1002c, zn6b, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX (USA 961219)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4458 | GAME( 1996, sfexa, sfex, coh1002c, zn6b, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX (ASIA 961219)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4459 | GAME( 1996, sfexj, sfex, coh1002c, zn6b, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX (JAPAN 961130)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4460 | GAME( 1996, glpracr, cpzn1, coh1000c, zn, coh1000c, ROT0, "Tecmo", "Gallop Racer (JAPAN Ver 9.01.12)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4461 | GAME( 1997, sfexp, cpzn1, coh1002c, zn6b, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX Plus (USA 970407)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4462 | GAME( 1997, sfexpu1, sfexp, coh1002c, zn6b, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX Plus (USA 970311)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4463 | GAME( 1997, sfexpj, sfexp, coh1002c, zn6b, coh1000c, ROT0, "Capcom/Arika", "Street Fighter EX Plus (JAPAN 970311)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4392 | 4464 | |
| 4393 | 4465 | /* Capcom ZN2 */ |
| 4394 | 4466 | |
| 4395 | 4467 | /* A dummy driver, so that the bios can be debugged, and to serve as */ |
| 4396 | 4468 | /* parent for the coh-3002c.353 file, so that we do not have to include */ |
| 4397 | 4469 | /* it in every zip file */ |
| 4398 | GAME( 1997, cpzn2, 0, coh3002c, zn, coh3002c, ROT0, "Sony/Capcom", "ZN2", GAME_IS_BIOS_ROOT ) | |
| 4470 | GAME( 1997, cpzn2, 0, coh3002c, zn, coh3002c, ROT0, "Sony/Capcom", "ZN2", GAME_IS_BIOS_ROOT ) | |
| 4399 | 4471 | |
| 4400 | GAME( 1997, rvschool, cpzn2, coh3002c, zn, coh3002c, ROT0, "Capcom", "Rival Schools (USA 971117)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4401 | GAME( 1997, rvschola, rvschool, coh3002c, zn, coh3002c, ROT0, "Capcom", "Rival Schools (ASIA 971117)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4402 | GAME( 1997, jgakuen, rvschool, coh3002c, zn, coh3002c, ROT0, "Capcom", "Justice Gakuen (JAPAN 971117)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4403 | GAME( 1998, sfex2, cpzn2, coh3002c, zn, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 (USA 980526)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4404 | GAME( 1998, sfex2j, sfex2, coh3002c, zn, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 (JAPAN 980312)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4405 | GAME( 1998, sfex2a, sfex2, coh3002c, zn, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 (ASIA 980312)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4406 | GAME( 1998, plsmaswd, cpzn2, coh3002c, zn, coh3002c, ROT0, "Capcom", "Plasma Sword (USA 980316)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4407 | GAME( 1998, stargld2, plsmaswd, coh3002c, zn, coh3002c, ROT0, "Capcom", "Star Gladiator 2 (JAPAN 980316)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4408 | GAME( 1998, plsmswda, plsmaswd, coh3002c, zn, coh3002c, ROT0, "Capcom", "Plasma Sword (ASIA 980316)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4409 | GAME( 1998, tgmj, cpzn2, coh3002c, zn, coh3002c, ROT0, "Capcom/Arika", "Tetris The Grand Master (JAPAN 980710)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4410 | GAME( 1998, techromn, cpzn2, coh3002c, zn, coh3002c, ROT0, "Capcom", "Tech Romancer (EURO 980914)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4411 | GAME( 1998, techromu, techromn, coh3002c, zn, coh3002c, ROT0, "Capcom", "Tech Romancer (USA 980914)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4412 | GAME( 1998, kikaioh, techromn, coh3002c, zn, coh3002c, ROT0, "Capcom", "Kikaioh (JAPAN 980914)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4413 | GAME( 1999, sfex2p, cpzn2, coh3002c, zn, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 Plus (USA 990611)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4414 | GAME( 1999, sfex2pa, sfex2p, coh3002c, zn, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 Plus (ASIA 990611)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4415 | GAME( 1999, sfex2pj, sfex2p, coh3002c, zn, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 Plus (JAPAN 990611)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4416 | GAME( 1999, strider2, cpzn2, coh3002c, zn, coh3002c, ROT0, "Capcom", "Strider 2 (USA 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4417 | GAME( 1999, stridr2a, strider2, coh3002c, zn, coh3002c, ROT0, "Capcom", "Strider 2 (ASIA 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4418 | GAME( 1999, shiryu2, strider2, coh3002c, zn, coh3002c, ROT0, "Capcom", "Strider Hiryu 2 (JAPAN 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4472 | GAME( 1997, rvschool, cpzn2, coh3002c, zn6b, coh3002c, ROT0, "Capcom", "Rival Schools (USA 971117)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4473 | GAME( 1997, rvschola, rvschool, coh3002c, zn6b, coh3002c, ROT0, "Capcom", "Rival Schools (ASIA 971117)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4474 | GAME( 1997, jgakuen, rvschool, coh3002c, zn6b, coh3002c, ROT0, "Capcom", "Justice Gakuen (JAPAN 971117)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4475 | GAME( 1998, sfex2, cpzn2, coh3002c, zn6b, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 (USA 980526)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4476 | GAME( 1998, sfex2j, sfex2, coh3002c, zn6b, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 (JAPAN 980312)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4477 | GAME( 1998, sfex2a, sfex2, coh3002c, zn6b, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 (ASIA 980312)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4478 | GAME( 1998, plsmaswd, cpzn2, coh3002c, zn6b, coh3002c, ROT0, "Capcom", "Plasma Sword (USA 980316)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4479 | GAME( 1998, stargld2, plsmaswd, coh3002c, zn6b, coh3002c, ROT0, "Capcom", "Star Gladiator 2 (JAPAN 980316)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4480 | GAME( 1998, plsmswda, plsmaswd, coh3002c, zn6b, coh3002c, ROT0, "Capcom", "Plasma Sword (ASIA 980316)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4481 | GAME( 1998, tgmj, cpzn2, coh3002c, zn, coh3002c, ROT0, "Capcom/Arika", "Tetris The Grand Master (JAPAN 980710)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4482 | GAME( 1998, techromn, cpzn2, coh3002c, zn6b, coh3002c, ROT0, "Capcom", "Tech Romancer (EURO 980914)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4483 | GAME( 1998, techromu, techromn, coh3002c, zn6b, coh3002c, ROT0, "Capcom", "Tech Romancer (USA 980914)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4484 | GAME( 1998, kikaioh, techromn, coh3002c, zn6b, coh3002c, ROT0, "Capcom", "Kikaioh (JAPAN 980914)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4485 | GAME( 1999, sfex2p, cpzn2, coh3002c, zn6b, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 Plus (USA 990611)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4486 | GAME( 1999, sfex2pa, sfex2p, coh3002c, zn6b, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 Plus (ASIA 990611)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4487 | GAME( 1999, sfex2pj, sfex2p, coh3002c, zn6b, coh3002c, ROT0, "Capcom/Arika", "Street Fighter EX 2 Plus (JAPAN 990611)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4488 | GAME( 1999, strider2, cpzn2, coh3002c, zn, coh3002c, ROT0, "Capcom", "Strider 2 (USA 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4489 | GAME( 1999, stridr2a, strider2, coh3002c, zn, coh3002c, ROT0, "Capcom", "Strider 2 (ASIA 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4490 | GAME( 1999, shiryu2, strider2, coh3002c, zn, coh3002c, ROT0, "Capcom", "Strider Hiryu 2 (JAPAN 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4419 | 4491 | |
| 4420 | 4492 | /* Atari */ |
| 4421 | 4493 | |
| 4422 | 4494 | /* A dummy driver, so that the bios can be debugged, and to serve as */ |
| 4423 | 4495 | /* parent for the coh-1000w.353 file, so that we do not have to include */ |
| 4424 | 4496 | /* it in every zip file */ |
| 4425 | GAME( 1996, atpsx, 0, coh1000w, zn, coh1000w, ROT0, "Atari", "Atari PSX", GAME_IS_BIOS_ROOT ) | |
| 4497 | GAME( 1996, atpsx, 0, coh1000w, zn, coh1000w, ROT0, "Atari", "Atari PSX", GAME_IS_BIOS_ROOT ) | |
| 4426 | 4498 | |
| 4427 | GAME( 1996, primrag2, atpsx, coh1000w, | |
| 4499 | GAME( 1996, primrag2, atpsx, coh1000w, primrag2, coh1000w, ROT0, "Atari", "Primal Rage 2 (Ver 0.36a)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4428 | 4500 | |
| 4429 | 4501 | /* Acclaim */ |
| 4430 | 4502 | |
| r3115 | r3116 | |
| 4433 | 4505 | /* it in every zip file */ |
| 4434 | 4506 | GAME( 1995, acpsx, 0, coh1000a, zn, coh1000a, ROT0, "Acclaim", "Acclaim PSX", GAME_IS_BIOS_ROOT ) |
| 4435 | 4507 | |
| 4436 | GAME( 1996, nbajamex, acpsx, coh1000a, zn, coh1000a, ROT0, "Acclaim", "NBA Jam Extreme", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4437 | GAME( 1996, jdredd, acpsx, coh1000a_ide, zn, coh1000a, ROT0, "Acclaim", "Judge Dredd (Rev C Dec. 17 1997)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4438 | GAME( 1996, jdreddb, jdredd, coh1000a_ide, zn, coh1000a, ROT0, "Acclaim", "Judge Dredd (Rev B Nov. 26 1997)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4508 | GAME( 1996, nbajamex, acpsx, coh1000a, zn, coh1000a, ROT0, "Acclaim", "NBA Jam Extreme", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4509 | GAME( 1996, jdredd, acpsx, coh1000a_ide, jdredd, coh1000a, ROT0, "Acclaim", "Judge Dredd (Rev C Dec. 17 1997)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4510 | GAME( 1996, jdreddb, jdredd, coh1000a_ide, jdredd, coh1000a, ROT0, "Acclaim", "Judge Dredd (Rev B Nov. 26 1997)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4439 | 4511 | |
| 4440 | 4512 | /* Tecmo */ |
| 4441 | 4513 | |
| r3115 | r3116 | |
| 4461 | 4533 | |
| 4462 | 4534 | /* Video System */ |
| 4463 | 4535 | |
| 4464 | /* only one game dumped on this system, so coh-1002v.353 is included in the game zip file */ | |
| 4465 | GAME( 1996, sncwgltd, 0, coh1002v, zn, coh1002v, ROT270, "Video System", "Sonic Wings Limited (JAPAN)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4536 | /* A dummy driver, so that the bios can be debugged, and to serve as */ | |
| 4537 | /* parent for the coh-1002v.353 file, so that we do not have to include */ | |
| 4538 | /* it in every zip file */ | |
| 4539 | GAME( 1996, vspsx, 0, coh1002v, zn, coh1002v, ROT0, "Video System", "Video System PSX", GAME_IS_BIOS_ROOT ) | |
| 4466 | 4540 | |
| 4541 | GAME( 1996, aerofgts, vspsx, coh1002v, zn, coh1002v, ROT270, "Video System", "Aero Fighters Special (TAIWAN)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4542 | GAME( 1996, sncwgltd, aerofgts, coh1002v, zn, coh1002v, ROT270, "Video System", "Sonic Wings Limited (JAPAN)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4543 | ||
| 4467 | 4544 | /* Taito */ |
| 4468 | 4545 | |
| 4469 | 4546 | /* A dummy driver, so that the bios can be debugged, and to serve as */ |
| r3115 | r3116 | |
| 4471 | 4548 | /* it in every zip file */ |
| 4472 | 4549 | GAME( 1995, taitofx1, 0, coh1000ta,zn, coh1000ta, ROT0, "Sony/Taito", "Taito FX1", GAME_IS_BIOS_ROOT ) |
| 4473 | 4550 | |
| 4474 | GAME( 1995, sfchamp, taitofx1, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Super Football Champ (Ver 2.5O)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4475 | GAME( 1995, sfchampj, sfchamp, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Super Football Champ (Ver 2.4J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4551 | GAME( 1995, sfchamp, taitofx1, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Super Football Champ (Ver 2.5O)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4552 | GAME( 1995, sfchampj, sfchamp, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Super Football Champ (Ver 2.4J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4476 | 4553 | GAME( 1995, psyforce, taitofx1, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Psychic Force (Ver 2.4O)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 4477 | 4554 | GAME( 1995, psyforcj, psyforce, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Psychic Force (Ver 2.4J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 4478 | 4555 | GAME( 1995, psyfrcex, psyforce, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Psychic Force EX (Ver 2.0J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 4479 | GAME( 1996, mgcldate, mgcldtex, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Magical Date / Magical Date - dokidoki kokuhaku daisakusen (Ver 2.02J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | |
| 4556 | GAME( 1996, mgcldate, mgcldtex, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Magical Date / Magical Date - dokidoki kokuhaku daisakusen (Ver 2.02J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | |
| 4480 | 4557 | GAME( 1996, raystorm, taitofx1, coh1000tb,zn, coh1000tb, ROT0, "Taito", "Ray Storm (Ver 2.06A)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 4481 | 4558 | GAME( 1996, raystorj, raystorm, coh1000tb,zn, coh1000tb, ROT0, "Taito", "Ray Storm (Ver 2.05J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 4482 | GAME( 1996, ftimpact, taitofx1, coh1000tb,zn, coh1000tb, ROT0, "Taito", "Fighters' Impact (Ver 2.02O)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4483 | GAME( 1996, ftimpcta, ftimpact, coh1000tb,zn, coh1000tb, ROT0, "Taito", "Fighters' Impact A (Ver 2.00J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4559 | GAME( 1996, ftimpact, ftimpcta, coh1000tb,zn, coh1000tb, ROT0, "Taito", "Fighters' Impact (Ver 2.02O)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4560 | GAME( 1997, ftimpcta, taitofx1, coh1000tb,zn, coh1000tb, ROT0, "Taito", "Fighters' Impact A (Ver 2.00J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4484 | 4561 | GAME( 1997, mgcldtex, taitofx1, coh1000ta,zn, coh1000ta, ROT0, "Taito", "Magical Date EX / Magical Date - sotsugyou kokuhaku daisakusen (Ver 2.01J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 4485 | GAME( 1997, gdarius, taitofx1, coh1000tb,zn, coh1000tb, ROT0, "Taito", "G-Darius (Ver 2.01J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4486 | GAME( 1997, gdariusb, gdarius, coh1000tb,zn, coh1000tb, ROT0, "Taito", "G-Darius (Ver 2.02A)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4487 | GAME( 1997, gdarius2, gdarius, coh1000tb,zn, coh1000tb, ROT0, "Taito", "G-Darius Ver.2 (Ver 2.03J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4562 | GAME( 1997, gdarius, gdarius2, coh1000tb,zn, coh1000tb, ROT0, "Taito", "G-Darius (Ver 2.01J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4563 | GAME( 1997, gdariusb, gdarius2, coh1000tb,zn, coh1000tb, ROT0, "Taito", "G-Darius (Ver 2.02A)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4564 | GAME( 1997, gdarius2, taitofx1, coh1000tb,zn, coh1000tb, ROT0, "Taito", "G-Darius Ver.2 (Ver 2.03J)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4488 | 4565 | |
| 4489 | 4566 | /* A dummy driver, so that the bios can be debugged, and to serve as */ |
| 4490 | 4567 | /* parent for the coh-3002t.353 file, so that we do not have to include */ |
| r3115 | r3116 | |
| 4496 | 4573 | /* A dummy driver, so that the bios can be debugged, and to serve as */ |
| 4497 | 4574 | /* parent for the coh-1002e.353 file, so that we do not have to include */ |
| 4498 | 4575 | /* it in every zip file */ |
| 4499 | GAME( 1997, psarc95, 0, coh1002e, zn, coh1002e, ROT0, "Sony/Eighting/Raizing", "PS Arcade 95", GAME_IS_BIOS_ROOT ) | |
| 4576 | GAME( 1997, psarc95, 0, coh1002e, zn, coh1002e, ROT0, "Sony/Eighting/Raizing", "PS Arcade 95", GAME_IS_BIOS_ROOT ) | |
| 4500 | 4577 | |
| 4501 | GAME( 1997, beastrzr, psarc95, coh1002e, zn, coh1002e, ROT0, "Eighting/Raizing", "Beastorizer (USA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4502 | GAME( 1997, beastrzb, psarc95, coh1002e, zn, coh1002e, ROT0, "Eighting/Raizing", "Beastorizer (USA Bootleg)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4503 | GAME( 1998, bldyror2, psarc95, coh1002e, zn, coh1002e, ROT0, "Eighting/Raizing", "Bloody Roar 2 (JAPAN)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4504 | GAME( 2000, brvblade, tps, coh1002e, zn, coh1002e, ROT270, "Eighting/Raizing", "Brave Blade (JAPAN)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4578 | GAME( 1997, beastrzr, psarc95, coh1002e, zn, coh1002e, ROT0, "Eighting/Raizing", "Beastorizer (USA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4579 | GAME( 1997, beastrzb, psarc95, coh1002e, zn, coh1002e, ROT0, "Eighting/Raizing", "Beastorizer (USA Bootleg)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4580 | GAME( 1998, bldyror2, psarc95, coh1002e, zn6b, coh1002e, ROT0, "Eighting/Raizing", "Bloody Roar 2 (JAPAN)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4581 | GAME( 2000, brvblade, tps, coh1002e, zn, coh1002e, ROT270, "Eighting/Raizing", "Brave Blade (JAPAN)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 4505 | 4582 | |
| 4506 | 4583 | /* Bust a Move 2 uses the PSARC95 bios and ET series security but the top board is completely different */ |
| 4507 | 4584 | GAME( 1999, bam2, psarc95, bam2, zn, bam2, ROT0, "Metro/Enix/Namco", "Bust a Move 2 (JAPANESE ROM ver. 1999/07/17 10:00:00)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
| r3115 | r3116 | |
|---|---|---|
| 98 | 98 | |
| 99 | 99 | static ADDRESS_MAP_START( paradise_readport, ADDRESS_SPACE_IO, 8 ) |
| 100 | 100 | AM_RANGE(0x0000, 0x17ff) AM_READ(SMH_RAM ) // Palette |
| 101 | AM_RANGE(0x2010, 0x2010) AM_READ(okim6295_status_0_r ) // OKI 0 | |
| 102 | AM_RANGE(0x2030, 0x2030) AM_READ(okim6295_status_1_r ) // OKI 1 | |
| 103 | AM_RANGE(0x2020, 0x2020) AM_READ(input_port_0_r ) // DSW 1 | |
| 104 | AM_RANGE(0x2021, 0x2021) AM_READ(input_port_1_r ) // DSW 2 | |
| 105 | AM_RANGE(0x2022, 0x2022) AM_READ(input_port_2_r ) // P1 | |
| 106 | AM_RANGE(0x2023, 0x2023) AM_READ(input_port_3_r ) // P2 | |
| 107 | AM_RANGE(0x2024, 0x2024) AM_READ(input_port_4_r ) // Coins | |
| 101 | AM_RANGE(0x2010, 0x2010) AM_READ(okim6295_status_0_r) // OKI 0 | |
| 102 | AM_RANGE(0x2030, 0x2030) AM_READ(okim6295_status_1_r) // OKI 1 | |
| 103 | AM_RANGE(0x2020, 0x2020) AM_READ_PORT("DSW1") | |
| 104 | AM_RANGE(0x2021, 0x2021) AM_READ_PORT("DSW2") | |
| 105 | AM_RANGE(0x2022, 0x2022) AM_READ_PORT("P1") | |
| 106 | AM_RANGE(0x2023, 0x2023) AM_READ_PORT("P2") | |
| 107 | AM_RANGE(0x2024, 0x2024) AM_READ_PORT("SYSTEM") | |
| 108 | 108 | AM_RANGE(0x8000, 0xffff) AM_READ(SMH_RAM ) // Pixmap |
| 109 | 109 | ADDRESS_MAP_END |
| 110 | 110 | |
| r3115 | r3116 | |
| 132 | 132 | ***************************************************************************/ |
| 133 | 133 | |
| 134 | 134 | static INPUT_PORTS_START( paradise ) |
| 135 | PORT_START("DSW1") / | |
| 135 | PORT_START("DSW1") /* | |
| 136 | 136 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) |
| 137 | 137 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) |
| 138 | 138 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 155 | 155 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 156 | 156 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 157 | 157 | |
| 158 | PORT_START("DSW2") / | |
| 158 | PORT_START("DSW2") /* | |
| 159 | 159 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 160 | 160 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| 161 | 161 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 180 | 180 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 181 | 181 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 182 | 182 | |
| 183 | PORT_START("P1") // IN2 - port $2022 - Player 1 | |
| 184 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 185 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 186 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 187 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 188 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 189 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) // alias for button1? | |
| 190 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) // alias for button1? | |
| 191 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 183 | PORT_START("P1") /* port $2022 */ | |
| 184 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 185 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 186 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 187 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 188 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 189 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) // alias for button1? | |
| 190 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) // alias for button1? | |
| 191 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 192 | 192 | |
| 193 | PORT_START("P2") // IN3 - port $2023 - Player 2 | |
| 194 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 195 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 196 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 197 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 198 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 199 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) // alias for button1? | |
| 200 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) // alias for button1? | |
| 201 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 193 | PORT_START("P2") /* port $2023 */ | |
| 194 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 195 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 196 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 197 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 198 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 199 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) // alias for button1? | |
| 200 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) // alias for button1? | |
| 201 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 202 | 202 | |
| 203 | PORT_START("SYSTEM") // IN4 - port $2024 - Coins | |
| 204 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 205 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(5) | |
| 206 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 207 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 208 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 209 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 210 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 211 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 203 | PORT_START("SYSTEM") /* port $2024 */ | |
| 204 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 205 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(5) | |
| 206 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 207 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 208 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 209 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 210 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 211 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 212 | 212 | INPUT_PORTS_END |
| 213 | 213 | |
| 214 | 214 | |
| 215 | 215 | static INPUT_PORTS_START( tgtball ) |
| 216 | PORT_START("DSW1") / | |
| 216 | PORT_START("DSW1") /* | |
| 217 | 217 | PORT_DIPNAME( 0x03, 0x02, "Time" ) |
| 218 | 218 | PORT_DIPSETTING( 0x03, "60" ) |
| 219 | 219 | PORT_DIPSETTING( 0x02, "80" ) |
| r3115 | r3116 | |
| 236 | 236 | PORT_DIPSETTING( 0x80, "Target Score" ) |
| 237 | 237 | PORT_DIPSETTING( 0x00, "Balls Sequence" ) |
| 238 | 238 | |
| 239 | PORT_START("DSW2") / | |
| 239 | PORT_START("DSW2") /* | |
| 240 | 240 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 241 | 241 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| 242 | 242 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 260 | 260 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 261 | 261 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 262 | 262 | |
| 263 | PORT_START("P1") // IN2 - port $2022 - Player 1 | |
| 264 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 265 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 266 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 267 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 268 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 269 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 270 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 271 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 263 | PORT_START("P1") /* port $2022 */ | |
| 264 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 265 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 266 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 267 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 268 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 269 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 270 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 271 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 272 | 272 | |
| 273 | PORT_START("P2") // IN3 - port $2023 - Player 2 | |
| 274 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 275 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 276 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 277 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 278 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 279 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 280 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 281 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 273 | PORT_START("P2") /* port $2023 */ | |
| 274 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 275 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 276 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 277 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 278 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 279 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 280 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 281 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 282 | 282 | |
| 283 | PORT_START("SYSTEM") // IN4 - port $2024 - Coins | |
| 284 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 285 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(5) | |
| 286 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 287 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 288 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 289 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 290 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 291 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 283 | PORT_START("SYSTEM") /* port $2024 */ | |
| 284 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 285 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(5) | |
| 286 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 287 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 288 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 289 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 290 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 291 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 292 | 292 | INPUT_PORTS_END |
| 293 | 293 | |
| 294 | 294 | static INPUT_PORTS_START( torus ) |
| 295 | PORT_START("DSW1") / | |
| 295 | PORT_START("DSW1") /* | |
| 296 | 296 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 297 | 297 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| 298 | 298 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 317 | 317 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 318 | 318 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 319 | 319 | |
| 320 | PORT_START("DSW2") / | |
| 320 | PORT_START("DSW2") /* | |
| 321 | 321 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 322 | 322 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 323 | 323 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 343 | 343 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 344 | 344 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 345 | 345 | |
| 346 | PORT_START("P1") // IN2 - port $2022 - Player 1 | |
| 347 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 348 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 349 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 350 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 351 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 352 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 353 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 354 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 346 | PORT_START("P1") /* port $2022 */ | |
| 347 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 348 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 349 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 350 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 351 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 352 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 353 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 354 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 355 | 355 | |
| 356 | PORT_START("P2") // IN3 - port $2023 - Player 2 | |
| 357 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 358 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 359 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 360 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 361 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 362 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 363 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 364 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 356 | PORT_START("P2") /* port $2023 */ | |
| 357 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 358 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 359 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 360 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 361 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 362 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 363 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 364 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 365 | 365 | |
| 366 | PORT_START("SYSTEM") // IN4 - port $2024 - Coins | |
| 367 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 368 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 369 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 370 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 371 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 372 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 373 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 374 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 366 | PORT_START("SYSTEM") /* port $2024 */ | |
| 367 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 368 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 369 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 370 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 371 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 372 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 373 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 374 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 375 | 375 | INPUT_PORTS_END |
| 376 | 376 | |
| 377 | 377 | |
| 378 | 378 | static INPUT_PORTS_START( madball ) |
| 379 | PORT_START("DSW1") /* | |
| 379 | PORT_START("DSW1") /* port $2020 */ | |
| 380 | 380 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 381 | 381 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 382 | 382 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 400 | 400 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 401 | 401 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 402 | 402 | |
| 403 | PORT_START("DSW2") /* | |
| 403 | PORT_START("DSW2") /* port $ | |
| 404 | 404 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) |
| 405 | 405 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 406 | 406 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 425 | 425 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 426 | 426 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 427 | 427 | |
| 428 | PORT_START("P1") // IN2 - port $2022 - Player 1 | |
| 429 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 430 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 431 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 432 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 433 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 434 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 435 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 436 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 428 | PORT_START("P1") /* port $2022 */ | |
| 429 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 430 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 431 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 432 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 433 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 434 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 435 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 436 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 437 | 437 | |
| 438 | PORT_START("P2") // IN3 - port $2023 - Player 2 | |
| 439 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 440 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 441 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 442 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 443 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 444 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 445 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 446 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 438 | PORT_START("P2") /* port $2023 */ | |
| 439 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 440 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 441 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 442 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 443 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 444 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 445 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 446 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 447 | 447 | |
| 448 | PORT_START("SYSTEM") // IN4 - port $2024 - Coins | |
| 449 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 450 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 451 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 452 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 453 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 454 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 455 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 456 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 448 | PORT_START("SYSTEM") /* port $2024 */ | |
| 449 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) | |
| 450 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 451 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 452 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 453 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 454 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 455 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 456 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 457 | 457 | INPUT_PORTS_END |
| 458 | 458 | |
| 459 | 459 | /*************************************************************************** |
| r3115 | r3116 | |
|---|---|---|
| 845 | 845 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 846 | 846 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" ) |
| 847 | 847 | |
| 848 | PORT_MODIFY("IN0") | |
| 849 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nstocker_bits_r, NULL) | |
| 850 | ||
| 848 | 851 | /* cheese alert -- we have to map this to player 2 so that it doesn't interfere with |
| 849 | 852 | the crosshair controls */ |
| 850 | 853 | PORT_MODIFY("AN3") |
| r3115 | r3116 | |
| 1948 | 1951 | } |
| 1949 | 1952 | static DRIVER_INIT( nstocker ) |
| 1950 | 1953 | { |
| 1951 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x9902, 0x9902, 0, 0, nstocker_port2_r); | |
| 1952 | 1954 | memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x9f00, 0x9f00, 0, 0, balsente_rombank2_select_w); |
| 1953 | 1955 | expand_roms(machine, EXPAND_NONE | SWAP_HALVES); balsente_shooter = 1; balsente_adc_shift = 1; |
| 1954 | 1956 | } |
| r3115 | r3116 | |
|---|---|---|
| 1 | ||
| 2 | 1 | /* |
| 3 | 2 | |
| 4 | Megadrive / Genesis Rewrite, Take 65498465432356345250432.3 August 06 | |
| 3 | Megadrive / Genesis support | |
| 4 | PRELIMINARY | |
| 5 | 5 | |
| 6 | Thanks to: | |
| 7 | Charles Macdonald for much useful information (cgfm2.emuviews.com) | |
| 6 | The Megadrive / Genesis form the basis of a number of official Sega Arcade PCBs | |
| 7 | as well as a selection of bootlegs. | |
| 8 | 8 | |
| 9 | ||
| 9 | ||
| 10 | 10 | |
| 11 | ToDo: | |
| 11 | Timing is wrong | |
| 12 | -- DMA timing not emulated | |
| 13 | -- Sprite render timing incorrect | |
| 14 | -- Interrupt Timing Problems | |
| 12 | 15 | |
| 13 | The Code here is terrible for now, this is just for testing | |
| 14 | Fix HV Counter & Raster Implementation (One line errors in some games, others not working eg. Dracula) | |
| 15 | Fix Horizontal timings (currently a kludge, currently doesn't change with resolution changes) | |
| 16 | Add Real DMA timings (using a timer) | |
| 17 | Add All VDP etc. Mirror addresses (not done yet as I prefer to catch odd cases for now) | |
| 18 | Investigate other Bugs (see list bloew) | |
| 19 | Rewrite (again) using cleaner, more readable and better optimized code with knowledge gained | |
| 20 | Add support for other peripherals (6 player pad, Teamplay Adapters, Lightguns, Sega Mouse etc.) | |
| 21 | Sort out set info, making sure all games have right manufacturers, dates etc. | |
| 22 | Make sure everything that needs backup RAM has it setup and working | |
| 23 | Fix Reset glitches | |
| 24 | Add 32X / SegaCD support | |
| 25 | Add Megaplay, Megatech support (needs SMS emulation too) | |
| 26 | Add other obscure features (palette flicker for mid-screen CRAM changes, undocumented register behavior) | |
| 27 | Figure out how sprite masking *really* works | |
| 28 | Add EEprom support in games that need it | |
| 16 | Known Problems | |
| 17 | -- g_lem / Lemmings (JU) (REV01) [!] | |
| 18 | Rasters are off | |
| 19 | -- g_drac / Bram Stoker's Dracula (U) [!] | |
| 20 | Doesn't work, Timing Sensisitve | |
| 21 | -- g_sscc / Sesame Street Counting Cafe (U) [!] | |
| 22 | Doesn't work | |
| 23 | -- g_fatr / Fatal Rewind (UE) [!] (and clones) | |
| 24 | Doesn't work. Timing Sensitive | |
| 29 | 25 | |
| 30 | Known Issues: | |
| 31 | Bass Masters Classic Pro Edition (U) [!] - Sega Logo is corrupt | |
| 32 | Bram Stoker's Dracula (U) [!] - Doesn't Work (HV Timing) | |
| 33 | Double Dragon 2 - The Revenge (J) [!] - Too Slow? | |
| 34 | International Superstar Soccer Deluxe (E) [!] - Single line Raster Glitch | |
| 35 | Lemmings (JU) (REV01) [!] - Rasters off by ~7-8 lines (strange case) | |
| 36 | Mercs - Sometimes sound doesn't work.. | |
| 26 | -- various | |
| 27 | Rasters off by 1 line, bottom line corrupt? bad frame timing? | |
| 37 | 28 | |
| 38 | | |
| 29 | | |
| 39 | 30 | |
| 31 | ToDo: | |
| 32 | ||
| 33 | Fix bugs - comprehensive testing! | |
| 34 | ||
| 35 | Add SegaCD / 32X support (not used by any arcade systems?) | |
| 36 | Add PicoDrive support (not arcade) | |
| 37 | ||
| 38 | Change SegaC2 to use the VDP emulation here | |
| 39 | Change System18 to use the VDP emulation here | |
| 40 | ||
| 40 | 41 | Known Non-Issues (confirmed on Real Genesis) |
| 41 | 42 | Castlevania - Bloodlines (U) [!] - Pause text is missing on upside down level |
| 42 | 43 | Blood Shot (E) (M4) [!] - corrupt texture in level 1 is correct... |
| 43 | 44 | */ |
| 44 | 45 | |
| 46 | ||
| 45 | 47 | #include "driver.h" |
| 46 | 48 | #include "deprecat.h" |
| 47 | 49 | #include "sound/sn76496.h" |
| r3115 | r3116 | |
| 54 | 56 | #define MEGADRIV_VDP_VRAM(address) megadrive_vdp_vram[(address)&0x7fff] |
| 55 | 57 | |
| 56 | 58 | /* the same on all systems? */ |
| 57 | #define MASTER_CLOCK 53693100 | |
| 59 | #define MASTER_CLOCK_NTSC 53693100 | |
| 58 | 60 | /* timing details */ |
| 59 | 61 | static int megadriv_framerate; |
| 60 | 62 | static int megadrive_total_scanlines; |
| r3115 | r3116 | |
| 2904 | 2906 | return megadrive_io_read_data_port_3button(portnum); |
| 2905 | 2907 | } |
| 2906 | 2908 | |
| 2909 | ||
| 2910 | static READ16_HANDLER( svp_speedup_r ) | |
| 2911 | { | |
| 2912 | cpu_spinuntil_time(ATTOTIME_IN_USEC(100)); | |
| 2913 | return 0x0425; | |
| 2914 | } | |
| 2915 | ||
| 2916 | ||
| 2907 | 2917 | static void svp_init(running_machine *machine) |
| 2908 | 2918 | { |
| 2909 | 2919 | UINT8 *ROM; |
| r3115 | r3116 | |
| 2919 | 2929 | memory_install_read16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x390000, 0x39ffff, 0, 0, svp_68k_cell1_r); |
| 2920 | 2930 | memory_install_read16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x3a0000, 0x3affff, 0, 0, svp_68k_cell2_r); |
| 2921 | 2931 | |
| 2932 | memory_install_read16_handler(machine, 2, ADDRESS_SPACE_PROGRAM, 0x438, 0x438, 0, 0, svp_speedup_r); | |
| 2933 | ||
| 2922 | 2934 | svp.iram = auto_malloc(0x800); |
| 2923 | 2935 | memory_set_bankptr( 3, svp.iram ); |
| 2924 | 2936 | /* SVP ROM just shares m68k region.. */ |
| r3115 | r3116 | |
| 2943 | 2955 | MACHINE_DRIVER_START( megdsvp ) |
| 2944 | 2956 | MDRV_IMPORT_FROM(megadriv) |
| 2945 | 2957 | |
| 2946 | MDRV_CPU_ADD("svp", SSP1601, MASTER_CLOCK / 7 * 3) /* ~23 MHz (guessed) */ | |
| 2958 | MDRV_CPU_ADD("svp", SSP1601, MASTER_CLOCK_NTSC / 7 * 3) /* ~23 MHz (guessed) */ | |
| 2947 | 2959 | MDRV_CPU_PROGRAM_MAP(svp_ssp_map, 0) |
| 2948 | 2960 | MDRV_CPU_IO_MAP(svp_ext_map, 0) |
| 2949 | 2961 | /* IRQs are not used by this CPU */ |
| r3115 | r3116 | |
| 5005 | 5017 | |
| 5006 | 5018 | |
| 5007 | 5019 | MACHINE_DRIVER_START( megadriv ) |
| 5008 | MDRV_CPU_ADD("main", M68000, MASTER_CLOCK / 7) /* 7.67 MHz */ | |
| 5020 | MDRV_CPU_ADD("main", M68000, MASTER_CLOCK_NTSC / 7) /* 7.67 MHz */ | |
| 5009 | 5021 | MDRV_CPU_PROGRAM_MAP(megadriv_readmem,megadriv_writemem) |
| 5010 | 5022 | /* IRQs are handled via the timers */ |
| 5011 | 5023 | |
| 5012 | MDRV_CPU_ADD("sound", Z80, MASTER_CLOCK / 15) /* 3.58 MHz */ | |
| 5024 | MDRV_CPU_ADD("sound", Z80, MASTER_CLOCK_NTSC / 15) /* 3.58 MHz */ | |
| 5013 | 5025 | MDRV_CPU_PROGRAM_MAP(z80_readmem,z80_writemem) |
| 5014 | 5026 | MDRV_CPU_IO_MAP(z80_portmap,0) |
| 5015 | 5027 | /* IRQ handled via the timers */ |
| r3115 | r3116 | |
| 5038 | 5050 | #if 0 |
| 5039 | 5051 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 5040 | 5052 | |
| 5041 | MDRV_SOUND_ADD("ym", YM2612, MASTER_CLOCK/7) /* 7.67 MHz */ | |
| 5053 | MDRV_SOUND_ADD("ym", YM2612, MASTER_CLOCK_NTSC/7) /* 7.67 MHz */ | |
| 5042 | 5054 | MDRV_SOUND_ROUTE(0, "mono", 0.50) |
| 5043 | 5055 | MDRV_SOUND_ROUTE(1, "mono", 0.50) |
| 5044 | 5056 | |
| 5045 | 5057 | /* sound hardware */ |
| 5046 | MDRV_SOUND_ADD("sn", SN76496, MASTER_CLOCK/15) | |
| 5058 | MDRV_SOUND_ADD("sn", SN76496, MASTER_CLOCK_NTSC/15) | |
| 5047 | 5059 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) /* 3.58 MHz */ |
| 5048 | 5060 | #else |
| 5049 | 5061 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") |
| 5050 | 5062 | |
| 5051 | MDRV_SOUND_ADD("ym", YM2612, MASTER_CLOCK/7) /* 7.67 MHz */ | |
| 5063 | MDRV_SOUND_ADD("ym", YM2612, MASTER_CLOCK_NTSC/7) /* 7.67 MHz */ | |
| 5052 | 5064 | MDRV_SOUND_ROUTE(0, "left", 0.50) |
| 5053 | 5065 | MDRV_SOUND_ROUTE(1, "right", 0.50) |
| 5054 | 5066 | |
| 5055 | 5067 | /* sound hardware */ |
| 5056 | MDRV_SOUND_ADD("sn", SN76496, MASTER_CLOCK/15) | |
| 5068 | MDRV_SOUND_ADD("sn", SN76496, MASTER_CLOCK_NTSC/15) | |
| 5057 | 5069 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.25) /* 3.58 MHz */ |
| 5058 | 5070 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right",0.25) /* 3.58 MHz */ |
| 5059 | 5071 | #endif |
| r3115 | r3116 | |
| 5063 | 5075 | MACHINE_DRIVER_START( megadpal ) |
| 5064 | 5076 | MDRV_IMPORT_FROM(megadriv) |
| 5065 | 5077 | |
| 5066 | MDRV_SCREEN_MODIFY("mai | |
| 5078 | MDRV_SCREEN_MODIFY("megadriv") | |
| 5067 | 5079 | MDRV_SCREEN_REFRESH_RATE(50) |
| 5068 | 5080 | MACHINE_DRIVER_END |
| 5069 | 5081 | |
| r3115 | r3116 | |
| 5079 | 5091 | MDRV_CPU_PROGRAM_MAP(sh2slave_readmem,sh2slave_writemem) |
| 5080 | 5092 | MACHINE_DRIVER_END |
| 5081 | 5093 | |
| 5082 | ||
| 5083 | 5094 | /* Callback when the genesis enters interrupt code */ |
| 5084 | 5095 | static IRQ_CALLBACK(genesis_int_callback) |
| 5085 | 5096 | { |
| r3115 | r3116 | |
|---|---|---|
| 270 | 270 | { |
| 271 | 271 | int level = 0; |
| 272 | 272 | |
| 273 | /* update the states */ | |
| 274 | if (vint != -1) vint_state = vint; | |
| 275 | if (xint != -1) xint_state = xint; | |
| 276 | if (qint != -1) qint_state = qint; | |
| 277 | 273 | |
| 278 | 274 | /* determine which level is active */ |
| 279 | 275 | if (vint_state) level = 1; |
| r3115 | r3116 | |
| 289 | 285 | |
| 290 | 286 | void itech32_update_interrupts(running_machine *machine, int vint, int xint, int qint) |
| 291 | 287 | { |
| 292 | int level = determine_irq_state(vint, xint, qint); | |
| 288 | /* update the states */ | |
| 289 | if (vint != -1) vint_state = vint; | |
| 290 | if (xint != -1) xint_state = xint; | |
| 291 | if (qint != -1) qint_state = qint; | |
| 293 | 292 | |
| 294 | /* update it */ | |
| 295 | if (level) | |
| 296 | cpunum_set_input_line(machine, 0, level, ASSERT_LINE); | |
| 297 | else | |
| 298 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 293 | if (is_drivedge) { | |
| 294 | cpunum_set_input_line(machine, 0, 3, vint_state ? ASSERT_LINE : CLEAR_LINE); | |
| 295 | cpunum_set_input_line(machine, 0, 4, xint_state ? ASSERT_LINE : CLEAR_LINE); | |
| 296 | cpunum_set_input_line(machine, 0, 5, qint_state ? ASSERT_LINE : CLEAR_LINE); | |
| 297 | } else { | |
| 298 | cpunum_set_input_line(machine, 0, 1, vint_state ? ASSERT_LINE : CLEAR_LINE); | |
| 299 | cpunum_set_input_line(machine, 0, 2, xint_state ? ASSERT_LINE : CLEAR_LINE); | |
| 300 | cpunum_set_input_line(machine, 0, 3, qint_state ? ASSERT_LINE : CLEAR_LINE); | |
| 301 | } | |
| 299 | 302 | } |
| 300 | 303 | |
| 301 | 304 |
| r3115 | r3116 | |
|---|---|---|
| 110 | 110 | |
| 111 | 111 | static ADDRESS_MAP_START( readport, ADDRESS_SPACE_IO, 8 ) |
| 112 | 112 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 113 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) | |
| 114 | AM_RANGE(0x01, 0x01) AM_READ(input_port_1_r) | |
| 115 | AM_RANGE(0x03, 0x03) AM_READ(input_port_2_r) | |
| 116 | AM_RANGE(0x04, 0x04) AM_READ(input_port_3_r) | |
| 113 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") | |
| 114 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") | |
| 115 | AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW") | |
| 116 | AM_RANGE(0x04, 0x04) AM_READ_PORT("IN2") | |
| 117 | 117 | ADDRESS_MAP_END |
| 118 | 118 | |
| 119 | 119 | |
| r3115 | r3116 | |
| 181 | 181 | PORT_DIPSETTING( 0xA0, "RAM/ROM Test" ) |
| 182 | 182 | PORT_DIPSETTING( 0xE0, "Accelerator Adjustment" ) |
| 183 | 183 | |
| 184 | PORT_START("IN3") | |
| 185 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 186 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 187 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_TOGGLE /* gear shift lever */ | |
| 188 | PORT_BIT ( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 189 | ||
| 184 | PORT_START("IN2") | |
| 185 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 186 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 187 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_TOGGLE /* gear shift lever */ | |
| 188 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 190 | 189 | INPUT_PORTS_END |
| 191 | 190 | |
| 192 | 191 |
| r3115 | r3116 | |
|---|---|---|
| 146 | 146 | |
| 147 | 147 | static READ16_HANDLER( horekid_IN2_r ) |
| 148 | 148 | { |
| 149 | int data = input_port_read(machine, "IN | |
| 149 | int data = input_port_read(machine, "IN2"); | |
| 150 | 150 | |
| 151 | 151 | if (!(data & 0x40)) // FAKE button 3 for "Debug Mode" |
| 152 | 152 | { |
| r3115 | r3116 | |
| 211 | 211 | AM_RANGE(0x020000, 0x0201ff) AM_READ(SMH_RAM) |
| 212 | 212 | AM_RANGE(0x020200, 0x021fff) AM_READ(SMH_RAM) |
| 213 | 213 | AM_RANGE(0x023000, 0x023fff) AM_READ(SMH_RAM) |
| 214 | AM_RANGE(0x024000, 0x024001) AM_READ(input_port_0_word_r) | |
| 215 | AM_RANGE(0x024002, 0x024003) AM_READ(input_port_1_word_r) | |
| 216 | AM_RANGE(0x024004, 0x024005) AM_READ(input_port_2_word_r) | |
| 217 | AM_RANGE(0x024006, 0x024007) AM_READ(input_port_3_word_r) | |
| 214 | AM_RANGE(0x024000, 0x024001) AM_READ_PORT("P1") | |
| 215 | AM_RANGE(0x024002, 0x024003) AM_READ_PORT("P2") | |
| 216 | AM_RANGE(0x024004, 0x024005) AM_READ_PORT("SYSTEM") | |
| 217 | AM_RANGE(0x024006, 0x024007) AM_READ_PORT("DSW") | |
| 218 | 218 | ADDRESS_MAP_END |
| 219 | 219 | |
| 220 | 220 | static ADDRESS_MAP_START( terracre_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r3115 | r3116 | |
| 233 | 233 | static ADDRESS_MAP_START( amazon_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 234 | 234 | AM_RANGE(0x000000, 0x01ffff) AM_READ(SMH_ROM) |
| 235 | 235 | AM_RANGE(0x040000, 0x040fff) AM_READ(SMH_RAM) |
| 236 | AM_RANGE(0x044000, 0x044001) AM_READ(input_port_0_word_r) | |
| 237 | AM_RANGE(0x044002, 0x044003) AM_READ(input_port_1_word_r) | |
| 238 | AM_RANGE(0x044004, 0x044005) AM_READ(input_port_2_word_r) | |
| 239 | AM_RANGE(0x044006, 0x044007) AM_READ(input_port_3_word_r) | |
| 236 | AM_RANGE(0x044000, 0x044001) AM_READ_PORT("IN0") | |
| 237 | AM_RANGE(0x044002, 0x044003) AM_READ_PORT("IN1") | |
| 238 | AM_RANGE(0x044004, 0x044005) AM_READ_PORT("IN2") | |
| 239 | AM_RANGE(0x044006, 0x044007) AM_READ_PORT("IN3") | |
| 240 | 240 | AM_RANGE(0x070000, 0x070001) AM_READ(amazon_protection_r) |
| 241 | 241 | ADDRESS_MAP_END |
| 242 | 242 | |
| r3115 | r3116 | |
| 287 | 287 | ADDRESS_MAP_END |
| 288 | 288 | |
| 289 | 289 | static INPUT_PORTS_START( terracre ) |
| 290 | PORT_START(" | |
| 290 | PORT_START("P1 | |
| 291 | 291 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 292 | 292 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 293 | 293 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r3115 | r3116 | |
| 297 | 297 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 298 | 298 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 299 | 299 | |
| 300 | PORT_START(" | |
| 300 | PORT_START("P2 | |
| 301 | 301 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 302 | 302 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 303 | 303 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 307 | 307 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 308 | 308 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 309 | 309 | |
| 310 | PORT_START(" | |
| 310 | PORT_START("SYSTEM") | |
| 311 | 311 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| 312 | 312 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) |
| 313 | 313 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r3115 | r3116 | |
| 391 | 391 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 392 | 392 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 393 | 393 | |
| 394 | PORT_START(" | |
| 394 | PORT_START("IN3") | |
| 395 | 395 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) |
| 396 | 396 | PORT_DIPSETTING( 0x0003, "3" ) |
| 397 | 397 | PORT_DIPSETTING( 0x0002, "4" ) |
| r3115 | r3116 | |
| 435 | 435 | INPUT_PORTS_END |
| 436 | 436 | |
| 437 | 437 | static INPUT_PORTS_START( horekid ) |
| 438 | PORT_START(" | |
| 438 | PORT_START("IN0") | |
| 439 | 439 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) |
| 440 | 440 | PORT_DIPSETTING( 0x0003, "3" ) |
| 441 | 441 | PORT_DIPSETTING( 0x0002, "4" ) |
| r3115 | r3116 | |
| 477 | 477 | // PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) // duplicated setting |
| 478 | 478 | // PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) // duplicated setting |
| 479 | 479 | |
| 480 | PORT_START("IN | |
| 480 | PORT_START("IN1") | |
| 481 | 481 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| 482 | 482 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) |
| 483 | 483 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 484 | 484 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 485 | 485 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 486 | PORT_SERVICE_NO_TOGGLE(0x2000, IP_ACTIVE_LOW) | |
| 486 | PORT_SERVICE_NO_TOGGLE( 0x2000, IP_ACTIVE_LOW) | |
| 487 | 487 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 488 | 488 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 489 | 489 | |
| 490 | PORT_START("IN | |
| 490 | PORT_START("IN2") | |
| 491 | 491 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 492 | 492 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 493 | 493 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 497 | 497 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME ("P2 Buttons 1+2 (Debug Cheat)") // fake button for "Debug Mode" (see read handler) |
| 498 | 498 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 499 | 499 | |
| 500 | PORT_START("IN | |
| 500 | PORT_START("IN3") | |
| 501 | 501 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 502 | 502 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 503 | 503 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
|---|---|---|
| 285 | 285 | GAME INPUTS |
| 286 | 286 | **********************************************************/ |
| 287 | 287 | |
| 288 | static CUSTOM_INPUT(frame_counter_r) | |
| 289 | { | |
| 290 | return frame_counter; | |
| 291 | } | |
| 292 | ||
| 288 | 293 | static READ32_HANDLER( undrfire_input_r ) |
| 289 | 294 | { |
| 290 | 295 | switch (offset) |
| 291 | 296 | { |
| 292 | 297 | case 0x00: |
| 293 | 298 | { |
| 294 | return (input_port_read(machine, "IN0") << 16) | input_port_read(machine, "IN1") | | |
| 295 | (eeprom_read_bit() << 7) | frame_counter; | |
| 299 | return input_port_read(machine, "INPUTS"); | |
| 296 | 300 | } |
| 297 | 301 | |
| 298 | 302 | case 0x01: |
| 299 | 303 | { |
| 300 | return input_port_read(machine, " | |
| 304 | return input_port_read(machine, "SYSTEM") | (coin_word << 16); | |
| 301 | 305 | } |
| 302 | 306 | } |
| 303 | 307 | |
| r3115 | r3116 | |
| 539 | 543 | ***********************************************************/ |
| 540 | 544 | |
| 541 | 545 | static INPUT_PORTS_START( undrfire ) |
| 542 | PORT_START("IN0") | |
| 543 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 544 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 545 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 546 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) /* ? where is freeze input */ | |
| 547 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 548 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 549 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 550 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 551 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 552 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 553 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 554 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 555 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 556 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 557 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 558 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 546 | PORT_START("INPUTS") | |
| 547 | PORT_BIT( 0x00000001, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(frame_counter_r, NULL) /* Frame counter */ | |
| 548 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 549 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 550 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 551 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 552 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 553 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 554 | PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* reserved for EEROM */ | |
| 555 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 556 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 557 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 558 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 559 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 560 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 561 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 562 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 559 | 563 | |
| 560 | PORT_START("IN1") | |
| 561 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* Frame counter */ | |
| 562 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 563 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 564 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 565 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 566 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 567 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 568 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* reserved for EEROM */ | |
| 569 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 570 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 571 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 572 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 573 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 574 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 575 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 576 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 564 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 565 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 566 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 567 | PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) /* ? where is freeze input */ | |
| 568 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 569 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 570 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 571 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 572 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 573 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 574 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 575 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 576 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 577 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 578 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 579 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 577 | 580 | |
| 578 | PORT_START(" | |
| 581 | PORT_START("SYSTEM") | |
| 579 | 582 | PORT_SERVICE_NO_TOGGLE(0x01, IP_ACTIVE_LOW) |
| 580 | 583 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 581 | 584 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r3115 | r3116 | |
| 587 | 590 | |
| 588 | 591 | /* Gun inputs (real range is 0-0xffff: we use standard 0-255 and shift later) */ |
| 589 | 592 | |
| 590 | PORT_START("GUNX1") | |
| 593 | PORT_START("GUNX1") | |
| 591 | 594 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, -1.0, 0.0, 0) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_REVERSE PORT_PLAYER(1) |
| 592 | 595 | |
| 593 | PORT_START("GUNY1") | |
| 596 | PORT_START("GUNY1") | |
| 594 | 597 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_PLAYER(1) |
| 595 | 598 | |
| 596 | PORT_START("GUNX2") | |
| 599 | PORT_START("GUNX2") | |
| 597 | 600 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, -1.0, 0.0, 0) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_REVERSE PORT_PLAYER(2) |
| 598 | 601 | |
| 599 | PORT_START("GUNY2") | |
| 602 | PORT_START("GUNY2") | |
| 600 | 603 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_PLAYER(2) |
| 601 | 604 | |
| 602 | 605 | PORT_START("FAKE") |
| r3115 | r3116 | |
| 608 | 611 | |
| 609 | 612 | |
| 610 | 613 | static INPUT_PORTS_START( cbombers ) |
| 611 | PORT_START("IN0") | |
| 612 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 613 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 614 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 615 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_BUTTON5 ) /* ? where is freeze input */ | |
| 616 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 617 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 618 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 619 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 620 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Gear Shift") PORT_TOGGLE | |
| 621 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Nitro") | |
| 622 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Accelerator") | |
| 623 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake") | |
| 624 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 625 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 626 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 627 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 614 | PORT_START("INPUTS") | |
| 615 | PORT_BIT( 0x00000001, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(frame_counter_r, NULL) /* Frame counter */ | |
| 616 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 617 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 618 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 619 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 620 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 621 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 622 | PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* reserved for EEROM */ | |
| 623 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 624 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 625 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 626 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 627 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 628 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 629 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 630 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 628 | 631 | |
| 629 | PORT_START("IN1") | |
| 630 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* Frame counter */ | |
| 631 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 632 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 633 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 634 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 635 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 636 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 637 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* reserved for EEROM */ | |
| 638 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 639 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 640 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 641 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 642 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 643 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 644 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 645 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 632 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 633 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 634 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 635 | PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_BUTTON5 ) /* ? where is freeze input */ | |
| 636 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 637 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 638 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 639 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 640 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Gear Shift") PORT_TOGGLE | |
| 641 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Nitro") | |
| 642 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Accelerator") | |
| 643 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake") | |
| 644 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 645 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 646 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 647 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 646 | 648 | |
| 647 | PORT_START(" | |
| 649 | PORT_START("SYSTEM") | |
| 648 | 650 | PORT_SERVICE_NO_TOGGLE(0x01, IP_ACTIVE_LOW) |
| 649 | 651 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 650 | 652 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r3115 | r3116 | |
|---|---|---|
| 33 | 33 | AM_RANGE(0x004000, 0x00400f) AM_READ(vertigo_io_convert) AM_MIRROR(0x001000) |
| 34 | 34 | AM_RANGE(0x004010, 0x00401f) AM_READ(vertigo_io_adc) AM_MIRROR(0x001000) |
| 35 | 35 | AM_RANGE(0x004020, 0x00402f) AM_READ(vertigo_coin_r) AM_MIRROR(0x001000) |
| 36 | AM_RANGE(0x004030, 0x00403f) AM_READ | |
| 36 | AM_RANGE(0x004030, 0x00403f) AM_READ | |
| 37 | 37 | AM_RANGE(0x004040, 0x00404f) AM_READ(vertigo_sio_r) AM_MIRROR(0x001000) |
| 38 | 38 | AM_RANGE(0x004050, 0x00405f) AM_RAM_WRITE(vertigo_audio_w) AM_MIRROR(0x001000) |
| 39 | 39 | AM_RANGE(0x004060, 0x00406f) AM_WRITE(vertigo_motor_w) AM_MIRROR(0x001000) |
| r3115 | r3116 | |
|---|---|---|
| 452 | 452 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 453 | 453 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 454 | 454 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 455 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 455 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 456 | 456 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 457 | 457 | |
| 458 | 458 | PORT_START("DSW1") |
| r3115 | r3116 | |
|---|---|---|
| 28 | 28 | ***********************************************************************************/ |
| 29 | 29 | #include "driver.h" |
| 30 | 30 | #include "sound/ay8910.h" |
| 31 | #include "cpu/ | |
| 31 | #include "cpu/mcs48 | |
| 32 | 32 | |
| 33 | 33 | static tilemap *bg_tilemap; |
| 34 | 34 | |
| r3115 | r3116 | |
| 199 | 199 | |
| 200 | 200 | static ADDRESS_MAP_START( drw80pkr_io_map, ADDRESS_SPACE_IO, 8 ) |
| 201 | 201 | AM_RANGE(0x00, 0xff) AM_READWRITE(drw80pkr_cmos_r, drw80pkr_cmos_w) AM_BASE(&pkr_cmos_ram) |
| 202 | AM_RANGE(I8039_t1, I8039_t1) AM_RAM | |
| 203 | AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(p1_r, p1_w) | |
| 204 | AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(p2_r, p2_w) | |
| 205 | AM_RANGE(I8039_p4, I8039_p4) AM_RAM_WRITE(p4_w) | |
| 206 | AM_RANGE(I8039_bus, I8039_bus) AM_READWRITE(bus_r, bus_w) | |
| 202 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_RAM | |
| 203 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READWRITE(p1_r, p1_w) | |
| 204 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READWRITE(p2_r, p2_w) | |
| 205 | AM_RANGE(MCS48_PORT_P4, MCS48_PORT_P4) AM_RAM_WRITE(p4_w) | |
| 206 | AM_RANGE(MCS48_PORT_BUS, MCS48_PORT_BUS) AM_READWRITE(bus_r, bus_w) | |
| 207 | 207 | ADDRESS_MAP_END |
| 208 | 208 | |
| 209 | 209 | /************************* |
| r3115 | r3116 | |
|---|---|---|
| 280 | 280 | AM_RANGE(0xb003, 0xb003) AM_WRITE(SMH_NOP) /* BBX interrupt-related */ |
| 281 | 281 | AM_RANGE(0xb004, 0xb004) AM_WRITE(shangkid_cpu_reset_w) |
| 282 | 282 | AM_RANGE(0xb006, 0xb006) AM_WRITE(SMH_NOP) /* coin counter */ |
| 283 | AM_RANGE(0xb800, 0xb800) AM_READ(input_port_0_r) /* SW1 */ | |
| 284 | AM_RANGE(0xb801, 0xb801) AM_READ(input_port_1_r) /* coin/start */ | |
| 285 | AM_RANGE(0xb802, 0xb802) AM_READ(input_port_2_r) /* player#2 */ | |
| 286 | AM_RANGE(0xb803, 0xb803) AM_READ(input_port_3_r) /* player#1 */ | |
| 283 | AM_RANGE(0xb800, 0xb800) AM_READ_PORT("DSW") | |
| 284 | AM_RANGE(0xb801, 0xb801) AM_READ_PORT("SYSTEM") | |
| 285 | AM_RANGE(0xb802, 0xb802) AM_READ_PORT("P2") | |
| 286 | AM_RANGE(0xb803, 0xb803) AM_READ_PORT("P1") | |
| 287 | 287 | AM_RANGE(0xc000, 0xc002) AM_WRITE(SMH_RAM) AM_BASE(&shangkid_videoreg) |
| 288 | 288 | AM_RANGE(0xd000, 0xdfff) AM_RAM_WRITE(shangkid_videoram_w) AM_BASE(&videoram) AM_SHARE(1) |
| 289 | 289 | AM_RANGE(0xe000, 0xfdff) AM_RAM AM_SHARE(2) |
| r3115 | r3116 | |
| 301 | 301 | AM_RANGE(0xb004, 0xb004) AM_WRITE(shangkid_cpu_reset_w) |
| 302 | 302 | AM_RANGE(0xb006, 0xb006) AM_WRITE(SMH_NOP) /* coin counter */ |
| 303 | 303 | AM_RANGE(0xb007, 0xb007) AM_WRITE(shangkid_maincpu_bank_w) |
| 304 | AM_RANGE(0xb800, 0xb800) AM_READ(input_port_0_r) /* SW1 */ | |
| 305 | AM_RANGE(0xb801, 0xb801) AM_READ(input_port_1_r) /* coin/start */ | |
| 306 | AM_RANGE(0xb802, 0xb802) AM_READ(input_port_2_r) /* player#2 */ | |
| 307 | AM_RANGE(0xb803, 0xb803) AM_READ(input_port_3_r) /* player#1 */ | |
| 304 | AM_RANGE(0xb800, 0xb800) AM_READ_PORT("DSW") | |
| 305 | AM_RANGE(0xb801, 0xb801) AM_READ_PORT("SYSTEM") | |
| 306 | AM_RANGE(0xb802, 0xb802) AM_READ_PORT("P2") | |
| 307 | AM_RANGE(0xb803, 0xb803) AM_READ_PORT("P1") | |
| 308 | 308 | AM_RANGE(0xc000, 0xc002) AM_WRITE(SMH_RAM) AM_BASE(&shangkid_videoreg) |
| 309 | 309 | AM_RANGE(0xd000, 0xdfff) AM_RAM_WRITE(shangkid_videoram_w) AM_BASE(&videoram) AM_SHARE(1) |
| 310 | 310 | AM_RANGE(0xe000, 0xfdff) AM_RAM AM_SHARE(2) |
| r3115 | r3116 | |
| 322 | 322 | AM_RANGE(0xb003, 0xb003) AM_WRITE(SMH_NOP) /* BBX interrupt-related */ |
| 323 | 323 | AM_RANGE(0xb004, 0xb004) AM_WRITE(shangkid_cpu_reset_w) |
| 324 | 324 | AM_RANGE(0xb006, 0xb006) AM_WRITE(SMH_NOP) /* coin counter */ |
| 325 | AM_RANGE(0xb800, 0xb800) AM_READ(input_port_0_r) /* SW1 */ | |
| 326 | AM_RANGE(0xb801, 0xb801) AM_READ(input_port_1_r) /* coin/start */ | |
| 327 | AM_RANGE(0xb802, 0xb802) AM_READ(input_port_2_r) /* player#2 */ | |
| 328 | AM_RANGE(0xb803, 0xb803) AM_READ(input_port_3_r) /* player#1 */ | |
| 325 | AM_RANGE(0xb800, 0xb800) AM_READ_PORT("DSW") | |
| 326 | AM_RANGE(0xb801, 0xb801) AM_READ_PORT("SYSTEM") | |
| 327 | AM_RANGE(0xb802, 0xb802) AM_READ_PORT("P2") | |
| 328 | AM_RANGE(0xb803, 0xb803) AM_READ_PORT("P1") | |
| 329 | 329 | AM_RANGE(0xd000, 0xdfff) AM_RAM_WRITE(shangkid_videoram_w) AM_SHARE(1) |
| 330 | 330 | AM_RANGE(0xe000, 0xfdff) AM_RAM AM_SHARE(2) |
| 331 | 331 | AM_RANGE(0xfe00, 0xffff) AM_RAM AM_SHARE(3) |
| r3115 | r3116 | |
| 341 | 341 | AM_RANGE(0xb004, 0xb004) AM_WRITE(shangkid_cpu_reset_w) |
| 342 | 342 | AM_RANGE(0xb006, 0xb006) AM_WRITE(SMH_NOP) /* coin counter */ |
| 343 | 343 | AM_RANGE(0xb007, 0xb007) AM_WRITE(shangkid_maincpu_bank_w) |
| 344 | AM_RANGE(0xb800, 0xb800) AM_READ(input_port_0_r) /* SW1 */ | |
| 345 | AM_RANGE(0xb801, 0xb801) AM_READ(input_port_1_r) /* coin/start */ | |
| 346 | AM_RANGE(0xb802, 0xb802) AM_READ(input_port_2_r) /* player#2 */ | |
| 347 | AM_RANGE(0xb803, 0xb803) AM_READ(input_port_3_r) /* player#1 */ | |
| 344 | AM_RANGE(0xb800, 0xb800) AM_READ_PORT("DSW") | |
| 345 | AM_RANGE(0xb801, 0xb801) AM_READ_PORT("SYSTEM") | |
| 346 | AM_RANGE(0xb802, 0xb802) AM_READ_PORT("P2") | |
| 347 | AM_RANGE(0xb803, 0xb803) AM_READ_PORT("P1") | |
| 348 | 348 | AM_RANGE(0xd000, 0xdfff) AM_RAM_WRITE(shangkid_videoram_w) AM_SHARE(1) |
| 349 | 349 | AM_RANGE(0xe000, 0xfdff) AM_RAM AM_SHARE(2) |
| 350 | 350 | AM_RANGE(0xfe00, 0xffff) AM_RAM AM_SHARE(3) |
| r3115 | r3116 | |
| 457 | 457 | AM_RANGE(0xd800, 0xdbff) AM_RAM |
| 458 | 458 | AM_RANGE(0xe000, 0xe000) AM_WRITENOP /* IRQ disable */ |
| 459 | 459 | AM_RANGE(0xe001, 0xe002) AM_RAM /* screen flip */ |
| 460 | AM_RANGE(0xe800, 0xe800) AM_READ(input_port_0_r) | |
| 461 | AM_RANGE(0xe801, 0xe801) AM_READ(input_port_1_r) | |
| 462 | AM_RANGE(0xe802, 0xe802) AM_READ(input_port_2_r) | |
| 463 | AM_RANGE(0xe803, 0xe803) AM_READ(input_port_3_r) | |
| 460 | AM_RANGE(0xe800, 0xe800) AM_READ_PORT("SYSTEM") | |
| 461 | AM_RANGE(0xe801, 0xe801) AM_READ_PORT("P1") | |
| 462 | AM_RANGE(0xe802, 0xe802) AM_READ_PORT("P2") | |
| 463 | AM_RANGE(0xe803, 0xe803) AM_READ_PORT("DSW") | |
| 464 | 464 | AM_RANGE(0xf000, 0xf7ff) AM_RAM /* work ram */ |
| 465 | 465 | ADDRESS_MAP_END |
| 466 | 466 | |
| r3115 | r3116 | |
| 503 | 503 | /***************************************************************************************/ |
| 504 | 504 | |
| 505 | 505 | static INPUT_PORTS_START( dynamski ) |
| 506 | PORT_START(" | |
| 506 | PORT_START("SYSTEM") | |
| 507 | 507 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 508 | 508 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 509 | 509 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) /* service */ |
| r3115 | r3116 | |
| 513 | 513 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 514 | 514 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 515 | 515 | |
| 516 | PORT_START(" | |
| 516 | PORT_START("P | |
| 517 | 517 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 518 | 518 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 519 | 519 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 523 | 523 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 524 | 524 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 525 | 525 | |
| 526 | PORT_START(" | |
| 526 | PORT_START("P | |
| 527 | 527 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 528 | 528 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 529 | 529 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 559 | 559 | INPUT_PORTS_END |
| 560 | 560 | |
| 561 | 561 | static INPUT_PORTS_START( chinhero ) |
| 562 | PORT_START("SYSTEM") | |
| 563 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 564 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 565 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) /* service */ | |
| 566 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 567 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 568 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 569 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 570 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 571 | ||
| 572 | PORT_START("P1") | |
| 573 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 574 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 575 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 576 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 577 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 578 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 579 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON3 ) | |
| 580 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON4 ) | |
| 581 | ||
| 582 | PORT_START("P2") | |
| 583 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) | |
| 584 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(2) | |
| 585 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(2) | |
| 586 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(2) | |
| 587 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 588 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 589 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 590 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 591 | ||
| 562 | 592 | PORT_START("DSW") |
| 563 | 593 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 564 | 594 | PORT_DIPSETTING( 0x01, "3" ) |
| r3115 | r3116 | |
| 581 | 611 | PORT_DIPSETTING( 0x40, DEF_STR( Medium ) ) |
| 582 | 612 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) |
| 583 | 613 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) |
| 614 | INPUT_PORTS_END | |
| 584 | 615 | |
| 585 | PORT_START("IN0") | |
| 616 | static INPUT_PORTS_START( shangkid ) | |
| 617 | PORT_START("SYSTEM") | |
| 586 | 618 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 587 | 619 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 588 | 620 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) /* service */ |
| r3115 | r3116 | |
| 590 | 622 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) |
| 591 | 623 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 592 | 624 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 593 | PORT_BIT( 0x80, IP_ACTIVE_ | |
| 625 | PORT_BIT( 0x80, IP_ACTIVE_LOW | |
| 594 | 626 | |
| 595 | PORT_START("IN1") | |
| 596 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) | |
| 597 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(2) | |
| 598 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(2) | |
| 599 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(2) | |
| 600 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 601 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 602 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 603 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 627 | PORT_START("P1") | |
| 628 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* kick */ | |
| 629 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) /* punch */ | |
| 630 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 631 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 632 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 633 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 634 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 635 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 604 | 636 | |
| 605 | PORT_START("IN2") | |
| 606 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 607 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 608 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 609 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 610 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 611 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 612 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON3 ) | |
| 613 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON4 ) | |
| 614 | INPUT_PORTS_END | |
| 637 | PORT_START("P2") | |
| 638 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) /* kick */ | |
| 639 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) /* punch */ | |
| 640 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 641 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 642 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 643 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 644 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 645 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 615 | 646 | |
| 616 | static INPUT_PORTS_START( shangkid ) | |
| 617 | 647 | PORT_START("DSW") |
| 618 | 648 | /* There are also two potentiometers on the PCB for volume: |
| 619 | 649 | ** RV1 - Music |
| r3115 | r3116 | |
| 642 | 672 | PORT_DIPSETTING( 0x40, DEF_STR( Medium ) ) |
| 643 | 673 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) |
| 644 | 674 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) |
| 645 | ||
| 646 | PORT_START("IN0") | |
| 647 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 648 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 649 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) /* service */ | |
| 650 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 651 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 652 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 653 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 654 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) /* busy flag? */ | |
| 655 | ||
| 656 | PORT_START("IN1") | |
| 657 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) /* kick */ | |
| 658 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) /* punch */ | |
| 659 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 660 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 661 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 662 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 663 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 664 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 665 | ||
| 666 | PORT_START("IN2") | |
| 667 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* kick */ | |
| 668 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) /* punch */ | |
| 669 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 670 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 671 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 672 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 673 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 674 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 675 | 675 | INPUT_PORTS_END |
| 676 | 676 | |
| 677 | 677 | /***************************************************************************************/ |
| r3115 | r3116 | |
|---|---|---|
| 116 | 116 | |
| 117 | 117 | |
| 118 | 118 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 119 | AM_RANGE(0x1200, 0x1200) AM_READ(input_port_4_r) /* DIP 2 */ | |
| 120 | AM_RANGE(0x1280, 0x1280) AM_READ(input_port_0_r) /* IO Coin */ | |
| 121 | AM_RANGE(0x1281, 0x1281) AM_READ(input_port_1_r) /* P1 IO */ | |
| 122 | AM_RANGE(0x1282, 0x1282) AM_READ(input_port_2_r) /* P2 IO */ | |
| 123 | AM_RANGE(0x1283, 0x1283) AM_READ(input_port_3_r) /* DIP 1 */ | |
| 119 | AM_RANGE(0x1200, 0x1200) AM_READ_PORT("DSW2") | |
| 120 | AM_RANGE(0x1280, 0x1280) AM_READ_PORT("SYSTEM") | |
| 121 | AM_RANGE(0x1281, 0x1281) AM_READ_PORT("IN0") | |
| 122 | AM_RANGE(0x1282, 0x1282) AM_READ_PORT("IN1") | |
| 123 | AM_RANGE(0x1283, 0x1283) AM_READ_PORT("DSW1") | |
| 124 | 124 | AM_RANGE(0x1800, 0x1fff) AM_READ(SMH_RAM) |
| 125 | 125 | AM_RANGE(0x2800, 0x3fff) AM_READ(SMH_RAM) |
| 126 | 126 | AM_RANGE(0x6000, 0xffff) AM_READ(SMH_ROM) |
| r3115 | r3116 | |
| 152 | 152 | static ADDRESS_MAP_START( reaktor_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 153 | 153 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 154 | 154 | /* all usual addresses +0x8000 */ |
| 155 | AM_RANGE(0x9200, 0x9200) AM_READ(input_port_4_r) /* DIP 2 */ | |
| 156 | AM_RANGE(0x9280, 0x9280) AM_READ(input_port_0_r) /* IO Coin */ | |
| 157 | AM_RANGE(0x9281, 0x9281) AM_READ(input_port_1_r) /* P1 IO */ | |
| 158 | AM_RANGE(0x9282, 0x9282) AM_READ(input_port_2_r) /* P2 IO */ | |
| 159 | AM_RANGE(0x9283, 0x9283) AM_READ(input_port_3_r) /* DIP 1 */ | |
| 155 | AM_RANGE(0x9200, 0x9200) AM_READ_PORT("DSW2") | |
| 156 | AM_RANGE(0x9280, 0x9280) AM_READ_PORT("SYSTEM") | |
| 157 | AM_RANGE(0x9281, 0x9281) AM_READ_PORT("IN0") | |
| 158 | AM_RANGE(0x9282, 0x9282) AM_READ_PORT("IN1") | |
| 159 | AM_RANGE(0x9283, 0x9283) AM_READ_PORT("DSW1") | |
| 160 | 160 | AM_RANGE(0x9800, 0x9fff) AM_READ(SMH_RAM) |
| 161 | 161 | AM_RANGE(0xa800, 0xbfff) AM_READ(SMH_RAM) |
| 162 | 162 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 197 | 197 | ADDRESS_MAP_END |
| 198 | 198 | |
| 199 | 199 | static ADDRESS_MAP_START( mastkin_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 200 | AM_RANGE(0x1200, 0x1200) AM_READ(input_port_4_r) /* DIP 2 */ | |
| 201 | AM_RANGE(0x1280, 0x1280) AM_READ(input_port_0_r) /* IO Coin */ | |
| 202 | AM_RANGE(0x1281, 0x1281) AM_READ(input_port_1_r) /* P1 IO */ | |
| 203 | // AM_RANGE(0x1282, 0x1282) AM_READ(input_port_2_r) /* unused */ | |
| 204 | AM_RANGE(0x1283, 0x1283) AM_READ(input_port_3_r) /* DIP 1 */ | |
| 200 | AM_RANGE(0x1200, 0x1200) AM_READ_PORT("DSW2") | |
| 201 | AM_RANGE(0x1280, 0x1280) AM_READ_PORT("SYSTEM") | |
| 202 | AM_RANGE(0x1281, 0x1281) AM_READ_PORT("IN0") | |
| 203 | // AM_RANGE(0x1282, 0x1282) AM_READ_PORT("IN1") /* unused */ | |
| 204 | AM_RANGE(0x1283, 0x1283) AM_READ_PORT("DSW1") | |
| 205 | 205 | AM_RANGE(0x1800, 0x1fff) AM_READ(SMH_RAM) |
| 206 | 206 | AM_RANGE(0x2800, 0x3fff) AM_READ(SMH_RAM) |
| 207 | 207 | AM_RANGE(0x6000, 0xffff) AM_READ(SMH_ROM) |
| r3115 | r3116 | |
| 235 | 235 | AM_RANGE(0x1083, 0x1084) AM_WRITE(coin_w) |
| 236 | 236 | AM_RANGE(0x1087, 0x1087) AM_WRITE(interrupt_enable_w) |
| 237 | 237 | AM_RANGE(0x1100, 0x1100) AM_WRITE(soundlatch_w) |
| 238 | AM_RANGE(0x1200, 0x1200) AM_READ(input_port_4_r) /* DIP 2 */ | |
| 239 | AM_RANGE(0x1280, 0x1280) AM_READ(input_port_0_r) /* IO Coin */ | |
| 240 | AM_RANGE(0x1281, 0x1281) AM_READ(input_port_1_r) /* P1 IO */ | |
| 241 | AM_RANGE(0x1282, 0x1282) AM_READ(input_port_2_r) /* P2 IO */ | |
| 242 | AM_RANGE(0x1283, 0x1283) AM_READ(input_port_3_r) /* DIP 1 */ | |
| 238 | AM_RANGE(0x1200, 0x1200) AM_READ_PORT("DSW2") | |
| 239 | AM_RANGE(0x1280, 0x1280) AM_READ_PORT("SYSTEM") | |
| 240 | AM_RANGE(0x1281, 0x1281) AM_READ_PORT("IN0") | |
| 241 | AM_RANGE(0x1282, 0x1282) AM_READ_PORT("IN1") | |
| 242 | AM_RANGE(0x1283, 0x1283) AM_READ_PORT("DSW1") | |
| 243 | 243 | AM_RANGE(0x1800, 0x183f) AM_RAM AM_BASE(&spriteram_2) |
| 244 | 244 | AM_RANGE(0x1840, 0x185f) AM_RAM AM_BASE(&trackfld_scroll) |
| 245 | 245 | AM_RANGE(0x1860, 0x1bff) AM_RAM |
| r3115 | r3116 | |
| 308 | 308 | |
| 309 | 309 | |
| 310 | 310 | static INPUT_PORTS_START( trackfld ) |
| 311 | PORT_START(" | |
| 311 | PORT_START("SYSTEM") | |
| 312 | 312 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 313 | 313 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 314 | 314 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 318 | 318 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 319 | 319 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 320 | 320 | |
| 321 | PORT_START("IN | |
| 321 | PORT_START("IN0") | |
| 322 | 322 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 323 | 323 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 324 | 324 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 328 | 328 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 329 | 329 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 330 | 330 | |
| 331 | PORT_START("IN | |
| 331 | PORT_START("IN1") | |
| 332 | 332 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) //PORT_COCKTAIL |
| 333 | 333 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) //PORT_COCKTAIL |
| 334 | 334 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) //PORT_COCKTAIL |
| r3115 | r3116 | |
| 338 | 338 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) //PORT_COCKTAIL |
| 339 | 339 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 340 | 340 | |
| 341 | PORT_START("DSW | |
| 341 | PORT_START("DSW1") | |
| 342 | 342 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 343 | 343 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 344 | 344 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 376 | 376 | /* 0x00 disables Coin 2. It still accepts coins and makes the sound, but |
| 377 | 377 | it doesn't give you any credit */ |
| 378 | 378 | |
| 379 | PORT_START("DSW | |
| 379 | PORT_START("DSW2") | |
| 380 | 380 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) |
| 381 | 381 | PORT_DIPSETTING( 0x01, "1" ) |
| 382 | 382 | PORT_DIPSETTING( 0x00, "2" ) |
| r3115 | r3116 | |
| 385 | 385 | PORT_DIPSETTING( 0x00, "Game Continues" ) |
| 386 | 386 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) ) |
| 387 | 387 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 388 | PORT_DIPSETTING( 0x04, DEF_STR( Cocktail )) | |
| 388 | PORT_DIPSETTING( 0x04, DEF_STR( Cocktail ) ) | |
| 389 | 389 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) |
| 390 | 390 | PORT_DIPSETTING( 0x08, DEF_STR( None ) ) |
| 391 | 391 | PORT_DIPSETTING( 0x00, "100000" ) |
| r3115 | r3116 | |
| 403 | 403 | INPUT_PORTS_END |
| 404 | 404 | |
| 405 | 405 | static INPUT_PORTS_START( atlantol ) |
| 406 | PORT_START(" | |
| 406 | PORT_START("SYSTEM") | |
| 407 | 407 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 408 | 408 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 409 | 409 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 413 | 413 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 414 | 414 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 415 | 415 | |
| 416 | PORT_START("IN | |
| 416 | PORT_START("IN0") | |
| 417 | 417 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 418 | 418 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 419 | 419 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 423 | 423 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 424 | 424 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 425 | 425 | |
| 426 | PORT_START("IN | |
| 426 | PORT_START("IN1") | |
| 427 | 427 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(3) //PORT_COCKTAIL |
| 428 | 428 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) //PORT_COCKTAIL |
| 429 | 429 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(3) //PORT_COCKTAIL |
| r3115 | r3116 | |
| 433 | 433 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(4) //PORT_COCKTAIL |
| 434 | 434 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 435 | 435 | |
| 436 | PORT_START("DSW | |
| 436 | PORT_START("DSW1") | |
| 437 | 437 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 438 | 438 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 439 | 439 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 471 | 471 | /* 0x00 disables Coin 2. It still accepts coins and makes the sound, but |
| 472 | 472 | it doesn't give you any credit */ |
| 473 | 473 | |
| 474 | PORT_START("DSW | |
| 474 | PORT_START("DSW2") | |
| 475 | 475 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) |
| 476 | 476 | PORT_DIPSETTING( 0x01, "1" ) |
| 477 | 477 | PORT_DIPSETTING( 0x00, "2" ) |
| r3115 | r3116 | |
| 498 | 498 | INPUT_PORTS_END |
| 499 | 499 | |
| 500 | 500 | static INPUT_PORTS_START( mastkin ) |
| 501 | PORT_START(" | |
| 501 | PORT_START("SYSTEM") | |
| 502 | 502 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 503 | 503 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 504 | 504 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 508 | 508 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 509 | 509 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 510 | 510 | |
| 511 | PORT_START("IN | |
| 511 | PORT_START("IN0") | |
| 512 | 512 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| 513 | 513 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 514 | 514 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| r3115 | r3116 | |
| 518 | 518 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 519 | 519 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 520 | 520 | |
| 521 | PORT_START("DSW | |
| 521 | PORT_START("DSW1") | |
| 522 | 522 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) |
| 523 | 523 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 524 | 524 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 539 | 539 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) // Stored at 0x284e but not read back |
| 540 | 540 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) // Cocktail Mode, not used |
| 541 | 541 | |
| 542 | PORT_START("DSW | |
| 542 | PORT_START("DSW2") | |
| 543 | 543 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_B ) ) |
| 544 | 544 | PORT_DIPSETTING( 0x0a, DEF_STR( 4C_1C ) ) |
| 545 | 545 | PORT_DIPSETTING( 0x09, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 577 | 577 | INPUT_PORTS_END |
| 578 | 578 | |
| 579 | 579 | static INPUT_PORTS_START( wizzquiz ) |
| 580 | PORT_START(" | |
| 580 | PORT_START("SYSTEM") | |
| 581 | 581 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 582 | 582 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 583 | 583 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 587 | 587 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 588 | 588 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 589 | 589 | |
| 590 | PORT_START("IN | |
| 590 | PORT_START("IN0") | |
| 591 | 591 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("P2 - C") |
| 592 | 592 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 - B") |
| 593 | 593 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("P2 - A") |
| r3115 | r3116 | |
| 597 | 597 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 - A") |
| 598 | 598 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 599 | 599 | |
| 600 | PORT_START("IN | |
| 600 | PORT_START("IN1") | |
| 601 | 601 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 602 | 602 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 603 | 603 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 607 | 607 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 608 | 608 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 609 | 609 | |
| 610 | PORT_START("DSW | |
| 610 | PORT_START("DSW1") | |
| 611 | 611 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 612 | 612 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 613 | 613 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 643 | 643 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 644 | 644 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) // must set both Free Play |
| 645 | 645 | |
| 646 | PORT_START("DSW | |
| 646 | PORT_START("DSW2") | |
| 647 | 647 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 648 | 648 | PORT_DIPSETTING( 0x03, "3" ) |
| 649 | 649 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
| 670 | 670 | INPUT_PORTS_END |
| 671 | 671 | |
| 672 | 672 | static INPUT_PORTS_START( reaktor ) |
| 673 | PORT_START(" | |
| 673 | PORT_START("SYSTEM") | |
| 674 | 674 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 675 | 675 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 676 | 676 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 680 | 680 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 681 | 681 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 682 | 682 | |
| 683 | PORT_START("IN | |
| 683 | PORT_START("IN0") | |
| 684 | 684 | /* controls seem to be shared by both players */ |
| 685 | 685 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| 686 | 686 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| r3115 | r3116 | |
| 691 | 691 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) // probably unused |
| 692 | 692 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) // probably unused |
| 693 | 693 | |
| 694 | PORT_START("IN | |
| 694 | PORT_START("IN1") | |
| 695 | 695 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) // probably unused |
| 696 | 696 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) // probably unused |
| 697 | 697 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) // probably unused |
| r3115 | r3116 | |
| 701 | 701 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) // probably unused |
| 702 | 702 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) // probably unused |
| 703 | 703 | |
| 704 | PORT_START("DSW | |
| 704 | PORT_START("DSW1") | |
| 705 | 705 | PORT_DIPNAME( 0x01, 0x01, "Pricing" ) |
| 706 | 706 | PORT_DIPSETTING( 0x01, "10p / 25c per play" ) |
| 707 | 707 | PORT_DIPSETTING( 0x00, "20p / 50c per play" ) |
| r3115 | r3116 | |
| 726 | 726 | PORT_DIPSETTING( 0x80, "20000" ) |
| 727 | 727 | PORT_DIPSETTING( 0x00, "30000" ) |
| 728 | 728 | |
| 729 | PORT_START("DSW | |
| 729 | PORT_START("DSW2") | |
| 730 | 730 | PORT_DIPNAME( 0x01, 0x01, "Game Orientation" ) |
| 731 | 731 | PORT_DIPSETTING( 0x01, "For Vertical Monitor" ) |
| 732 | 732 | PORT_DIPSETTING( 0x00, "For Horizontal Monitor" ) |
| r3115 | r3116 | |
|---|---|---|
| 136 | 136 | |
| 137 | 137 | |
| 138 | 138 | |
| 139 | static | |
| 139 | static CUSTOM_I | |
| 140 | 140 | { |
| 141 | int data = input_port_read(machine, "DSW1"); | |
| 142 | /* bit 4 is busy pin level */ | |
| 143 | if( vlm5030_bsy() ) data &= ~0x10; | |
| 144 | else data |= 0x10; | |
| 145 | return data; | |
| 141 | /* bit 4 of DSW1 is busy pin level */ | |
| 142 | return (vlm5030_bsy()) ? 0x00 : 0x01; | |
| 146 | 143 | } |
| 147 | 144 | |
| 148 | 145 | static WRITE8_HANDLER( punchout_speech_reset_w ) |
| r3115 | r3116 | |
| 429 | 426 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") |
| 430 | 427 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 431 | 428 | AM_RANGE(0x02, 0x02) AM_READ_PORT("DSW2") |
| 432 | AM_RANGE(0x03, 0x03) AM_READ | |
| 429 | AM_RANGE(0x03, 0x03) AM_READ | |
| 433 | 430 | |
| 434 | 431 | /* protection ports - Super Punchout only (move to install handler?) */ |
| 435 | 432 | AM_RANGE(0x07, 0x07) AM_READ(spunchout_prot_0_r) |
| r3115 | r3116 | |
| 551 | 548 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_5C ) ) |
| 552 | 549 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_6C ) ) |
| 553 | 550 | PORT_DIPSETTING( 0x0f, DEF_STR( Free_Play ) ) |
| 554 | PORT_BIT( 0x10, IP_ACTIVE_ | |
| 551 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUST | |
| 555 | 552 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 556 | 553 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x00, "R18:!1" ) /* Not documented, R18 resistor */ |
| 557 | 554 | PORT_DIPNAME( 0x80, 0x00, "Copyright" ) PORT_DIPLOCATION("R19:!1") /* Not documented, R19 resistor */ |
| r3115 | r3116 | |
| 638 | 635 | PORT_DIPSETTING( 0x0d, "d" ) |
| 639 | 636 | PORT_DIPSETTING( 0x0e, "e" ) |
| 640 | 637 | PORT_DIPSETTING( 0x0f, "f" ) |
| 638 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(punchout_vlm5030_busy_r, NULL) /* VLM5030 busy signal */ | |
| 641 | 639 | PORT_DIPNAME( 0x40, 0x00, "Coin Slots" ) PORT_DIPLOCATION("R18:!1") /* R18 resistor */ |
| 642 | 640 | PORT_DIPSETTING( 0x40, "1" ) |
| 643 | 641 | PORT_DIPSETTING( 0x00, "2" ) |
| r3115 | r3116 | |
|---|---|---|
| 64 | 64 | VIDEO_START( tecmo ); |
| 65 | 65 | VIDEO_UPDATE( tecmo ); |
| 66 | 66 | |
| 67 | static int adpcm_pos,adpcm_end; | |
| 68 | static int adpcm_data; | |
| 67 | 69 | |
| 68 | 70 | |
| 69 | 71 | static WRITE8_HANDLER( tecmo_bankswitch_w ) |
| r3115 | r3116 | |
| 82 | 84 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| 83 | 85 | } |
| 84 | 86 | |
| 85 | static int adpcm_pos,adpcm_end; | |
| 86 | ||
| 87 | 87 | static WRITE8_HANDLER( tecmo_adpcm_start_w ) |
| 88 | 88 | { |
| 89 | 89 | adpcm_pos = data << 8; |
| r3115 | r3116 | |
| 99 | 99 | } |
| 100 | 100 | static void tecmo_adpcm_int(running_machine *machine, int num) |
| 101 | 101 | { |
| 102 | static int adpcm_data = -1; | |
| 103 | ||
| 104 | 102 | if (adpcm_pos >= adpcm_end || |
| 105 | 103 | adpcm_pos >= memory_region_length(machine, "adpcm")) |
| 106 | 104 | msm5205_reset_w(0,1); |
| r3115 | r3116 | |
| 124 | 122 | AM_RANGE(0x0000, 0xbfff) AM_READ(SMH_ROM) |
| 125 | 123 | AM_RANGE(0xc000, 0xefff) AM_READ(SMH_RAM) |
| 126 | 124 | AM_RANGE(0xf000, 0xf7ff) AM_READ(SMH_BANK1) |
| 127 | AM_RANGE(0xf800, 0xf800) AM_READ(input_port_0_r) | |
| 128 | AM_RANGE(0xf801, 0xf801) AM_READ(input_port_1_r) | |
| 129 | AM_RANGE(0xf802, 0xf802) AM_READ(input_port_2_r) | |
| 130 | AM_RANGE(0xf803, 0xf803) AM_READ(input_port_3_r) | |
| 131 | AM_RANGE(0xf804, 0xf804) AM_READ(input_port_4_r) | |
| 132 | AM_RANGE(0xf805, 0xf805) AM_READ(input_port_5_r) | |
| 133 | AM_RANGE(0xf806, 0xf806) AM_READ(input_port_6_r) | |
| 134 | AM_RANGE(0xf807, 0xf807) AM_READ(input_port_7_r) | |
| 135 | AM_RANGE(0xf808, 0xf808) AM_READ(input_port_8_r) | |
| 136 | AM_RANGE(0xf809, 0xf809) AM_READ(input_port_9_r) | |
| 137 | AM_RANGE(0xf80f, 0xf80f) AM_READ(input_port_10_r) | |
| 125 | AM_RANGE(0xf800, 0xf800) AM_READ_PORT("JOY1") | |
| 126 | AM_RANGE(0xf801, 0xf801) AM_READ_PORT("BUTTONS1") | |
| 127 | AM_RANGE(0xf802, 0xf802) AM_READ_PORT("JOY2") | |
| 128 | AM_RANGE(0xf803, 0xf803) AM_READ_PORT("BUTTONS2") | |
| 129 | AM_RANGE(0xf804, 0xf804) AM_READ_PORT("SYS_0") | |
| 130 | AM_RANGE(0xf805, 0xf805) AM_READ_PORT("SYS_1") | |
| 131 | AM_RANGE(0xf806, 0xf806) AM_READ_PORT("DSWA_0") | |
| 132 | AM_RANGE(0xf807, 0xf807) AM_READ_PORT("DSWA_1") | |
| 133 | AM_RANGE(0xf808, 0xf808) AM_READ_PORT("DSWB_0") | |
| 134 | AM_RANGE(0xf809, 0xf809) AM_READ_PORT("DSWB_1") | |
| 135 | AM_RANGE(0xf80f, 0xf80f) AM_READ_PORT("SYS_2") | |
| 138 | 136 | ADDRESS_MAP_END |
| 139 | 137 | |
| 140 | 138 | static ADDRESS_MAP_START( rygar_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 228 | 226 | |
| 229 | 227 | |
| 230 | 228 | static INPUT_PORTS_START( rygar ) |
| 231 | PORT_START("JOY1") | |
| 229 | PORT_START("JOY1") | |
| 232 | 230 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 233 | 231 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 234 | 232 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 235 | 233 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 236 | 234 | |
| 237 | PORT_START("BUTTONS1") | |
| 235 | PORT_START("BUTTONS1") | |
| 238 | 236 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 239 | 237 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 240 | 238 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 241 | 239 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 242 | 240 | |
| 243 | PORT_START("JOY2") | |
| 241 | PORT_START("JOY2") | |
| 244 | 242 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 245 | 243 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 246 | 244 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 247 | 245 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 248 | 246 | |
| 249 | PORT_START("BUTTONS2") | |
| 247 | PORT_START("BUTTONS2") | |
| 250 | 248 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 251 | 249 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| 252 | 250 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 253 | 251 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 254 | 252 | |
| 255 | PORT_START("SYS_0") | |
| 253 | PORT_START("SYS_0") | |
| 256 | 254 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 ) |
| 257 | 255 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| 258 | 256 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 259 | 257 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 260 | 258 | |
| 261 | PORT_START("SYS_1") /* unused? */ | |
| 259 | PORT_START("SYS_1") /* unused? */ | |
| 262 | 260 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 263 | 261 | |
| 264 | PORT_START("DSWA_0") /* DSWA bit 0-3 */ | |
| 262 | PORT_START("SYS_2") /* unused? */ | |
| 263 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 264 | ||
| 265 | PORT_START("DSWA_0") | |
| 265 | 266 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) |
| 266 | 267 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| 267 | 268 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 273 | 274 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 274 | 275 | PORT_DIPSETTING( 0x0C, DEF_STR( 1C_3C ) ) |
| 275 | 276 | |
| 276 | PORT_START("DSWA_1") | |
| 277 | PORT_START("DSWA_1") | |
| 277 | 278 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 278 | 279 | PORT_DIPSETTING( 0x03, "2" ) |
| 279 | 280 | PORT_DIPSETTING( 0x00, "3" ) |
| r3115 | r3116 | |
| 286 | 287 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 287 | 288 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 288 | 289 | |
| 289 | PORT_START("DSWB_0") | |
| 290 | PORT_START("DSWB_0") | |
| 290 | 291 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) |
| 291 | 292 | PORT_DIPSETTING( 0x00, "50000 200000 500000" ) |
| 292 | 293 | PORT_DIPSETTING( 0x01, "100000 300000 600000" ) |
| r3115 | r3116 | |
| 299 | 300 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 300 | 301 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 301 | 302 | |
| 302 | PORT_START("DSWB_1") | |
| 303 | PORT_START("DSWB_1") | |
| 303 | 304 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) |
| 304 | 305 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 305 | 306 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 311 | 312 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Allow_Continue ) ) |
| 312 | 313 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 313 | 314 | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 314 | ||
| 315 | PORT_START("UNK") /* unused? */ | |
| 316 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 317 | 315 | INPUT_PORTS_END |
| 318 | 316 | |
| 319 | 317 | static INPUT_PORTS_START( gemini ) |
| 320 | PORT_START("JOY1") | |
| 318 | PORT_START("JOY1") | |
| 321 | 319 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 322 | 320 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 323 | 321 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 324 | 322 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 325 | 323 | |
| 326 | PORT_START("BUTTONS1") | |
| 324 | PORT_START("BUTTONS1") | |
| 327 | 325 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 328 | 326 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 329 | 327 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 330 | 328 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 331 | 329 | |
| 332 | PORT_START("JOY2") | |
| 330 | PORT_START("JOY2") | |
| 333 | 331 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 334 | 332 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 335 | 333 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 336 | 334 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 337 | 335 | |
| 338 | PORT_START("BUTTONS2") | |
| 336 | PORT_START("BUTTONS2") | |
| 339 | 337 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| 340 | 338 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 341 | 339 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 342 | 340 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 343 | 341 | |
| 344 | PORT_START("SYS_0") /* unused? */ | |
| 342 | PORT_START("SYS_0") /* unused? */ | |
| 345 | 343 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 346 | 344 | |
| 347 | PORT_START("SYS_1") | |
| 345 | PORT_START("SYS_1") | |
| 348 | 346 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 349 | 347 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 350 | 348 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 351 | 349 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 352 | 350 | |
| 353 | PORT_START("DSWA_0") /* DSWA bit 0-3 */ | |
| 351 | PORT_START("SYS_2") /* unused? */ | |
| 352 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 353 | ||
| 354 | PORT_START("DSWA_0") | |
| 354 | 355 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) ) |
| 355 | 356 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_1C ) ) |
| 356 | 357 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 364 | 365 | PORT_DIPSETTING( 0x00, "Round 6" ) |
| 365 | 366 | PORT_DIPSETTING( 0x08, "Round 7" ) |
| 366 | 367 | |
| 367 | PORT_START("DSWA_1") | |
| 368 | PORT_START("DSWA_1") | |
| 368 | 369 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_B ) ) |
| 369 | 370 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_1C ) ) |
| 370 | 371 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 378 | 379 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 379 | 380 | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 380 | 381 | |
| 381 | PORT_START("DSWB_0") | |
| 382 | PORT_START("DSWB_0") | |
| 382 | 383 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 383 | 384 | PORT_DIPSETTING( 0x03, "2" ) |
| 384 | 385 | PORT_DIPSETTING( 0x00, "3" ) |
| r3115 | r3116 | |
| 390 | 391 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| 391 | 392 | PORT_DIPSETTING( 0x0c, DEF_STR( Hardest ) ) |
| 392 | 393 | |
| 393 | PORT_START("DSWB_1") | |
| 394 | PORT_START("DSWB_1") | |
| 394 | 395 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Bonus_Life ) ) |
| 395 | 396 | PORT_DIPSETTING( 0x00, "50000 200000" ) |
| 396 | 397 | PORT_DIPSETTING( 0x01, "50000 300000" ) |
| r3115 | r3116 | |
| 403 | 404 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) |
| 404 | 405 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 405 | 406 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 406 | ||
| 407 | PORT_START("UNK") /* unused? */ | |
| 408 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 409 | 407 | INPUT_PORTS_END |
| 410 | 408 | |
| 411 | 409 | static INPUT_PORTS_START( silkworm ) |
| 412 | PORT_START("JOY1") | |
| 410 | PORT_START("JOY1") | |
| 413 | 411 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 414 | 412 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 415 | 413 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 416 | 414 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 417 | 415 | |
| 418 | PORT_START("BUTTONS1") | |
| 416 | PORT_START("BUTTONS1") | |
| 419 | 417 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 420 | 418 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 421 | 419 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) |
| 422 | 420 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* unused? */ |
| 423 | 421 | |
| 424 | PORT_START("JOY2") | |
| 422 | PORT_START("JOY2") | |
| 425 | 423 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 426 | 424 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 427 | 425 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 428 | 426 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 429 | 427 | |
| 430 | PORT_START("BUTTONS2") | |
| 428 | PORT_START("BUTTONS2") | |
| 431 | 429 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 432 | 430 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 433 | 431 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 434 | 432 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* unused? */ |
| 435 | 433 | |
| 436 | PORT_START("SYS_0") /* unused? */ | |
| 434 | PORT_START("SYS_0") /* unused? */ | |
| 437 | 435 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 438 | 436 | |
| 439 | PORT_START("SYS_1") /* unused? */ | |
| 437 | PORT_START("SYS_1") /* unused? */ | |
| 440 | 438 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 441 | 439 | |
| 442 | PORT_START("DSWA_0") /* DSWA bit 0-3 */ | |
| 440 | PORT_START("SYS_2") | |
| 441 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 442 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 443 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 444 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 445 | ||
| 446 | PORT_START("DSWA_0") | |
| 443 | 447 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) |
| 444 | 448 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| 445 | 449 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 451 | 455 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 452 | 456 | PORT_DIPSETTING( 0x0C, DEF_STR( 1C_3C ) ) |
| 453 | 457 | |
| 454 | PORT_START("DSWA_1") | |
| 458 | PORT_START("DSWA_1") | |
| 455 | 459 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 456 | 460 | PORT_DIPSETTING( 0x03, "2" ) |
| 457 | 461 | PORT_DIPSETTING( 0x00, "3" ) |
| r3115 | r3116 | |
| 464 | 468 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 465 | 469 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 466 | 470 | |
| 467 | PORT_START("DSWB_0") | |
| 471 | PORT_START("DSWB_0") | |
| 468 | 472 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Bonus_Life ) ) |
| 469 | 473 | PORT_DIPSETTING( 0x00, "50000 200000 500000" ) |
| 470 | 474 | PORT_DIPSETTING( 0x01, "100000 300000 800000" ) |
| r3115 | r3116 | |
| 478 | 482 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 479 | 483 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 480 | 484 | |
| 481 | PORT_START("DSWB_1") | |
| 485 | PORT_START("DSWB_1") | |
| 482 | 486 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Difficulty ) ) |
| 483 | 487 | PORT_DIPSETTING( 0x00, "0" ) |
| 484 | 488 | PORT_DIPSETTING( 0x01, "1" ) |
| r3115 | r3116 | |
| 490 | 494 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Allow_Continue ) ) |
| 491 | 495 | PORT_DIPSETTING( 0x08, DEF_STR( No ) ) |
| 492 | 496 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 493 | ||
| 494 | PORT_START("UNK") /* COIN */ | |
| 495 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 496 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 497 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 498 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 499 | 497 | INPUT_PORTS_END |
| 500 | 498 | |
| 501 | 499 | |
| r3115 | r3116 | |
| 561 | 559 | }; |
| 562 | 560 | |
| 563 | 561 | |
| 562 | static MACHINE_RESET( rygar ) | |
| 563 | { | |
| 564 | adpcm_pos = 0; | |
| 565 | adpcm_end = 0; | |
| 566 | adpcm_data = -1; | |
| 567 | } | |
| 564 | 568 | |
| 565 | 569 | static MACHINE_DRIVER_START( rygar ) |
| 566 | 570 | |
| r3115 | r3116 | |
| 586 | 590 | MDRV_VIDEO_START(tecmo) |
| 587 | 591 | MDRV_VIDEO_UPDATE(tecmo) |
| 588 | 592 | |
| 593 | MDRV_MACHINE_RESET( rygar ) | |
| 594 | ||
| 589 | 595 | /* sound hardware */ |
| 590 | 596 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 591 | 597 |
| r3115 | r3116 | |
|---|---|---|
| 21 | 21 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 22 | 22 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 23 | 23 | AM_RANGE(0x8000, 0x8fff) AM_READ(SMH_RAM) |
| 24 | AM_RANGE(0xc000, 0xc000) AM_READ(input_port_0_r) | |
| 25 | AM_RANGE(0xc001, 0xc001) AM_READ(input_port_1_r) | |
| 24 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("DSW") | |
| 25 | AM_RANGE(0xc001, 0xc001) AM_READ_PORT("INPUTS") | |
| 26 | 26 | AM_RANGE(0xc002, 0xc002) AM_READ(okim6295_status_0_r) |
| 27 | 27 | AM_RANGE(0xe000, 0xffff) AM_READ(SMH_RAM) |
| 28 | 28 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | static INPUT_PORTS_START( news ) |
| 42 | PORT_START("DSW") | |
| 42 | PORT_START("DSW") | |
| 43 | 43 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SWA:1,2") |
| 44 | 44 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| 45 | 45 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 71 | 71 | INPUT_PORTS_END |
| 72 | 72 | |
| 73 | 73 | static INPUT_PORTS_START( newsa ) |
| 74 | PORT_START("DSW") | |
| 74 | PORT_START("DSW") | |
| 75 | 75 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SWA:1,2") |
| 76 | 76 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| 77 | 77 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 10 | 10 | #include "deprecat.h" |
| 11 | 11 | #include "machine/konami1.h" |
| 12 | 12 | #include "cpu/m6809/m6809.h" |
| 13 | #include "cpu/ | |
| 13 | #include "cpu/mcs48 | |
| 14 | 14 | #include "sound/sn76496.h" |
| 15 | 15 | #include "sound/dac.h" |
| 16 | 16 | |
| r3115 | r3116 | |
| 143 | 143 | |
| 144 | 144 | static ADDRESS_MAP_START( i8039_readport, ADDRESS_SPACE_IO, 8 ) |
| 145 | 145 | AM_RANGE(0x00, 0xff) AM_READ(soundlatch_r) |
| 146 | AM_RANGE( | |
| 146 | AM_RANGE(MCS48 | |
| 147 | 147 | ADDRESS_MAP_END |
| 148 | 148 | |
| 149 | 149 | static ADDRESS_MAP_START( i8039_writeport, ADDRESS_SPACE_IO, 8 ) |
| 150 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(dac_0_data_w) | |
| 151 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(i8039_irqen_w) | |
| 152 | AM_RANGE(I8039_t0, I8039_t0) AM_WRITE(i8039_T0_w) | |
| 150 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(dac_0_data_w) | |
| 151 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(i8039_irqen_w) | |
| 152 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_WRITE(i8039_T0_w) | |
| 153 | 153 | ADDRESS_MAP_END |
| 154 | 154 | |
| 155 | 155 |
| r3115 | r3116 | |
|---|---|---|
| 66 | 66 | |
| 67 | 67 | static void update_main_irqs(running_machine *machine) |
| 68 | 68 | { |
| 69 | int irq = 0; | |
| 69 | cpunum_set_input_line(machine, 0, 2, timer_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 70 | cpunum_set_input_line(machine, 1, 2, timer_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 71 | cpunum_set_input_line(machine, 2, 2, timer_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 72 | cpunum_set_input_line(machine, 0, 4, vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 73 | cpunum_set_input_line(machine, 1, 4, vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 74 | cpunum_set_input_line(machine, 2, 4, vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 75 | cpunum_set_input_line(machine, 0, 6, timer_irq_state && vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 76 | cpunum_set_input_line(machine, 1, 6, timer_irq_state && vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 77 | cpunum_set_input_line(machine, 2, 6, timer_irq_state && vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 70 | 78 | |
| 71 | /* the IRQs are effectively ORed together */ | |
| 72 | if (vblank_irq_state) | |
| 73 | irq |= 4; | |
| 74 | if (timer_irq_state) | |
| 75 | irq |= 2; | |
| 76 | ||
| 77 | /* assert the lines that are live, or clear everything if nothing is live */ | |
| 78 | if (irq != 0) | |
| 79 | { | |
| 80 | cpunum_set_input_line(machine, 0, irq, ASSERT_LINE); | |
| 81 | cpunum_set_input_line(machine, 1, irq, ASSERT_LINE); | |
| 82 | cpunum_set_input_line(machine, 2, irq, ASSERT_LINE); | |
| 79 | if(timer_irq_state || vblank_irq_state) | |
| 83 | 80 | cpu_boost_interleave(attotime_zero, ATTOTIME_IN_USEC(50)); |
| 84 | } | |
| 85 | else | |
| 86 | { | |
| 87 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 88 | cpunum_set_input_line(machine, 1, 7, CLEAR_LINE); | |
| 89 | cpunum_set_input_line(machine, 2, 7, CLEAR_LINE); | |
| 90 | } | |
| 91 | 81 | } |
| 92 | 82 | |
| 93 | 83 |
| r3115 | r3116 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | static void update_interrupts(running_machine *machine) |
| 34 | 34 | { |
| 35 | int newstate = 0; | |
| 36 | ||
| 37 | if (atarigen_scanline_int_state) | |
| 38 | newstate = 4; | |
| 39 | ||
| 40 | if (newstate) | |
| 41 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 42 | else | |
| 43 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 35 | cpunum_set_input_line(machine, 0, 4, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 44 | 36 | } |
| 45 | 37 | |
| 46 | 38 |
| r3115 | r3116 | |
|---|---|---|
| 147 | 147 | |
| 148 | 148 | static ADDRESS_MAP_START( readport, ADDRESS_SPACE_IO, 8 ) |
| 149 | 149 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 150 | AM_RANGE(0x10, 0x10) AM_READ(input_port_0_r) // inputs | |
| 151 | AM_RANGE(0x11, 0x11) AM_READ(input_port_1_r) // inputs | |
| 152 | AM_RANGE(0x12, 0x12) AM_READ(input_port_2_r) // inputs | |
| 153 | AM_RANGE(0x13, 0x13) AM_READ(input_port_3_r) | |
| 154 | AM_RANGE(0x14, 0x14) AM_READ(input_port_4_r) // inputs | |
| 150 | AM_RANGE(0x10, 0x10) AM_READ_PORT("SYSTEM") | |
| 151 | AM_RANGE(0x11, 0x11) AM_READ_PORT("P1") | |
| 152 | AM_RANGE(0x12, 0x12) AM_READ_PORT("P2") | |
| 153 | AM_RANGE(0x13, 0x13) AM_READ_PORT("DSW1") | |
| 154 | AM_RANGE(0x14, 0x14) AM_READ_PORT("DSW2") | |
| 155 | 155 | AM_RANGE(0x16, 0x16) AM_READ(speedspn_irq_ack_r) // @@@ could be watchdog, value is discarded |
| 156 | 156 | ADDRESS_MAP_END |
| 157 | 157 | |
| r3115 | r3116 | |
| 185 | 185 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 186 | 186 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 187 | 187 | |
| 188 | PORT_START("P1") | |
| 188 | PORT_START("P1") | |
| 189 | 189 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 190 | 190 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 191 | 191 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 195 | 195 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 196 | 196 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 197 | 197 | |
| 198 | PORT_START("P2") | |
| 198 | PORT_START("P2") | |
| 199 | 199 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 200 | 200 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 201 | 201 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 205 | 205 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 206 | 206 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 207 | 207 | |
| 208 | PORT_START("DSW1") | |
| 208 | PORT_START("DSW1") | |
| 209 | 209 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 210 | 210 | PORT_DIPSETTING( 0x01, DEF_STR( 5C_1C ) ) |
| 211 | 211 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 241 | 241 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) |
| 242 | 242 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) |
| 243 | 243 | |
| 244 | PORT_START("DSW2") | |
| 244 | PORT_START("DSW2") | |
| 245 | 245 | PORT_DIPNAME( 0x01, 0x01, "World Cup" ) |
| 246 | 246 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 247 | 247 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| r3115 | r3116 | |
|---|---|---|
| 169 | 169 | |
| 170 | 170 | static void update_main_irqs(running_machine *machine) |
| 171 | 171 | { |
| 172 | int irq = 0; | |
| 172 | cpunum_set_input_line(machine, 0, 2, irq2_state ? ASSERT_LINE : CLEAR_LINE); | |
| 173 | cpunum_set_input_line(machine, 0, 4, vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 174 | cpunum_set_input_line(machine, 0, 6, vblank_irq_state && irq2_state ? ASSERT_LINE : CLEAR_LINE); | |
| 173 | 175 | |
| 174 | /* the IRQs are effectively ORed together */ | |
| 175 | if (vblank_irq_state) | |
| 176 | irq |= 4; | |
| 177 | if (irq2_state) | |
| 178 | irq |= 2; | |
| 179 | ||
| 180 | /* assert the lines that are live, or clear everything if nothing is live */ | |
| 181 | if (irq != 0) | |
| 182 | { | |
| 183 | cpunum_set_input_line(machine, 0, irq, ASSERT_LINE); | |
| 176 | if(vblank_irq_state || irq2_state) | |
| 184 | 177 | cpu_boost_interleave(attotime_zero, ATTOTIME_IN_USEC(100)); |
| 185 | } | |
| 186 | else | |
| 187 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 188 | 178 | } |
| 189 | 179 | |
| 190 | 180 | |
| r3115 | r3116 | |
| 1554 | 1544 | ROM_RELOAD( 0x28000, 0x08000 ) |
| 1555 | 1545 | ROM_LOAD( "epr-10646.69", 0x30000, 0x08000, CRC(473cc411) SHA1(04ca2d047eb59581cd5d76e0ac6eca8b19eef497) ) |
| 1556 | 1546 | ROM_RELOAD( 0x38000, 0x08000 ) |
| 1547 | ||
| 1548 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 1549 | ROM_LOAD( "317-0034.key", 0x0000, 0x2000, CRC(263ca773) SHA1(8e80d69d61cf54fd02b0ca59dd397fa60c713f3d) ) | |
| 1557 | 1550 | ROM_END |
| 1558 | 1551 | |
| 1559 | 1552 | /************************************************************************************************************************** |
| r3115 | r3116 | |
| 1612 | 1605 | ROM_RELOAD( 0x28000, 0x08000 ) |
| 1613 | 1606 | ROM_LOAD( "epr-10646.69", 0x30000, 0x08000, CRC(473cc411) SHA1(04ca2d047eb59581cd5d76e0ac6eca8b19eef497) ) |
| 1614 | 1607 | ROM_RELOAD( 0x38000, 0x08000 ) |
| 1608 | ||
| 1609 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 1610 | ROM_LOAD( "317-0034.key", 0x0000, 0x2000, CRC(263ca773) SHA1(8e80d69d61cf54fd02b0ca59dd397fa60c713f3d) ) | |
| 1615 | 1611 | ROM_END |
| 1616 | 1612 | |
| 1617 | 1613 | /************************************************************************************************************************** |
| r3115 | r3116 | |
| 1670 | 1666 | ROM_RELOAD( 0x28000, 0x08000 ) |
| 1671 | 1667 | ROM_LOAD( "epr-10646.69", 0x30000, 0x08000, CRC(473cc411) SHA1(04ca2d047eb59581cd5d76e0ac6eca8b19eef497) ) |
| 1672 | 1668 | ROM_RELOAD( 0x38000, 0x08000 ) |
| 1669 | ||
| 1670 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 1671 | ROM_LOAD( "317-0034.key", 0x0000, 0x2000, CRC(263ca773) SHA1(8e80d69d61cf54fd02b0ca59dd397fa60c713f3d) ) | |
| 1673 | 1672 | ROM_END |
| 1674 | 1673 | |
| 1675 | 1674 | /************************************************************************************************************************** |
| r3115 | r3116 | |
| 1800 | 1799 | static DRIVER_INIT( shangon3 ) |
| 1801 | 1800 | { |
| 1802 | 1801 | outrun_generic_init(machine); |
| 1803 | fd1089_decrypt | |
| 1802 | fd1089b_decrypt | |
| 1804 | 1803 | custom_io_r = shangon_custom_io_r; |
| 1805 | 1804 | custom_io_w = shangon_custom_io_w; |
| 1806 | 1805 | } |
| r3115 | r3116 | |
|---|---|---|
| 114 | 114 | |
| 115 | 115 | static void update_interrupts(running_machine *machine) |
| 116 | 116 | { |
| 117 | int newstate = 0; | |
| 118 | ||
| 119 | if (atarigen_scanline_int_state) | |
| 120 | newstate |= 1; | |
| 121 | if (atarigen_video_int_state) | |
| 122 | newstate |= 2; | |
| 123 | ||
| 124 | if (newstate) | |
| 125 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 126 | else | |
| 127 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 117 | cpunum_set_input_line(machine, 0, 1, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 118 | cpunum_set_input_line(machine, 0, 2, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 119 | cpunum_set_input_line(machine, 0, 3, atarigen_scanline_int_state && atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 128 | 120 | } |
| 129 | 121 | |
| 130 | 122 |
| r3115 | r3116 | |
|---|---|---|
| 304 | 304 | #include "includes/dkong.h" |
| 305 | 305 | #include "machine/8257dma.h" |
| 306 | 306 | #include "machine/z80dma.h" |
| 307 | #include "machine/latch8.h" | |
| 307 | 308 | |
| 308 | 309 | /************************************* |
| 309 | 310 | * |
| r3115 | r3116 | |
| 471 | 472 | memory_set_bank(1, 1); |
| 472 | 473 | } |
| 473 | 474 | |
| 475 | ||
| 474 | 476 | /************************************* |
| 475 | 477 | * |
| 476 | 478 | * DMA handling |
| r3115 | r3116 | |
| 562 | 564 | |
| 563 | 565 | static READ8_HANDLER( dkong_in2_r ) |
| 564 | 566 | { |
| 567 | /* mcu status (sound feedback) is inverted bit4 from port B (8039) */ | |
| 568 | const device_config *devvp2 = devtag_get_device(machine, LATCH8, "virtual_p2"); | |
| 569 | UINT8 mcustatus = latch8_bit4_q_r(devvp2, 0); | |
| 570 | ||
| 565 | 571 | UINT8 r; |
| 566 | 572 | |
| 567 | #if DEBUG_DISC_SOUND | |
| 568 | static UINT8 ui_snd = 0; | |
| 569 | static UINT8 lst = 0; | |
| 570 | if (!lst && (input_port_read(machine, "TST") & 0x01)) | |
| 571 | { | |
| 572 | ui_snd = (ui_snd + 1) % 10; | |
| 573 | popmessage("Sound %d", ui_snd); | |
| 574 | } | |
| 575 | lst = input_port_read(machine, "TST") & 0x01; | |
| 576 | if (ui_snd<8) | |
| 577 | dkongjr_snd_w1(ui_snd, (input_port_read(machine, "TST") & 0x02)>>1); | |
| 578 | else | |
| 579 | dkongjr_snd_w2(ui_snd-8, (input_port_read(machine, "TST") & 0x02)>>1); | |
| 580 | #endif | |
| 573 | r = (input_port_read(machine, "IN2") & 0xBF) | (mcustatus << 6); | |
| 574 | coin_counter_w(offset, r >> 7); | |
| 575 | if (r & 0x10) | |
| 576 | r = (r & ~0x10) | 0x80; /* service ==> coin */ | |
| 577 | return r; | |
| 578 | } | |
| 581 | 579 | |
| 582 | r = (input_port_read(machine, "IN2") & 0xBF) | (dkong_audio_status_r(machine,0) << 6); | |
| 580 | static READ8_HANDLER( dkongjr_in2_r ) | |
| 581 | { | |
| 582 | /* dkongjr does not have the mcu line connected */ | |
| 583 | ||
| 584 | UINT8 r; | |
| 585 | ||
| 586 | r = (input_port_read(machine, "IN2") & 0xBF) | 0x40; | |
| 583 | 587 | coin_counter_w(offset, r >> 7); |
| 584 | 588 | if (r & 0x10) |
| 585 | r = (r & ~0x10) | 0x80; /* service ==> coin | |
| 589 | r = (r & ~0x10) | 0x80; /* service ==> coin | |
| 586 | 590 | return r; |
| 587 | 591 | } |
| 588 | 592 | |
| r3115 | r3116 | |
| 596 | 600 | return data; |
| 597 | 601 | } |
| 598 | 602 | |
| 603 | ||
| 599 | 604 | static WRITE8_HANDLER( hunchbkd_mirror_w ) |
| 600 | 605 | { |
| 601 | 606 | #if DEBUG_PROTECTION |
| r3115 | r3116 | |
| 605 | 610 | program_write_byte(0x1000+offset,data); |
| 606 | 611 | } |
| 607 | 612 | |
| 613 | ||
| 608 | 614 | static READ8_HANDLER( epos_decrypt_rom ) |
| 609 | 615 | { |
| 610 | 616 | dkong_state *state = machine->driver_data; |
| r3115 | r3116 | |
| 634 | 640 | return 0; |
| 635 | 641 | } |
| 636 | 642 | |
| 643 | ||
| 637 | 644 | static WRITE8_HANDLER( hunchbkd_data_w ) |
| 638 | 645 | { |
| 639 | 646 | dkong_state *state = machine->driver_data; |
| r3115 | r3116 | |
| 641 | 648 | state->hunchloopback = data; |
| 642 | 649 | } |
| 643 | 650 | |
| 651 | ||
| 644 | 652 | static READ8_HANDLER( hunchbkd_port0_r ) |
| 645 | 653 | { |
| 646 | 654 | dkong_state *state = machine->driver_data; |
| r3115 | r3116 | |
| 658 | 666 | return 0; |
| 659 | 667 | } |
| 660 | 668 | |
| 669 | ||
| 661 | 670 | static READ8_HANDLER( hunchbkd_port1_r ) |
| 662 | 671 | { |
| 663 | 672 | dkong_state *state = machine->driver_data; |
| r3115 | r3116 | |
| 665 | 674 | return state->hunchloopback; |
| 666 | 675 | } |
| 667 | 676 | |
| 677 | ||
| 668 | 678 | static READ8_HANDLER( herbiedk_port1_r ) |
| 669 | 679 | { |
| 670 | 680 | switch (activecpu_get_pc()) |
| r3115 | r3116 | |
| 676 | 686 | return 1; |
| 677 | 687 | } |
| 678 | 688 | |
| 689 | ||
| 679 | 690 | static READ8_HANDLER( spclforc_port0_r ) |
| 680 | 691 | { |
| 681 | 692 | switch (activecpu_get_pc()) |
| 682 | 693 | { |
| 683 | case 0x00a3: // spclforc | |
| 684 | case 0x007b: // spcfrcii | |
| 694 | case 0x00a3: /* spclforc */ | |
| 695 | case 0x007b: /* spcfrcii */ | |
| 685 | 696 | return 1; |
| 686 | 697 | } |
| 687 | 698 | |
| r3115 | r3116 | |
| 738 | 749 | } |
| 739 | 750 | } |
| 740 | 751 | |
| 752 | ||
| 741 | 753 | static READ8_HANDLER( strtheat_inputport_1_r ) |
| 742 | 754 | { |
| 743 | 755 | if(input_port_read(machine, "DSW0") & 0x40) |
| r3115 | r3116 | |
| 767 | 779 | AM_RANGE(0x7400, 0x77ff) AM_RAM_WRITE(dkong_videoram_w) |
| 768 | 780 | AM_BASE_MEMBER(dkong_state, video_ram) |
| 769 | 781 | AM_RANGE(0x7800, 0x780f) AM_DEVREADWRITE(DMA8257, "dma8257", dma8257_r, dma8257_w) /* P8257 control registers */ |
| 770 | AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE( | |
| 782 | AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_LATCH8_WRITE(" | |
| 771 | 783 | AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_WRITE(radarscp_grid_color_w) /* IN1 */ |
| 784 | ||
| 772 | 785 | AM_RANGE(0x7d00, 0x7d00) AM_READ(dkong_in2_r) /* IN2 */ |
| 773 | AM_RANGE(0x7d00, 0x7d07) AM_WRITE(dkong_snd_disc_w) /* Sound signals */ | |
| 786 | AM_RANGE(0x7d00, 0x7d07) AM_DEVWRITE(LATCH8, "ls259.6h", latch8_bit0_w) /* Sound signals */ | |
| 787 | ||
| 774 | 788 | AM_RANGE(0x7d80, 0x7d80) AM_READ_PORT("DSW0") AM_WRITE(dkong_audio_irq_w) /* DSW0 */ |
| 775 | 789 | AM_RANGE(0x7d81, 0x7d81) AM_WRITE(radarscp_grid_enable_w) |
| 776 | 790 | AM_RANGE(0x7d82, 0x7d82) AM_WRITE(dkong_flipscreen_w) |
| r3115 | r3116 | |
| 789 | 803 | AM_RANGE(0x7400, 0x77ff) AM_RAM_WRITE(dkong_videoram_w) |
| 790 | 804 | AM_BASE_MEMBER(dkong_state, video_ram) |
| 791 | 805 | AM_RANGE(0x7800, 0x780f) AM_DEVREADWRITE(DMA8257, "dma8257", dma8257_r, dma8257_w) /* P8257 control registers */ |
| 792 | AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(dkongjr_sh_tuneselect_w) | |
| 806 | ||
| 807 | AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_LATCH8_WRITE("ls174.3d") /* IN0, sound interface */ | |
| 808 | ||
| 793 | 809 | AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_WRITE(dkongjr_gfxbank_w) |
| 794 | AM_RANGE(0x7c81, 0x7c81) AM_WRITE(dkongjr_sh_test6_w) | |
| 795 | AM_RANGE(0x7d00, 0x7d00) AM_READ(dkong_in2_r) /* IN2 */ | |
| 796 | AM_RANGE(0x7d00, 0x7d07) AM_WRITE(dkongjr_snd_w1) /* Sound addrs */ | |
| 810 | AM_RANGE(0x7c80, 0x7c87) AM_DEVWRITE(LATCH8, "ls259.4h", latch8_bit0_w) /* latch for sound and signals above */ | |
| 811 | ||
| 812 | AM_RANGE(0x7d00, 0x7d00) AM_READ(dkongjr_in2_r) /* IN2 */ | |
| 813 | AM_RANGE(0x7d00, 0x7d07) AM_DEVWRITE(LATCH8, "ls259.6h",latch8_bit0_w) /* Sound addrs */ | |
| 814 | ||
| 797 | 815 | AM_RANGE(0x7d80, 0x7d80) AM_READ_PORT("DSW0") AM_WRITE(dkong_audio_irq_w) /* DSW0 */ |
| 798 | AM_RANGE(0x7d81, 0x7d81) AM_WRITE(dkongjr_snd_w2) /* Sound addrs */ | |
| 799 | 816 | AM_RANGE(0x7d82, 0x7d82) AM_WRITE(dkong_flipscreen_w) |
| 800 | 817 | AM_RANGE(0x7d83, 0x7d83) AM_WRITE(dkong_spritebank_w) /* 2 PSL Signal */ |
| 801 | 818 | AM_RANGE(0x7d84, 0x7d84) AM_WRITE(interrupt_enable_w) |
| 802 | 819 | AM_RANGE(0x7d85, 0x7d85) AM_DEVWRITE(DMA8257, "dma8257", p8257_drq_w) /* P8257 ==> /DRQ0 /DRQ1 */ |
| 803 | 820 | AM_RANGE(0x7d86, 0x7d87) AM_WRITE(dkong_palettebank_w) |
| 821 | AM_RANGE(0x7d80, 0x7d87) AM_DEVWRITE(LATCH8, "ls259.5h", latch8_bit0_w) /* latch for sound and signals above*/ | |
| 822 | ||
| 804 | 823 | AM_RANGE(0x8000, 0x9fff) AM_ROM /* bootleg DKjr only */ |
| 805 | 824 | AM_RANGE(0xb000, 0xbfff) AM_ROM /* pestplce only */ |
| 806 | 825 | AM_RANGE(0xd000, 0xdfff) AM_ROM /* DK3 bootleg only */ |
| r3115 | r3116 | |
| 814 | 833 | AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* sprite set 1 */ |
| 815 | 834 | AM_RANGE(0x7400, 0x77ff) AM_RAM_WRITE(dkong_videoram_w) |
| 816 | 835 | AM_BASE_MEMBER(dkong_state, video_ram) |
| 817 | AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(soundlatch_w) | |
| 818 | AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_WRITE(soundlatch2_w) | |
| 819 | AM_RANGE(0x7d00, 0x7d00) AM_READ_PORT("DSW0") AM_WRITE(soundlatch3_w) | |
| 836 | AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_LATCH8_WRITE("latch1") | |
| 837 | AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_LATCH8_WRITE("latch2") | |
| 838 | AM_RANGE(0x7d00, 0x7d00) AM_READ_PORT("DSW0") AM_LATCH8_WRITE("latch3") | |
| 820 | 839 | AM_RANGE(0x7d80, 0x7d80) AM_READ_PORT("DSW1") AM_WRITE(dkong3_2a03_reset_w) |
| 821 | 840 | AM_RANGE(0x7e80, 0x7e80) AM_WRITE(dkong3_coin_counter_w) |
| 822 | 841 | AM_RANGE(0x7e81, 0x7e81) AM_WRITE(dkong3_gfxbank_w) |
| 823 | 842 | AM_RANGE(0x7e82, 0x7e82) AM_WRITE(dkong_flipscreen_w) |
| 824 | AM_RANGE(0x7e83, 0x7e83) AM_WRITE(dkong_spritebank_w) /* 2 PSL Signal */ | |
| 843 | AM_RANGE(0x7e83, 0x7e83) AM_WRITE(dkong_spritebank_w) /* 2 PSL Signal */ | |
| 825 | 844 | AM_RANGE(0x7e84, 0x7e84) AM_WRITE(interrupt_enable_w) |
| 826 | AM_RANGE(0x7e85, 0x7e85) AM_DEVWRITE(Z80DMA, "z80dma", z80dma_rdy_w) | |
| 845 | AM_RANGE(0x7e85, 0x7e85) AM_DEVWRITE(Z80DMA, "z80dma", z80dma_rdy_w) /* ==> DMA Chip */ | |
| 827 | 846 | AM_RANGE(0x7e86, 0x7e87) AM_WRITE(dkong_palettebank_w) |
| 828 | AM_RANGE(0x8000, 0x9fff) AM_ROM /* DK3 and bootleg DKjr only */ | |
| 847 | AM_RANGE(0x8000, 0x9fff) AM_ROM /* DK3 and bootleg DKjr only */ | |
| 829 | 848 | ADDRESS_MAP_END |
| 830 | 849 | |
| 831 | 850 | static ADDRESS_MAP_START( dkong3_io_map, ADDRESS_SPACE_IO, 8 ) |
| r3115 | r3116 | |
| 846 | 865 | AM_RANGE(0x0000, 0x0fff) AM_ROM |
| 847 | 866 | AM_RANGE(0x1000, 0x13ff) AM_RAM AM_BASE_MEMBER(dkong_state, sprite_ram) |
| 848 | 867 | AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* 0x7000 */ |
| 849 | AM_RANGE(0x1400, 0x1400) AM_READ_PORT("IN0") AM_WRITE( | |
| 868 | AM_RANGE(0x1400, 0x1400) AM_READ_PORT("IN0") AM_DEVWRITE(LATCH8, "ls175.3d", la | |
| 850 | 869 | AM_RANGE(0x1480, 0x1480) AM_READ_PORT("IN1") |
| 851 | 870 | AM_RANGE(0x1500, 0x1500) AM_READ(dkong_in2_r) /* IN2 */ |
| 852 | AM_RANGE(0x1500, 0x1507) AM_WRITE( | |
| 871 | AM_RANGE(0x1500, 0x1507) AM_DEVWRITE(LATCH8, "ls259.6h", latch8_bit0_w) | |
| 853 | 872 | AM_RANGE(0x1580, 0x1580) AM_READ_PORT("DSW0") AM_WRITE(dkong_audio_irq_w) /* DSW0 */ |
| 854 | 873 | AM_RANGE(0x1582, 0x1582) AM_WRITE(dkong_flipscreen_w) |
| 855 | 874 | AM_RANGE(0x1583, 0x1583) AM_WRITE(dkong_spritebank_w) /* 2 PSL Signal */ |
| r3115 | r3116 | |
| 1197 | 1216 | PORT_MODIFY("IN2") |
| 1198 | 1217 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Start 1 / P1 Button 1") PORT_PLAYER(1) |
| 1199 | 1218 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Start 2 / P1 Button 2") PORT_PLAYER(1) |
| 1200 | //PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1201 | //PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1219 | /* PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) */ | |
| 1220 | /* PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) */ | |
| 1202 | 1221 | |
| 1203 | 1222 | PORT_START("DSW0") /* DSW0 */ |
| 1204 | 1223 | PORT_DIPNAME( 0x01, 0x00, "1" ) |
| r3115 | r3116 | |
| 1306 | 1325 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION( "SW1:!2" ) |
| 1307 | 1326 | PORT_DIPSETTING( 0x00, "3" ) |
| 1308 | 1327 | PORT_DIPSETTING( 0x02, "5" ) |
| 1309 | PORT_DIPNAME( 0x0c, 0x00, "Difficulty?" ) PORT_DIPLOCATION( "SW1:!3,!4" ) / | |
| 1328 | PORT_DIPNAME( 0x0c, 0x00, "Difficulty?" ) PORT_DIPLOCATION( "SW1:!3,!4" ) /* Stored at 0x1c99 */ | |
| 1310 | 1329 | PORT_DIPSETTING( 0x00, "0" ) |
| 1311 | 1330 | PORT_DIPSETTING( 0x04, "1" ) |
| 1312 | 1331 | PORT_DIPSETTING( 0x08, "2" ) |
| r3115 | r3116 | |
| 1727 | 1746 | |
| 1728 | 1747 | MDRV_GFXDECODE(pestplce) |
| 1729 | 1748 | MDRV_PALETTE_LENGTH(DK2B_PALETTE_LENGTH) |
| 1730 | MDRV_PALETTE_INIT(dkong2b) / | |
| 1749 | MDRV_PALETTE_INIT(dkong2b) /* wrong! */ | |
| 1731 | 1750 | MDRV_VIDEO_UPDATE(pestplce) |
| 1732 | 1751 | |
| 1733 | 1752 | MACHINE_DRIVER_END |
| r3115 | r3116 | |
| 1779 | 1798 | MDRV_PALETTE_INIT(dkong3) |
| 1780 | 1799 | MACHINE_DRIVER_END |
| 1781 | 1800 | |
| 1801 | /************************************* | |
| 1802 | * | |
| 1803 | * EPOS Machine drivers | |
| 1804 | * | |
| 1805 | *************************************/ | |
| 1806 | ||
| 1782 | 1807 | static MACHINE_DRIVER_START( strtheat ) |
| 1783 | 1808 | /* basic machine hardware */ |
| 1784 | 1809 | MDRV_IMPORT_FROM(dkong2b) |
| r3115 | r3116 | |
| 1862 | 1887 | ROM_FILL( 0x1000, 0x0800, 0xFF ) |
| 1863 | 1888 | |
| 1864 | 1889 | ROM_REGION( 0x0800, "tms", 0 ) /* speech rom */ |
| 1865 | ROM_LOAD( "trs014ha.bin", 0x0000, 0x0800, CRC(d1f1b48c) SHA1(ee5584368d2e9f7bde271f5004585b53f5ff5c3f) ) / | |
| 1890 | ROM_LOAD( "trs014ha.bin", 0x0000, 0x0800, CRC(d1f1b48c) SHA1(ee5584368d2e9f7bde271f5004585b53f5ff5c3f) ) /* speech rom */ | |
| 1866 | 1891 | |
| 1867 | 1892 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) |
| 1868 | 1893 | ROM_LOAD( "trs01v3f", 0x0000, 0x0800, CRC(f095330e) SHA1(dd3de744f28ff108630d3336bd246d3323fa34af) ) |
| r3115 | r3116 | |
| 1884 | 1909 | ROM_LOAD( "trs01c2j.bin", 0x0000, 0x0100, CRC(2a087c87) SHA1(dbf0c6173583dc4fa5d3f34d2f42cbaf2bd4b167) ) /* blue */ |
| 1885 | 1910 | ROM_LOAD( "trs01c2k.bin", 0x0100, 0x0100, CRC(650c5daf) SHA1(72f91ee2fab9eee58ee42881327e6345aa70b7f9) ) /* green */ |
| 1886 | 1911 | ROM_LOAD( "trs01c2l.bin", 0x0200, 0x0100, CRC(23087910) SHA1(afc05c322b11fefaf0af857fee06a5afd0d4593e) ) /* red */ |
| 1887 | // Hack! The prom at pos 1D on video board has not been dumped | |
| 1888 | // Rom 1D is a MB7051, only 5 address lines | |
| 1889 | // Rom below from TRS02 dump: rs2-v.1hc | |
| 1912 | /* Hack! The prom at pos 1D on video board has not been dumped | |
| 1913 | * Rom 1D is a MB7051, only 5 address lines | |
| 1914 | * Rom below from TRS02 dump: rs2-v.1hc | |
| 1915 | */ | |
| 1890 | 1916 | ROM_LOAD( "trs01v1d.bin", 0x0300, 0x0100, BAD_DUMP CRC(1b828315) SHA1(00c9f8c5ae86b68d38c66f9071b5f1ef421c1005) ) /* character color codes on a per-column basis */ |
| 1891 | 1917 | ROM_END |
| 1892 | 1918 | |
| r3115 | r3116 | |
| 1921 | 1947 | |
| 1922 | 1948 | ROM_START( dkongo ) |
| 1923 | 1949 | ROM_REGION( 0x10000, "main", 0 ) |
| 1924 | ROM_LOAD( "c_5f_b.bin", 0x0000, 0x1000, CRC(424f2b11) SHA1(e4f096f2bbd37281f42a5f8e083738f55c07f3dd) ) // tkg3c.5f | |
| 1925 | ROM_LOAD( "c_5ct_g.bin", 0x1000, 0x1000, CRC(5ec461ec) SHA1(acb11a8fbdbb3ab46068385fe465f681e3c824bd) ) // tkg3c.5g | |
| 1926 | ROM_LOAD( "c_5h_b.bin", 0x2000, 0x1000, CRC(1d28895d) SHA1(63792cab215fc2a7b0e8ee61d8115045571e9d42) ) // tkg3c.5h | |
| 1950 | ROM_LOAD( "c_5f_b.bin", 0x0000, 0x1000, CRC(424f2b11) SHA1(e4f096f2bbd37281f42a5f8e083738f55c07f3dd) ) /* tkg3c.5f */ | |
| 1951 | ROM_LOAD( "c_5ct_g.bin", 0x1000, 0x1000, CRC(5ec461ec) SHA1(acb11a8fbdbb3ab46068385fe465f681e3c824bd) ) /* tkg3c.5g */ | |
| 1952 | ROM_LOAD( "c_5h_b.bin", 0x2000, 0x1000, CRC(1d28895d) SHA1(63792cab215fc2a7b0e8ee61d8115045571e9d42) ) /* tkg3c.5h */ | |
| 1927 | 1953 | ROM_LOAD( "tkg3c.5k", 0x3000, 0x1000, CRC(553b89bb) SHA1(61611df9e2748fdcd31821038dcc0e16dc933873) ) |
| 1928 | 1954 | /* space for diagnostic ROM */ |
| 1929 | 1955 | |
| r3115 | r3116 | |
| 2706 | 2732 | ROM_REGION( 0x1000, "sound", 0 ) /* sound */ |
| 2707 | 2733 | /* one is used for dkong conversions, the other one for dkongjr conversions */ |
| 2708 | 2734 | ROM_LOAD( "2716.3h1", 0x0000, 0x0800, CRC(2a6ec016) SHA1(c95e185a39c8029f00798ce0a00759a4deb45677) ) /* dkongjr */ |
| 2709 | //ROM_RELOAD( 0x0800, 0x0800 ) | |
| 2710 | //ROM_FILL( 0x0800, 0x0800, 0xFF ) | |
| 2711 | 2735 | |
| 2712 | 2736 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) |
| 2713 | 2737 | ROM_LOAD( "2716.3n", 0x0000, 0x0800, CRC(ea0e7f9a) SHA1(a8e2b43e15281d45e414eaae98e5248bad79c41b) ) |
| r3115 | r3116 | |
| 2825 | 2849 | ROM_LOAD( "sg-01-0", 0x0000, 0x0800, CRC(f055a624) SHA1(5dfe89d7271092e665cdd5cd59d15a2b70f92f43) ) |
| 2826 | 2850 | |
| 2827 | 2851 | ROM_REGION( 0x1800, "tms", 0 ) |
| 2828 | ROM_LOAD( "sg-01snd", 0x0000, 0x1000, CRC(644a0728) SHA1(e249fd57bc49572a2246aaf7c68a547f319f51bc) ) //sg-01-snd | |
| 2829 | ROM_LOAD( "sg-01spk", 0x1000, 0x0800, CRC(aacaf730) SHA1(cd562093ab8931d165cb0877e332474fce131c67) ) //sg-01-spk | |
| 2852 | ROM_LOAD( "sg-01snd", 0x0000, 0x1000, CRC(644a0728) SHA1(e249fd57bc49572a2246aaf7c68a547f319f51bc) ) /* sg-01-snd */ | |
| 2853 | ROM_LOAD( "sg-01spk", 0x1000, 0x0800, CRC(aacaf730) SHA1(cd562093ab8931d165cb0877e332474fce131c67) ) /* sg-01-spk */ | |
| 2830 | 2854 | |
| 2831 | ROM_REGION( 0x2000, "user2", 0 ) / | |
| 2855 | ROM_REGION( 0x2000, "user2", 0 ) /* gun proms? */ | |
| 2832 | 2856 | ROM_LOAD( "sg-1", 0x0000, 0x0200, CRC(fda82517) SHA1(b36bac69b6f8218b280aae59133ea0d22d7a99f6) ) |
| 2833 | 2857 | ROM_LOAD( "sg-2", 0x0200, 0x091d, CRC(6e065613) SHA1(26d048af5c302f921de8e2c1bc7c7bf48dc21b5a) ) |
| 2834 | 2858 |
| r3115 | r3116 | |
|---|---|---|
| 248 | 248 | AM_RANGE(0x0040, 0x0047) AM_MIRROR(0x718) AM_READ(sprint4_collision_r) |
| 249 | 249 | AM_RANGE(0x0060, 0x0063) AM_MIRROR(0x71c) AM_READ(sprint4_options_r) |
| 250 | 250 | |
| 251 | AM_RANGE(0x1000, 0x17ff) AM_READ(input_port_0_r) | |
| 252 | AM_RANGE(0x1800, 0x1fff) AM_READ(input_port_1_r) | |
| 251 | AM_RANGE(0x1000, 0x17ff) AM_READ_PORT("IN0") | |
| 252 | AM_RANGE(0x1800, 0x1fff) AM_READ_PORT("IN1") | |
| 253 | 253 | |
| 254 | 254 | AM_RANGE(0x0000, 0x0000) AM_MIRROR(0x71f) AM_WRITE(sprint4_attract_w) |
| 255 | 255 | AM_RANGE(0x0020, 0x0027) AM_MIRROR(0x718) AM_WRITE(sprint4_collision_reset_w) |
| r3115 | r3116 | |
| 298 | 298 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) |
| 299 | 299 | |
| 300 | 300 | PORT_START("DIP") |
| 301 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Language )) PORT_DIPLOCATION("DIP:8,7") | |
| 302 | PORT_DIPSETTING( 0x00, DEF_STR( German )) | |
| 303 | PORT_DIPSETTING( 0x01, DEF_STR( French )) | |
| 304 | PORT_DIPSETTING( 0x02, DEF_STR( Spanish )) | |
| 305 | PORT_DIPSETTING( 0x03, DEF_STR( English )) | |
| 306 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Coinage )) PORT_DIPLOCATION("DIP:6") | |
| 307 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C )) | |
| 308 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_1C )) | |
| 301 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Language ) ) PORT_DIPLOCATION("DIP:8,7") | |
| 302 | PORT_DIPSETTING( 0x00, DEF_STR( German ) ) | |
| 303 | PORT_DIPSETTING( 0x01, DEF_STR( French ) ) | |
| 304 | PORT_DIPSETTING( 0x02, DEF_STR( Spanish ) ) | |
| 305 | PORT_DIPSETTING( 0x03, DEF_STR( English ) ) | |
| 306 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Coinage ) ) PORT_DIPLOCATION("DIP:6") | |
| 307 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 308 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_1C ) ) | |
| 309 | 309 | PORT_DIPNAME( 0x08, 0x08, "Allow Late Entry" ) PORT_DIPLOCATION("DIP:5") |
| 310 | PORT_DIPSETTING( 0x08, DEF_STR( No )) | |
| 311 | PORT_DIPSETTING( 0x00, DEF_STR( Yes )) | |
| 310 | PORT_DIPSETTING( 0x08, DEF_STR( No ) ) | |
| 311 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 312 | 312 | PORT_DIPNAME( 0xf0, 0xb0, "Play Time" ) PORT_DIPLOCATION("DIP:4,3,2,1") |
| 313 | 313 | PORT_DIPSETTING( 0x70, "60 seconds" ) |
| 314 | 314 | PORT_DIPSETTING( 0xb0, "90 seconds" ) |
| r3115 | r3116 | |
|---|---|---|
| 72 | 72 | #include "driver.h" |
| 73 | 73 | #include "cpu/m6809/m6809.h" |
| 74 | 74 | #include "cpu/z80/z80.h" |
| 75 | #include "cpu/ | |
| 75 | #include "cpu/mcs48 | |
| 76 | 76 | #include "sound/2151intf.h" |
| 77 | 77 | #include "sound/2203intf.h" |
| 78 | 78 | #include "sound/okim6295.h" |
| r3115 | r3116 | |
| 342 | 342 | ADDRESS_MAP_END |
| 343 | 343 | |
| 344 | 344 | static ADDRESS_MAP_START( i8748_portmap, ADDRESS_SPACE_IO, 8 ) |
| 345 | AM_RANGE(I8039_bus, I8039_bus) AM_READ(saiyugb1_mcu_command_r) | |
| 346 | AM_RANGE(I8039_t0, I8039_t0) AM_WRITE(saiyugb1_m5205_clk_w) /* Drives the clock on the m5205 at 1/8 of this frequency */ | |
| 347 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(saiyugb1_m5205_irq_r) | |
| 348 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(saiyugb1_adpcm_rom_addr_w) | |
| 349 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(saiyugb1_adpcm_control_w) | |
| 345 | AM_RANGE(MCS48_PORT_BUS, MCS48_PORT_BUS) AM_READ(saiyugb1_mcu_command_r) | |
| 346 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_WRITE(saiyugb1_m5205_clk_w) /* Drives the clock on the m5205 at 1/8 of this frequency */ | |
| 347 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(saiyugb1_m5205_irq_r) | |
| 348 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(saiyugb1_adpcm_rom_addr_w) | |
| 349 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(saiyugb1_adpcm_control_w) | |
| 350 | 350 | ADDRESS_MAP_END |
| 351 | 351 | |
| 352 | 352 | |
| r3115 | r3116 | |
| 549 | 549 | MDRV_CPU_ADD("audio", Z80, 3579545) /* 3.579545 MHz oscillator */ |
| 550 | 550 | MDRV_CPU_PROGRAM_MAP(saiyugb1_sound_map,0) |
| 551 | 551 | |
| 552 | MDRV_CPU_ADD("mcu", I8048,9263750 | |
| 552 | MDRV_CPU_ADD("mcu", I8048, 9263750 | |
| 553 | 553 | MDRV_CPU_PROGRAM_MAP(i8748_map,0) |
| 554 | 554 | MDRV_CPU_IO_MAP(i8748_portmap,0) |
| 555 | 555 |
| r3115 | r3116 | |
|---|---|---|
| 147 | 147 | |
| 148 | 148 | static void update_interrupts(running_machine *machine) |
| 149 | 149 | { |
| 150 | int newstate = 0; | |
| 151 | ||
| 152 | if (atarigen_video_int_state) | |
| 153 | newstate |= 4; | |
| 154 | if (atarigen_sound_int_state) | |
| 155 | newstate |= 6; | |
| 156 | ||
| 157 | if (newstate) | |
| 158 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 159 | else | |
| 160 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 150 | cpunum_set_input_line(machine, 0, 4, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 151 | cpunum_set_input_line(machine, 0, 6, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 161 | 152 | } |
| 162 | 153 | |
| 163 | 154 |
| r3115 | r3116 | |
|---|---|---|
| 180 | 180 | |
| 181 | 181 | /********** READ INPUTS **********/ |
| 182 | 182 | |
| 183 | static | |
| 183 | static CUSTOM_I | |
| 184 | 184 | { |
| 185 | 185 | UINT32 mj_input; |
| 186 | 186 | |
| 187 | 187 | switch (ms32_mahjong_input_select[0]) |
| 188 | 188 | { |
| 189 | 189 | case 0x01: |
| 190 | mj_input = input_port_read(machine, "MJ0"); | |
| 190 | mj_input = input_port_read(field->port->machine, "MJ0"); | |
| 191 | 191 | break; |
| 192 | 192 | case 0x02: |
| 193 | mj_input = input_port_read(machine, "MJ1"); | |
| 193 | mj_input = input_port_read(field->port->machine, "MJ1"); | |
| 194 | 194 | break; |
| 195 | 195 | case 0x04: |
| 196 | mj_input = input_port_read(machine, "MJ2"); | |
| 196 | mj_input = input_port_read(field->port->machine, "MJ2"); | |
| 197 | 197 | break; |
| 198 | 198 | case 0x08: |
| 199 | mj_input = input_port_read(machine, "MJ3"); | |
| 199 | mj_input = input_port_read(field->port->machine, "MJ3"); | |
| 200 | 200 | break; |
| 201 | 201 | case 0x10: |
| 202 | mj_input = input_port_read(machine, "MJ4"); | |
| 202 | mj_input = input_port_read(field->port->machine, "MJ4"); | |
| 203 | 203 | break; |
| 204 | 204 | default: |
| 205 | 205 | mj_input = 0; |
| 206 | 206 | |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | return | |
| 209 | return mj_input | |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | ||
| 213 | static READ32_HANDLER ( ms32_read_inputs3 ) | |
| 212 | static READ32_HANDLER( ms32_read_inputs3 ) | |
| 214 | 213 | { |
| 215 | 214 | int a,b,c,d; |
| 216 | 215 | a = input_port_read(machine, "AN2?"); // unused? |
| r3115 | r3116 | |
| 448 | 447 | PORT_INCLUDE( ms32 ) |
| 449 | 448 | |
| 450 | 449 | PORT_MODIFY("INPUTS") |
| 451 | PORT_BIT( 0x000000ff, IP_ACTIVE_LOW, IPT_UNUSED ) // here we read mahjong keys | |
| 450 | PORT_BIT( 0x000000ff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(mahjong_ctrl_r, NULL) // here we read mahjong keys | |
| 451 | PORT_BIT( 0x0000ff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 452 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 453 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 454 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 455 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME(DEF_STR( Test )) PORT_CODE(KEYCODE_F1) | |
| 456 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNUSED ) /* Start 1 is already mapped in mahjong inputs */ | |
| 457 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_UNUSED ) /* ms32.c mahjongs don't have P2 inputs -> no Start 2*/ | |
| 458 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 459 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 452 | 460 | |
| 453 | 461 | PORT_START("MJ0") |
| 454 | 462 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_START1 ) |
| r3115 | r3116 | |
| 863 | 871 | static INPUT_PORTS_START( kirarast ) // player 1 inputs done? others? |
| 864 | 872 | PORT_INCLUDE( ms32_mahjong ) |
| 865 | 873 | |
| 866 | PORT_MODIFY("INPUTS") | |
| 867 | PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 868 | ||
| 869 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 870 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 871 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 872 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME(DEF_STR( Test )) PORT_CODE(KEYCODE_F1) | |
| 873 | // PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_START1 ) /* already mapped in mahjong inputs */ | |
| 874 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 875 | // PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_START2 ) /* ms32.c mahjongs don't have P2 inputs */ | |
| 876 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 877 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 878 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 879 | ||
| 880 | 874 | PORT_MODIFY("DSW") |
| 881 | 875 | PORT_DIPUNUSED_DIPLOC( 0x00000400, 0x00000400, "SW1:6" ) |
| 882 | 876 | PORT_DIPUNUSED_DIPLOC( 0x00000800, 0x00000800, "SW1:5" ) |
| r3115 | r3116 | |
| 918 | 912 | PORT_INCLUDE( kirarast ) |
| 919 | 913 | |
| 920 | 914 | PORT_MODIFY("INPUTS") |
| 921 | // PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_COIN2 ) /* coin 2 is unused */ | |
| 922 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 915 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNUSED ) /* coin 2 is unused */ | |
| 923 | 916 | |
| 924 | 917 | PORT_MODIFY("DSW") |
| 925 | 918 | PORT_DIPNAME( 0x00000400, 0x00000400, "Campaign Mode" ) PORT_DIPLOCATION("SW1:6") |
| r3115 | r3116 | |
| 2153 | 2146 | |
| 2154 | 2147 | static DRIVER_INIT (kirarast) |
| 2155 | 2148 | { |
| 2156 | // { 0xfcc00004, 0xfcc00007, ms32_mahjong_read_inputs1 } | |
| 2157 | memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xfcc00004, 0xfcc00007, 0, 0, ms32_mahjong_read_inputs1 ); | |
| 2158 | ||
| 2159 | 2149 | DRIVER_INIT_CALL(ss92047_01); |
| 2160 | 2150 | } |
| 2161 | 2151 | |
| 2162 | 2152 | static DRIVER_INIT (47pie2) |
| 2163 | 2153 | { |
| 2164 | // { 0xfcc00004, 0xfcc00007, ms32_mahjong_read_inputs1 } | |
| 2165 | memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xfcc00004, 0xfcc00007, 0, 0, ms32_mahjong_read_inputs1 ); | |
| 2166 | ||
| 2167 | 2154 | DRIVER_INIT_CALL(ss92048_01); |
| 2168 | 2155 | } |
| 2169 | 2156 | |
| r3115 | r3116 | |
| 2178 | 2165 | |
| 2179 | 2166 | static DRIVER_INIT (bnstars) |
| 2180 | 2167 | { |
| 2181 | // { 0xfcc00004, 0xfcc00007, ms32_mahjong_read_inputs1 } | |
| 2182 | memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xfcc00004, 0xfcc00007, 0, 0, ms32_mahjong_read_inputs1 ); | |
| 2183 | ||
| 2184 | 2168 | DRIVER_INIT_CALL(ss92046_01); |
| 2185 | 2169 | } |
| 2186 | 2170 |
| r3115 | r3116 | |
|---|---|---|
| 401 | 401 | int pattern = 0,reel; |
| 402 | 402 | for (reel = 0; reel < 6; reel++) |
| 403 | 403 | { |
| 404 | Stepper_reset_position(reel); | |
| 405 | if (Stepper_optic_state(reel)) pattern |= 1<<reel; | |
| 404 | stepper_reset_position(reel); | |
| 405 | if (stepper_optic_state(reel)) pattern |= 1<<reel; | |
| 406 | 406 | } |
| 407 | 407 | optic_pattern = pattern; |
| 408 | 408 | } |
| r3115 | r3116 | |
| 806 | 806 | static WRITE8_HANDLER( pia_ic6_portb_w ) |
| 807 | 807 | { |
| 808 | 808 | LOG(("%04x IC6 PIA Port B Set to %2x (Reel A and B)\n", activecpu_get_previouspc(),data)); |
| 809 | Stepper_update(0, data & 0x0F ); | |
| 810 | Stepper_update(1, (data>>4) & 0x0F ); | |
| 809 | stepper_update(0, data & 0x0F ); | |
| 810 | stepper_update(1, (data>>4) & 0x0F ); | |
| 811 | 811 | |
| 812 | 812 | /* if ( pia_get_output_cb2(1)) */ |
| 813 | 813 | { |
| 814 | if ( | |
| 814 | if ( stepper_optic_state(0) ) optic_pattern |= 0x01; | |
| 815 | 815 | else optic_pattern &= ~0x01; |
| 816 | 816 | |
| 817 | if ( | |
| 817 | if ( stepper_optic_state(1) ) optic_pattern |= 0x02; | |
| 818 | 818 | else optic_pattern &= ~0x02; |
| 819 | 819 | } |
| 820 | 820 | draw_reel((0)); |
| r3115 | r3116 | |
| 869 | 869 | static WRITE8_HANDLER( pia_ic7_porta_w ) |
| 870 | 870 | { |
| 871 | 871 | LOG(("%04x IC7 PIA Port A Set to %2x (Reel C and D)\n", activecpu_get_previouspc(),data)); |
| 872 | Stepper_update(2, data & 0x0F ); | |
| 873 | Stepper_update(3, (data >> 4)& 0x0F ); | |
| 872 | stepper_update(2, data & 0x0F ); | |
| 873 | stepper_update(3, (data >> 4)& 0x0F ); | |
| 874 | 874 | |
| 875 | 875 | /* if ( pia_get_output_cb2(1)) */ |
| 876 | 876 | { |
| 877 | if ( | |
| 877 | if ( stepper_optic_state(2) ) optic_pattern |= 0x04; | |
| 878 | 878 | else optic_pattern &= ~0x04; |
| 879 | if ( | |
| 879 | if ( stepper_optic_state(3) ) optic_pattern |= 0x08; | |
| 880 | 880 | else optic_pattern &= ~0x08; |
| 881 | 881 | } |
| 882 | 882 | draw_reel((2)); |
| r3115 | r3116 | |
| 1229 | 1229 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_COIN4) PORT_NAME("100p")PORT_IMPULSE(5) |
| 1230 | 1230 | INPUT_PORTS_END |
| 1231 | 1231 | |
| 1232 | static const stepper_interface barcrest_reel_interface = | |
| 1233 | { | |
| 1234 | BARCREST_48STEP_REEL, | |
| 1235 | 0, | |
| 1236 | 8, | |
| 1237 | 0x00 | |
| 1238 | }; | |
| 1232 | 1239 | |
| 1233 | 1240 | /* Common configurations */ |
| 1234 | 1241 | static void mpu4_config_common(void) |
| r3115 | r3116 | |
| 1257 | 1264 | Mechmtr_init(8); |
| 1258 | 1265 | |
| 1259 | 1266 | /* setup 4 reels */ |
| 1260 | Stepper_init(0, BARCREST_48STEP_REEL); | |
| 1261 | Stepper_init(1, BARCREST_48STEP_REEL); | |
| 1262 | Stepper_init(2, BARCREST_48STEP_REEL); | |
| 1263 | Stepper_init(3, BARCREST_48STEP_REEL); | |
| 1267 | stepper_config(0, &barcrest_reel_interface); | |
| 1268 | stepper_config(1, &barcrest_reel_interface); | |
| 1269 | stepper_config(2, &barcrest_reel_interface); | |
| 1270 | stepper_config(3, &barcrest_reel_interface); | |
| 1264 | 1271 | |
| 1265 | 1272 | /* setup the standard oki MSC1937 display */ |
| 1266 | 1273 | ROC10937_init(0, MSC1937,0); |
| r3115 | r3116 | |
|---|---|---|
| 173 | 173 | static ADDRESS_MAP_START( io_map_skylncr, ADDRESS_SPACE_IO, 8 ) |
| 174 | 174 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 175 | 175 | |
| 176 | AM_RANGE(0x00, 0x00) AM_READ( input_port_0_r ) | |
| 177 | AM_RANGE(0x01, 0x01) AM_READ( input_port_1_r ) | |
| 178 | AM_RANGE(0x02, 0x02) AM_READ( input_port_2_r ) | |
| 179 | AM_RANGE(0x10, 0x10) AM_READ( input_port_3_r ) | |
| 180 | AM_RANGE(0x11, 0x11) AM_READ( input_port_4_r ) | |
| 181 | AM_RANGE(0x12, 0x12) AM_READ( input_port_5_r ) | |
| 176 | AM_RANGE(0x00, 0x00) AM_READ_PORT("SYSTEM") | |
| 177 | AM_RANGE(0x01, 0x01) AM_READ_PORT("BUTTONS") | |
| 178 | AM_RANGE(0x02, 0x02) AM_READ_PORT("DSW1") | |
| 179 | AM_RANGE(0x10, 0x10) AM_READ_PORT("DSW2") | |
| 180 | AM_RANGE(0x11, 0x11) AM_READ_PORT("COIN1") | |
| 181 | AM_RANGE(0x12, 0x12) AM_READ_PORT("COIN2") | |
| 182 | 182 | |
| 183 | 183 | AM_RANGE(0x20, 0x20) AM_WRITE( skylncr_coin_w ) |
| 184 | 184 | |
| r3115 | r3116 | |
| 262 | 262 | GFXDECODE_END |
| 263 | 263 | |
| 264 | 264 | static INPUT_PORTS_START( skylncr ) |
| 265 | ||
| 266 | PORT_START("SYSTEM") // IN0 - $0 "PORT0 A" | |
| 265 | PORT_START("SYSTEM") /* $0 "PORT0 A" */ | |
| 267 | 266 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1) |
| 268 | 267 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2) |
| 269 | 268 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3) |
| r3115 | r3116 | |
| 273 | 272 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE3) |
| 274 | 273 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4) |
| 275 | 274 | |
| 276 | PORT_START("BUTTONS") / | |
| 275 | PORT_START("BUTTONS") /* | |
| 277 | 276 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1) |
| 278 | 277 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2) |
| 279 | 278 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3) |
| r3115 | r3116 | |
| 283 | 282 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3) PORT_PLAYER(2) |
| 284 | 283 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4) PORT_PLAYER(2) |
| 285 | 284 | |
| 286 | PORT_START("DSW1") / | |
| 285 | PORT_START("DSW1") /* | |
| 287 | 286 | PORT_DIPNAME( 0x01, 0x01, "DSW1" ) |
| 288 | 287 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 289 | 288 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 309 | 308 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 310 | 309 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 311 | 310 | |
| 312 | PORT_START("DSW2") / | |
| 311 | PORT_START("DSW2") /* | |
| 313 | 312 | PORT_DIPNAME( 0x01, 0x01, "DSW2" ) |
| 314 | 313 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 315 | 314 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 335 | 334 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 336 | 335 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 337 | 336 | |
| 338 | PORT_START("COIN1") / | |
| 337 | PORT_START("COIN1") /* | |
| 339 | 338 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5) |
| 340 | 339 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 341 | 340 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 345 | 344 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 346 | 345 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 347 | 346 | |
| 348 | PORT_START("COIN2") / | |
| 347 | PORT_START("COIN2") /* | |
| 349 | 348 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2) |
| 350 | 349 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 351 | 350 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 355 | 354 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 356 | 355 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 357 | 356 | |
| 358 | PORT_START("DSW4") / | |
| 357 | PORT_START("DSW4") /* | |
| 359 | 358 | PORT_DIPNAME( 0x01, 0x01, "DSW4" ) |
| 360 | 359 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 361 | 360 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 381 | 380 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 382 | 381 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 383 | 382 | |
| 384 | PORT_START("DSW3") / | |
| 383 | PORT_START("DSW3") /* | |
| 385 | 384 | PORT_DIPNAME( 0x01, 0x01, "DSW3" ) |
| 386 | 385 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 387 | 386 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 406 | 405 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 407 | 406 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 408 | 407 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 409 | ||
| 410 | 408 | INPUT_PORTS_END |
| 411 | 409 | |
| 412 | 410 | static const ay8910_interface ay8910_config = |
| r3115 | r3116 | |
|---|---|---|
| 150 | 150 | AM_RANGE(0x60000, 0x67fff) AM_READ(SMH_RAM) |
| 151 | 151 | AM_RANGE(0x70000, 0x77fff) AM_READ(SMH_RAM) |
| 152 | 152 | AM_RANGE(0x80000, 0x82fff) AM_READ(SMH_RAM) |
| 153 | AM_RANGE(0x90000, 0x90001) AM_READ(input_port_0_word_r) | |
| 154 | AM_RANGE(0x90010, 0x90011) AM_READ(input_port_1_word_r) | |
| 155 | AM_RANGE(0x90020, 0x90021) AM_READ(input_port_2_word_r) | |
| 156 | AM_RANGE(0x90030, 0x90031) AM_READ(input_port_4_word_r) | |
| 157 | AM_RANGE(0x90040, 0x90041) AM_READ(input_port_3_word_r) | |
| 153 | AM_RANGE(0x90000, 0x90001) AM_READ_PORT("IN0") | |
| 154 | AM_RANGE(0x90010, 0x90011) AM_READ_PORT("IN1") | |
| 155 | AM_RANGE(0x90020, 0x90021) AM_READ_PORT("SYSTEM") | |
| 156 | AM_RANGE(0x90030, 0x90031) AM_READ_PORT("DSW1") | |
| 157 | AM_RANGE(0x90040, 0x90041) AM_READ_PORT("DSW2") | |
| 158 | 158 | ADDRESS_MAP_END |
| 159 | 159 | |
| 160 | 160 | static ADDRESS_MAP_START( spbactn_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r3115 | r3116 | |
| 216 | 216 | ADDRESS_MAP_END |
| 217 | 217 | |
| 218 | 218 | static INPUT_PORTS_START( spbactn ) |
| 219 | PORT_START("IN0") | |
| 219 | PORT_START("IN0") | |
| 220 | 220 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 221 | 221 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 222 | 222 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 226 | 226 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 227 | 227 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 228 | 228 | |
| 229 | PORT_START("IN1") | |
| 229 | PORT_START("IN1") | |
| 230 | 230 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 231 | 231 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 232 | 232 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 236 | 236 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 237 | 237 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 238 | 238 | |
| 239 | PORT_START("SYSTEM") | |
| 239 | PORT_START("SYSTEM") | |
| 240 | 240 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 241 | 241 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 242 | 242 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) // Press mulitple times for multiple players |
| r3115 | r3116 | |
| 246 | 246 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 247 | 247 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 248 | 248 | |
| 249 | PORT_START("DSW1") | |
| 249 | PORT_START("DSW1") | |
| 250 | 250 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 251 | 251 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 252 | 252 | PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 271 | 271 | PORT_DIPSETTING( 0x80, "4" ) |
| 272 | 272 | PORT_DIPSETTING( 0x40, "5" ) |
| 273 | 273 | |
| 274 | PORT_START("DSW2") | |
| 274 | PORT_START("DSW2") | |
| 275 | 275 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 276 | 276 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 277 | 277 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
|---|---|---|
| 161 | 161 | |
| 162 | 162 | #include "driver.h" |
| 163 | 163 | #include "cpu/z80/z80.h" |
| 164 | #include "cpu/ | |
| 164 | #include "cpu/mcs48 | |
| 165 | 165 | #include "system16.h" |
| 166 | 166 | #include "cpu/m68000/m68000.h" |
| 167 | 167 | #include "machine/fd1094.h" |
| r3115 | r3116 | |
| 186 | 186 | |
| 187 | 187 | /***************************************************************************/ |
| 188 | 188 | |
| 189 | // 7751 emulation | |
| 190 | WRITE8_HANDLER( sys16_7751_audio_8255_w ); | |
| 191 | READ8_HANDLER( sys16_7751_audio_8255_r ); | |
| 192 | READ8_HANDLER( sys16_7751_sh_rom_r ); | |
| 193 | READ8_HANDLER( sys16_7751_sh_t1_r ); | |
| 194 | READ8_HANDLER( sys16_7751_sh_command_r ); | |
| 195 | WRITE8_HANDLER( sys16_7751_sh_dac_w ); | |
| 196 | WRITE8_HANDLER( sys16_7751_sh_busy_w ); | |
| 197 | WRITE8_HANDLER( sys16_7751_sh_offset_a0_a3_w ); | |
| 198 | WRITE8_HANDLER( sys16_7751_sh_offset_a4_a7_w ); | |
| 199 | WRITE8_HANDLER( sys16_7751_sh_offset_a8_a11_w ); | |
| 200 | WRITE8_HANDLER( sys16_7751_sh_rom_select_w ); | |
| 201 | ||
| 202 | /***************************************************************************/ | |
| 203 | ||
| 204 | 189 | static UINT16 coinctrl; |
| 205 | 190 | |
| 206 | 191 | static WRITE16_HANDLER( sys16_3d_coinctrl_w ) |
| r3115 | r3116 | |
|---|---|---|
| 356 | 356 | |
| 357 | 357 | ROM_START( ww3 ) |
| 358 | 358 | ROM_REGION( 0x10000, "main", 0 ) |
| 359 | ROM_LOAD( "w3i5.3f", 0x5000, 0x1000, CRC(9fc24ad3) ) | |
| 360 | ROM_LOAD( "w3i6.3d", 0x6000, 0x1000, CRC(cb2a308c) ) | |
| 361 | ROM_LOAD( "w3i7b.3b", 0x7000, 0x1000, CRC(1a0c3936) ) | |
| 362 | ROM_LOAD( "w3i8.3g", 0x8000, 0x1000, CRC(9e18a92c) ) | |
| 363 | ROM_LOAD( "w3i9.3e", 0x9000, 0x1000, CRC(8c5884a4) ) | |
| 364 | ROM_LOAD( "w3ia.3c", 0xa000, 0x1000, CRC(dccb8605) ) | |
| 365 | ROM_LOAD( "w3ib.3a", 0xb000, 0x1000, CRC(3658e465) ) | |
| 359 | ROM_LOAD( "w3i5.3f", 0x5000, 0x1000, CRC(9fc24ad3) SHA1(697ab22555ff5aae09f50051ccda545c17a0ac8a) ) | |
| 360 | ROM_LOAD( "w3i6.3d", 0x6000, 0x1000, CRC(cb2a308c) SHA1(9f3bc22bad31165e080e81d4a3fb0ec2aad235fe) ) | |
| 361 | ROM_LOAD( "w3i7b.3b", 0x7000, 0x1000, CRC(1a0c3936) SHA1(fa2d0a1425624ae4d811adc9ea75850641207682) ) | |
| 362 | ROM_LOAD( "w3i8.3g", 0x8000, 0x1000, CRC(9e18a92c) SHA1(c352b7c66ebfc875bb44772874e58c5f6d8cabbc) ) | |
| 363 | ROM_LOAD( "w3i9.3e", 0x9000, 0x1000, CRC(8c5884a4) SHA1(e6f5a5e65d9e59ff37385ab02852c1fdce9088db) ) | |
| 364 | ROM_LOAD( "w3ia.3c", 0xa000, 0x1000, CRC(dccb8605) SHA1(f4c5e1a5de0828c5e39f37e2bf10f4f60bef856a) ) | |
| 365 | ROM_LOAD( "w3ib.3a", 0xb000, 0x1000, CRC(3658e465) SHA1(2c910b2e9d689cb577d8a63bc4d07d0770a6de68) ) | |
| 366 | 366 | |
| 367 | 367 | ROM_REGION( 0x10000, "audio", 0 ) |
| 368 | 368 | ROM_LOAD( "w3s1", 0x7000, 0x0800, CRC(4af956a5) SHA1(25368a40d7ebc60316fd2d78ec4c686e701b96dc) ) |
| r3115 | r3116 | |
|---|---|---|
| 103 | 103 | AM_RANGE(0x8ff0, 0x8fff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 104 | 104 | AM_RANGE(0x9000, 0x901f) AM_WRITE(pacman_sound_w) AM_BASE(&pacman_soundregs) |
| 105 | 105 | AM_RANGE(0x9020, 0x902f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram_2) |
| 106 | AM_RANGE(0x9000, 0x903f) AM_READ(input_port_3_r) /* DSW1 */ | |
| 107 | AM_RANGE(0x9040, 0x907f) AM_READ(input_port_2_r) /* DSW0 */ | |
| 106 | AM_RANGE(0x9000, 0x903f) AM_READ_PORT("DSW1") | |
| 107 | AM_RANGE(0x9040, 0x907f) AM_READ_PORT("DSW0") | |
| 108 | 108 | AM_RANGE(0x9040, 0x9040) AM_WRITE(interrupt_enable_w) |
| 109 | 109 | AM_RANGE(0x9041, 0x9041) AM_WRITE(pacman_sound_enable_w) |
| 110 | 110 | AM_RANGE(0x9042, 0x9042) AM_WRITE(pengo_palettebank_w) |
| r3115 | r3116 | |
| 113 | 113 | AM_RANGE(0x9046, 0x9046) AM_WRITE(pengo_colortablebank_w) |
| 114 | 114 | AM_RANGE(0x9047, 0x9047) AM_WRITE(pengo_gfxbank_w) |
| 115 | 115 | AM_RANGE(0x9070, 0x9070) AM_WRITE(SMH_NOP) |
| 116 | AM_RANGE(0x9080, 0x90bf) AM_READ(input_port_1_r) /* IN1 */ | |
| 117 | AM_RANGE(0x90c0, 0x90ff) AM_READ(input_port_0_r) /* IN0 */ | |
| 116 | AM_RANGE(0x9080, 0x90bf) AM_READ_PORT("IN1") | |
| 117 | AM_RANGE(0x90c0, 0x90ff) AM_READ_PORT("IN0") | |
| 118 | 118 | ADDRESS_MAP_END |
| 119 | 119 | |
| 120 | 120 | |
| r3115 | r3116 | |
| 126 | 126 | AM_RANGE(0x9000, 0x901f) AM_WRITE(pacman_sound_w) AM_BASE(&pacman_soundregs) |
| 127 | 127 | AM_RANGE(0x9020, 0x902f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram_2) |
| 128 | 128 | AM_RANGE(0x9030, 0x9030) AM_WRITE(jrpacman_scroll_w) |
| 129 | AM_RANGE(0x9040, 0x904f) AM_READ | |
| 129 | AM_RANGE(0x9040, 0x904f) AM_READ | |
| 130 | 130 | AM_RANGE(0x9040, 0x9040) AM_WRITE(interrupt_enable_w) |
| 131 | 131 | AM_RANGE(0x9041, 0x9041) AM_WRITE(pacman_sound_enable_w) |
| 132 | 132 | AM_RANGE(0x9042, 0x9042) AM_WRITE(pengo_palettebank_w) |
| r3115 | r3116 | |
| 136 | 136 | AM_RANGE(0x9046, 0x9046) AM_WRITE(pengo_colortablebank_w) |
| 137 | 137 | AM_RANGE(0x9047, 0x9047) AM_WRITE(jrpacman_charbank_w) |
| 138 | 138 | AM_RANGE(0x9070, 0x9070) AM_WRITE(SMH_NOP) |
| 139 | AM_RANGE(0x9080, 0x90bf) AM_READ(input_port_1_r) /* IN1 */ | |
| 140 | AM_RANGE(0x90c0, 0x90ff) AM_READ(input_port_0_r) /* IN0 */ | |
| 139 | AM_RANGE(0x9080, 0x90bf) AM_READ_PORT("P1") | |
| 140 | AM_RANGE(0x90c0, 0x90ff) AM_READ_PORT("P2") | |
| 141 | 141 | ADDRESS_MAP_END |
| 142 | 142 | |
| 143 | 143 | |
| r3115 | r3116 | |
| 238 | 238 | |
| 239 | 239 | |
| 240 | 240 | static INPUT_PORTS_START( jrpacmbl ) |
| 241 | PORT_START(" | |
| 241 | PORT_START("P1 | |
| 242 | 242 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 243 | 243 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 244 | 244 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r3115 | r3116 | |
| 248 | 248 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) |
| 249 | 249 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 250 | 250 | |
| 251 | PORT_START(" | |
| 251 | PORT_START("P2 | |
| 252 | 252 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 253 | 253 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 254 | 254 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 258 | 258 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 259 | 259 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 260 | 260 | |
| 261 | PORT_START("DSW | |
| 261 | PORT_START("DSW | |
| 262 | 262 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) |
| 263 | 263 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| 264 | 264 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 31 | 31 | switch (offset<<1) |
| 32 | 32 | { |
| 33 | 33 | case 0: /* Player 1 & 2 joystick & buttons */ |
| 34 | return | |
| 34 | return | |
| 35 | 35 | |
| 36 | 36 | case 2: /* Credits, start buttons */ |
| 37 | 37 | return (input_port_read(machine, "COIN") | (input_port_read(machine, "COIN") << 8)); |
| 38 | 38 | |
| 39 | 39 | case 4: /* Dip switches */ |
| 40 | return | |
| 40 | return | |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | logerror("CPU #0 PC %06x: warning - read unmapped memory address %06x\n",activecpu_get_pc(),0x30c000+offset); |
| r3115 | r3116 | |
| 113 | 113 | /******************************************************************************/ |
| 114 | 114 | |
| 115 | 115 | static INPUT_PORTS_START( stadhero ) |
| 116 | PORT_START("P1") /* 0x30c001 : Player 1 controls */ | |
| 117 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 118 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 119 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 120 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 121 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 122 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 123 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 124 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 116 | PORT_START("INPUTS") /* 0x30c000 - 0x30c001 */ | |
| 117 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 118 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 119 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 120 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 121 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 122 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 123 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 124 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 125 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 126 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 127 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 128 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 129 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 130 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 131 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 132 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 125 | 133 | |
| 126 | PORT_START("P2") /* 0x30c000 : Player 2 controls */ | |
| 127 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 128 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 129 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 130 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 131 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 132 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 133 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 134 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 135 | ||
| 136 | 134 | PORT_START("COIN") /* 0x30c002 & 0x30c003 : Credits, start buttons */ |
| 137 | 135 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* related to music/sound */ |
| 138 | 136 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* related to music/sound */ |
| r3115 | r3116 | |
| 143 | 141 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 144 | 142 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 145 | 143 | |
| 146 | PORT_START("DSW1") /* 0x30c005 : Dip switch bank 1 */ | |
| 147 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) | |
| 148 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 149 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 150 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) | |
| 151 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) | |
| 152 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) | |
| 153 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 154 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 155 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) | |
| 156 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) | |
| 157 | PORT_DIPUNUSED( 0x10, IP_ACTIVE_LOW ) | |
| 158 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 159 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 160 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 161 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 162 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 163 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 164 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) | |
| 165 | ||
| 166 | PORT_START("DSW2") /* 0x30c004 : Dip switch bank 2 */ | |
| 167 | PORT_DIPNAME( 0x03, 0x03, "Time (1P Vs CPU)" ) /* Table at 0x0014f6 */ | |
| 168 | PORT_DIPSETTING( 0x02, "600" ) | |
| 169 | PORT_DIPSETTING( 0x03, "500" ) | |
| 170 | PORT_DIPSETTING( 0x01, "450" ) | |
| 171 | PORT_DIPSETTING( 0x00, "400" ) | |
| 172 | PORT_DIPNAME( 0x0c, 0x0c, "Time (1P Vs 2P)" ) /* Table at 0x0014fe */ | |
| 173 | PORT_DIPSETTING( 0x08, "270" ) | |
| 174 | PORT_DIPSETTING( 0x0c, "210" ) | |
| 175 | PORT_DIPSETTING( 0x04, "180" ) | |
| 176 | PORT_DIPSETTING( 0x00, "120" ) | |
| 177 | PORT_DIPNAME( 0x30, 0x30, "Final Set" ) /* Table at 0x00078c */ | |
| 178 | PORT_DIPSETTING( 0x20, "3 Credits" ) | |
| 179 | PORT_DIPSETTING( 0x30, "4 Credits" ) | |
| 180 | PORT_DIPSETTING( 0x10, "5 Credits" ) | |
| 181 | PORT_DIPSETTING( 0x00, "6 Credits" ) | |
| 182 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) | |
| 183 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) | |
| 144 | PORT_START("DSW") /* 0x30c004 - 0x30c005 */ | |
| 145 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coin_A ) ) | |
| 146 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 147 | PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) ) | |
| 148 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_1C ) ) | |
| 149 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_2C ) ) | |
| 150 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Coin_B ) ) | |
| 151 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 152 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 153 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_1C ) ) | |
| 154 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_2C ) ) | |
| 155 | PORT_DIPUNUSED( 0x0010, IP_ACTIVE_LOW ) | |
| 156 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 157 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 158 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 159 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 160 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 161 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 162 | PORT_DIPUNUSED( 0x0080, IP_ACTIVE_LOW ) | |
| 163 | PORT_DIPNAME( 0x0300, 0x0300, "Time (1P Vs CPU)" ) /* Table at 0x0014f6 */ | |
| 164 | PORT_DIPSETTING( 0x0200, "600" ) | |
| 165 | PORT_DIPSETTING( 0x0300, "500" ) | |
| 166 | PORT_DIPSETTING( 0x0100, "450" ) | |
| 167 | PORT_DIPSETTING( 0x0000, "400" ) | |
| 168 | PORT_DIPNAME( 0x0c00, 0x0c00, "Time (1P Vs 2P)" ) /* Table at 0x0014fe */ | |
| 169 | PORT_DIPSETTING( 0x0800, "270" ) | |
| 170 | PORT_DIPSETTING( 0x0c00, "210" ) | |
| 171 | PORT_DIPSETTING( 0x0400, "180" ) | |
| 172 | PORT_DIPSETTING( 0x0000, "120" ) | |
| 173 | PORT_DIPNAME( 0x3000, 0x3000, "Final Set" ) /* Table at 0x00078c */ | |
| 174 | PORT_DIPSETTING( 0x2000, "3 Credits" ) | |
| 175 | PORT_DIPSETTING( 0x3000, "4 Credits" ) | |
| 176 | PORT_DIPSETTING( 0x1000, "5 Credits" ) | |
| 177 | PORT_DIPSETTING( 0x0000, "6 Credits" ) | |
| 178 | PORT_DIPUNUSED( 0x4000, IP_ACTIVE_LOW ) | |
| 179 | PORT_DIPUNUSED( 0x8000, IP_ACTIVE_LOW ) | |
| 184 | 180 | INPUT_PORTS_END |
| 185 | 181 | |
| 186 | 182 | /******************************************************************************/ |
| r3115 | r3116 | |
|---|---|---|
| 6 | 6 | Ernesto Corvi |
| 7 | 7 | someone@secureshell.com |
| 8 | 8 | |
| 9 | PCB Layout | |
| 10 | ---------- | |
| 11 | ||
| 12 | GX072 PWB352346B | |
| 13 | |-----------------------------------------------------| | |
| 14 | | MB3722 072D04.1D 072D05.1F 8464 | | |
| 15 | | VOL VOL YM2151 072B08.3N| | |
| 16 | | YM3012 053260 053246 | | |
| 17 | |CN3 3.579545MHz | | |
| 18 | | Z80 072E03.6G | | |
| 19 | |J 052535 8416 053247 | | |
| 20 | |A 052535 2018 072B09.8N| | |
| 21 | |M 052535 053994 2018 053251 | | |
| 22 | |M 051550 053995 | | |
| 23 | |A 8464 | | |
| 24 | | ER5911 052109 051962 072B10.12N| | |
| 25 | |TEST 072M13.13C | | |
| 26 | | 072L12.15C | | |
| 27 | |CN6 072G02.16C 053248 8464 072B06.16H 072B11.16L| | |
| 28 | |CN7 072G01.17C 24MHz 8464 072B07.18H | | |
| 29 | |-----------------------------------------------------| | |
| 30 | Notes: | |
| 31 | CN3 - 4 pin connector for sound output for right speaker (left speaker | |
| 32 | is via the JAMMA connector) | |
| 33 | CN6/CN7 - 15 pin connector for player 3 and player 4 controls | |
| 34 | ER5911 - EEPROM (128bx8 == 93C46) | |
| 35 | 8464 - 8kx8 SRAM | |
| 36 | 8416 - 2kx8 SRAM | |
| 37 | 2018 - 2kx8 SRAM | |
| 38 | MB3722 - Audio Power AMP | |
| 39 | Z80 - clock 3.579545MHz | |
| 40 | YM2151 - clock 3.579545MHz | |
| 41 | YM3012 - clock 1.7897725MHz [3.579545/2] | |
| 42 | Custom ICs - 053260 - sound chip (QFP80) | |
| 43 | 053246/053247 - sprite generators (QFP120) | |
| 44 | 053251 - priority encoder (QFP100) | |
| 45 | 052535 - RGB DAC (ceramic encased SIP9) | |
| 46 | 051550 - I/O DAC (ceramic encased SIP23) | |
| 47 | 053994/053995 - PALs (MMI PAL16L8, DIP20) | |
| 48 | 052109/051962 - Tilemap Generators (QFP120) | |
| 49 | 053248 - CPU (QFP80), clock input 12.000MHz and 3.000MHz [24/2 and 24/8] | |
| 50 | ROMs - 072D04 \ 256kx8 DIP40 MaskROM | |
| 51 | 072D05 / 1Mx8 DIP40 MaskROM (Sound Samples) | |
| 52 | 072E03 - 32kx8 MaskROM (Z80 Sound Program) | |
| 53 | 072B08 \ | |
| 54 | 072B09 | | |
| 55 | 072B10 | 512kx16 DIP40 MaskROM (Sprites) | |
| 56 | 072B11 / | |
| 57 | 072B06 \ | |
| 58 | 072B07 / 256kx16 DIP40 MaskROM (Tiles) | |
| 59 | 072M13 \ | |
| 60 | 072L12 | | |
| 61 | 072G02 | 128kx8 DIP32 MaskROM (Main Program) | |
| 62 | 072G01 / | |
| 63 | ||
| 64 | VSync - 59.1856Hz | |
| 65 | HSync - 15.1566kHz | |
| 66 | ||
| 9 | 67 | ***************************************************************************/ |
| 10 | 68 | |
| 11 | 69 | #include "driver.h" |
| r3115 | r3116 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | #define CREDITS "Phil Stroffolino\nTim Lindquist\nCarlos A. Lozano" |
| 40 | 40 | |
| 41 | extern int marvins_gamegroup; | |
| 41 | 42 | |
| 43 | // FIXME this is definitely wrong, schematics clearly show that vblank triggers interrupt | |
| 44 | // on both CPU at the same time. | |
| 45 | static int snk_irq_delay = 1500; | |
| 46 | ||
| 47 | // see IRQ notes in drivers\marvins.c | |
| 48 | static TIMER_CALLBACK( irq_trigger_callback ) { cpunum_set_input_line(machine, param, 0, HOLD_LINE); } | |
| 49 | ||
| 50 | static INTERRUPT_GEN( snk_irq_BA ) | |
| 51 | { | |
| 52 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE); | |
| 53 | timer_set(ATTOTIME_IN_USEC(snk_irq_delay), NULL, 0, irq_trigger_callback); | |
| 54 | } | |
| 55 | ||
| 56 | ||
| 42 | 57 | /*************************************************************************** |
| 43 | 58 | ** |
| 44 | 59 | ** CPUA and CPUB communicate through shared RAM. |
| r3115 | r3116 | |
| 739 | 754 | static DRIVER_INIT( marvins ) |
| 740 | 755 | { |
| 741 | 756 | sound_cpu_busy = 0; |
| 742 | | |
| 757 | marvins_gamegroup = 0; | |
| 743 | 758 | } |
| 744 | 759 | |
| 745 | 760 | static DRIVER_INIT( madcrash ) |
| r3115 | r3116 | |
| 753 | 768 | mem[0x3a5d] = 0; mem[0x3a5e] = 0; mem[0x3a5f] = 0; |
| 754 | 769 | */ |
| 755 | 770 | sound_cpu_busy = 0; |
| 756 | | |
| 771 | marvins_gamegroup = 1; | |
| 757 | 772 | snk_irq_delay = 1700; |
| 758 | 773 | } |
| 759 | 774 | |
| 760 | 775 | static DRIVER_INIT( vangrd2 ) |
| 761 | 776 | { |
| 762 | 777 | sound_cpu_busy = 0; |
| 763 | | |
| 778 | marvins_gamegroup = 2; | |
| 764 | 779 | } |
| 765 | 780 | |
| 766 | 781 |
| r3115 | r3116 | |
|---|---|---|
| 453 | 453 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 454 | 454 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 455 | 455 | |
| 456 | PORT_START("DSWA") | |
| 456 | PORT_START("DSWA") | |
| 457 | 457 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 458 | 458 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| 459 | 459 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 477 | 477 | PORT_DIPSETTING( 0x80, "3" ) |
| 478 | 478 | PORT_DIPSETTING( 0x00, "4" ) |
| 479 | 479 | |
| 480 | PORT_START("DSWB") | |
| 480 | PORT_START("DSWB") | |
| 481 | 481 | PORT_DIPNAME( 0x07, 0x07, "Extended Rank" ) |
| 482 | 482 | PORT_DIPSETTING( 0x07, "A" ) |
| 483 | 483 | PORT_DIPSETTING( 0x03, "B" ) |
| r3115 | r3116 | |
| 503 | 503 | PORT_DIPSETTING( 0x80, DEF_STR( Off )) |
| 504 | 504 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 505 | 505 | |
| 506 | PORT_START("BRAKE") | |
| 506 | PORT_START("BRAKE") | |
| 507 | 507 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) |
| 508 | 508 | |
| 509 | PORT_START("ACCEL") | |
| 509 | PORT_START("ACCEL") | |
| 510 | 510 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) |
| 511 | 511 | |
| 512 | PORT_START("STEER") | |
| 512 | PORT_START("STEER") | |
| 513 | 513 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(4) |
| 514 | 514 | INPUT_PORTS_END |
| 515 | 515 | |
| r3115 | r3116 | |
| 525 | 525 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 526 | 526 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 527 | 527 | |
| 528 | PORT_START("DSWA") | |
| 528 | PORT_START("DSWA") | |
| 529 | 529 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) |
| 530 | 530 | PORT_DIPSETTING( 0xc0, DEF_STR( 3C_1C ) ) |
| 531 | 531 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 549 | 549 | PORT_DIPSETTING( 0x01, "3" ) |
| 550 | 550 | PORT_DIPSETTING( 0x00, "4" ) |
| 551 | 551 | |
| 552 | PORT_START("DSWB") | |
| 552 | PORT_START("DSWB") | |
| 553 | 553 | PORT_DIPNAME( 0xe0, 0xe0, "Practice Rank" ) |
| 554 | 554 | PORT_DIPSETTING( 0xe0, "A" ) |
| 555 | 555 | PORT_DIPSETTING( 0x60, "B" ) |
| r3115 | r3116 | |
| 575 | 575 | PORT_DIPSETTING( 0x01, DEF_STR( Off )) |
| 576 | 576 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 577 | 577 | |
| 578 | PORT_START("BRAKE") | |
| 578 | PORT_START("BRAKE") | |
| 579 | 579 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) |
| 580 | 580 | |
| 581 | PORT_START("ACCEL") | |
| 581 | PORT_START("ACCEL") | |
| 582 | 582 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) |
| 583 | 583 | |
| 584 | PORT_START("STEER") | |
| 584 | PORT_START("STEER") | |
| 585 | 585 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(4) |
| 586 | 586 | INPUT_PORTS_END |
| 587 | 587 | |
| r3115 | r3116 | |
| 597 | 597 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 598 | 598 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 599 | 599 | |
| 600 | PORT_START("DSWA") | |
| 600 | PORT_START("DSWA") | |
| 601 | 601 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 602 | 602 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| 603 | 603 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 621 | 621 | PORT_DIPSETTING( 0x80, "3" ) |
| 622 | 622 | PORT_DIPSETTING( 0x00, "4" ) |
| 623 | 623 | |
| 624 | PORT_START("DSWB") | |
| 624 | PORT_START("DSWB") | |
| 625 | 625 | PORT_DIPNAME( 0x07, 0x07, "Extended Rank" ) |
| 626 | 626 | PORT_DIPSETTING( 0x07, "A" ) |
| 627 | 627 | PORT_DIPSETTING( 0x03, "B" ) |
| r3115 | r3116 | |
| 647 | 647 | PORT_DIPSETTING( 0x80, DEF_STR( Off )) |
| 648 | 648 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 649 | 649 | |
| 650 | PORT_START("BRAKE") | |
| 650 | PORT_START("BRAKE") | |
| 651 | 651 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) |
| 652 | 652 | |
| 653 | PORT_START("ACCEL") | |
| 653 | PORT_START("ACCEL") | |
| 654 | 654 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) |
| 655 | 655 | |
| 656 | PORT_START("STEER") | |
| 656 | PORT_START("STEER") | |
| 657 | 657 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(4) |
| 658 | 658 | INPUT_PORTS_END |
| 659 | 659 | |
| r3115 | r3116 | |
| 669 | 669 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 670 | 670 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 671 | 671 | |
| 672 | PORT_START("DSWA") | |
| 672 | PORT_START("DSWA") | |
| 673 | 673 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) |
| 674 | 674 | PORT_DIPSETTING( 0xc0, DEF_STR( 3C_1C ) ) |
| 675 | 675 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 694 | 694 | PORT_DIPSETTING( 0x01, DEF_STR( Off )) |
| 695 | 695 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 696 | 696 | |
| 697 | PORT_START("DSWB") | |
| 697 | PORT_START("DSWB") | |
| 698 | 698 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Game_Time ) ) |
| 699 | 699 | PORT_DIPSETTING( 0x80, "90 secs." ) |
| 700 | 700 | PORT_DIPSETTING( 0x00, "120 secs." ) |
| r3115 | r3116 | |
| 717 | 717 | PORT_DIPSETTING( 0x01, "Average" ) |
| 718 | 718 | PORT_DIPSETTING( 0x00, DEF_STR( High ) ) |
| 719 | 719 | |
| 720 | PORT_START("BRAKE") | |
| 720 | PORT_START("BRAKE") | |
| 721 | 721 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) |
| 722 | 722 | |
| 723 | PORT_START("ACCEL") | |
| 723 | PORT_START("ACCEL") | |
| 724 | 724 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) |
| 725 | 725 | |
| 726 | PORT_START("STEER") | |
| 726 | PORT_START("STEER") | |
| 727 | 727 | PORT_BIT ( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(4) |
| 728 | 728 | INPUT_PORTS_END |
| 729 | 729 | |
| r3115 | r3116 | |
| 1743 | 1743 | polepos_gear_bit = 0x20; |
| 1744 | 1744 | |
| 1745 | 1745 | /* extra direct mapped inputs read */ |
| 1746 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_IO, 0x02, 0x02, 0, 0, input_port_5_r); | |
| 1747 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_IO, 0x03, 0x03, 0, 0, input_port_0_r); | |
| 1748 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_IO, 0x04, 0x04, 0, 0, input_port_1_r); | |
| 1746 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_IO, 0x02, 0x02, 0, 0, input_port_read_handler8(machine->portconfig, "STEER")); | |
| 1747 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_IO, 0x03, 0x03, 0, 0, input_port_read_handler8(machine->portconfig, "IN0")); | |
| 1748 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_IO, 0x04, 0x04, 0, 0, input_port_read_handler8(machine->portconfig, "DSWA")); | |
| 1749 | 1749 | |
| 1750 | 1750 | } |
| 1751 | 1751 |
| r3115 | r3116 | |
|---|---|---|
| 99 | 99 | |
| 100 | 100 | AM_RANGE(0x1c00, 0x1c00) AM_READ(tank8_collision_r) |
| 101 | 101 | |
| 102 | AM_RANGE(0x1c01, 0x1c01) AM_READ(input_port_0_r) | |
| 103 | AM_RANGE(0x1c02, 0x1c02) AM_READ(input_port_1_r) | |
| 104 | AM_RANGE(0x1c03, 0x1c03) AM_READ(input_port_2_r) | |
| 105 | AM_RANGE(0x1c04, 0x1c04) AM_READ(input_port_3_r) | |
| 106 | AM_RANGE(0x1c05, 0x1c05) AM_READ(input_port_4_r) | |
| 107 | AM_RANGE(0x1c06, 0x1c06) AM_READ(input_port_5_r) | |
| 108 | AM_RANGE(0x1c07, 0x1c07) AM_READ(input_port_6_r) | |
| 109 | AM_RANGE(0x1c08, 0x1c08) AM_READ(input_port_7_r) | |
| 110 | AM_RANGE(0x1c09, 0x1c09) AM_READ(input_port_8_r) | |
| 111 | AM_RANGE(0x1c0a, 0x1c0a) AM_READ(input_port_9_r) | |
| 112 | AM_RANGE(0x1c0b, 0x1c0b) AM_READ(input_port_10_r) | |
| 113 | AM_RANGE(0x1c0f, 0x1c0f) AM_READ(input_port_11_r) | |
| 102 | AM_RANGE(0x1c01, 0x1c01) AM_READ_PORT("P1") | |
| 103 | AM_RANGE(0x1c02, 0x1c02) AM_READ_PORT("P2") | |
| 104 | AM_RANGE(0x1c03, 0x1c03) AM_READ_PORT("P3") | |
| 105 | AM_RANGE(0x1c04, 0x1c04) AM_READ_PORT("P4") | |
| 106 | AM_RANGE(0x1c05, 0x1c05) AM_READ_PORT("P5") | |
| 107 | AM_RANGE(0x1c06, 0x1c06) AM_READ_PORT("P6") | |
| 108 | AM_RANGE(0x1c07, 0x1c07) AM_READ_PORT("P7") | |
| 109 | AM_RANGE(0x1c08, 0x1c08) AM_READ_PORT("P8") | |
| 110 | AM_RANGE(0x1c09, 0x1c09) AM_READ_PORT("DSW1") | |
| 111 | AM_RANGE(0x1c0a, 0x1c0a) AM_READ_PORT("DSW2") | |
| 112 | AM_RANGE(0x1c0b, 0x1c0b) AM_READ_PORT("RC") | |
| 113 | AM_RANGE(0x1c0f, 0x1c0f) AM_READ_PORT("VBLANK") | |
| 114 | 114 | |
| 115 | 115 | AM_RANGE(0x1800, 0x1bff) AM_WRITE(tank8_video_ram_w) AM_BASE(&tank8_video_ram) |
| 116 | 116 | AM_RANGE(0x1c00, 0x1c0f) AM_WRITE(SMH_RAM) AM_BASE(&tank8_pos_h_ram) |
| r3115 | r3116 | |
| 131 | 131 | |
| 132 | 132 | |
| 133 | 133 | static INPUT_PORTS_START( tank8 ) |
| 134 | PORT_START("P1") // 0 | |
| 135 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 136 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(1) | |
| 137 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(1) | |
| 138 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(1) | |
| 139 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(1) | |
| 140 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 141 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 142 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 134 | PORT_START("P1") | |
| 135 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 136 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(1) | |
| 137 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(1) | |
| 138 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(1) | |
| 139 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(1) | |
| 140 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 141 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 142 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 143 | 143 | |
| 144 | PORT_START("P2") // 1 | |
| 145 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 146 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(2) | |
| 147 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(2) | |
| 148 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(2) | |
| 149 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(2) | |
| 150 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 151 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 152 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 144 | PORT_START("P2") | |
| 145 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 146 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(2) | |
| 147 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(2) | |
| 148 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(2) | |
| 149 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(2) | |
| 150 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 151 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 152 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 153 | 153 | |
| 154 | PORT_START("P3") // 2 | |
| 155 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 156 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(3) | |
| 157 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(3) | |
| 158 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(3) | |
| 159 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(3) | |
| 160 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 161 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 162 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 154 | PORT_START("P3") | |
| 155 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 156 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(3) | |
| 157 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(3) | |
| 158 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(3) | |
| 159 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(3) | |
| 160 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 161 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 162 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 163 | 163 | |
| 164 | PORT_START("P4") // 3 | |
| 165 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 166 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(4) | |
| 167 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(4) | |
| 168 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(4) | |
| 169 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(4) | |
| 170 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 171 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 172 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 164 | PORT_START("P4") | |
| 165 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 166 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(4) | |
| 167 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(4) | |
| 168 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(4) | |
| 169 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(4) | |
| 170 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 171 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 172 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 173 | 173 | |
| 174 | PORT_START("P5") // 4 | |
| 175 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN5 ) | |
| 176 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(5) | |
| 177 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(5) | |
| 178 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(5) | |
| 179 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(5) | |
| 180 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 181 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 182 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(5) | |
| 174 | PORT_START("P5") | |
| 175 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN5 ) | |
| 176 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(5) | |
| 177 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(5) | |
| 178 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(5) | |
| 179 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(5) | |
| 180 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 181 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 182 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(5) | |
| 183 | 183 | |
| 184 | PORT_START("P6") // 5 | |
| 185 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN6 ) | |
| 186 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(6) | |
| 187 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(6) | |
| 188 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(6) | |
| 189 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(6) | |
| 190 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 191 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 192 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(6) | |
| 184 | PORT_START("P6") | |
| 185 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN6 ) | |
| 186 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(6) | |
| 187 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(6) | |
| 188 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(6) | |
| 189 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(6) | |
| 190 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 191 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 192 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(6) | |
| 193 | 193 | |
| 194 | PORT_START("P7") // 6 | |
| 195 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN7 ) | |
| 196 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(7) | |
| 197 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(7) | |
| 198 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(7) | |
| 199 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(7) | |
| 200 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 201 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 202 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(7) | |
| 194 | PORT_START("P7") | |
| 195 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN7 ) | |
| 196 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(7) | |
| 197 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(7) | |
| 198 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(7) | |
| 199 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(7) | |
| 200 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 201 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 202 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(7) | |
| 203 | 203 | |
| 204 | PORT_START("P8") // 7 | |
| 205 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN8 ) | |
| 206 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(8) | |
| 207 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(8) | |
| 208 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(8) | |
| 209 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(8) | |
| 210 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 211 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 212 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(8) | |
| 204 | PORT_START("P8") | |
| 205 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN8 ) | |
| 206 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(8) | |
| 207 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(8) | |
| 208 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(8) | |
| 209 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(8) | |
| 210 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 211 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 212 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(8) | |
| 213 | 213 | |
| 214 | 214 | /* play time is 4351 + N * 640 frames */ |
| 215 | ||
| 216 | PORT_START("DSW1") // 8 | |
| 215 | PORT_START("DSW1") | |
| 217 | 216 | PORT_DIPNAME( 0x0f, 0x08, "Play Time" ) |
| 218 | 217 | PORT_DIPSETTING( 0x0f, "73 seconds" ) |
| 219 | 218 | PORT_DIPSETTING( 0x0e, "83 seconds" ) |
| r3115 | r3116 | |
| 233 | 232 | PORT_DIPSETTING( 0x00, "233 seconds" ) |
| 234 | 233 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 235 | 234 | |
| 236 | PORT_START("DSW2") | |
| 235 | PORT_START("DSW2") | |
| 237 | 236 | PORT_DIPNAME( 0x01, 0x01, "Remote" ) |
| 238 | PORT_DIPSETTING( 0x01, DEF_STR( Off )) | |
| 239 | PORT_DIPSETTING( 0x00, DEF_STR( On )) | |
| 237 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 238 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 240 | 239 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME( "Team" ) |
| 241 | 240 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME( "Remote Start" ) |
| 242 | 241 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME( "Remote Team" ) |
| r3115 | r3116 | |
| 245 | 244 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 246 | 245 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 247 | 246 | |
| 248 | PORT_START("RC") | |
| 247 | PORT_START("RC") | |
| 249 | 248 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME( "RC 1" ) |
| 250 | 249 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME( "RC 2" ) |
| 251 | 250 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME( "RC 3" ) |
| r3115 | r3116 | |
| 255 | 254 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME( "RC 7" ) |
| 256 | 255 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME( "RC 8" ) |
| 257 | 256 | |
| 258 | PORT_START("VBLANK") | |
| 257 | PORT_START("VBLANK") | |
| 259 | 258 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 260 | 259 | |
| 261 | PORT_START("CRASH") | |
| 260 | PORT_START("CRASH") | |
| 262 | 261 | PORT_ADJUSTER( 50, "Crash, Explosion Volume" ) |
| 263 | ||
| 264 | 262 | INPUT_PORTS_END |
| 265 | 263 | |
| 266 | 264 |
| r3115 | r3116 | |
|---|---|---|
| 416 | 416 | AM_RANGE(ADDR_INPUT+0x00, ADDR_INPUT+0x01) AM_READ(ym2151_status_port_0_r) \ |
| 417 | 417 | AM_RANGE(ADDR_INPUT+0x00, ADDR_INPUT+0x00) AM_WRITE(ym2151_register_port_0_w) \ |
| 418 | 418 | AM_RANGE(ADDR_INPUT+0x01, ADDR_INPUT+0x01) AM_WRITE(ym2151_data_port_0_w) \ |
| 419 | AM_RANGE(ADDR_INPUT+0x20, ADDR_INPUT+0x20) AM_READ(input_port_0_r) \ | |
| 420 | AM_RANGE(ADDR_INPUT+0x21, ADDR_INPUT+0x21) AM_READ(input_port_1_r) \ | |
| 419 | AM_RANGE(ADDR_INPUT+0x20, ADDR_INPUT+0x20) AM_READ_PORT("IN0") \ | |
| 420 | AM_RANGE(ADDR_INPUT+0x21, ADDR_INPUT+0x21) AM_READ_PORT("IN1") \ | |
| 421 | 421 | AM_RANGE(ADDR_INPUT+0x30, ADDR_INPUT+0x30) AM_READ(dsw0_r) \ |
| 422 | 422 | AM_RANGE(ADDR_INPUT+0x31, ADDR_INPUT+0x31) AM_READ(dsw1_r) \ |
| 423 | 423 | AM_RANGE(ADDR_LOWROM, ADDR_LOWROM+0x3fff) AM_ROM \ |
| r3115 | r3116 | |
| 444 | 444 | } |
| 445 | 445 | |
| 446 | 446 | static ADDRESS_MAP_START( mcu_port_map, ADDRESS_SPACE_IO, 8 ) |
| 447 | AM_RANGE(HD63701_PORT1, HD63701_PORT1) AM_READ | |
| 447 | AM_RANGE(HD63701_PORT1, HD63701_PORT1) AM_READ | |
| 448 | 448 | AM_RANGE(HD63701_PORT2, HD63701_PORT2) AM_READ(readFF) /* leds won't work otherwise */ |
| 449 | 449 | AM_RANGE(HD63701_PORT1, HD63701_PORT1) AM_WRITE(namcos86_coin_w) |
| 450 | 450 | AM_RANGE(HD63701_PORT2, HD63701_PORT2) AM_WRITE(namcos86_led_w) |
| r3115 | r3116 | |
| 474 | 474 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 475 | 475 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 476 | 476 | |
| 477 | PORT_START("IN2") | |
| 478 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 479 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 480 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 481 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 482 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 483 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 484 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 485 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 486 | ||
| 477 | 487 | PORT_START("DSWA") |
| 478 | 488 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 479 | 489 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) ) |
| r3115 | r3116 | |
| 520 | 530 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) |
| 521 | 531 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| 522 | 532 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 523 | ||
| 524 | PORT_START("IN4") | |
| 525 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 526 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 527 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 528 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 529 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 530 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 531 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 532 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 533 | 533 | INPUT_PORTS_END |
| 534 | 534 | |
| 535 | 535 | static INPUT_PORTS_START( skykiddx ) |
| r3115 | r3116 | |
| 553 | 553 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 554 | 554 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 555 | 555 | |
| 556 | PORT_START("IN2") | |
| 557 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 558 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 559 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 560 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 561 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 562 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 563 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 564 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 565 | ||
| 556 | 566 | PORT_START("DSWA") |
| 557 | 567 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 558 | 568 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) ) |
| r3115 | r3116 | |
| 598 | 608 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 599 | 609 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 600 | 610 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 601 | ||
| 602 | PORT_START("IN4") | |
| 603 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 604 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 605 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 606 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 607 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 608 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 609 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 610 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 611 | 611 | INPUT_PORTS_END |
| 612 | 612 | |
| 613 | 613 | static INPUT_PORTS_START( roishtar ) |
| r3115 | r3116 | |
| 631 | 631 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 632 | 632 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 633 | 633 | |
| 634 | PORT_START("IN2") | |
| 635 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 636 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 637 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 638 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 639 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY | |
| 640 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY | |
| 641 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 642 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY | |
| 643 | ||
| 634 | 644 | PORT_START("DSWA") |
| 635 | 645 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 636 | 646 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) |
| r3115 | r3116 | |
| 680 | 690 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) |
| 681 | 691 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_5C ) ) |
| 682 | 692 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_6C ) ) |
| 683 | ||
| 684 | PORT_START("IN4") | |
| 685 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 686 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 687 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 688 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 689 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY | |
| 690 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY | |
| 691 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 692 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY | |
| 693 | 693 | INPUT_PORTS_END |
| 694 | 694 | |
| 695 | 695 | static INPUT_PORTS_START( genpeitd ) |
| r3115 | r3116 | |
| 713 | 713 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 714 | 714 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 715 | 715 | |
| 716 | PORT_START("IN2") | |
| 717 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 718 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 719 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 720 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 721 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 722 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 723 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 724 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 725 | ||
| 716 | 726 | PORT_START("DSWA") |
| 717 | 727 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 718 | 728 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) ) |
| r3115 | r3116 | |
| 758 | 768 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Flip_Screen ) ) |
| 759 | 769 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 760 | 770 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 761 | ||
| 762 | PORT_START("IN4") | |
| 763 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 764 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 765 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 766 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 767 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 768 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 769 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 770 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 771 | 771 | INPUT_PORTS_END |
| 772 | 772 | |
| 773 | 773 | static INPUT_PORTS_START( rthunder ) |
| r3115 | r3116 | |
| 791 | 791 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 792 | 792 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 793 | 793 | |
| 794 | PORT_START("IN2") | |
| 795 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 796 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 797 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 798 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 799 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 800 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 801 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 802 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) | |
| 803 | ||
| 794 | 804 | PORT_START("DSWA") |
| 795 | 805 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 796 | 806 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) ) |
| r3115 | r3116 | |
| 837 | 847 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Continues ) ) |
| 838 | 848 | PORT_DIPSETTING( 0x00, "3" ) |
| 839 | 849 | PORT_DIPSETTING( 0x01, "6" ) |
| 840 | ||
| 841 | PORT_START("IN4") | |
| 842 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 843 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 844 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 845 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 846 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 847 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 848 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 849 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) | |
| 850 | 850 | INPUT_PORTS_END |
| 851 | 851 | |
| 852 | 852 | static INPUT_PORTS_START( rthundro ) |
| r3115 | r3116 | |
| 870 | 870 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 871 | 871 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 872 | 872 | |
| 873 | PORT_START("IN2") | |
| 874 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 875 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 876 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 877 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 878 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 879 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 880 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 881 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) | |
| 882 | ||
| 873 | 883 | PORT_START("DSWA") |
| 874 | 884 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 875 | 885 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) ) |
| r3115 | r3116 | |
| 916 | 926 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Flip_Screen ) ) |
| 917 | 927 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 918 | 928 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 919 | ||
| 920 | PORT_START("IN4") | |
| 921 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 922 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 923 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 924 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 925 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 926 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 927 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 928 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) | |
| 929 | 929 | INPUT_PORTS_END |
| 930 | 930 | |
| 931 | 931 | static INPUT_PORTS_START( wndrmomo ) |
| r3115 | r3116 | |
| 949 | 949 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 950 | 950 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 951 | 951 | |
| 952 | PORT_START("IN2") | |
| 953 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 954 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 955 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 956 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 957 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 958 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 959 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 960 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) | |
| 961 | ||
| 952 | 962 | PORT_START("DSWA") |
| 953 | 963 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 954 | 964 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Coin_A ) ) |
| r3115 | r3116 | |
| 995 | 1005 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 996 | 1006 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 997 | 1007 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 998 | ||
| 999 | PORT_START("IN4") | |
| 1000 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 1001 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 1 */ | |
| 1002 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin counter 2 */ | |
| 1003 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1004 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1005 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1006 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1007 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) | |
| 1008 | 1008 | INPUT_PORTS_END |
| 1009 | 1009 | |
| 1010 | 1010 |
| r3115 | r3116 | |
|---|---|---|
| 36 | 36 | { |
| 37 | 37 | switch (offset<<1) |
| 38 | 38 | { |
| 39 | case 4: /* Dip Switches */ | |
| 40 | return (input_port_read(machine, "DSW2") + (input_port_read(machine, "DSW1") << 8)); | |
| 41 | case 2: /* Credits */ | |
| 39 | case 4: | |
| 40 | return input_port_read(machine, "DSW"); | |
| 41 | case 2: | |
| 42 | 42 | return input_port_read(machine, "COINS"); |
| 43 | case 0: /* Player 1 & Player 2 joysticks & fire buttons */ | |
| 44 | return (input_port_read(machine, "P1") + (input_port_read(machine, "P2") << 8)); | |
| 43 | case 0: | |
| 44 | return input_port_read(machine, "PLAYERS"); | |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | logerror("Unknown control read at %d\n",offset); |
| r3115 | r3116 | |
| 117 | 117 | /******************************************************************************/ |
| 118 | 118 | |
| 119 | 119 | static INPUT_PORTS_START( vaportra ) |
| 120 | PORT_START("P1") /* Player 1 controls */ | |
| 121 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 122 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 123 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 124 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 125 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 126 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 127 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 128 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 120 | PORT_START("PLAYERS") | |
| 121 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 122 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 123 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 124 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 125 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 126 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 127 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 128 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 129 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 130 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 131 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 132 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 133 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 134 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 135 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 136 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 129 | 137 | |
| 130 | PORT_START("P2") /* Player 2 controls */ | |
| 131 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 132 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 133 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 134 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 135 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 136 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 137 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 138 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 138 | PORT_START("COINS") | |
| 139 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 140 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 141 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 142 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 143 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 144 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 145 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 146 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 139 | 147 | |
| 140 | PORT_START("COINS") /* Credits */ | |
| 141 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 142 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 143 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 144 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 145 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 146 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 147 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 148 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 148 | PORT_START("DSW") | |
| 149 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) | |
| 150 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 151 | PORT_DIPSETTING( 0x0003, "3" ) | |
| 152 | PORT_DIPSETTING( 0x0002, "4" ) | |
| 153 | PORT_DIPSETTING( 0x0001, "5" ) | |
| 154 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 155 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 156 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 157 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 158 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 159 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Bonus_Life ) ) | |
| 160 | PORT_DIPSETTING( 0x0020, "150k, 300k and 600k" ) | |
| 161 | PORT_DIPSETTING( 0x0030, "200k and 600k" ) | |
| 162 | PORT_DIPSETTING( 0x0010, "300k only" ) | |
| 163 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) | |
| 164 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Allow_Continue ) ) | |
| 165 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 166 | PORT_DIPSETTING( 0x0040, DEF_STR( Yes ) ) | |
| 167 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 168 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 169 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 149 | 170 | |
| 150 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 151 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) | |
| 152 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 153 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 154 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 155 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 156 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 157 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 158 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_5C ) ) | |
| 159 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_6C ) ) | |
| 160 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) | |
| 161 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 162 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 163 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 164 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 165 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 166 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 167 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) | |
| 168 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_6C ) ) | |
| 169 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 170 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 171 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 172 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 173 | ||
| 174 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 175 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 176 | PORT_DIPSETTING( 0x00, "2" ) | |
| 177 | PORT_DIPSETTING( 0x03, "3" ) | |
| 178 | PORT_DIPSETTING( 0x02, "4" ) | |
| 179 | PORT_DIPSETTING( 0x01, "5" ) | |
| 180 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 181 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 182 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 183 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 184 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 185 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 186 | PORT_DIPSETTING( 0x20, "150k, 300k and 600k" ) | |
| 187 | PORT_DIPSETTING( 0x30, "200k and 600k" ) | |
| 188 | PORT_DIPSETTING( 0x10, "300k only" ) | |
| 189 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 190 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) | |
| 191 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 192 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 193 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 194 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 195 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 171 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) | |
| 172 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 173 | PORT_DIPSETTING( 0x0100, DEF_STR( 2C_1C ) ) | |
| 174 | PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) ) | |
| 175 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_2C ) ) | |
| 176 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) ) | |
| 177 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 178 | PORT_DIPSETTING( 0x0300, DEF_STR( 1C_5C ) ) | |
| 179 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_6C ) ) | |
| 180 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) | |
| 181 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 182 | PORT_DIPSETTING( 0x0800, DEF_STR( 2C_1C ) ) | |
| 183 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) ) | |
| 184 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_2C ) ) | |
| 185 | PORT_DIPSETTING( 0x2800, DEF_STR( 1C_3C ) ) | |
| 186 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 187 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_5C ) ) | |
| 188 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_6C ) ) | |
| 189 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Flip_Screen ) ) | |
| 190 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 191 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 192 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) | |
| 196 | 193 | INPUT_PORTS_END |
| 197 | 194 | |
| 198 | 195 | /******************************************************************************/ |
| r3115 | r3116 | |
|---|---|---|
| 44 | 44 | * |
| 45 | 45 | *************************************/ |
| 46 | 46 | |
| 47 | static | |
| 47 | static CUSTOM_I | |
| 48 | 48 | { |
| 49 | if (control & 0x0080) | |
| 50 | return input_port_read(machine, "IN0"); | |
| 51 | else | |
| 52 | return input_port_read(machine, "DSW"); | |
| 49 | const char *tag1 = param; | |
| 50 | const char *tag2 = tag1 + strlen(tag1) + 1; | |
| 51 | return input_port_read(field->port->machine, (control & 0x0080) ? tag1 : tag2); | |
| 53 | 52 | } |
| 54 | 53 | |
| 55 | static | |
| 54 | static CUSTOM_I | |
| 56 | 55 | { |
| 57 | 56 | /* bit 0-1 battery power sensor: 3=good, 2=low, other=bad */ |
| 58 | return | |
| 57 | return | |
| 59 | 58 | } |
| 60 | 59 | |
| 61 | 60 | |
| r3115 | r3116 | |
| 345 | 344 | AM_RANGE(0x180000, 0x183fff) AM_READ(SMH_RAM) /* backup ram */ |
| 346 | 345 | AM_RANGE(0x280000, 0x280fff) AM_READ(SMH_RAM) /* color ram */ |
| 347 | 346 | AM_RANGE(0x320000, 0x32001f) AM_READ(K053252_word_r) /* ccu */ |
| 348 | AM_RANGE(0x330000, 0x330001) AM_READ(i_port2_r) /* battery power & service sw */ | |
| 349 | AM_RANGE(0x340000, 0x340001) AM_READ(i_port1_r) /* inputport */ | |
| 347 | AM_RANGE(0x330000, 0x330001) AM_READ_PORT("SENSOR") /* battery power & service sw */ | |
| 348 | AM_RANGE(0x340000, 0x340001) AM_READ_PORT("340000") /* inputport */ | |
| 350 | 349 | AM_RANGE(0x800000, 0x80045f) AM_READ(k054539_word_r) /* sound regs */ |
| 351 | 350 | AM_RANGE(0x880000, 0x881fff) AM_READ(K056832_ram_word_r) /* vram */ |
| 352 | 351 | AM_RANGE(0x882000, 0x883fff) AM_READ(K056832_ram_word_r) /* vram (mirror) */ |
| r3115 | r3116 | |
| 382 | 381 | AM_RANGE(0x180000, 0x183fff) AM_READ(SMH_RAM) /* backup ram */ |
| 383 | 382 | AM_RANGE(0x280000, 0x280fff) AM_READ(SMH_RAM) /* color ram */ |
| 384 | 383 | AM_RANGE(0x320000, 0x32001f) AM_READ(K053252_word_r) /* ccu */ |
| 385 | AM_RANGE(0x330000, 0x330001) AM_READ(i_port2_r) /* battery power & service */ | |
| 386 | AM_RANGE(0x340000, 0x340001) AM_READ(i_port1_r) /* inputport */ | |
| 384 | AM_RANGE(0x330000, 0x330001) AM_READ_PORT("SENSOR") /* battery power & service */ | |
| 385 | AM_RANGE(0x340000, 0x340001) AM_READ_PORT("340000") /* inputport */ | |
| 387 | 386 | AM_RANGE(0x800000, 0x80045f) AM_READ(k054539_word_r) /* sound regs */ |
| 388 | 387 | AM_RANGE(0x880000, 0x881fff) AM_READ(gp2_vram_r) /* vram */ |
| 389 | 388 | AM_RANGE(0x89f000, 0x8a0fff) AM_READ(gp2_vram_mirror_r) /* vram (mirror) */ |
| r3115 | r3116 | |
| 420 | 419 | *************************************/ |
| 421 | 420 | |
| 422 | 421 | static INPUT_PORTS_START( qdrmfgp ) |
| 423 | PORT_START("IN0") | |
| 422 | PORT_START("340000") | |
| 423 | PORT_BIT( 0xffff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(inputs_r, "INPUTS\0DSW") | |
| 424 | ||
| 425 | PORT_START("INPUTS") | |
| 424 | 426 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 425 | 427 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| 426 | 428 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) /* 1P STOP */ |
| r3115 | r3116 | |
| 493 | 495 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) |
| 494 | 496 | |
| 495 | 497 | PORT_START("SENSOR") |
| 496 | PORT_BIT( 0x0003, IP_ACTIVE_ | |
| 498 | PORT_BIT( 0x0003, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(battery_sensor_r, NULL) /* battery power sensor */ | |
| 497 | 499 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE2 ) |
| 498 | 500 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_SERVICE3 ) |
| 499 | 501 | PORT_BIT( 0xfff0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 500 | 502 | INPUT_PORTS_END |
| 501 | 503 | |
| 502 | 504 | static INPUT_PORTS_START( qdrmfgp2 ) |
| 503 | PORT_START("IN0") | |
| 505 | PORT_START("340000") | |
| 506 | PORT_BIT( 0xffff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(inputs_r, "INPUTS\0DSW") | |
| 507 | ||
| 508 | PORT_START("INPUTS") | |
| 504 | 509 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 505 | 510 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| 506 | 511 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) /* 1P STOP */ |
| r3115 | r3116 | |
| 573 | 578 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) |
| 574 | 579 | |
| 575 | 580 | PORT_START("SENSOR") |
| 576 | PORT_BIT( 0x0003, IP_ACTIVE_ | |
| 581 | PORT_BIT( 0x0003, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(battery_sensor_r, NULL) /* battery power sensor */ | |
| 577 | 582 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE2 ) |
| 578 | 583 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_SERVICE3 ) |
| 579 | 584 | PORT_BIT( 0xfff0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
|---|---|---|
| 746 | 746 | PORT_DIPSETTING( 0x01, "7" ) \ |
| 747 | 747 | PORT_DIPSETTING( 0x00, "8 (Hardest)" ) |
| 748 | 748 | |
| 749 | ||
| 750 | static INPUT_PORTS_START( forgottn ) | |
| 749 | /* CPS1 games with 2 players and 3 buttons each */ | |
| 750 | static INPUT_PORTS_START( cps1_3b ) | |
| 751 | 751 | PORT_START("IN0") |
| 752 | 752 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 753 | 753 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r3115 | r3116 | |
| 755 | 755 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 756 | 756 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 757 | 757 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 758 | PORT_ | |
| 758 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW | |
| 759 | 759 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 760 | 760 | |
| 761 | PORT_START("DSWC") // The manual only mentions two DIP switch banks. | |
| 761 | PORT_START("IN1") | |
| 762 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 763 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 764 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 765 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 766 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 767 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 768 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 769 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 770 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 771 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 772 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 773 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 774 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 775 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 776 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 777 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 778 | INPUT_PORTS_END | |
| 779 | ||
| 780 | /* CPS1 games with 2 players and 2 buttons each */ | |
| 781 | static INPUT_PORTS_START( cps1_2b ) | |
| 782 | PORT_INCLUDE( cps1_3b ) | |
| 783 | ||
| 784 | PORT_MODIFY("IN1") | |
| 785 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) // no button 3 | |
| 786 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // no button 3 | |
| 787 | INPUT_PORTS_END | |
| 788 | ||
| 789 | /* CPS1 games with 2 players and 1 button each */ | |
| 790 | static INPUT_PORTS_START( cps1_1b ) | |
| 791 | PORT_INCLUDE( cps1_2b ) | |
| 792 | ||
| 793 | PORT_MODIFY("IN1") | |
| 794 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) // no button 2 | |
| 795 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // no button 2 | |
| 796 | INPUT_PORTS_END | |
| 797 | ||
| 798 | /* CPS1 games with 3 players and 2 buttons each */ | |
| 799 | static INPUT_PORTS_START( cps1_3players ) | |
| 800 | PORT_INCLUDE( cps1_2b ) | |
| 801 | ||
| 802 | PORT_START("IN2") /* Player 3 */ | |
| 803 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 804 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 805 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 806 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 807 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 808 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 809 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 810 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 811 | INPUT_PORTS_END | |
| 812 | ||
| 813 | /* CPS1 games with 4 players and 2 buttons each */ | |
| 814 | static INPUT_PORTS_START( cps1_4players ) | |
| 815 | PORT_INCLUDE( cps1_3players ) | |
| 816 | ||
| 817 | PORT_START("IN3") /* Player 4 */ | |
| 818 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) | |
| 819 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) | |
| 820 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) | |
| 821 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) | |
| 822 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 823 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 824 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 825 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) | |
| 826 | INPUT_PORTS_END | |
| 827 | ||
| 828 | /* CPS1 quiz games */ | |
| 829 | static INPUT_PORTS_START( cps1_quiz ) | |
| 830 | PORT_INCLUDE( cps1_3b ) | |
| 831 | ||
| 832 | PORT_MODIFY("IN1") /* no joystick and 4th button */ | |
| 833 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 834 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 835 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 836 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 837 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 838 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 839 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 840 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 841 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 842 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 843 | INPUT_PORTS_END | |
| 844 | ||
| 845 | ||
| 846 | static INPUT_PORTS_START( forgottn ) | |
| 847 | PORT_INCLUDE( cps1_1b ) | |
| 848 | ||
| 849 | PORT_MODIFY("IN0") | |
| 850 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 851 | ||
| 852 | PORT_START("DSWC") // The manual only mentions two DIP switch banks. | |
| 762 | 853 | PORT_DIPUNUSED( 0x80, 0x80 ) // Is this port brought out to DIP switches or not? |
| 763 | 854 | PORT_DIPUNKNOWN( 0x40, 0x40 ) // Check code at 0x013c78 (0x013690 in 'lostwrld') |
| 764 | 855 | PORT_DIPUNUSED( 0x20, 0x20 ) |
| r3115 | r3116 | |
| 787 | 878 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 788 | 879 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 789 | 880 | |
| 790 | PORT_START("IN1") | |
| 791 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 792 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 793 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 794 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 795 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 796 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 797 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 798 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 799 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 800 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 801 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 802 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 803 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 804 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 805 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 806 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 807 | ||
| 808 | 881 | PORT_START("DIAL0") |
| 809 | 882 | PORT_BIT( 0x0fff, 0x0000, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_PLAYER(1) |
| 810 | 883 | |
| r3115 | r3116 | |
| 813 | 886 | INPUT_PORTS_END |
| 814 | 887 | |
| 815 | 888 | static INPUT_PORTS_START( ghouls ) |
| 816 | PORT_START("IN0") | |
| 817 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 818 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 819 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) /* Service, but it doesn't give any credit */ | |
| 820 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 821 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 822 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 823 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) | |
| 824 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 889 | PORT_INCLUDE( cps1_2b ) | |
| 890 | /* Service1 doesn't give any credit */ | |
| 825 | 891 | |
| 826 | 892 | PORT_START("DSWC") |
| 827 | 893 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW(C):1,2") |
| r3115 | r3116 | |
| 862 | 928 | PORT_DIPSETTING( 0x80, "Upright 2 Players" ) |
| 863 | 929 | // PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) // Manual says these are both valid settings |
| 864 | 930 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) // for 2-player cocktail cabinet |
| 865 | ||
| 866 | PORT_START("IN1") | |
| 867 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 868 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 869 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 870 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 871 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 872 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 873 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 874 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 875 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 876 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 877 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 878 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 879 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 880 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 881 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 882 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 883 | 931 | INPUT_PORTS_END |
| 884 | 932 | |
| 885 | 933 | /* Same as 'ghouls' but additional "Freeze" Dip Switch, different "Lives" Dip Switch, |
| 886 | 934 | and LOTS of "debug" features (read the notes to know how to activate them) */ |
| 887 | 935 | static INPUT_PORTS_START( ghoulsu ) |
| 888 | PORT_START("IN0") | |
| 889 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 890 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 891 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) /* Service, but it doesn't give any credit */ | |
| 892 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 893 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 894 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 895 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) | |
| 896 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 936 | PORT_INCLUDE( ghouls ) | |
| 897 | 937 | |
| 898 | PORT_START("DSWC") | |
| 899 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW(C):1,2") | |
| 938 | PORT_MODIFY("DSWC") | |
| 939 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW(C):1,2") | |
| 900 | 940 | PORT_DIPSETTING( 0x00, "2" ) |
| 901 | 941 | PORT_DIPSETTING( 0x03, "3" ) |
| 902 | 942 | PORT_DIPSETTING( 0x02, "4" ) |
| 903 | 943 | PORT_DIPSETTING( 0x01, "5" ) |
| 904 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW(C):3" ) | |
| 905 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW(C):4" ) | |
| 906 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW(C):5") | |
| 907 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 908 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 909 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW(C):6") | |
| 910 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) // "Demo Sounds" in manual; doesn't work | |
| 911 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 912 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW(C):7") | |
| 913 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 914 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 915 | PORT_DIPNAME( 0x80, 0x80, "Game Mode" ) PORT_DIPLOCATION("SW(C):8") | |
| 916 | PORT_DIPSETTING( 0x80, "Game" ) | |
| 917 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) | |
| 918 | 944 | |
| 919 | PORT_ | |
| 945 | PORT_MODIFY("DSWB") | |
| 920 | 946 | /* Standard Dip Switches */ |
| 921 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW(B):1,2,3") | |
| 922 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 923 | PORT_DIPSETTING( 0x04, "1 (Easiest)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 924 | PORT_DIPSETTING( 0x05, "2" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 925 | PORT_DIPSETTING( 0x06, "3" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 926 | PORT_DIPSETTING( 0x07, "4 (Normal)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 927 | PORT_DIPSETTING( 0x03, "5" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 928 | PORT_DIPSETTING( 0x02, "6" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 929 | PORT_DIPSETTING( 0x01, "7" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 930 | PORT_DIPSETTING( 0x00, "8 (Hardest)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 931 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW(B):4") | |
| 932 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 933 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 934 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 935 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW(B):5,6") | |
| 936 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 937 | PORT_DIPSETTING( 0x20, "10K, 30K and every 30K" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 938 | PORT_DIPSETTING( 0x10, "20K, 50K and every 70K" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 939 | PORT_DIPSETTING( 0x30, "30K, 60K and every 70K" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 940 | PORT_DIPSETTING( 0x00, "40K, 70K and every 80K" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 947 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(B):1,2,3") | |
| 948 | PORT_DIPSETTING( 0x04, "1 (Easiest)" ) | |
| 949 | PORT_DIPSETTING( 0x05, "2" ) | |
| 950 | PORT_DIPSETTING( 0x06, "3" ) | |
| 951 | PORT_DIPSETTING( 0x07, "4 (Normal)" ) | |
| 952 | PORT_DIPSETTING( 0x03, "5" ) | |
| 953 | PORT_DIPSETTING( 0x02, "6" ) | |
| 954 | PORT_DIPSETTING( 0x01, "7" ) | |
| 955 | PORT_DIPSETTING( 0x00, "8 (Hardest)" ) | |
| 956 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(B):4") | |
| 957 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 958 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 959 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(B):5,6") | |
| 960 | PORT_DIPSETTING( 0x20, "10K, 30K and every 30K" ) | |
| 961 | PORT_DIPSETTING( 0x10, "20K, 50K and every 70K" ) | |
| 962 | PORT_DIPSETTING( 0x30, "30K, 60K and every 70K" ) | |
| 963 | PORT_DIPSETTING( 0x00, "40K, 70K and every 80K" ) | |
| 941 | 964 | /* Debug Dip Switches */ |
| 942 | PORT_DIPNAME( 0x07, 0x07, "Starting Weapon" ) PORT_DIPLOCATION("SW(B):1,2,3") | |
| 943 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 944 | PORT_DIPSETTING( 0x07, "Spear" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 945 | PORT_DIPSETTING( 0x06, "Knife" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 946 | PORT_DIPSETTING( 0x05, "Torch" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 947 | PORT_DIPSETTING( 0x04, "Sword" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 948 | PORT_DIPSETTING( 0x03, "Axe" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 949 | PORT_DIPSETTING( 0x02, "Shield" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 950 | PORT_DIPSETTING( 0x01, "Super Weapon" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 951 | // PORT_DIPSETTING( 0x00, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 952 | PORT_DIPNAME( 0x38, 0x30, "Armor on New Life" ) PORT_DIPLOCATION("SW(B):4,5,6") | |
| 953 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 954 | // PORT_DIPSETTING( 0x38, "Silver Armor" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 955 | PORT_DIPSETTING( 0x18, "Golden Armor" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 956 | PORT_DIPSETTING( 0x30, "Silver Armor" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 957 | PORT_DIPSETTING( 0x28, "None (young man)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 958 | PORT_DIPSETTING( 0x20, "None (old man)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 959 | // PORT_DIPSETTING( 0x10, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 960 | // PORT_DIPSETTING( 0x08, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 961 | // PORT_DIPSETTING( 0x00, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 965 | PORT_DIPNAME( 0x07, 0x07, "Starting Weapon" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(B):1,2,3") | |
| 966 | PORT_DIPSETTING( 0x07, "Spear" ) | |
| 967 | PORT_DIPSETTING( 0x06, "Knife" ) | |
| 968 | PORT_DIPSETTING( 0x05, "Torch" ) | |
| 969 | PORT_DIPSETTING( 0x04, "Sword" ) | |
| 970 | PORT_DIPSETTING( 0x03, "Axe" ) | |
| 971 | PORT_DIPSETTING( 0x02, "Shield" ) | |
| 972 | PORT_DIPSETTING( 0x01, "Super Weapon" ) | |
| 973 | // PORT_DIPSETTING( 0x00, "INVALID !" ) | |
| 974 | PORT_DIPNAME( 0x38, 0x30, "Armor on New Life" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(B):4,5,6") | |
| 975 | // PORT_DIPSETTING( 0x38, "Silver Armor" ) | |
| 976 | PORT_DIPSETTING( 0x18, "Golden Armor" ) | |
| 977 | PORT_DIPSETTING( 0x30, "Silver Armor" ) | |
| 978 | PORT_DIPSETTING( 0x28, "None (young man)" ) | |
| 979 | PORT_DIPSETTING( 0x20, "None (old man)" ) | |
| 980 | // PORT_DIPSETTING( 0x10, "INVALID !" ) | |
| 981 | // PORT_DIPSETTING( 0x08, "INVALID !" ) | |
| 982 | // PORT_DIPSETTING( 0x00, "INVALID !" ) | |
| 962 | 983 | |
| 963 | 984 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW(B):7" ) |
| 964 | PORT_DIPNAME( 0x80, 0x80, "Freeze" ) | |
| 985 | PORT_DIPNAME( 0x80, 0x80, "Freeze" ) | |
| 965 | 986 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 966 | 987 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 967 | 988 | |
| 968 | PORT_ | |
| 989 | PORT_MODIFY("DSWA") | |
| 969 | 990 | /* Standard Dip Switches */ |
| 970 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW(A):1,2,3") | |
| 971 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 972 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 973 | PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 974 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 975 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 976 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 977 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 978 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 979 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 980 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW(A):4,5,6") | |
| 981 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 982 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 983 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 984 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 985 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 986 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 987 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 988 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 989 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 991 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(A):1,2,3") | |
| 992 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 993 | PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C ) ) | |
| 994 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) | |
| 995 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 996 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 997 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 998 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 999 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_6C ) ) | |
| 1000 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(A):4,5,6") | |
| 1001 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1002 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) | |
| 1003 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 1004 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1005 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1006 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 1007 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 1008 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_6C ) ) | |
| 990 | 1009 | /* Debug Dip Switches */ |
| 991 | PORT_DIPNAME( 0x0f, 0x0f, "Starting Level" ) PORT_DIPLOCATION("SW(A):1,2,3,4") | |
| 992 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 993 | PORT_DIPSETTING( 0x0f, "Level 1 (1st half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 994 | PORT_DIPSETTING( 0x0e, "Level 1 (2nd half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 995 | PORT_DIPSETTING( 0x0d, "Level 2 (1st half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 996 | PORT_DIPSETTING( 0x0c, "Level 2 (2nd half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 997 | PORT_DIPSETTING( 0x0b, "Level 3 (1st half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 998 | PORT_DIPSETTING( 0x0a, "Level 3 (2nd half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 999 | PORT_DIPSETTING( 0x09, "Level 4 (1st half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1000 | PORT_DIPSETTING( 0x08, "Level 4 (2nd half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1001 | PORT_DIPSETTING( 0x07, "Level 5 (1st half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1002 | PORT_DIPSETTING( 0x06, "Level 5 (2nd half)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1003 | PORT_DIPSETTING( 0x05, "Level 6" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1004 | // PORT_DIPSETTING( 0x04, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1005 | // PORT_DIPSETTING( 0x03, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1006 | // PORT_DIPSETTING( 0x02, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1007 | // PORT_DIPSETTING( 0x01, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1008 | // PORT_DIPSETTING( 0x00, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1009 | PORT_DIPNAME( 0x10, 0x10, "Invulnerability" ) PORT_DIPLOCATION("SW(A):5") | |
| 1010 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1011 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1012 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1013 | PORT_DIPNAME( 0x20, 0x20, "Slow Motion" ) PORT_DIPLOCATION("SW(A):6") | |
| 1014 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1015 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1016 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1010 | PORT_DIPNAME( 0x0f, 0x0f, "Starting Level" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(A):1,2,3,4") | |
| 1011 | PORT_DIPSETTING( 0x0f, "Level 1 (1st half)" ) | |
| 1012 | PORT_DIPSETTING( 0x0e, "Level 1 (2nd half)" ) | |
| 1013 | PORT_DIPSETTING( 0x0d, "Level 2 (1st half)" ) | |
| 1014 | PORT_DIPSETTING( 0x0c, "Level 2 (2nd half)" ) | |
| 1015 | PORT_DIPSETTING( 0x0b, "Level 3 (1st half)" ) | |
| 1016 | PORT_DIPSETTING( 0x0a, "Level 3 (2nd half)" ) | |
| 1017 | PORT_DIPSETTING( 0x09, "Level 4 (1st half)" ) | |
| 1018 | PORT_DIPSETTING( 0x08, "Level 4 (2nd half)" ) | |
| 1019 | PORT_DIPSETTING( 0x07, "Level 5 (1st half)" ) | |
| 1020 | PORT_DIPSETTING( 0x06, "Level 5 (2nd half)" ) | |
| 1021 | PORT_DIPSETTING( 0x05, "Level 6" ) | |
| 1022 | // PORT_DIPSETTING( 0x04, "INVALID !" ) | |
| 1023 | // PORT_DIPSETTING( 0x03, "INVALID !" ) | |
| 1024 | // PORT_DIPSETTING( 0x02, "INVALID !" ) | |
| 1025 | // PORT_DIPSETTING( 0x01, "INVALID !" ) | |
| 1026 | // PORT_DIPSETTING( 0x00, "INVALID !" ) | |
| 1027 | PORT_DIPNAME( 0x10, 0x10, "Invulnerability" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(A):5") | |
| 1028 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1029 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1030 | PORT_DIPNAME( 0x20, 0x20, "Slow Motion" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(A):6") | |
| 1031 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1032 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1017 | 1033 | |
| 1018 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Cabinet ) ) | |
| 1034 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Cabinet ) ) | |
| 1019 | 1035 | PORT_DIPSETTING( 0xc0, "Upright 1 Player" ) |
| 1020 | 1036 | PORT_DIPSETTING( 0x80, "Upright 2 Players" ) |
| 1021 | 1037 | // PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) // Manual says these are both valid settings |
| 1022 | 1038 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) // for 2-player cocktail cabinet |
| 1023 | ||
| 1024 | PORT_START("IN1") | |
| 1025 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1026 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1027 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1028 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1029 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1030 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1031 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1032 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1033 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1034 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1035 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1036 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1037 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1038 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1039 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1040 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1041 | 1039 | INPUT_PORTS_END |
| 1042 | 1040 | |
| 1043 | 1041 | /* Same as 'ghouls' but additional "Freeze" Dip Switch */ |
| r3115 | r3116 | |
| 1052 | 1050 | |
| 1053 | 1051 | /* "Debug" features to be implemented */ |
| 1054 | 1052 | static INPUT_PORTS_START( strider ) |
| 1055 | PORT_START("IN0") | |
| 1056 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1057 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1058 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1059 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1060 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1061 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1062 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) | |
| 1063 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1053 | PORT_INCLUDE( cps1_3b ) | |
| 1064 | 1054 | |
| 1065 | 1055 | PORT_START("DSWA") |
| 1066 | 1056 | CPS1_COINAGE_1( "SW(A)" ) |
| r3115 | r3116 | |
| 1113 | 1103 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 1114 | 1104 | PORT_DIPSETTING( 0x80, "Game" ) |
| 1115 | 1105 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) // To enable the "debug" features |
| 1116 | ||
| 1117 | PORT_START("IN1") | |
| 1118 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1119 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1120 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1121 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1122 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1123 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1124 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1125 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1126 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1127 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1128 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1129 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1130 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1131 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1132 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1133 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1134 | 1106 | INPUT_PORTS_END |
| 1135 | 1107 | |
| 1136 | 1108 | /* Same as 'strider' but additional "2 Coins to Start, 1 to Continue" Dip Switch */ |
| 1137 | 1109 | /* "Debug" features to be implemented */ |
| 1138 | 1110 | static INPUT_PORTS_START( stridrua ) |
| 1139 | PORT_START("IN0") | |
| 1140 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1141 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1142 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1143 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1144 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1145 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1146 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) | |
| 1147 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1111 | PORT_INCLUDE( strider ) | |
| 1148 | 1112 | |
| 1149 | PORT_START("DSWA") | |
| 1150 | CPS1_COINAGE_1( "SW(A)" ) | |
| 1151 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW(A):7,8") | |
| 1152 | PORT_DIPSETTING( 0xc0, "Upright 1 Player" ) // These switches are not documented in the | |
| 1153 | PORT_DIPSETTING( 0x80, "Upright 2 Players" ) // manual | |
| 1154 | // PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 1155 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1156 | ||
| 1157 | PORT_START("DSWB") | |
| 1158 | CPS1_DIFFICULTY_2( "SW(B)" ) | |
| 1113 | PORT_MODIFY("DSWB") | |
| 1159 | 1114 | /* In 'striderj', bit 3 is stored at 0xff8e77 ($e77,A5) via code at 0x000a2a, |
| 1160 | 1115 | but this address is never checked again. |
| 1161 | 1116 | In 'strider' and 'stridrja', this code even doesn't exist ! */ |
| 1162 | 1117 | PORT_DIPNAME( 0x08, 0x08, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW(B):4") |
| 1163 | 1118 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) // This works in this revision |
| 1164 | 1119 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1165 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW(B):5,6") | |
| 1166 | PORT_DIPSETTING( 0x30, "20K, 40K then every 60K" ) | |
| 1167 | PORT_DIPSETTING( 0x20, "30K, 50K then every 70K" ) | |
| 1168 | PORT_DIPSETTING( 0x10, "20K & 60K only" ) | |
| 1169 | PORT_DIPSETTING( 0x00, "30K & 60K only" ) | |
| 1170 | PORT_DIPNAME( 0xc0, 0x80, "Internal Diff. on Life Loss" ) PORT_DIPLOCATION("SW(B):7,8") | |
| 1171 | PORT_DIPSETTING( 0xc0, "-3" ) // Check code at 0x00d15a | |
| 1172 | // PORT_DIPSETTING( 0x40, "-1" ) // These switches are not documented in the | |
| 1173 | PORT_DIPSETTING( 0x00, "-1" ) // manual | |
| 1174 | PORT_DIPSETTING( 0x80, "Default" ) | |
| 1175 | ||
| 1176 | PORT_START("DSWC") | |
| 1177 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW(C):1,2") | |
| 1178 | PORT_DIPSETTING( 0x00, "2" ) // "6" in the "test mode" and manual | |
| 1179 | PORT_DIPSETTING( 0x03, "3" ) | |
| 1180 | PORT_DIPSETTING( 0x02, "4" ) | |
| 1181 | PORT_DIPSETTING( 0x01, "5" ) | |
| 1182 | PORT_DIPNAME( 0x04, 0x04, "Freeze" ) PORT_DIPLOCATION("SW(C):3") | |
| 1183 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1184 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1185 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW(C):4") | |
| 1186 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1187 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1188 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW(C):5") | |
| 1189 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1190 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1191 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW(C):6") | |
| 1192 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1193 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1194 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW(C):7") | |
| 1195 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1196 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 1197 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") | |
| 1198 | PORT_DIPSETTING( 0x80, "Game" ) | |
| 1199 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) // To enable the "debug" features | |
| 1200 | ||
| 1201 | PORT_START("IN1") | |
| 1202 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1203 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1204 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1205 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1206 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1207 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1208 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1209 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1210 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1211 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1212 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1213 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1214 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1215 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1216 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1217 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1218 | 1120 | INPUT_PORTS_END |
| 1219 | 1121 | |
| 1220 | 1122 | static INPUT_PORTS_START( dynwar ) |
| 1221 | PORT_START("IN0") | |
| 1222 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1223 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1224 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1225 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1226 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1227 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1228 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) | |
| 1229 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1123 | PORT_INCLUDE( cps1_3b ) | |
| 1230 | 1124 | |
| 1231 | 1125 | PORT_START("DSWC") |
| 1232 | 1126 | PORT_DIPNAME( 0x01, 0x01, "Freeze" ) PORT_DIPLOCATION("SW(C):1") |
| r3115 | r3116 | |
| 1266 | 1160 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW(A):8") |
| 1267 | 1161 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) // This switch is not documented in the manual |
| 1268 | 1162 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1269 | ||
| 1270 | PORT_START("IN1") | |
| 1271 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1272 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1273 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1274 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1275 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1276 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1277 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1278 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1279 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1280 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1281 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1282 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1283 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1284 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1285 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1286 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1287 | 1163 | INPUT_PORTS_END |
| 1288 | 1164 | |
| 1289 | 1165 | /* Read the notes to know how to activate the "debug" features */ |
| 1290 | 1166 | static INPUT_PORTS_START( willow ) |
| 1291 | PORT_START("IN0") | |
| 1292 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1293 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1294 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1295 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1296 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1297 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1167 | PORT_INCLUDE( cps1_3b ) | |
| 1168 | ||
| 1169 | PORT_MODIFY("IN0") | |
| 1298 | 1170 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 1299 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1300 | 1171 | |
| 1301 | 1172 | PORT_START("DSWC") |
| 1302 | 1173 | /* Standard Dip Switches */ |
| 1303 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW(C):1,2") | |
| 1304 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1305 | PORT_DIPSETTING( 0x02, "1" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1306 | PORT_DIPSETTING( 0x03, "2" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1307 | PORT_DIPSETTING( 0x01, "3" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1308 | PORT_DIPSETTING( 0x00, "4" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1309 | PORT_DIPNAME( 0x0c, 0x0c, "Vitality" ) PORT_DIPLOCATION("SW(C):3,4") | |
| 1310 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1311 | PORT_DIPSETTING( 0x00, "2" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1312 | PORT_DIPSETTING( 0x0c, "3" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1313 | PORT_DIPSETTING( 0x08, "4" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1314 | PORT_DIPSETTING( 0x04, "5" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1174 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(C):1,2") | |
| 1175 | PORT_DIPSETTING( 0x02, "1" ) | |
| 1176 | PORT_DIPSETTING( 0x03, "2" ) | |
| 1177 | PORT_DIPSETTING( 0x01, "3" ) | |
| 1178 | PORT_DIPSETTING( 0x00, "4" ) | |
| 1179 | PORT_DIPNAME( 0x0c, 0x0c, "Vitality" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(C):3,4") | |
| 1180 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1181 | PORT_DIPSETTING( 0x0c, "3" ) | |
| 1182 | PORT_DIPSETTING( 0x08, "4" ) | |
| 1183 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1315 | 1184 | /* Debug Dip Switches */ |
| 1316 | PORT_DIPNAME( 0x01, 0x01, "Turbo Mode" ) PORT_DIPLOCATION("SW(C):1") | |
| 1317 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1318 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1319 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1320 | PORT_DIPNAME( 0x02, 0x02, "Freeze" ) PORT_DIPLOCATION("SW(C):2") | |
| 1321 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1322 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1323 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1324 | PORT_DIPNAME( 0x04, 0x04, "Slow Motion" ) PORT_DIPLOCATION("SW(C):3") | |
| 1325 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1326 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1327 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1328 | PORT_DIPNAME( 0x08, 0x08, "Invulnerability" ) PORT_DIPLOCATION("SW(C):4") | |
| 1329 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1330 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1331 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1185 | PORT_DIPNAME( 0x01, 0x01, "Turbo Mode" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(C):1") | |
| 1186 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1187 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1188 | PORT_DIPNAME( 0x02, 0x02, "Freeze" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(C):2") | |
| 1189 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1190 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1191 | PORT_DIPNAME( 0x04, 0x04, "Slow Motion" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(C):3") | |
| 1192 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1193 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1194 | PORT_DIPNAME( 0x08, 0x08, "Invulnerability" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(C):4") | |
| 1195 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1196 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1332 | 1197 | |
| 1333 | 1198 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW(C):5") |
| 1334 | 1199 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 1335 | 1200 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1336 | 1201 | |
| 1337 | 1202 | /* Standard Dip Switches */ |
| 1338 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW(C):6") | |
| 1339 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1340 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1341 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1203 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(C):6") | |
| 1204 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1205 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1342 | 1206 | /* Debug Dip Switches */ |
| 1343 | PORT_DIPNAME( 0x20, 0x20, "Display Debug Infos" ) PORT_DIPLOCATION("SW(C):6") | |
| 1344 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1345 | PORT_DIPSETTING( 0x20, DEF_STR( No ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1346 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1207 | PORT_DIPNAME( 0x20, 0x20, "Display Debug Infos" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(C):6") | |
| 1208 | PORT_DIPSETTING( 0x20, DEF_STR( No ) ) | |
| 1209 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1347 | 1210 | |
| 1348 | 1211 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW(C):7") |
| 1349 | 1212 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| r3115 | r3116 | |
| 1354 | 1217 | |
| 1355 | 1218 | PORT_START("DSWB") |
| 1356 | 1219 | /* Standard Dip Switches */ |
| 1357 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW(B):1,2,3") | |
| 1358 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1359 | PORT_DIPSETTING( 0x04, "1 (Easiest)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1360 | PORT_DIPSETTING( 0x05, "2" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1361 | PORT_DIPSETTING( 0x06, "3" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1362 | PORT_DIPSETTING( 0x07, "4 (Normal)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1363 | PORT_DIPSETTING( 0x03, "5" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1364 | PORT_DIPSETTING( 0x02, "6" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1365 | PORT_DIPSETTING( 0x01, "7" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1366 | PORT_DIPSETTING( 0x00, "8 (Hardest)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1367 | PORT_DIPNAME( 0x18, 0x18, "Nando Speed" ) PORT_DIPLOCATION("SW(B):4,5") | |
| 1368 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1369 | PORT_DIPSETTING( 0x10, "Slow" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1370 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1371 | PORT_DIPSETTING( 0x08, "Fast" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1372 | PORT_DIPSETTING( 0x00, "Very Fast" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1373 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW(B):6") | |
| 1374 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1375 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1376 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1377 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW(B):7") | |
| 1378 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1379 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1380 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1381 | PORT_DIPNAME( 0x80, 0x80, "Stage Magic Continue" ) PORT_DIPLOCATION("SW(B):8") | |
| 1382 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1383 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1384 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1220 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(B):1,2,3") | |
| 1221 | PORT_DIPSETTING( 0x04, "1 (Easiest)" ) | |
| 1222 | PORT_DIPSETTING( 0x05, "2" ) | |
| 1223 | PORT_DIPSETTING( 0x06, "3" ) | |
| 1224 | PORT_DIPSETTING( 0x07, "4 (Normal)" ) | |
| 1225 | PORT_DIPSETTING( 0x03, "5" ) | |
| 1226 | PORT_DIPSETTING( 0x02, "6" ) | |
| 1227 | PORT_DIPSETTING( 0x01, "7" ) | |
| 1228 | PORT_DIPSETTING( 0x00, "8 (Hardest)" ) | |
| 1229 | PORT_DIPNAME( 0x18, 0x18, "Nando Speed" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(B):4,5") | |
| 1230 | PORT_DIPSETTING( 0x10, "Slow" ) | |
| 1231 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) | |
| 1232 | PORT_DIPSETTING( 0x08, "Fast" ) | |
| 1233 | PORT_DIPSETTING( 0x00, "Very Fast" ) | |
| 1234 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(B):6") | |
| 1235 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1236 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1237 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(B):7") | |
| 1238 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1239 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1240 | PORT_DIPNAME( 0x80, 0x80, "Stage Magic Continue" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(B):8") | |
| 1241 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1242 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1385 | 1243 | /* Debug Dip Switches */ |
| 1386 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW(B):1") | |
| 1387 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1388 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1389 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1390 | PORT_DIPNAME( 0x1e, 0x1e, "Slow Motion Delay" ) PORT_DIPLOCATION("SW(B):2,3,4,5") | |
| 1391 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1392 | PORT_DIPSETTING( 0x1e, "2 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1393 | PORT_DIPSETTING( 0x1c, "3 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1394 | PORT_DIPSETTING( 0x1a, "4 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1395 | PORT_DIPSETTING( 0x18, "5 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1396 | PORT_DIPSETTING( 0x16, "6 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1397 | PORT_DIPSETTING( 0x14, "7 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1398 | PORT_DIPSETTING( 0x12, "8 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1399 | PORT_DIPSETTING( 0x10, "9 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1400 | PORT_DIPSETTING( 0x0e, "10 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1401 | PORT_DIPSETTING( 0x0c, "11 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1402 | PORT_DIPSETTING( 0x0a, "12 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1403 | PORT_DIPSETTING( 0x08, "13 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1404 | PORT_DIPSETTING( 0x06, "14 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1405 | PORT_DIPSETTING( 0x04, "15 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1406 | PORT_DIPSETTING( 0x02, "16 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1407 | PORT_DIPSETTING( 0x00, "17 Frames" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1408 | PORT_DIPNAME( 0xe0, 0xe0, "Starting Level" ) PORT_DIPLOCATION("SW(B):6,7,8") | |
| 1409 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1410 | PORT_DIPSETTING( 0xe0, "Level 1" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1411 | PORT_DIPSETTING( 0xc0, "Level 2" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1412 | PORT_DIPSETTING( 0xa0, "Level 3" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1413 | PORT_DIPSETTING( 0x80, "Level 4" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1414 | PORT_DIPSETTING( 0x60, "Level 5" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1415 | PORT_DIPSETTING( 0x40, "Level 6" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1416 | // PORT_DIPSETTING( 0x20, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1417 | // PORT_DIPSETTING( 0x00, "INVALID !" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1244 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(B):1") | |
| 1245 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1246 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1247 | PORT_DIPNAME( 0x1e, 0x1e, "Slow Motion Delay" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(B):2,3,4,5") | |
| 1248 | PORT_DIPSETTING( 0x1e, "2 Frames" ) | |
| 1249 | PORT_DIPSETTING( 0x1c, "3 Frames" ) | |
| 1250 | PORT_DIPSETTING( 0x1a, "4 Frames" ) | |
| 1251 | PORT_DIPSETTING( 0x18, "5 Frames" ) | |
| 1252 | PORT_DIPSETTING( 0x16, "6 Frames" ) | |
| 1253 | PORT_DIPSETTING( 0x14, "7 Frames" ) | |
| 1254 | PORT_DIPSETTING( 0x12, "8 Frames" ) | |
| 1255 | PORT_DIPSETTING( 0x10, "9 Frames" ) | |
| 1256 | PORT_DIPSETTING( 0x0e, "10 Frames" ) | |
| 1257 | PORT_DIPSETTING( 0x0c, "11 Frames" ) | |
| 1258 | PORT_DIPSETTING( 0x0a, "12 Frames" ) | |
| 1259 | PORT_DIPSETTING( 0x08, "13 Frames" ) | |
| 1260 | PORT_DIPSETTING( 0x06, "14 Frames" ) | |
| 1261 | PORT_DIPSETTING( 0x04, "15 Frames" ) | |
| 1262 | PORT_DIPSETTING( 0x02, "16 Frames" ) | |
| 1263 | PORT_DIPSETTING( 0x00, "17 Frames" ) | |
| 1264 | PORT_DIPNAME( 0xe0, 0xe0, "Starting Level" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(B):6,7,8") | |
| 1265 | PORT_DIPSETTING( 0xe0, "Level 1" ) | |
| 1266 | PORT_DIPSETTING( 0xc0, "Level 2" ) | |
| 1267 | PORT_DIPSETTING( 0xa0, "Level 3" ) | |
| 1268 | PORT_DIPSETTING( 0x80, "Level 4" ) | |
| 1269 | PORT_DIPSETTING( 0x60, "Level 5" ) | |
| 1270 | PORT_DIPSETTING( 0x40, "Level 6" ) | |
| 1271 | // PORT_DIPSETTING( 0x20, "INVALID !" ) | |
| 1272 | // PORT_DIPSETTING( 0x00, "INVALID !" ) | |
| 1418 | 1273 | |
| 1419 | 1274 | PORT_START("DSWA") |
| 1420 | 1275 | /* Standard Dip Switches */ |
| 1421 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW(A):1,2,3") | |
| 1422 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1423 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1424 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1425 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1426 | PORT_DIPSETTING( 0x00, "2 Coins/1 Credit (1 to continue)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1427 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1428 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1429 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1430 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1431 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW(A):4,5,6") | |
| 1432 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1433 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1434 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1435 | PORT_DIPSETTING( 0x18, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1436 | PORT_DIPSETTING( 0x00, "2 Coins/1 Credit (1 to continue)" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1437 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1438 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1439 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1440 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1441 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW(A):7,8") | |
| 1442 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1443 | PORT_DIPSETTING( 0xc0, "Upright 1 Player" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1444 | PORT_DIPSETTING( 0x80, "Upright 2 Players" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1445 | // PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1446 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x80) | |
| 1276 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(A):1,2,3") | |
| 1277 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) | |
| 1278 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 1279 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) | |
| 1280 | PORT_DIPSETTING( 0x00, "2 Coins/1 Credit (1 to continue)" ) | |
| 1281 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 1282 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 1283 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 1284 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 1285 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(A):4,5,6") | |
| 1286 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C ) ) | |
| 1287 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 1288 | PORT_DIPSETTING( 0x18, DEF_STR( 2C_1C ) ) | |
| 1289 | PORT_DIPSETTING( 0x00, "2 Coins/1 Credit (1 to continue)" ) | |
| 1290 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1291 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1292 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 1293 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 1294 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Cabinet ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x80) PORT_DIPLOCATION("SW(A):7,8") | |
| 1295 | PORT_DIPSETTING( 0xc0, "Upright 1 Player" ) | |
| 1296 | PORT_DIPSETTING( 0x80, "Upright 2 Players" ) | |
| 1297 | // PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 1298 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1447 | 1299 | /* Debug Dip Switches */ |
| 1448 | PORT_DIPNAME( 0x3f, 0x3f, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW(A):1,2,3,4,5,6") | |
| 1449 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1450 | PORT_DIPSETTING( 0x3f, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1451 | PORT_DIPSETTING( 0x38, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1300 | PORT_DIPNAME( 0x3f, 0x3f, DEF_STR( Free_Play ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(A):1,2,3,4,5,6") | |
| 1301 | PORT_DIPSETTING( 0x3f, DEF_STR( Off ) ) | |
| 1302 | PORT_DIPSETTING( 0x38, DEF_STR( On ) ) | |
| 1452 | 1303 | /* Other values don't give free play */ |
| 1453 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW(A):7") | |
| 1454 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1455 | PORT_DIPSETTING( 0x40, "Upright 1 Player" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1456 | PORT_DIPSETTING( 0x00, "Upright 2 Players" ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1457 | PORT_DIPNAME( 0x80, 0x80, "Maximum magic/sword power" ) PORT_DIPLOCATION("SW(A):8") | |
| 1458 | PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1459 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1460 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWC",0x80,PORTCOND_EQUALS,0x00) | |
| 1461 | ||
| 1462 | PORT_START("IN1") | |
| 1463 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1464 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1465 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1466 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1467 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1468 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1469 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* BUTTON3 in the "Input" test screen */ | |
| 1470 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1471 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1472 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1473 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1474 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1475 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1476 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1477 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* BUTTON3 in the "Input" test screen */ | |
| 1478 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1304 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Cabinet ) ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(A):7") | |
| 1305 | PORT_DIPSETTING( 0x40, "Upright 1 Player" ) | |
| 1306 | PORT_DIPSETTING( 0x00, "Upright 2 Players" ) | |
| 1307 | PORT_DIPNAME( 0x80, 0x80, "Maximum magic/sword power" ) PORT_CONDITION("DSWC", 0x80, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(A):8") | |
| 1308 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1309 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1479 | 1310 | INPUT_PORTS_END |
| 1480 | 1311 | |
| 1481 | 1312 | /* To enable extra choices in the "test mode", you must press "Coin 1" ('5') AND "Service Mode" ('F2') */ |
| 1482 | 1313 | static INPUT_PORTS_START( unsquad ) |
| 1483 | PORT_START("IN0") | |
| 1484 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1485 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1486 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1487 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1488 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1489 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1314 | PORT_INCLUDE( cps1_3b ) | |
| 1315 | ||
| 1316 | PORT_MODIFY("IN0") | |
| 1490 | 1317 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 1491 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1492 | 1318 | |
| 1493 | 1319 | PORT_START("DSWA") |
| 1494 | 1320 | CPS1_COINAGE_3( "SW(A)" ) |
| r3115 | r3116 | |
| 1529 | 1355 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 1530 | 1356 | PORT_DIPSETTING( 0x80, "Game" ) |
| 1531 | 1357 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 1532 | ||
| 1533 | PORT_START("IN1") | |
| 1534 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1535 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1536 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1537 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1538 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1539 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1540 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1541 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1542 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1543 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1544 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1545 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1546 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1547 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1548 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1549 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1550 | 1358 | INPUT_PORTS_END |
| 1551 | 1359 | |
| 1552 | 1360 | /* To enable other choices in the "test mode", you must press ("P1 Button 1" ('Ctrl') |
| 1553 | 1361 | or "P1 Button 2" ('Alt')) when "Service Mode" is ON */ |
| 1554 | 1362 | static INPUT_PORTS_START( ffight ) |
| 1555 | PORT_START("IN0") | |
| 1556 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1557 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1558 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1559 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1560 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1561 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1562 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) | |
| 1563 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1363 | PORT_INCLUDE( cps1_3b ) | |
| 1564 | 1364 | |
| 1365 | PORT_MODIFY("IN1") | |
| 1366 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME ("P1 Button 3 (Cheat)") | |
| 1367 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME ("P2 Button 3 (Cheat)") | |
| 1368 | ||
| 1565 | 1369 | PORT_START("DSWA") |
| 1566 | 1370 | CPS1_COINAGE_1( "SW(A)" ) |
| 1567 | 1371 | PORT_DIPNAME( 0x40, 0x40, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW(A):7") |
| r3115 | r3116 | |
| 1615 | 1419 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 1616 | 1420 | PORT_DIPSETTING( 0x80, "Game" ) |
| 1617 | 1421 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 1618 | ||
| 1619 | PORT_START("IN1") | |
| 1620 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1621 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1622 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1623 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1624 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1625 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1626 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME ("P1 Button 3 (Cheat)") | |
| 1627 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1628 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1629 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1630 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1631 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1632 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1633 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1634 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME ("P2 Button 3 (Cheat)") | |
| 1635 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1636 | 1422 | INPUT_PORTS_END |
| 1637 | 1423 | |
| 1638 | 1424 | static INPUT_PORTS_START( 1941 ) |
| 1639 | PORT_START("IN0") | |
| 1640 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1641 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1642 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1643 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1644 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1645 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1646 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) | |
| 1647 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1425 | PORT_INCLUDE( cps1_2b ) | |
| 1648 | 1426 | |
| 1649 | 1427 | PORT_START("DSWA") |
| 1650 | 1428 | CPS1_COINAGE_1( "SW(A)" ) |
| r3115 | r3116 | |
| 1692 | 1470 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 1693 | 1471 | PORT_DIPSETTING( 0x80, "Game" ) |
| 1694 | 1472 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 1695 | ||
| 1696 | PORT_START("IN1") | |
| 1697 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1698 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1699 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1700 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1701 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1702 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1703 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1704 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1705 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1706 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1707 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1708 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1709 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1710 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1711 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1712 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1713 | 1473 | INPUT_PORTS_END |
| 1714 | 1474 | |
| 1715 | 1475 | static INPUT_PORTS_START( mercs ) |
| 1716 | PORT_START("IN0") | |
| 1717 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1718 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1719 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1720 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1721 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1722 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1476 | PORT_INCLUDE( cps1_3players ) | |
| 1477 | ||
| 1478 | PORT_MODIFY("IN0") | |
| 1723 | 1479 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1724 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1725 | 1480 | |
| 1726 | 1481 | PORT_START("DSWA") |
| 1727 | 1482 | CPS1_COINAGE_2( "SW(A)" ) |
| r3115 | r3116 | |
| 1762 | 1517 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) |
| 1763 | 1518 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 1764 | 1519 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW(C):8" ) |
| 1765 | ||
| 1766 | PORT_START("IN1") | |
| 1767 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1768 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1769 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1770 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1771 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1772 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1773 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1774 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1775 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1776 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1777 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1778 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1779 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1780 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1781 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1782 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1783 | ||
| 1784 | PORT_START("IN2") | |
| 1785 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 1786 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 1787 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 1788 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 1789 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 1790 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 1791 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 1792 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 1793 | 1520 | INPUT_PORTS_END |
| 1794 | 1521 | |
| 1795 | 1522 | /* According to code at 0x001c4e ('mtwins') or ('chikij') , ALL bits 0 to 5 of DSWA |
| r3115 | r3116 | |
| 1806 | 1533 | - 0xff156b.w : energy (player 2) |
| 1807 | 1534 | */ |
| 1808 | 1535 | static INPUT_PORTS_START( mtwins ) |
| 1809 | PORT_START("IN0") | |
| 1810 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1811 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1812 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1813 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1814 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1815 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1536 | PORT_INCLUDE( cps1_3b ) | |
| 1537 | ||
| 1538 | PORT_MODIFY("IN0") | |
| 1816 | 1539 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 1817 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1818 | 1540 | |
| 1819 | 1541 | PORT_START("DSWA") |
| 1820 | 1542 | CPS1_COINAGE_1( "SW(A)" ) |
| r3115 | r3116 | |
| 1856 | 1578 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 1857 | 1579 | PORT_DIPSETTING( 0x80, "Game" ) |
| 1858 | 1580 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 1859 | ||
| 1860 | PORT_START("IN1") | |
| 1861 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1862 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1863 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1864 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1865 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1866 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1867 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1868 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1869 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1870 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1871 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1872 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1873 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1874 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1875 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1876 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1877 | 1581 | INPUT_PORTS_END |
| 1878 | 1582 | |
| 1879 | 1583 | /* I guess that bit 8 of DSWB was used for debug purpose : |
| r3115 | r3116 | |
| 1882 | 1586 | - code at 0x01c322 ('msword' and 'mswordr1'), 0x01c39e ('mswordu') or 0x01c3e0 ('mswordj') : unknown effect |
| 1883 | 1587 | These features are not available because of the 'bra' instruction after the test of bit 7. */ |
| 1884 | 1588 | static INPUT_PORTS_START( msword ) |
| 1885 | PORT_START("IN0") | |
| 1886 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1887 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1888 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1889 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1890 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1891 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1589 | PORT_INCLUDE( cps1_3b ) | |
| 1590 | ||
| 1591 | PORT_MODIFY("IN0") | |
| 1892 | 1592 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 1893 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1894 | 1593 | |
| 1895 | 1594 | PORT_START("DSWA") |
| 1896 | 1595 | CPS1_COINAGE_1( "SW(A)" ) |
| r3115 | r3116 | |
| 1947 | 1646 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 1948 | 1647 | PORT_DIPSETTING( 0x80, "Game" ) |
| 1949 | 1648 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 1950 | ||
| 1951 | PORT_START("IN1") | |
| 1952 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1953 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1954 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1955 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1956 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1957 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1958 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1959 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1960 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1961 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1962 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1963 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1964 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1965 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1966 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1967 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1968 | 1649 | INPUT_PORTS_END |
| 1969 | 1650 | |
| 1970 | 1651 | static INPUT_PORTS_START( cawing ) |
| 1971 | PORT_START("IN0") | |
| 1972 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1973 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1974 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1975 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1976 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1977 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1652 | PORT_INCLUDE( cps1_3b ) | |
| 1653 | ||
| 1654 | PORT_MODIFY("IN0") | |
| 1978 | 1655 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 1979 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1980 | 1656 | |
| 1981 | 1657 | PORT_START("DSWA") |
| 1982 | 1658 | CPS1_COINAGE_1( "SW(A)" ) |
| r3115 | r3116 | |
| 2025 | 1701 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 2026 | 1702 | PORT_DIPSETTING( 0x80, "Game" ) |
| 2027 | 1703 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 2028 | ||
| 2029 | PORT_START("IN1") | |
| 2030 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2031 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2032 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2033 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2034 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2035 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2036 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2037 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2038 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2039 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2040 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2041 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2042 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2043 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2044 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2045 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2046 | 1704 | INPUT_PORTS_END |
| 2047 | 1705 | |
| 2048 | 1706 | /* "Debug" features to be implemented */ |
| 2049 | 1707 | static INPUT_PORTS_START( nemo ) |
| 2050 | PORT_START("IN0") | |
| 2051 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2052 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2053 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2054 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2055 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2056 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1708 | PORT_INCLUDE( cps1_3b ) | |
| 1709 | ||
| 1710 | PORT_MODIFY("IN0") | |
| 2057 | 1711 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2058 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2059 | 1712 | |
| 2060 | 1713 | PORT_START("DSWA") |
| 2061 | 1714 | CPS1_COINAGE_1( "SW(A)" ) |
| r3115 | r3116 | |
| 2099 | 1752 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 2100 | 1753 | PORT_DIPSETTING( 0x80, "Game" ) |
| 2101 | 1754 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) // To enable the "debug" features |
| 2102 | ||
| 2103 | PORT_START("IN1") | |
| 2104 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2105 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2106 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2107 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2108 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2109 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2110 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2111 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2112 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2113 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2114 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2115 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2116 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2117 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2118 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2119 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2120 | 1755 | INPUT_PORTS_END |
| 2121 | 1756 | |
| 2122 | 1757 | static INPUT_PORTS_START( sf2 ) |
| 2123 | PORT_START("IN0") | |
| 2124 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2125 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2126 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2127 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2128 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2129 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1758 | PORT_INCLUDE( cps1_3b ) | |
| 1759 | ||
| 1760 | PORT_MODIFY("IN0") | |
| 2130 | 1761 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2131 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2132 | 1762 | |
| 2133 | 1763 | PORT_START("DSWA") |
| 2134 | 1764 | CPS1_COINAGE_1( "SW(A)" ) |
| r3115 | r3116 | |
| 2167 | 1797 | PORT_DIPSETTING( 0x80, "Game" ) |
| 2168 | 1798 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 2169 | 1799 | |
| 2170 | PORT_START("IN1") | |
| 2171 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2172 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2173 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2174 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2175 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2176 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2177 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 2178 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2179 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2180 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2181 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2182 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2183 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2184 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2185 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 2186 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2187 | ||
| 2188 | 1800 | PORT_START("IN2") /* Extra buttons */ |
| 2189 | 1801 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| 2190 | 1802 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2198 | 1810 | |
| 2199 | 1811 | /* Needs further checking */ |
| 2200 | 1812 | static INPUT_PORTS_START( sf2j ) |
| 2201 | PORT_START("IN0") | |
| 2202 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2203 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2204 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2205 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2206 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2207 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2208 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) | |
| 2209 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1813 | PORT_INCLUDE( sf2 ) | |
| 2210 | 1814 | |
| 2211 | PORT_START("DSWA") | |
| 2212 | CPS1_COINAGE_1( "SW(A)" ) | |
| 2213 | PORT_DIPNAME( 0x40, 0x40, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW(A):7") | |
| 2214 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2215 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2216 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW(A):8" ) | |
| 2217 | ||
| 2218 | PORT_START("DSWB") | |
| 2219 | CPS1_DIFFICULTY_1( "SW(B)" ) | |
| 1815 | PORT_MODIFY("DSWB") | |
| 2220 | 1816 | PORT_DIPNAME( 0x08, 0x00, "2 Players Game" ) PORT_DIPLOCATION("SW(B):4") |
| 2221 | 1817 | PORT_DIPSETTING( 0x08, "1 Credit/No Continue" ) |
| 2222 | 1818 | PORT_DIPSETTING( 0x00, "2 Credits/Winner Continue" ) //Winner stays, loser pays, in other words. |
| 2223 | PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW(B):5" ) | |
| 2224 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW(B):6" ) | |
| 2225 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW(B):7" ) | |
| 2226 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW(B):8" ) | |
| 1819 | INPUT_PORTS_END | |
| 2227 | 1820 | |
| 2228 | PORT_START("DSWC") | |
| 2229 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW(C):1" ) | |
| 2230 | PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW(C):2" ) | |
| 2231 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW(C):3") | |
| 2232 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 2233 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2234 | PORT_DIPNAME( 0x08, 0x08, "Freeze" ) PORT_DIPLOCATION("SW(C):4") | |
| 2235 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 2236 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2237 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW(C):5") | |
| 2238 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 2239 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2240 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW(C):6") | |
| 2241 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 2242 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2243 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW(C):7") | |
| 2244 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 2245 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 2246 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") | |
| 2247 | PORT_DIPSETTING( 0x80, "Game" ) | |
| 2248 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) | |
| 1821 | static INPUT_PORTS_START( sf2hack ) | |
| 1822 | PORT_INCLUDE( sf2 ) | |
| 2249 | 1823 | |
| 2250 | PORT_START("IN1") | |
| 2251 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2252 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2253 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2254 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2255 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2256 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2257 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 2258 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2259 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2260 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2261 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2262 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2263 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2264 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2265 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1824 | PORT_MODIFY("IN2") /* Extra buttons */ | |
| 1825 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1826 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 1827 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) | |
| 1828 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) | |
| 1829 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1830 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 1831 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 1832 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 2266 | 1833 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1834 | INPUT_PORTS_END | |
| 2267 | 1835 | |
| 2268 | PORT_START("IN2") /* Extra buttons */ | |
| 2269 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 2270 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) | |
| 2271 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) | |
| 2272 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2273 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 2274 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 2275 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 2276 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1836 | static INPUT_PORTS_START( sf2m2 ) | |
| 1837 | PORT_INCLUDE( sf2hack ) | |
| 1838 | ||
| 1839 | PORT_MODIFY("DSWB") | |
| 1840 | PORT_DIPNAME( 0x10, 0x00, "It needs to be High" ) PORT_DIPLOCATION("SW(B):5") | |
| 1841 | PORT_DIPSETTING( 0x10, DEF_STR ( Low ) ) | |
| 1842 | PORT_DIPSETTING( 0x00, DEF_STR ( High ) ) | |
| 2277 | 1843 | INPUT_PORTS_END |
| 2278 | 1844 | |
| 1845 | static INPUT_PORTS_START( sf2m4 ) | |
| 1846 | PORT_INCLUDE( sf2hack ) | |
| 1847 | ||
| 1848 | PORT_MODIFY("DSWB") | |
| 1849 | PORT_DIPNAME( 0x08, 0x00, "2 Players Game" ) PORT_DIPLOCATION("SW(B):4") | |
| 1850 | PORT_DIPSETTING( 0x08, "1 Credit/No Continue" ) | |
| 1851 | PORT_DIPSETTING( 0x00, "2 Credits/Winner Continue" ) //Winner stays, loser pays, in other words. | |
| 1852 | INPUT_PORTS_END | |
| 1853 | ||
| 2279 | 1854 | static INPUT_PORTS_START( 3wonders ) |
| 2280 | PORT_START("IN0") | |
| 2281 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2282 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2283 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2284 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2285 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2286 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1855 | PORT_INCLUDE( cps1_3b ) | |
| 1856 | ||
| 1857 | PORT_MODIFY("IN0") | |
| 2287 | 1858 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2288 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2289 | 1859 | |
| 2290 | 1860 | PORT_START("DSWA") |
| 2291 | 1861 | CPS1_COINAGE_1( "SW(A)" ) |
| 2292 | PORT_DIPNAME( 0x40, 0x40, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW(A):7") | |
| 2293 | PORT_CONDITION("DSWA",0x3f,PORTCOND_NOTEQUALS,0x00) | |
| 2294 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) PORT_CONDITION("DSWA",0x3f,PORTCOND_NOTEQUALS,0x00) | |
| 2295 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWA",0x3f,PORTCOND_NOTEQUALS,0x00) | |
| 2296 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW(A):7") | |
| 2297 | PORT_CONDITION("DSWA",0x3f,PORTCOND_EQUALS,0x00) | |
| 2298 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) PORT_CONDITION("DSWA",0x3f,PORTCOND_EQUALS,0x00) | |
| 2299 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_CONDITION("DSWA",0x3f,PORTCOND_EQUALS,0x00) | |
| 1862 | PORT_DIPNAME( 0x40, 0x40, "2 Coins to Start, 1 to Continue" ) PORT_CONDITION("DSWA", 0x3f,PORTCOND_NOTEQUALS,0x00) PORT_DIPLOCATION("SW(A):7") | |
| 1863 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1864 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1865 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Free_Play ) ) PORT_CONDITION("DSWA", 0x3f, PORTCOND_EQUALS, 0x00) PORT_DIPLOCATION("SW(A):7") | |
| 1866 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1867 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2300 | 1868 | /* Free Play: ALL bits 0 to 7 must be ON ; 4C_1C, 4C_1C, 2 Coins to Start, 1 to Continue ON */ |
| 2301 | 1869 | PORT_DIPNAME( 0x80, 0x80, "Freeze" ) PORT_DIPLOCATION("SW(A):8") |
| 2302 | 1870 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 2347 | 1915 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 2348 | 1916 | PORT_DIPSETTING( 0x80, "Game" ) |
| 2349 | 1917 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 2350 | ||
| 2351 | PORT_START("IN1") | |
| 2352 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2353 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2354 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2355 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2356 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2357 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2358 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 2359 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2360 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2361 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2362 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2363 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2364 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2365 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2366 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 2367 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2368 | 1918 | INPUT_PORTS_END |
| 2369 | 1919 | |
| 2370 | 1920 | static INPUT_PORTS_START( kod ) |
| 2371 | PORT_START("IN0") | |
| 2372 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2373 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2374 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2375 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2376 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2377 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1921 | PORT_INCLUDE( cps1_3players ) | |
| 1922 | ||
| 1923 | PORT_MODIFY("IN0") | |
| 2378 | 1924 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2379 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2380 | 1925 | |
| 2381 | 1926 | PORT_START("DSWA") |
| 2382 | 1927 | CPS1_COINAGE_2( "SW(A)" ) |
| r3115 | r3116 | |
| 2430 | 1975 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 2431 | 1976 | PORT_DIPSETTING( 0x80, "Game" ) |
| 2432 | 1977 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 2433 | ||
| 2434 | PORT_START("IN1") | |
| 2435 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2436 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2437 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2438 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2439 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2440 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2441 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2442 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2443 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2444 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2445 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2446 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2447 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2448 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2449 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2450 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2451 | ||
| 2452 | PORT_START("IN2") /* Player 3 */ | |
| 2453 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 2454 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 2455 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 2456 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 2457 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 2458 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 2459 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 2460 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 2461 | 1978 | INPUT_PORTS_END |
| 2462 | 1979 | |
| 2463 | 1980 | /* Needs further checking |
| r3115 | r3116 | |
| 2475 | 1992 | |
| 2476 | 1993 | |
| 2477 | 1994 | static INPUT_PORTS_START( captcomm ) |
| 2478 | PORT_START("IN0") | |
| 2479 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2480 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2481 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2482 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2483 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2484 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1995 | PORT_INCLUDE( cps1_4players ) | |
| 1996 | ||
| 1997 | PORT_MODIFY("IN0") | |
| 2485 | 1998 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2486 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2487 | 1999 | |
| 2488 | 2000 | PORT_START("DSWA") |
| 2489 | 2001 | CPS1_COINAGE_2( "SW(A)" ) |
| r3115 | r3116 | |
| 2541 | 2053 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 2542 | 2054 | PORT_DIPSETTING( 0x80, "Game" ) |
| 2543 | 2055 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 2544 | ||
| 2545 | PORT_START("IN1") | |
| 2546 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2547 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2548 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2549 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2550 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2551 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2552 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2553 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2554 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2555 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2556 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2557 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2558 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2559 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2560 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2561 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2562 | ||
| 2563 | PORT_START("IN2") /* Player 3 */ | |
| 2564 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 2565 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 2566 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 2567 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 2568 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 2569 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 2570 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 2571 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 2572 | ||
| 2573 | PORT_START("IN3") /* Player 4 */ | |
| 2574 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) | |
| 2575 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) | |
| 2576 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) | |
| 2577 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) | |
| 2578 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 2579 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 2580 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 2581 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) | |
| 2582 | 2056 | INPUT_PORTS_END |
| 2583 | 2057 | |
| 2584 | 2058 | static INPUT_PORTS_START( knights ) |
| 2585 | PORT_START("IN0") | |
| 2586 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2587 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2588 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2589 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2590 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2591 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2059 | PORT_INCLUDE( cps1_3players ) | |
| 2060 | ||
| 2061 | PORT_MODIFY("IN0") | |
| 2592 | 2062 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2593 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2594 | 2063 | |
| 2595 | 2064 | PORT_START("DSWA") |
| 2596 | 2065 | CPS1_COINAGE_2( "SW(A)" ) |
| r3115 | r3116 | |
| 2652 | 2121 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 2653 | 2122 | PORT_DIPSETTING( 0x80, "Game" ) |
| 2654 | 2123 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 2655 | ||
| 2656 | PORT_START("IN1") | |
| 2657 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2658 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2659 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2660 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2661 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2662 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2663 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2664 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2665 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2666 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2667 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2668 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2669 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2670 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2671 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2672 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2673 | ||
| 2674 | PORT_START("IN2") /* Player 3 */ | |
| 2675 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 2676 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 2677 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 2678 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 2679 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 2680 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 2681 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 2682 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 2683 | 2124 | INPUT_PORTS_END |
| 2684 | 2125 | |
| 2685 | 2126 | static INPUT_PORTS_START( varth ) |
| 2686 | PORT_START("IN0") | |
| 2687 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2688 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2689 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2690 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2691 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2692 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2127 | PORT_INCLUDE( cps1_3b ) | |
| 2128 | ||
| 2129 | PORT_MODIFY("IN0") | |
| 2693 | 2130 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2694 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2695 | 2131 | |
| 2696 | 2132 | PORT_START("DSWA") |
| 2697 | 2133 | CPS1_COINAGE_1( "SW(A)" ) |
| r3115 | r3116 | |
| 2735 | 2171 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 2736 | 2172 | PORT_DIPSETTING( 0x80, "Game" ) |
| 2737 | 2173 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 2738 | ||
| 2739 | PORT_START("IN1") | |
| 2740 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2741 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2742 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2743 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2744 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2745 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2746 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2747 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2748 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2749 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2750 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2751 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2752 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2753 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2754 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2755 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2756 | 2174 | INPUT_PORTS_END |
| 2757 | 2175 | |
| 2758 | 2176 | /* Needs further checking */ |
| 2759 | 2177 | static INPUT_PORTS_START( cworld2j ) |
| 2760 | PORT_START("IN0") | |
| 2761 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2762 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2763 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2764 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2765 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2766 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2178 | PORT_INCLUDE( cps1_quiz ) | |
| 2179 | ||
| 2180 | PORT_MODIFY("IN0") | |
| 2767 | 2181 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2768 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2769 | 2182 | |
| 2770 | 2183 | PORT_START("DSWA") |
| 2771 | 2184 | CPS1_COINAGE_2( "SW(A)" ) |
| r3115 | r3116 | |
| 2819 | 2232 | PORT_DIPSETTING( 0x80, "Game" ) |
| 2820 | 2233 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 2821 | 2234 | |
| 2822 | PORT_START("IN1") | |
| 2823 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2824 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2825 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2826 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2827 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2828 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2829 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 2830 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 2831 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2832 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2833 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2834 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2835 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2836 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2837 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 2838 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 2839 | ||
| 2840 | 2235 | PORT_START("IN2") /* check code at 0x000614, 0x0008ac and 0x000e36 */ |
| 2841 | 2236 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2842 | 2237 | INPUT_PORTS_END |
| 2843 | 2238 | |
| 2844 | 2239 | /* Needs further checking */ |
| 2845 | 2240 | static INPUT_PORTS_START( wof ) |
| 2846 | PORT_START("IN0") | |
| 2847 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2848 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2849 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2850 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2851 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2852 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2241 | PORT_INCLUDE( cps1_3players ) | |
| 2242 | ||
| 2243 | PORT_MODIFY("IN0") | |
| 2853 | 2244 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2854 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2855 | 2245 | |
| 2856 | 2246 | PORT_START("DSWA") /* (not used, EEPROM) */ |
| 2857 | 2247 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 2865 | 2255 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2866 | 2256 | PORT_BIT( 0xf7, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2867 | 2257 | |
| 2868 | PORT_START("IN1") | |
| 2869 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2870 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2871 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2872 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2873 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2874 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2875 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2876 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2877 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2878 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2879 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2880 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2881 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2882 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2883 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2884 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2885 | ||
| 2886 | PORT_START("IN2") /* Player 3 */ | |
| 2887 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 2888 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 2889 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 2890 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 2891 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 2892 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 2893 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 2894 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 2895 | ||
| 2896 | 2258 | PORT_START("IN3") /* Player 4 - not used */ |
| 2897 | 2259 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2898 | 2260 | INPUT_PORTS_END |
| 2899 | 2261 | |
| 2900 | 2262 | /* Needs further checking */ |
| 2901 | 2263 | static INPUT_PORTS_START( dino ) |
| 2902 | PORT_START("IN0") | |
| 2903 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2904 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2905 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2906 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2907 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2908 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2264 | PORT_INCLUDE( cps1_3players ) | |
| 2265 | ||
| 2266 | PORT_MODIFY("IN0") | |
| 2909 | 2267 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2910 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2911 | 2268 | |
| 2912 | 2269 | PORT_START("DSWA") /* (not used, EEPROM) */ |
| 2913 | 2270 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 2921 | 2278 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2922 | 2279 | PORT_BIT( 0xf7, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2923 | 2280 | |
| 2924 | PORT_START("IN1") | |
| 2925 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2926 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2927 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2928 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2929 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2930 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2931 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2932 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2933 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2934 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2935 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2936 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2937 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2938 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2939 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2940 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2941 | ||
| 2942 | PORT_START("IN2") /* Player 3 */ | |
| 2943 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 2944 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 2945 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 2946 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 2947 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 2948 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 2949 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 2950 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 2951 | ||
| 2952 | 2281 | PORT_START("IN3") /* Player 4 - not used */ |
| 2953 | 2282 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2954 | 2283 | INPUT_PORTS_END |
| 2955 | 2284 | |
| 2956 | 2285 | /* Needs further checking */ |
| 2957 | 2286 | static INPUT_PORTS_START( punisher ) |
| 2958 | PORT_START("IN0") | |
| 2959 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2960 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2961 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2962 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2963 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2964 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2287 | PORT_INCLUDE( cps1_2b ) | |
| 2288 | ||
| 2289 | PORT_MODIFY("IN0") | |
| 2965 | 2290 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 2966 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2967 | 2291 | |
| 2968 | 2292 | PORT_START("DSWA") /* (not used, EEPROM) */ |
| 2969 | 2293 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 2977 | 2301 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2978 | 2302 | PORT_BIT( 0xf7, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2979 | 2303 | |
| 2980 | PORT_START("IN1") | |
| 2981 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2982 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2983 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2984 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2985 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2986 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2987 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2988 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2989 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2990 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2991 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2992 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2993 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2994 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2995 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2996 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2997 | ||
| 2998 | 2304 | PORT_START("IN2") /* Player 3 - not used */ |
| 2999 | 2305 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 3000 | 2306 | |
| r3115 | r3116 | |
| 3004 | 2310 | |
| 3005 | 2311 | /* Needs further checking */ |
| 3006 | 2312 | static INPUT_PORTS_START( slammast ) |
| 3007 | PORT_START("IN0") | |
| 3008 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3009 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3010 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3011 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3012 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3013 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2313 | PORT_INCLUDE( cps1_4players ) | |
| 2314 | ||
| 2315 | PORT_MODIFY("IN0") | |
| 3014 | 2316 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 3015 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3016 | 2317 | |
| 2318 | PORT_MODIFY("IN1") | |
| 2319 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 2320 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 2321 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 2322 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 2323 | ||
| 3017 | 2324 | PORT_START("DSWA") /* (not used, EEPROM) */ |
| 3018 | 2325 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3019 | 2326 | |
| r3115 | r3116 | |
| 3025 | 2332 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 3026 | 2333 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3027 | 2334 | PORT_BIT( 0xf7, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3028 | ||
| 3029 | PORT_START("IN1") | |
| 3030 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 3031 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 3032 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 3033 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 3034 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3035 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 3036 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 3037 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 3038 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 3039 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 3040 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 3041 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 3042 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3043 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3044 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 3045 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 3046 | ||
| 3047 | PORT_START("IN2") /* Player 3 */ | |
| 3048 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 3049 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 3050 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 3051 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 3052 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 3053 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 3054 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 3055 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 3056 | ||
| 3057 | PORT_START("IN3") /* Player 4 */ | |
| 3058 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) | |
| 3059 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) | |
| 3060 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) | |
| 3061 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) | |
| 3062 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 3063 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 3064 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 3065 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) | |
| 3066 | 2335 | INPUT_PORTS_END |
| 3067 | 2336 | |
| 3068 | 2337 | /* Needs further checking */ |
| 3069 | 2338 | static INPUT_PORTS_START( pnickj ) |
| 3070 | PORT_START("IN0") | |
| 3071 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3072 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3073 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3074 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3075 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3076 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2339 | PORT_INCLUDE( cps1_3b ) | |
| 2340 | ||
| 2341 | PORT_MODIFY("IN0") | |
| 3077 | 2342 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 3078 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3079 | 2343 | |
| 3080 | 2344 | PORT_START("DSWA") |
| 3081 | 2345 | CPS1_COINAGE_2( "SW(A)" ) |
| r3115 | r3116 | |
| 3115 | 2379 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 3116 | 2380 | PORT_DIPSETTING( 0x80, "Game" ) |
| 3117 | 2381 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 3118 | ||
| 3119 | PORT_START("IN1") | |
| 3120 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 3121 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 3122 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 3123 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 3124 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3125 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 3126 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 3127 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3128 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 3129 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 3130 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 3131 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 3132 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3133 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3134 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 3135 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3136 | 2382 | INPUT_PORTS_END |
| 3137 | 2383 | |
| 3138 | 2384 | /* Needs further checking */ |
| 3139 | 2385 | static INPUT_PORTS_START( qad ) |
| 3140 | PORT_START("IN0") | |
| 3141 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3142 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3143 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3144 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3145 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3146 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2386 | PORT_INCLUDE( cps1_quiz ) | |
| 2387 | ||
| 2388 | PORT_MODIFY("IN0") | |
| 3147 | 2389 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 3148 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3149 | 2390 | |
| 3150 | 2391 | PORT_START("DSWA") |
| 3151 | 2392 | CPS1_COINAGE_2( "SW(A)" ) |
| r3115 | r3116 | |
| 3204 | 2445 | PORT_DIPSETTING( 0x80, "Game" ) |
| 3205 | 2446 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 3206 | 2447 | |
| 3207 | PORT_START("IN1") | |
| 3208 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3209 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3210 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3211 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3212 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3213 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 3214 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 3215 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 3216 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3217 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3218 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3219 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3220 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3221 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3222 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 3223 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 3224 | ||
| 3225 | 2448 | PORT_START("IN2") /* check code at 0x01d2d2 */ |
| 3226 | 2449 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3227 | 2450 | INPUT_PORTS_END |
| 3228 | 2451 | |
| 3229 | 2452 | /* Needs further checking */ |
| 3230 | 2453 | static INPUT_PORTS_START( qadj ) |
| 3231 | PORT_START("IN0") | |
| 3232 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3233 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3234 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3235 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3236 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3237 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3238 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) | |
| 3239 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2454 | PORT_INCLUDE( qad ) | |
| 3240 | 2455 | |
| 3241 | PORT_START("DSWA") | |
| 3242 | CPS1_COINAGE_2( "SW(A)" ) | |
| 3243 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW(A):4" ) // Manual says these are for coin 2, but they | |
| 3244 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "SW(A):5" ) // coin to setting, but they clearly don't do | |
| 3245 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "SW(A):6" ) // that. | |
| 3246 | PORT_DIPNAME( 0x40, 0x40, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW(A):7") | |
| 3247 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 3248 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3249 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW(A):8" ) | |
| 3250 | ||
| 3251 | PORT_START("DSWB") | |
| 2456 | PORT_MODIFY("DSWB") | |
| 3252 | 2457 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW(B):1,2,3") |
| 3253 | 2458 | PORT_DIPSETTING( 0x07, "0" ) |
| 3254 | 2459 | PORT_DIPSETTING( 0x06, "1" ) |
| r3115 | r3116 | |
| 3270 | 2475 | // PORT_DIPSETTING( 0x40, "2" ) |
| 3271 | 2476 | // PORT_DIPSETTING( 0x60, "3" ) |
| 3272 | 2477 | |
| 3273 | PORT_START("DSWC") | |
| 3274 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "SW(C):1" ) | |
| 3275 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW(C):2" ) | |
| 3276 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW(C):3") | |
| 3277 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 3278 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3279 | PORT_DIPNAME( 0x08, 0x08, "Freeze" ) PORT_DIPLOCATION("SW(C):4") | |
| 3280 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 3281 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3282 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW(C):5") | |
| 3283 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 3284 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3285 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW(C):6") | |
| 3286 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 3287 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3288 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW(C):7") | |
| 3289 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 3290 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 3291 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") | |
| 3292 | PORT_DIPSETTING( 0x80, "Game" ) | |
| 3293 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) | |
| 3294 | ||
| 3295 | PORT_START("IN1") | |
| 3296 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3297 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3298 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3299 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3300 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3301 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 3302 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 3303 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 3304 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3305 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3306 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3307 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3308 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3309 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3310 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 3311 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 3312 | ||
| 3313 | PORT_START("IN2") /* check code at 0x000c48 */ | |
| 2478 | PORT_MODIFY("IN2") /* check code at 0x000c48 */ | |
| 3314 | 2479 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3315 | 2480 | |
| 3316 | 2481 | PORT_START("IN3") /* check code at 0x000c3e */ |
| r3115 | r3116 | |
| 3319 | 2484 | |
| 3320 | 2485 | /* Needs further checking */ |
| 3321 | 2486 | static INPUT_PORTS_START( qtono2 ) |
| 3322 | PORT_START("IN0") | |
| 3323 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3324 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3325 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3326 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3327 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3328 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2487 | PORT_INCLUDE( cps1_quiz ) | |
| 2488 | ||
| 2489 | PORT_MODIFY("IN0") | |
| 3329 | 2490 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 3330 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3331 | 2491 | |
| 3332 | 2492 | PORT_START("DSWA") |
| 3333 | 2493 | CPS1_COINAGE_2( "SW(A)" ) |
| r3115 | r3116 | |
| 3377 | 2537 | PORT_DIPSETTING( 0x80, "Game" ) |
| 3378 | 2538 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 3379 | 2539 | |
| 3380 | PORT_START("IN1") | |
| 3381 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3382 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3383 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3384 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3385 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3386 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 3387 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 3388 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 3389 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3390 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3391 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3392 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3393 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3394 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3395 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 3396 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 3397 | ||
| 3398 | 2540 | PORT_START("IN2") /* check code at 0x000f80 */ |
| 3399 | 2541 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3400 | 2542 | |
| r3115 | r3116 | |
| 3404 | 2546 | |
| 3405 | 2547 | /* Needs further checking */ |
| 3406 | 2548 | static INPUT_PORTS_START( pang3 ) |
| 3407 | PORT_START("IN0") | |
| 3408 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3409 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3410 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3411 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3412 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3413 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2549 | PORT_INCLUDE( cps1_3b ) | |
| 2550 | ||
| 2551 | PORT_MODIFY("IN0") | |
| 3414 | 2552 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 3415 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3416 | 2553 | |
| 3417 | 2554 | PORT_START("DSWA") /* (not used, EEPROM) */ |
| 3418 | 2555 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 3424 | 2561 | PORT_DIPNAME( 0x08, 0x08, "Freeze" ) |
| 3425 | 2562 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 3426 | 2563 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3427 | ||
| 3428 | PORT_START("IN1") | |
| 3429 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 3430 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 3431 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 3432 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 3433 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3434 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 3435 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 3436 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3437 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 3438 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 3439 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 3440 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 3441 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3442 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3443 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 3444 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3445 | 2564 | INPUT_PORTS_END |
| 3446 | 2565 | |
| 3447 | 2566 | /* Needs further checking */ |
| 3448 | 2567 | static INPUT_PORTS_START( megaman ) |
| 3449 | PORT_START("IN0") | |
| 3450 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3451 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3452 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3453 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3454 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3455 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2568 | PORT_INCLUDE( cps1_3b ) | |
| 2569 | ||
| 2570 | PORT_MODIFY("IN0") | |
| 3456 | 2571 | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 3457 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3458 | 2572 | |
| 3459 | 2573 | PORT_START("DSWA") |
| 3460 | 2574 | PORT_DIPNAME( 0x1f, 0x1f, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW(A):1,2,3,4,5") |
| r3115 | r3116 | |
| 3520 | 2634 | PORT_DIPNAME( 0x80, 0x80, "Game Mode") PORT_DIPLOCATION("SW(C):8") |
| 3521 | 2635 | PORT_DIPSETTING( 0x80, "Game" ) |
| 3522 | 2636 | PORT_DIPSETTING( 0x00, DEF_STR( Test ) ) |
| 3523 | ||
| 3524 | PORT_START("IN1") | |
| 3525 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 3526 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 3527 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 3528 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 3529 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3530 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 3531 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 3532 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3533 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 3534 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 3535 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 3536 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 3537 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3538 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3539 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 3540 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3541 | 2637 | INPUT_PORTS_END |
| 3542 | 2638 | |
| 3543 | 2639 | /* Needs further checking */ |
| r3115 | r3116 | |
| 3590 | 2686 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3591 | 2687 | |
| 3592 | 2688 | PORT_MODIFY("IN1") |
| 3593 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 3594 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 3595 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 3596 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 3597 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3598 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 3599 | 2689 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 3600 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3601 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 3602 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 3603 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 3604 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 3605 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3606 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3607 | 2690 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 3608 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3609 | 2691 | |
| 3610 | 2692 | PORT_MODIFY("IN2") /* Player 3 */ |
| 3611 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 3612 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 3613 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 3614 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 3615 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 3616 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 3617 | // PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 3618 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 3619 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 2693 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_NAME("Coin 3 (P3 Button 3 in-game)") | |
| 3620 | 2694 | INPUT_PORTS_END |
| 3621 | 2695 | |
| 3622 | 2696 | |
| r3115 | r3116 | |
| 9284 | 8358 | GAME( 1992, sf2v004, sf2ce, cps1_12MHz, sf2, cps1, ROT0, "bootleg","Street Fighter II! - Champion Edition (V004, bootleg)", 0 ) // "102092" !!! - based on (heavily modified) World version |
| 9285 | 8359 | GAME( 1992, sf2accp2, sf2ce, cps1_12MHz, sf2, cps1, ROT0, "bootleg","Street Fighter II' - Champion Edition (Accelerator Pt.II, bootleg)" , 0) // 920313 - based on USA version |
| 9286 | 8360 | GAME( 1992, sf2m1, sf2ce, cps1_12MHz, sf2, cps1, ROT0, "bootleg","Street Fighter II' - Champion Edition (M1, bootleg)", GAME_NOT_WORKING ) |
| 9287 | GAME( 1992, sf2m2, sf2ce, cps1_12MHz, sf2, | |
| 8361 | GAME( 1992, sf2m2, sf2ce, cps1_12MHz, sf2m2, | |
| 9288 | 8362 | GAME( 1992, sf2m3, sf2ce, cps1_12MHz, sf2, cps1, ROT0, "bootleg","Street Fighter II' - Champion Edition (M3, bootleg)", GAME_NOT_WORKING ) |
| 9289 | GAME( 1992, sf2m4, sf2ce, cps1_12MHz, sf2j, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (M4, bootleg)", 0 ) | |
| 9290 | GAME( 1992, sf2m5, sf2ce, cps1_12MHz, sf2, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (M5, bootleg)", 0 ) | |
| 9291 | GAME( 1992, sf2m6, sf2ce, cps1_12MHz, sf2, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (M6, bootleg)", 0 ) | |
| 9292 | GAME( 1992, sf2m7, sf2ce, cps1_12MHz, sf2, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (M7, bootleg)", 0 ) | |
| 9293 | GAME( 1992, sf2yyc, sf2ce, cps1_12MHz, sf2, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (YYC, bootleg)", 0 ) | |
| 9294 | GAME( 1992, sf2koryu, sf2ce, cps1_12MHz, sf2, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (Xiang Long, Chinese bootleg)", 0 ) | |
| 9295 | GAME( 1992, sf2mdt, sf2ce, sf2mdt, sf2, sf2mdt, ROT0, "bootleg","Street Fighter II' - Champion Edition (Magic Delta Turbo, bootleg)", GAME_NOT_WORKING|GAME_NO_SOUND ); // heavily modified, different sound & gfx hardware | |
| 8363 | GAME( 1992, sf2m4, sf2ce, cps1_12MHz, sf2m4, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (M4, bootleg)", 0 ) | |
| 8364 | GAME( 1992, sf2m5, sf2ce, cps1_12MHz, sf2hack, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (M5, bootleg)", 0 ) | |
| 8365 | GAME( 1992, sf2m6, sf2ce, cps1_12MHz, sf2hack, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (M6, bootleg)", 0 ) | |
| 8366 | GAME( 1992, sf2m7, sf2ce, cps1_12MHz, sf2hack, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (M7, bootleg)", 0 ) | |
| 8367 | GAME( 1992, sf2yyc, sf2ce, cps1_12MHz, sf2hack, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (YYC, bootleg)", 0 ) | |
| 8368 | GAME( 1992, sf2koryu, sf2ce, cps1_12MHz, sf2hack, sf2hack, ROT0, "bootleg","Street Fighter II' - Champion Edition (Xiang Long, Chinese bootleg)", 0 ) | |
| 8369 | GAME( 1992, sf2mdt, sf2ce, sf2mdt, sf2hack, sf2mdt, ROT0, "bootleg","Street Fighter II' - Champion Edition (Magic Delta Turbo, bootleg)", GAME_NOT_WORKING|GAME_NO_SOUND ); // heavily modified, different sound & gfx hardware | |
| 9296 | 8370 | GAME( 1992, varth, 0, cps1_12MHz, varth, cps1, ROT270, "Capcom", "Varth - Operation Thunderstorm (World 920714)" , 0) // "ETC" 12MHz not verified but game slows down at 10MHz |
| 9297 | 8371 | GAME( 1992, varthr1, varth, cps1_12MHz, varth, cps1, ROT270, "Capcom", "Varth - Operation Thunderstorm (World 920612)" , 0) // "ETC" |
| 9298 | 8372 | GAME( 1992, varthu, varth, cps1_12MHz, varth, cps1, ROT270, "Capcom (Romstar license)", "Varth - Operation Thunderstorm (US 920612)", 0 ) |
| r3115 | r3116 | |
|---|---|---|
| 133 | 133 | |
| 134 | 134 | static UINT8 ninjakun_io_a002_ctrl; |
| 135 | 135 | |
| 136 | static | |
| 136 | static CUSTOM_I | |
| 137 | 137 | { |
| 138 | return ninjakun_io_a002_ctrl | |
| 138 | return ninjakun_io_a002_ctrl | |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | static WRITE8_HANDLER( ninjakun_cpu1_io_A002_w ) |
| 142 | 142 | { |
| 143 | if( data == 0x80 ) ninjakun_io_a002_ctrl |= 0x04; | |
| 144 | if( data == 0x40 ) ninjakun_io_a002_ctrl &= ~0x08; | |
| 143 | if( data == 0x80 ) ninjakun_io_a002_ctrl |= 0x01; | |
| 144 | if( data == 0x40 ) ninjakun_io_a002_ctrl &= ~0x02; | |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | static WRITE8_HANDLER( ninjakun_cpu2_io_A002_w ) |
| 148 | 148 | { |
| 149 | if( data == 0x40 ) ninjakun_io_a002_ctrl |= 0x08; | |
| 150 | if( data == 0x80 ) ninjakun_io_a002_ctrl &= ~0x04; | |
| 149 | if( data == 0x40 ) ninjakun_io_a002_ctrl |= 0x02; | |
| 150 | if( data == 0x80 ) ninjakun_io_a002_ctrl &= ~0x01; | |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | |
| r3115 | r3116 | |
| 183 | 183 | AM_RANGE(0xc002, 0xc002) AM_WRITE(ay8910_control_port_0_w) |
| 184 | 184 | AM_RANGE(0xc003, 0xc003) AM_WRITE(ay8910_control_port_1_w) |
| 185 | 185 | AM_RANGE(0xc004, 0xc004) AM_READ(watchdog_reset_r) |
| 186 | AM_RANGE(0xc006, 0xc006) AM_READ(input_port_0_r) | |
| 187 | AM_RANGE(0xc007, 0xc007) AM_READ(input_port_1_r) | |
| 188 | AM_RANGE(0xc00e, 0xc00e) AM_READ(input_port_2_r) | |
| 186 | AM_RANGE(0xc006, 0xc006) AM_READ_PORT("IN0") | |
| 187 | AM_RANGE(0xc007, 0xc007) AM_READ_PORT("IN1") | |
| 188 | AM_RANGE(0xc00e, 0xc00e) AM_READ_PORT("IN2") | |
| 189 | 189 | AM_RANGE(0xe000, 0xe7ff) AM_RAM |
| 190 | 190 | ADDRESS_MAP_END |
| 191 | 191 | |
| r3115 | r3116 | |
| 197 | 197 | AM_RANGE(0x8001, 0x8001) AM_READWRITE(ay8910_read_port_0_r, ay8910_write_port_0_w) |
| 198 | 198 | AM_RANGE(0x8002, 0x8002) AM_WRITE(ay8910_control_port_1_w) |
| 199 | 199 | AM_RANGE(0x8003, 0x8003) AM_READWRITE(ay8910_read_port_1_r, ay8910_write_port_1_w) |
| 200 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 201 | AM_RANGE(0xa001, 0xa001) AM_READ(input_port_1_r) | |
| 202 | AM_RANGE(0xa002, 0xa002) AM_READWRITE(ninjakun_io_A002_r, ninjakun_cpu1_io_A002_w) | |
| 200 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN0") | |
| 201 | AM_RANGE(0xa001, 0xa001) AM_READ_PORT("IN1") | |
| 202 | AM_RANGE(0xa002, 0xa002) AM_READ_PORT("IN2") AM_WRITE(ninjakun_cpu1_io_A002_w) | |
| 203 | 203 | AM_RANGE(0xa003, 0xa003) AM_WRITE(pkunwar_flipscreen_w) |
| 204 | 204 | AM_RANGE(0xc000, 0xc7ff) AM_RAM_WRITE(nova2001_fg_videoram_w) AM_BASE(&nova2001_fg_videoram) AM_SHARE(1) |
| 205 | 205 | AM_RANGE(0xc800, 0xcfff) AM_READWRITE(ninjakun_bg_videoram_r, ninjakun_bg_videoram_w) AM_BASE(&nova2001_bg_videoram) AM_SHARE(2) |
| r3115 | r3116 | |
| 216 | 216 | AM_RANGE(0x8001, 0x8001) AM_READWRITE(ay8910_read_port_0_r, ay8910_write_port_0_w) |
| 217 | 217 | AM_RANGE(0x8002, 0x8002) AM_WRITE(ay8910_control_port_1_w) |
| 218 | 218 | AM_RANGE(0x8003, 0x8003) AM_READWRITE(ay8910_read_port_1_r, ay8910_write_port_1_w) |
| 219 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 220 | AM_RANGE(0xa001, 0xa001) AM_READ(input_port_1_r) | |
| 221 | AM_RANGE(0xa002, 0xa002) AM_READWRITE(ninjakun_io_A002_r, ninjakun_cpu2_io_A002_w) | |
| 219 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN0") | |
| 220 | AM_RANGE(0xa001, 0xa001) AM_READ_PORT("IN1") | |
| 221 | AM_RANGE(0xa002, 0xa002) AM_READ_PORT("IN2") AM_WRITE(ninjakun_cpu2_io_A002_w) | |
| 222 | 222 | AM_RANGE(0xa003, 0xa003) AM_WRITE(nova2001_flipscreen_w) |
| 223 | 223 | AM_RANGE(0xc000, 0xc7ff) AM_RAM_WRITE(nova2001_fg_videoram_w) AM_SHARE(1) |
| 224 | 224 | AM_RANGE(0xc800, 0xcfff) AM_READWRITE(ninjakun_bg_videoram_r, ninjakun_bg_videoram_w) AM_SHARE(2) |
| r3115 | r3116 | |
| 317 | 317 | PORT_BIT( 0x78, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 318 | 318 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 319 | 319 | |
| 320 | PORT_START("DSW1") | |
| 320 | PORT_START("DSW1") | |
| 321 | 321 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:1") |
| 322 | 322 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 323 | 323 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 341 | 341 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 342 | 342 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 343 | 343 | |
| 344 | PORT_START("DSW2") | |
| 344 | PORT_START("DSW2") | |
| 345 | 345 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") |
| 346 | 346 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 347 | 347 | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) |
| r3115 | r3116 | |
| 382 | 382 | |
| 383 | 383 | PORT_START("IN2") /* 0xa002 */ |
| 384 | 384 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 385 | PORT_BIT( 0x0c, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(ninjakun_io_A002_ctrl_r, NULL) | |
| 385 | 386 | |
| 386 | 387 | PORT_START("DSW1") |
| 387 | 388 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| r3115 | r3116 | |
| 435 | 436 | INPUT_PORTS_END |
| 436 | 437 | |
| 437 | 438 | static INPUT_PORTS_START( pkunwar ) |
| 438 | PORT_START("IN0") | |
| 439 | PORT_START("IN0") | |
| 439 | 440 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 440 | 441 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 441 | 442 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| r3115 | r3116 | |
| 445 | 446 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 446 | 447 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 447 | 448 | |
| 448 | PORT_START("IN1") | |
| 449 | PORT_START("IN1") | |
| 449 | 450 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL |
| 450 | 451 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL |
| 451 | 452 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r3115 | r3116 | |
| 455 | 456 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) |
| 456 | 457 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 457 | 458 | |
| 458 | PORT_START("IN2") | |
| 459 | PORT_START("IN2") | |
| 459 | 460 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 460 | 461 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 461 | 462 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 481 | 482 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 482 | 483 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 483 | 484 | |
| 484 | PORT_START("DSW1") | |
| 485 | PORT_START("DSW1") | |
| 485 | 486 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 486 | 487 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) |
| 487 | 488 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 527 | 528 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 528 | 529 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| 529 | 530 | |
| 530 | PORT_START("DSW1") | |
| 531 | PORT_START("DSW1") | |
| 531 | 532 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 532 | 533 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 533 | 534 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 551 | 552 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) |
| 552 | 553 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 553 | 554 | |
| 554 | PORT_START("DSW2") | |
| 555 | PORT_START("DSW2") | |
| 555 | 556 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| 556 | 557 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 557 | 558 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 576 | 577 | PORT_DIPNAME( 0x80, 0x80, "Unlimited Lives (If Free Play)" ) |
| 577 | 578 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 578 | 579 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 579 | ||
| 580 | 580 | INPUT_PORTS_END |
| 581 | 581 | |
| 582 | 582 |
| r3115 | r3116 | |
|---|---|---|
| 45 | 45 | ADDRESS_MAP_END |
| 46 | 46 | |
| 47 | 47 | static ADDRESS_MAP_START( readport, ADDRESS_SPACE_IO, 8 ) |
| 48 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) | |
| 49 | AM_RANGE(0x01, 0x01) AM_READ(input_port_1_r) | |
| 48 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") | |
| 49 | AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") | |
| 50 | 50 | AM_RANGE(0x02, 0x02) AM_READ(starcrus_coll_det_r) |
| 51 | AM_RANGE(0x03, 0x03) AM_READ | |
| 51 | AM_RANGE(0x03, 0x03) AM_READ | |
| 52 | 52 | ADDRESS_MAP_END |
| 53 | 53 | |
| 54 | 54 | static ADDRESS_MAP_START( writeport, ADDRESS_SPACE_IO, 8 ) |
| r3115 | r3116 | |
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | static INPUT_PORTS_START( starcrus ) |
| 72 | PORT_START("P1") /* player 1 */ | |
| 73 | PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY /* ccw */ | |
| 74 | PORT_BIT (0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* engine */ | |
| 75 | PORT_BIT (0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY /* cw */ | |
| 76 | PORT_BIT (0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 77 | PORT_BIT (0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) /* torpedo */ | |
| 78 | PORT_BIT (0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 79 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* phaser */ | |
| 80 | PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 72 | PORT_START("P1") | |
| 73 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY /* ccw */ | |
| 74 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* engine */ | |
| 75 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY /* cw */ | |
| 76 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 77 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) /* torpedo */ | |
| 78 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 79 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* phaser */ | |
| 80 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 81 | 81 | |
| 82 | PORT_START("P2") /* player 2 */ | |
| 83 | PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) /* ccw */ | |
| 84 | PORT_BIT (0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) /* engine */ | |
| 85 | PORT_BIT (0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) /* cw */ | |
| 86 | PORT_BIT (0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 87 | PORT_BIT (0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) /* torpedo */ | |
| 88 | PORT_BIT (0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 89 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) /* phaser */ | |
| 90 | PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 82 | PORT_START("P2") | |
| 83 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) /* ccw */ | |
| 84 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) /* engine */ | |
| 85 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) /* cw */ | |
| 86 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 87 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) /* torpedo */ | |
| 88 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 89 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) /* phaser */ | |
| 90 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 91 | 91 | |
| 92 | 92 | PORT_START("DSW") |
| 93 | PORT_DIPNAME ( 0x03, 0x02, DEF_STR( Game_Time ) ) | |
| 94 | PORT_DIPSETTING ( 0x03, "60 secs" ) | |
| 95 | PORT_DIPSETTING ( 0x02, "90 secs" ) | |
| 96 | PORT_DIPSETTING ( 0x01, "120 secs" ) | |
| 97 | PORT_DIPSETTING ( 0x00, "150 secs" ) | |
| 98 | PORT_DIPNAME ( 0x04, 0x00, DEF_STR( Coinage )) | |
| 99 | PORT_DIPSETTING ( 0x04, DEF_STR( 2C_1C )) | |
| 100 | PORT_DIPSETTING ( 0x00, DEF_STR( 1C_1C )) | |
| 101 | PORT_BIT (0x08, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 102 | PORT_BIT (0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 103 | PORT_DIPNAME ( 0x20, 0x20, "Mode" ) | |
| 104 | PORT_DIPSETTING ( 0x20, DEF_STR( Standard ) ) | |
| 105 | PORT_DIPSETTING ( 0x00, DEF_STR( Alternate ) ) | |
| 106 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 107 | PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 93 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Game_Time ) ) | |
| 94 | PORT_DIPSETTING( 0x03, "60 secs" ) | |
| 95 | PORT_DIPSETTING( 0x02, "90 secs" ) | |
| 96 | PORT_DIPSETTING( 0x01, "120 secs" ) | |
| 97 | PORT_DIPSETTING( 0x00, "150 secs" ) | |
| 98 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Coinage )) | |
| 99 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C )) | |
| 100 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C )) | |
| 101 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 102 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 103 | PORT_DIPNAME( 0x20, 0x20, "Mode" ) | |
| 104 | PORT_DIPSETTING( 0x20, DEF_STR( Standard ) ) | |
| 105 | PORT_DIPSETTING( 0x00, DEF_STR( Alternate ) ) | |
| 106 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 107 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 108 | 108 | INPUT_PORTS_END |
| 109 | 109 | |
| 110 | 110 |
| r3115 | r3116 | |
|---|---|---|
| 451 | 451 | AM_RANGE(0x80, 0x80) AM_WRITE(ay8910_write_port_0_w) |
| 452 | 452 | ADDRESS_MAP_END |
| 453 | 453 | |
| 454 | #define SCOBRA_IN0\ | |
| 455 | PORT_START("IN0")\ | |
| 456 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL\ | |
| 457 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )\ | |
| 458 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )\ | |
| 459 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 )\ | |
| 460 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY\ | |
| 461 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY\ | |
| 462 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )\ | |
| 454 | static INPUT_PORTS_START( scobra ) | |
| 455 | PORT_START("IN0") | |
| 456 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 457 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 458 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 459 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 460 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 461 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 462 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 463 | 463 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 464 | 464 | |
| 465 | #define SCOBRA_IN1\ | |
| 466 | PORT_START("IN1")\ | |
| 467 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) )\ | |
| 468 | PORT_DIPSETTING( 0x00, DEF_STR( No ) )\ | |
| 469 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) )\ | |
| 470 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Lives ) )\ | |
| 471 | PORT_DIPSETTING( 0x00, "3" )\ | |
| 472 | PORT_DIPSETTING( 0x02, "4" )\ | |
| 473 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL\ | |
| 474 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 475 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL\ | |
| 476 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL\ | |
| 477 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )\ | |
| 478 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 479 | ||
| 480 | #define SCOBRA_IN2\ | |
| 481 | PORT_START("IN2")\ | |
| 482 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL\ | |
| 483 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Coinage ) )\ | |
| 484 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) )\ | |
| 485 | PORT_DIPSETTING( 0x06, DEF_STR( 4C_3C ) )\ | |
| 486 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) )\ | |
| 487 | PORT_DIPSETTING( 0x00, "1 Coin/99 Credits" )\ | |
| 488 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) )\ | |
| 489 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ | |
| 490 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) )\ | |
| 491 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY\ | |
| 492 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 493 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY\ | |
| 494 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 495 | ||
| 496 | static INPUT_PORTS_START( scobra ) | |
| 497 | SCOBRA_IN0 | |
| 498 | SCOBRA_IN1 | |
| 499 | SCOBRA_IN2 | |
| 500 | INPUT_PORTS_END | |
| 501 | ||
| 502 | /* identical to scobra apart from the number of lives */ | |
| 503 | static INPUT_PORTS_START( scobras ) | |
| 504 | SCOBRA_IN0 | |
| 505 | ||
| 506 | 465 | PORT_START("IN1") |
| 507 | 466 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) |
| 508 | 467 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 509 | 468 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) |
| 510 | 469 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Lives ) ) |
| 511 | 470 | PORT_DIPSETTING( 0x00, "3" ) |
| 512 | PORT_DIPSETTING( 0x02, " | |
| 471 | PORT_DIPSETTING( 0x02, "4" ) | |
| 513 | 472 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 514 | 473 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 515 | 474 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 517 | 476 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 518 | 477 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 519 | 478 | |
| 520 | SCOBRA_IN2 | |
| 479 | PORT_START("IN2") | |
| 480 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 481 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Coinage ) ) | |
| 482 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 483 | PORT_DIPSETTING( 0x06, DEF_STR( 4C_3C ) ) | |
| 484 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 485 | PORT_DIPSETTING( 0x00, "1 Coin/99 Credits" ) | |
| 486 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 487 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 488 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 489 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 490 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 491 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 492 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 521 | 493 | INPUT_PORTS_END |
| 522 | 494 | |
| 495 | /* identical to scobra apart from the number of lives */ | |
| 496 | static INPUT_PORTS_START( scobras ) | |
| 497 | PORT_INCLUDE( scobra ) | |
| 498 | ||
| 499 | PORT_MODIFY("IN1") | |
| 500 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Lives ) ) | |
| 501 | PORT_DIPSETTING( 0x00, "3" ) | |
| 502 | PORT_DIPSETTING( 0x02, "5" ) | |
| 503 | INPUT_PORTS_END | |
| 504 | ||
| 505 | ||
| 506 | /* stratgyx coinage DIPs are spread accross two input ports */ | |
| 507 | static CUSTOM_INPUT( stratgyx_coinage_r ) | |
| 508 | { | |
| 509 | int bit_mask = (FPTR)param; | |
| 510 | return (input_port_read(field->port->machine, "IN4") & bit_mask) ? 0x01 : 0x00; | |
| 511 | } | |
| 512 | ||
| 513 | ||
| 523 | 514 | static INPUT_PORTS_START( stratgyx ) |
| 524 | SCOBRA_IN0 | |
| 515 | PORT_START("IN0") | |
| 516 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 517 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 518 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 519 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 520 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 521 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 522 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 523 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 525 | 524 | |
| 526 | 525 | PORT_START("IN1") |
| 527 | 526 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| r3115 | r3116 | |
| 538 | 537 | |
| 539 | 538 | PORT_START("IN2") |
| 540 | 539 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 541 | PORT_BIT( 0x06, IP_ACTIVE_LOW, IPT_SPECIAL ) /* lower 2 coinage DIPs */ | |
| 540 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stratgyx_coinage_r, (void *)0x01) /* lower 2 coinage DIPs */ | |
| 541 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stratgyx_coinage_r, (void *)0x02) /* lower 2 coinage DIPs */ | |
| 542 | 542 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) |
| 543 | 543 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 544 | 544 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 548 | 548 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL |
| 549 | 549 | |
| 550 | 550 | PORT_START("IN3") |
| 551 | PORT_BIT( 0x03, IP_ACTIVE_LOW, IPT_SPECIAL ) /* upper 2 coinage DIPs */ | |
| 551 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stratgyx_coinage_r, (void *)0x04) /* upper 2 coinage DIPs */ | |
| 552 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stratgyx_coinage_r, (void *)0x08) /* upper 2 coinage DIPs */ | |
| 552 | 553 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) /* none of these appear to be used */ |
| 553 | 554 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 554 | 555 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 588 | 589 | PORT_DIPSETTING( 0x00, "A 1/99 B 1/3" ) |
| 589 | 590 | INPUT_PORTS_END |
| 590 | 591 | |
| 591 | ||
| 592 | ||
| 593 | 592 | /* cocktail mode is N/A */ |
| 594 | 593 | static INPUT_PORTS_START( darkplnt ) |
| 595 | 594 | PORT_START("IN0") |
| r3115 | r3116 | |
| 1028 | 1027 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1029 | 1028 | INPUT_PORTS_END |
| 1030 | 1029 | |
| 1031 | #define MM_COMMON1\ | |
| 1032 | PORT_START("IN0")\ | |
| 1033 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)\ | |
| 1034 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )\ | |
| 1035 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )\ | |
| 1036 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 )\ | |
| 1037 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY\ | |
| 1038 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY\ | |
| 1039 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )\ | |
| 1030 | static INPUT_PORTS_START( mimonkey ) | |
| 1031 | PORT_START("IN0") | |
| 1032 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1033 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1034 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1035 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1036 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1037 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1038 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1040 | 1039 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1041 | 1040 | |
| 1042 | #define MM_COMMON2\ | |
| 1043 | PORT_START("IN2")\ | |
| 1044 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)\ | |
| 1045 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) )\ | |
| 1046 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_1C ) )\ | |
| 1047 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) )\ | |
| 1048 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )\ | |
| 1049 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) )\ | |
| 1050 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) )\ | |
| 1051 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ | |
| 1052 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) )\ | |
| 1053 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY\ | |
| 1054 | PORT_DIPNAME( 0x20, 0x00, "Infinite Lives (Cheat)")\ | |
| 1055 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) )\ | |
| 1056 | PORT_DIPSETTING( 0x20, DEF_STR( On ) )\ | |
| 1057 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY\ | |
| 1058 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) /* used, something to do with the bullets */\ | |
| 1059 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) )\ | |
| 1060 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1061 | ||
| 1062 | static INPUT_PORTS_START( mimonkey ) | |
| 1063 | MM_COMMON1 | |
| 1064 | ||
| 1065 | 1041 | PORT_START("IN1") |
| 1066 | 1042 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 1067 | 1043 | PORT_DIPSETTING( 0x00, "3" ) |
| r3115 | r3116 | |
| 1075 | 1051 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 1076 | 1052 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 1077 | 1053 | |
| 1078 | MM_COMMON2 | |
| 1079 | ||
| 1054 | PORT_START("IN2") | |
| 1055 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1056 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 1057 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_1C ) ) | |
| 1058 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) | |
| 1059 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1060 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 1061 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1062 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1063 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1064 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1065 | PORT_DIPNAME( 0x20, 0x00, "Infinite Lives (Cheat)") | |
| 1066 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1067 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1068 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1069 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) /* used, something to do with the bullets */ | |
| 1070 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1071 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1080 | 1072 | INPUT_PORTS_END |
| 1081 | 1073 | |
| 1082 | 1074 | /* Same as 'mimonkey' but different "Lives" Dip Switch */ |
| 1083 | 1075 | static INPUT_PORTS_START( mimonsco ) |
| 1084 | | |
| 1076 | P | |
| 1085 | 1077 | |
| 1086 | PORT_ | |
| 1078 | PORT_MODIFY("IN1") | |
| 1087 | 1079 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 1088 | 1080 | PORT_DIPSETTING( 0x00, "1" ) |
| 1089 | 1081 | PORT_DIPSETTING( 0x01, "2" ) |
| 1090 | 1082 | PORT_DIPSETTING( 0x02, "3" ) |
| 1091 | 1083 | PORT_DIPSETTING( 0x03, "4" ) |
| 1092 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1093 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1094 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1095 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1096 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1097 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1098 | ||
| 1099 | MM_COMMON2 | |
| 1100 | 1084 | INPUT_PORTS_END |
| 1101 | 1085 | |
| 1102 | 1086 |
| r3115 | r3116 | |
|---|---|---|
| 217 | 217 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 218 | 218 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) |
| 219 | 219 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 220 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_motor_not_ready, | |
| 220 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_motor_not_ready, NULL) | |
| 221 | 221 | |
| 222 | 222 | PORT_START("IN1") /* IN1 */ |
| 223 | 223 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_B ) ) |
| r3115 | r3116 | |
| 246 | 246 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 247 | 247 | |
| 248 | 248 | PORT_START("IN2") /* IN2 */ |
| 249 | PORT_BIT( 0x07, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_rng, 0) | |
| 250 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stactics_get_frame_count_d3, 0) | |
| 249 | PORT_BIT( 0x07, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_rng, NULL) | |
| 250 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stactics_get_frame_count_d3, NULL) | |
| 251 | 251 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 252 | 252 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 253 | 253 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Free_Play ) ) |
| r3115 | r3116 | |
| 257 | 257 | |
| 258 | 258 | PORT_START("IN3") /* IN3 */ |
| 259 | 259 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 260 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stactics_get_shot_standby, | |
| 260 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stactics_get_shot_standby, NULL) | |
| 261 | 261 | PORT_DIPNAME( 0x04, 0x04, "Number of Barriers" ) |
| 262 | 262 | PORT_DIPSETTING( 0x04, "4" ) |
| 263 | 263 | PORT_DIPSETTING( 0x00, "6" ) |
| r3115 | r3116 | |
| 269 | 269 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 270 | 270 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 271 | 271 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 272 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stactics_get_not_shot_arrive, | |
| 272 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(stactics_get_not_shot_arrive, NULL) | |
| 273 | 273 | |
| 274 | 274 | PORT_START("FAKE") /* FAKE */ |
| 275 | 275 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
|---|---|---|
| 750 | 750 | AM_RANGE(0x1f802040, 0x1f802043) AM_WRITENOP |
| 751 | 751 | AM_RANGE(0x1fa04000, 0x1fa0ffff) AM_READWRITE(sharedram_r, sharedram_w) AM_BASE(&namcos11_sharedram) /* shared ram */ |
| 752 | 752 | AM_RANGE(0x1fa20000, 0x1fa2ffff) AM_WRITE(keycus_w) AM_BASE(&namcos11_keycus) AM_SIZE(&namcos11_keycus_size) /* keycus */ |
| 753 | AM_RANGE(0x1fa30000, 0x1fa30fff) AM_READWRITE8(at28c16_ | |
| 753 | AM_RANGE(0x1fa30000, 0x1fa30fff) AM_DEVREADWRITE8(AT28C16, "at28c16", at28c16_ | |
| 754 | 754 | AM_RANGE(0x1fb00000, 0x1fb00003) AM_WRITENOP /* ?? */ |
| 755 | 755 | AM_RANGE(0x1fbf6000, 0x1fbf6003) AM_WRITENOP /* ?? */ |
| 756 | 756 | AM_RANGE(0x1fc00000, 0x1fffffff) AM_ROM AM_SHARE(2) AM_REGION("user1", 0) /* bios */ |
| r3115 | r3116 | |
| 861 | 861 | } |
| 862 | 862 | |
| 863 | 863 | state_save_register_global( m_n_oldcoin ); |
| 864 | ||
| 865 | at28c16_init( 0, NULL, NULL ); | |
| 866 | 864 | } |
| 867 | 865 | |
| 868 | 866 | static MACHINE_RESET( namcos11 ) |
| r3115 | r3116 | |
| 878 | 876 | MDRV_CPU_VBLANK_INT("main", namcos11_vblank) |
| 879 | 877 | |
| 880 | 878 | MDRV_MACHINE_RESET( namcos11 ) |
| 881 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 882 | 879 | |
| 883 | 880 | /* video hardware */ |
| 884 | 881 | MDRV_SCREEN_ADD("main", RASTER) |
| r3115 | r3116 | |
| 896 | 893 | |
| 897 | 894 | NAMCO_C7X_MCU_SHARED(16384000) |
| 898 | 895 | NAMCO_C7X_SOUND(16384000) |
| 896 | ||
| 897 | MDRV_DEVICE_ADD( "at28c16", AT28C16 ) | |
| 899 | 898 | MACHINE_DRIVER_END |
| 900 | 899 | |
| 901 | 900 | static MACHINE_DRIVER_START( coh110 ) |
| r3115 | r3116 | |
| 1186 | 1185 | ROM_LOAD16_BYTE( "dc1rom3l.ic1", 0x0c00000, 0x200000, CRC(a76bcd4c) SHA1(817abdc43158b7aaac329c3ea17782277acb36a4) ) |
| 1187 | 1186 | ROM_LOAD16_BYTE( "dc1rom3u.ic9", 0x0c00001, 0x200000, CRC(1405d123) SHA1(3d7be5558358740f5a0a3a3022543cf5aca4cf24) ) |
| 1188 | 1187 | |
| 1189 | ROM_REGION16_LE( 0x100000, " | |
| 1188 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1190 | 1189 | ROM_LOAD( "dc1sprog.6d", 0x0000000, 0x040000, CRC(96cd7788) SHA1(68a5a53a5fc50e2b6b684c99d27d81e3a8c56287) ) |
| 1191 | 1190 | NAMCO_C7X_BIOS |
| 1192 | 1191 | |
| r3115 | r3116 | |
| 1212 | 1211 | ROM_LOAD16_BYTE( "dm1rom1u.ic8", 0x0400001, 0x200000, CRC(01e905d3) SHA1(430b2ae0c67265b6acc8aa4dd50f6144929993f8) ) |
| 1213 | 1212 | ROM_CONTINUE( 0x0400001, 0x200000 ) /* first & second half identical */ |
| 1214 | 1213 | |
| 1215 | ROM_REGION16_LE( 0x100000, " | |
| 1214 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1216 | 1215 | ROM_LOAD( "dm1sprog.6d", 0x0000000, 0x040000, CRC(de1cbc78) SHA1(855ebece1841f50ae324d7d6b8b18ab6f657d28e) ) |
| 1217 | 1216 | NAMCO_C7X_BIOS |
| 1218 | 1217 | |
| r3115 | r3116 | |
| 1238 | 1237 | ROM_LOAD16_BYTE( "dm1rom1u.ic8", 0x0400001, 0x200000, CRC(01e905d3) SHA1(430b2ae0c67265b6acc8aa4dd50f6144929993f8) ) |
| 1239 | 1238 | ROM_CONTINUE( 0x0400001, 0x200000 ) /* first & second half identical */ |
| 1240 | 1239 | |
| 1241 | ROM_REGION16_LE( 0x100000, " | |
| 1240 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1242 | 1241 | ROM_LOAD( "dm1sprog.6d", 0x0000000, 0x040000, CRC(de1cbc78) SHA1(855ebece1841f50ae324d7d6b8b18ab6f657d28e) ) |
| 1243 | 1242 | NAMCO_C7X_BIOS |
| 1244 | 1243 | |
| r3115 | r3116 | |
| 1257 | 1256 | ROM_LOAD16_BYTE( "kqt1prg1l.ic3", 0x1000000, 0x800000, CRC(298d8eeb) SHA1(c421b1bdd5fd46c026a41e2cec47cafd1a69d33d) ) |
| 1258 | 1257 | ROM_LOAD16_BYTE( "kqt1prg1u.ic6", 0x1000001, 0x800000, CRC(911783db) SHA1(1005fc9b38e212844e397150a6f98f43ad88d4b9) ) |
| 1259 | 1258 | |
| 1260 | ROM_REGION16_LE( 0x100000, " | |
| 1259 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1261 | 1260 | ROM_LOAD( "kqt1sprog.7e", 0x0000000, 0x040000, CRC(bb1888a6) SHA1(4db07738079725413cdba7eb75252ee71ae50a66) ) |
| 1262 | 1261 | NAMCO_C7X_BIOS |
| 1263 | 1262 | |
| r3115 | r3116 | |
| 1275 | 1274 | ROM_LOAD16_BYTE( "pkr1rom0l.ic5", 0x000000, 0x200000, CRC(6c9b074c) SHA1(885f342bd178e4146e1f75259206f6625c0b3c18) ) |
| 1276 | 1275 | ROM_LOAD16_BYTE( "pkr1rom0u.ic6", 0x000001, 0x200000, CRC(a55c0906) SHA1(3b6abfa877f88a4d96222d98af02498b0c777af6) ) |
| 1277 | 1276 | |
| 1278 | ROM_REGION16_LE( 0x100000, " | |
| 1277 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1279 | 1278 | ROM_LOAD( "pkr1verb.6d", 0x000000, 0x040000, CRC(9bf08992) SHA1(fca7943f7bcf0ee758fa63fbdef8f7456b9e46cb) ) |
| 1280 | 1279 | NAMCO_C7X_BIOS |
| 1281 | 1280 | |
| r3115 | r3116 | |
| 1299 | 1298 | ROM_LOAD16_BYTE( "pg1rom1l.ic8", 0x0400001, 0x200000, CRC(59b5a71c) SHA1(ddc1f0a5488466166c21fd0c84ab2b4cf04316bf) ) |
| 1300 | 1299 | ROM_CONTINUE( 0x0400001, 0x200000 ) /* first & second half identical */ |
| 1301 | 1300 | |
| 1302 | ROM_REGION16_LE( 0x100000, " | |
| 1301 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1303 | 1302 | ROM_LOAD( "pg1sprog.6d", 0x0000000, 0x040000, CRC(e7c3396d) SHA1(12bbb8ebcaab1b40462a12917dd9b58bd9ab8663) ) |
| 1304 | 1303 | NAMCO_C7X_BIOS |
| 1305 | 1304 | |
| r3115 | r3116 | |
| 1319 | 1318 | ROM_LOAD16_BYTE( "gnb1prg0l.ic2", 0x000000, 0x800000, CRC(78746037) SHA1(d130ca1153a730e3c967945248f00662f9fab304) ) |
| 1320 | 1319 | ROM_LOAD16_BYTE( "gnb1prg0u.ic5", 0x000001, 0x800000, CRC(697d3279) SHA1(40302780f7494d9413888b2d1da38bd14a9a444f) ) |
| 1321 | 1320 | |
| 1322 | ROM_REGION16_LE( 0x100000, " | |
| 1321 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1323 | 1322 | ROM_LOAD( "gnb1vera.6d", 0x0000000, 0x040000, CRC(6461ae77) SHA1(1377b716a69ef9d4d2e48083d23f22bd5c103c00) ) |
| 1324 | 1323 | NAMCO_C7X_BIOS |
| 1325 | 1324 | |
| r3115 | r3116 | |
| 1345 | 1344 | ROM_LOAD16_BYTE( "so1rom3u.ic1", 0x0c00000, 0x200000, CRC(f11bd521) SHA1(baf936dec58cebfeef1c74f95e455b2fe74eb982) ) |
| 1346 | 1345 | ROM_LOAD16_BYTE( "so1rom3l.ic9", 0x0c00001, 0x200000, CRC(84465bcc) SHA1(d8be888d41cfe194c3a1853d9146d3a74ef7bab1) ) |
| 1347 | 1346 | |
| 1348 | ROM_REGION16_LE( 0x100000, " | |
| 1347 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1349 | 1348 | ROM_LOAD( "so1sprogc.6d", 0x0000000, 0x040000, CRC(2bbc118c) SHA1(4168a9aa525f1f0ce6cf6e14cfe4c118c4c0d773) ) |
| 1350 | 1349 | NAMCO_C7X_BIOS |
| 1351 | 1350 | |
| r3115 | r3116 | |
| 1371 | 1370 | ROM_LOAD16_BYTE( "so1rom3u.ic1", 0x0c00000, 0x200000, CRC(f11bd521) SHA1(baf936dec58cebfeef1c74f95e455b2fe74eb982) ) |
| 1372 | 1371 | ROM_LOAD16_BYTE( "so1rom3l.ic9", 0x0c00001, 0x200000, CRC(84465bcc) SHA1(d8be888d41cfe194c3a1853d9146d3a74ef7bab1) ) |
| 1373 | 1372 | |
| 1374 | ROM_REGION16_LE( 0x100000, " | |
| 1373 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1375 | 1374 | ROM_LOAD( "so1sprogc.6d", 0x0000000, 0x040000, CRC(2bbc118c) SHA1(4168a9aa525f1f0ce6cf6e14cfe4c118c4c0d773) ) |
| 1376 | 1375 | NAMCO_C7X_BIOS |
| 1377 | 1376 | |
| r3115 | r3116 | |
| 1397 | 1396 | ROM_LOAD16_BYTE( "so1rom3u.ic1", 0x0c00000, 0x200000, CRC(f11bd521) SHA1(baf936dec58cebfeef1c74f95e455b2fe74eb982) ) |
| 1398 | 1397 | ROM_LOAD16_BYTE( "so1rom3l.ic9", 0x0c00001, 0x200000, CRC(84465bcc) SHA1(d8be888d41cfe194c3a1853d9146d3a74ef7bab1) ) |
| 1399 | 1398 | |
| 1400 | ROM_REGION16_LE( 0x100000, " | |
| 1399 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1401 | 1400 | ROM_LOAD( "so1sprog.6d", 0x0000000, 0x040000, CRC(f6f682b7) SHA1(a64e19be3f6e630b8c34f34b46b95aadfabd3f63) ) |
| 1402 | 1401 | NAMCO_C7X_BIOS |
| 1403 | 1402 | |
| r3115 | r3116 | |
| 1422 | 1421 | ROM_LOAD16_BYTE( "so1rom3u.ic1", 0x0c00000, 0x200000, CRC(f11bd521) SHA1(baf936dec58cebfeef1c74f95e455b2fe74eb982) ) |
| 1423 | 1422 | ROM_LOAD16_BYTE( "so1rom3l.ic9", 0x0c00001, 0x200000, CRC(84465bcc) SHA1(d8be888d41cfe194c3a1853d9146d3a74ef7bab1) ) |
| 1424 | 1423 | |
| 1425 | ROM_REGION16_LE( 0x100000, " | |
| 1424 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1426 | 1425 | ROM_LOAD( "so1sprog.6d", 0x0000000, 0x040000, CRC(f6f682b7) SHA1(a64e19be3f6e630b8c34f34b46b95aadfabd3f63) ) |
| 1427 | 1426 | NAMCO_C7X_BIOS |
| 1428 | 1427 | |
| r3115 | r3116 | |
| 1438 | 1437 | |
| 1439 | 1438 | ROM_REGION32_LE( 0x0100000, "user2", ROMREGION_ERASE00 ) /* main data */ |
| 1440 | 1439 | |
| 1441 | ROM_REGION16_LE( 0x100000, " | |
| 1440 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1442 | 1441 | ROM_LOAD( "stp1sprog.7e", 0x0000000, 0x040000, CRC(08aaaf6a) SHA1(51c913a39ff7c154aef8bb10139cc8b92eb4756a) ) |
| 1443 | 1442 | NAMCO_C7X_BIOS |
| 1444 | 1443 | |
| r3115 | r3116 | |
| 1462 | 1461 | ROM_LOAD16_BYTE( "te1rom2l.ic4", 0x0800000, 0x200000, CRC(41d77846) SHA1(eeab049135c02a255899fe37e225c1111b2fbb7d) ) |
| 1463 | 1462 | ROM_LOAD16_BYTE( "te1rom2u.ic7", 0x0800001, 0x200000, CRC(a678987e) SHA1(c62c00ce5cf4d001723c999b2bc3dbb90283def1) ) |
| 1464 | 1463 | |
| 1465 | ROM_REGION16_LE( 0x100000, " | |
| 1464 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1466 | 1465 | ROM_LOAD( "te1sprog.6d", 0x0000000, 0x040000, CRC(849587e9) SHA1(94c6a757b24758a866a41bd8acd46aa46844f74b) ) |
| 1467 | 1466 | NAMCO_C7X_BIOS |
| 1468 | 1467 | |
| r3115 | r3116 | |
| 1485 | 1484 | ROM_LOAD16_BYTE( "te1rom2l.ic4", 0x0800000, 0x200000, CRC(41d77846) SHA1(eeab049135c02a255899fe37e225c1111b2fbb7d) ) |
| 1486 | 1485 | ROM_LOAD16_BYTE( "te1rom2u.ic7", 0x0800001, 0x200000, CRC(a678987e) SHA1(c62c00ce5cf4d001723c999b2bc3dbb90283def1) ) |
| 1487 | 1486 | |
| 1488 | ROM_REGION16_LE( 0x100000, " | |
| 1487 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1489 | 1488 | ROM_LOAD( "te1sprog.6d", 0x0000000, 0x040000, CRC(849587e9) SHA1(94c6a757b24758a866a41bd8acd46aa46844f74b) ) |
| 1490 | 1489 | NAMCO_C7X_BIOS |
| 1491 | 1490 | |
| r3115 | r3116 | |
| 1508 | 1507 | ROM_LOAD16_BYTE( "te1rom2l.ic4", 0x0800000, 0x200000, CRC(41d77846) SHA1(eeab049135c02a255899fe37e225c1111b2fbb7d) ) |
| 1509 | 1508 | ROM_LOAD16_BYTE( "te1rom2u.ic7", 0x0800001, 0x200000, CRC(a678987e) SHA1(c62c00ce5cf4d001723c999b2bc3dbb90283def1) ) |
| 1510 | 1509 | |
| 1511 | ROM_REGION16_LE( 0x100000, " | |
| 1510 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1512 | 1511 | ROM_LOAD( "te1sprog.6d", 0x0000000, 0x040000, CRC(849587e9) SHA1(94c6a757b24758a866a41bd8acd46aa46844f74b) ) |
| 1513 | 1512 | NAMCO_C7X_BIOS |
| 1514 | 1513 | |
| r3115 | r3116 | |
| 1531 | 1530 | ROM_LOAD16_BYTE( "te1rom2l.ic4", 0x0800000, 0x200000, CRC(41d77846) SHA1(eeab049135c02a255899fe37e225c1111b2fbb7d) ) |
| 1532 | 1531 | ROM_LOAD16_BYTE( "te1rom2u.ic7", 0x0800001, 0x200000, CRC(a678987e) SHA1(c62c00ce5cf4d001723c999b2bc3dbb90283def1) ) |
| 1533 | 1532 | |
| 1534 | ROM_REGION16_LE( 0x100000, " | |
| 1533 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1535 | 1534 | ROM_LOAD( "te1sprog.6d", 0x0000000, 0x040000, CRC(849587e9) SHA1(94c6a757b24758a866a41bd8acd46aa46844f74b) ) |
| 1536 | 1535 | NAMCO_C7X_BIOS |
| 1537 | 1536 | |
| r3115 | r3116 | |
| 1556 | 1555 | ROM_LOAD16_BYTE( "tes1rom3l.ic9", 0x0c00000, 0x200000, CRC(d5ac0f18) SHA1(342d063f7974bd1f90b5ca4832dfa4fbc9605453) ) |
| 1557 | 1556 | ROM_LOAD16_BYTE( "tes1rom3u.ic1", 0x0c00001, 0x200000, CRC(44ed509d) SHA1(27e26aaf5ce72ab686f3f05743b1d91b5334b4e0) ) |
| 1558 | 1557 | |
| 1559 | ROM_REGION16_LE( 0x100000, " | |
| 1558 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1560 | 1559 | ROM_LOAD( "tes1sprog.6d", 0x0000000, 0x040000, CRC(af18759f) SHA1(aabd7d1384925781d37f860605a5d4622e0fc2e4) ) |
| 1561 | 1560 | NAMCO_C7X_BIOS |
| 1562 | 1561 | |
| r3115 | r3116 | |
| 1581 | 1580 | ROM_LOAD16_BYTE( "tes1rom3l.ic9", 0x0c00000, 0x200000, CRC(d5ac0f18) SHA1(342d063f7974bd1f90b5ca4832dfa4fbc9605453) ) |
| 1582 | 1581 | ROM_LOAD16_BYTE( "tes1rom3u.ic1", 0x0c00001, 0x200000, CRC(44ed509d) SHA1(27e26aaf5ce72ab686f3f05743b1d91b5334b4e0) ) |
| 1583 | 1582 | |
| 1584 | ROM_REGION16_LE( 0x100000, " | |
| 1583 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1585 | 1584 | ROM_LOAD( "tes1sprog.6d", 0x0000000, 0x040000, CRC(af18759f) SHA1(aabd7d1384925781d37f860605a5d4622e0fc2e4) ) |
| 1586 | 1585 | NAMCO_C7X_BIOS |
| 1587 | 1586 | |
| r3115 | r3116 | |
| 1606 | 1605 | ROM_LOAD16_BYTE( "tes1rom3l.ic9", 0x0c00000, 0x200000, CRC(d5ac0f18) SHA1(342d063f7974bd1f90b5ca4832dfa4fbc9605453) ) |
| 1607 | 1606 | ROM_LOAD16_BYTE( "tes1rom3u.ic1", 0x0c00001, 0x200000, CRC(44ed509d) SHA1(27e26aaf5ce72ab686f3f05743b1d91b5334b4e0) ) |
| 1608 | 1607 | |
| 1609 | ROM_REGION16_LE( 0x100000, " | |
| 1608 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1610 | 1609 | ROM_LOAD( "tes1sprog.6d", 0x0000000, 0x040000, CRC(af18759f) SHA1(aabd7d1384925781d37f860605a5d4622e0fc2e4) ) |
| 1611 | 1610 | NAMCO_C7X_BIOS |
| 1612 | 1611 | |
| r3115 | r3116 | |
| 1629 | 1628 | ROM_LOAD16_BYTE( "xv31rom2l.ic4", 0x0800000, 0x200000, CRC(8403a277) SHA1(35193211351494a086d8422e3b0b71a8d3a262a6) ) |
| 1630 | 1629 | ROM_LOAD16_BYTE( "xv31rom2u.ic7", 0x0800001, 0x200000, CRC(ecf70432) SHA1(bec128a215e0aef66e9a8707bb0d1eb7b098a356) ) |
| 1631 | 1630 | |
| 1632 | ROM_REGION16_LE( 0x100000, " | |
| 1631 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1633 | 1632 | ROM_LOAD( "xv31sprog.6d", 0x0000000, 0x040000, CRC(e50b856a) SHA1(631da4f60c9ce08387fca26a70481a2fdacf9765) ) |
| 1634 | 1633 | NAMCO_C7X_BIOS |
| 1635 | 1634 |
| r3115 | r3116 | |
|---|---|---|
| 554 | 554 | /* handle the 68000 case */ |
| 555 | 555 | else |
| 556 | 556 | { |
| 557 | int level = 0; | |
| 558 | ||
| 559 | /* determine which level is active */ | |
| 560 | if (blitter_int) level = 2; | |
| 561 | if (periodic_int) level = 3; | |
| 562 | ||
| 563 | /* update it */ | |
| 564 | if (level) | |
| 565 | cpunum_set_input_line(machine, 0, level, ASSERT_LINE); | |
| 566 | else | |
| 567 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 557 | cpunum_set_input_line(machine, 0, 2, blitter_int ? ASSERT_LINE : CLEAR_LINE); | |
| 558 | cpunum_set_input_line(machine, 0, 3, periodic_int ? ASSERT_LINE : CLEAR_LINE); | |
| 568 | 559 | } |
| 569 | 560 | } |
| 570 | 561 |
| r3115 | r3116 | |
|---|---|---|
| 102 | 102 | AM_RANGE(0x400000, 0x400fff) AM_READ(SMH_RAM) |
| 103 | 103 | AM_RANGE(0x600000, 0x600001) AM_READ(okim6295_status_0_lsb_r) |
| 104 | 104 | AM_RANGE(0x700000, 0x700001) AM_READ(pap) // scanline??? |
| 105 | AM_RANGE(0x700004, 0x700005) AM_READ(input_port_0_word_r) | |
| 106 | AM_RANGE(0x700008, 0x700009) AM_READ(input_port_1_word_r) | |
| 107 | AM_RANGE(0x70000c, 0x70000d) AM_READ(input_port_2_word_r) | |
| 108 | AM_RANGE(0x700010, 0x700011) AM_READ(input_port_3_word_r) | |
| 109 | AM_RANGE(0x70001c, 0x70001d) AM_READ(input_port_4_word_r) | |
| 105 | AM_RANGE(0x700004, 0x700005) AM_READ_PORT("DSW1") | |
| 106 | AM_RANGE(0x700008, 0x700009) AM_READ_PORT("DSW2") | |
| 107 | AM_RANGE(0x70000c, 0x70000d) AM_READ_PORT("P1") | |
| 108 | AM_RANGE(0x700010, 0x700011) AM_READ_PORT("P2") | |
| 109 | AM_RANGE(0x70001c, 0x70001d) AM_READ_PORT("SYSTEM") | |
| 110 | 110 | ADDRESS_MAP_END |
| 111 | 111 | |
| 112 | 112 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r3115 | r3116 | |
|---|---|---|
| 1 | 1 | /* |
| 2 | ||
| 2 | 3 | snk.c |
| 4 | ||
| 3 | 5 | various SNK triple Z80 games |
| 4 | 6 | |
| 5 | Known Issues: | |
| 6 | - consolidate gfx decode/drivers, if possible | |
| 7 | - emulate protection (get rid of patches) | |
| 7 | ay8910x2 + namco wave | |
| 8 | Jumping Cross | |
| 8 | 9 | |
| 9 | Bryan McPhail, 27/01/00: | |
| 10 | ay8910x2 | |
| 11 | Gladiator 1984 | |
| 10 | 12 | |
| 11 | Fixed Gwar, Gwarj, both working properly now. | |
| 12 | Renamed Gwarjp to Gwarj. | |
| 13 | Added Gwara | |
| 14 | Removed strcmp(drv->names) :) | |
| 15 | Made Gwara (the new clone) the main set, and old gwar to gwara. This is | |
| 16 | because (what is now) gwara seemingly has a different graphics board. Fix | |
| 17 | chars and scroll registers are in different locations, while gwar (new) | |
| 18 | matches the bootleg and original japanese versions. | |
| 13 | ym3526 | |
| 14 | ASO, Tank | |
| 19 | 15 | |
| 20 | Added Bermuda Triangle (alternate), World Wars, these are the 'early' | |
| 21 | versions of the main set with different sprites, gameplay etc. All roms | |
| 22 | are different except for the samples, technically Bermuda Triangle (Alt) | |
| 23 | is a clone of World Wars rather than the main Bermuda set. | |
| 16 | ym3526x2 | |
| 17 | Athena, Ikari | |
| 24 | 18 | |
| 25 | Bermuda Triangle (alt) has some tile banking problems (see attract mode), | |
| 26 | this may also be the cause of the title screen corruption in Bermuda | |
| 27 | Triangle (main set). | |
| 19 | ym3526 + y8950 | |
| 20 | Victory Road, Psycho Soldier, Bermuda Triangle, Touchdown Fever, Guerrilla War | |
| 28 | 21 | |
| 22 | ym3812 + y8950 | |
| 23 | Chopper1 | |
| 29 | 24 | |
| 30 | Oct. 5, 2003: | |
| 25 | ym3812 | |
| 26 | Fighting Golf | |
| 31 | 27 | |
| 32 | Added tdfever2, all ROMs are replacements for those in tdfever except | |
| 33 | td22.6l, td21.6k, and td20.8k. td20.8k is the reason the new gfx code | |
| 34 | is needed. Though the gfx appear strange on the vs. screens / choose | |
| 35 | number of players screens eg. the numbers aren't in the boxes, they're | |
| 36 | in the lower right corners, and there is no background color like | |
| 37 | there is in tdfever, this is not a bug, we have confirmed it to be | |
| 38 | correct against my pcb. | |
| 28 | y8950 | |
| 29 | Fighting Soccer | |
| 39 | 30 | |
| 40 | 31 | |
| 41 | Stephh's notes (based on the games Z80 code and some tests) : | |
| 32 | Credits (in alphabetical order) | |
| 33 | Marco Cassili | |
| 34 | Ernesto Corvi | |
| 35 | Carlos A. Lozano | |
| 36 | Bryan McPhail | |
| 37 | Jarek Parchanski | |
| 38 | Nicola Salmoria | |
| 39 | Tomasz Slanina | |
| 40 | Phil Stroffolino | |
| 41 | Acho A. Tang | |
| 42 | Victor Trucco | |
| 42 | 43 | |
| 43 | 1) 'fsoccerb' | |
| 44 | 44 | |
| 45 | - The code to support the rotary jotsticks has been removed and/or patched | |
| 46 | in this version (check the 'jmp' instruction at 0x00f1). | |
| 47 | I'm SURE that I've played a version in France with the rotary joysticks, | |
| 48 | and IMO it isn't dumped at the moment 8( | |
| 45 | Notes: | |
| 46 | ------ | |
| 47 | - How to enter test mode: | |
| 48 | 1984 jcross: n/a | |
| 49 | 1984 sgladiat: keep F2 pressed during boot | |
| 50 | 1985 tnk3: keep 1 pressed during boot | |
| 51 | 1985 aso: keep 1 pressed during boot | |
| 52 | 1986 athena: keep 1 pressed during boot | |
| 53 | 1986 ikari: keep 1 pressed during boot | |
| 54 | 1986 victroad: keep 1 pressed during boot | |
| 55 | 1987 bermudat: keep 1 pressed during boot | |
| 56 | 1987 worldwar: keep F2 pressed during boot | |
| 57 | 1987 gwar: keep F2 pressed during boot | |
| 58 | 1987 psychos: use the service mode dip switch | |
| 59 | 1987 tdfever: keep F2 pressed during boot | |
| 60 | 1988 tdfever2: keep F2 pressed during boot | |
| 61 | 1988 chopper: keep F2 pressed during boot | |
| 62 | 1988 fsoccer: use the service mode dip switch | |
| 63 | 1988 fitegolf: use the service mode dip switch | |
| 49 | 64 | |
| 50 | - DEF_STR( Game_Time ) Dip Switch is the time for match type A. Here is what you | |
| 51 | have to add for games B to E : | |
| 65 | - the I/O area (C000-CFFF) is probably mirrored in large part on the two main | |
| 66 | CPUs, however I mapped only the addresses actually used by the games. | |
| 52 | 67 | |
| 53 | Match Type B C D E | |
| 54 | Time to add 00:30 01:00 01:30 02:00 | |
| 68 | - sgladiat runs on a modified jcross pcb (same pcb ID with flying wires). | |
| 55 | 69 | |
| 56 | - When "Game Mode" Dip Switch is set to "Win Match Against CPU", this has an | |
| 57 | effect on matches types A and B : player is awarded 99 goals at the end of | |
| 58 | the round, which is enough to win all matches then see the ending credits. | |
| 70 | - the original sgladiat pcb is verified to have huge sprite lag. | |
| 59 | 71 | |
| 60 | - Here are the buttons mapped to start a game : | |
| 61 | * IPT_START1 : starts game A | |
| 62 | * IPT_START2 : starts game B | |
| 63 | * IPT_START3 : starts game C | |
| 64 | * IPT_START4 : starts game D | |
| 65 | * IPT_SERVICE2 : starts game E | |
| 72 | - RAM test fails in sgladiat when "Debug" Dip Switch is ON. Correct behaviour ? | |
| 66 | 73 | |
| 74 | - there are two versions of the Ikari Warriors board, one has the standard JAMMA | |
| 75 | connector while the other has the custom SNK connector. The video and audio | |
| 76 | PCBs are the same, only the CPU PCB changes. | |
| 67 | 77 | |
| 68 | 2a) 'bermudat' | |
| 78 | - gwara seemingly has a different video board. Fix chars and scroll registers are | |
| 79 | in different locations, while gwar (new) matches the bootleg and original | |
| 80 | japanese versions. | |
| 69 | 81 | |
| 70 | - Japan version (5 letters when entering initials, and "TOKYO" as default names) | |
| 82 | - there has been great confusion in the past about the four Bermuda Triangle / | |
| 83 | World Wars sets. World Wars was thought to be an earlier version, since it | |
| 84 | appears to have simpler gameplay and graphics. In reality, there is strong | |
| 85 | evidence that proves that World Wars is a follow-up to Bermuda Triangle. | |
| 86 | The gameplay is significantly different, and the only ROMs in common are the | |
| 87 | audio samples, so it cannot be considered a simple clone, even if bermudaa | |
| 88 | has the worldwar gameplay and the bermudat title screen!! What might have | |
| 89 | happened is that bermudat performed poorly in Japan/world arcades so it was | |
| 90 | redesigned before releasing it in the US/different parts of the world. | |
| 91 | Possibly the Bermuda Triangle title screen was kept for the US since it | |
| 92 | hand't been relased there yet, while it was changed to World Wars for places | |
| 93 | where it had already been released. | |
| 71 | 94 | |
| 72 | - How to enter the "test mode" : while "front turbo check" is displayed on screen, | |
| 73 | press '1' (start player 1) until a grid is displayed. You can then press '1' | |
| 74 | to go to the next part or press '2' to reset the game. | |
| 95 | The most compelling pieces of evidence to indicate which sets are newer are | |
| 96 | the following: | |
| 97 | - to enter test mode, bermudat/bermudaj use P1 start (old style: older games | |
| 98 | from tnk3 to victroad do it). worldwar/bermudaa use a dedicated service | |
| 99 | button (new style: newer games like gwar do it). | |
| 100 | - some of the tiles in the fg ROM (letters saying "standard", "power", | |
| 101 | "hyper", "safety", "danger") are present in all sets, but are actually used | |
| 102 | only in bermudat/bermudaj. | |
| 103 | - the worldwar test mode shows wrong descriptions for the dip switches, which | |
| 104 | are actually correct for bermudaj. | |
| 75 | 105 | |
| 76 | - The typo bug from 'bermudao' "test mode" is fixed. | |
| 106 | So in the end the cronology of the four sets is: | |
| 107 | 1) bermudat | |
| 108 | - Old gameplay | |
| 109 | - World version? (English speech) | |
| 110 | - 5 letters when entering initials, and "TOKYO" as default names | |
| 111 | - Test mode accessed using P1 start | |
| 112 | - There is bug in test mode: when the "Bonus Life" dip switches are set to | |
| 113 | "60k 120k", it shows "80000P 160000P". | |
| 114 | 2) bermudaj | |
| 115 | - Old gameplay | |
| 116 | - Definitely Japan version (Japanese speech) | |
| 117 | - 5 letters when entering initials, and "TOKYO" as default names | |
| 118 | - Test mode accessed using P1 start | |
| 119 | - The test mode bug is fixed. | |
| 120 | 3) worldwar | |
| 121 | - New gameplay | |
| 122 | - World version? | |
| 123 | - 5 letters when entering initials, and "WORLD" as default names | |
| 124 | - Test mode accessed using dedicated service button | |
| 125 | - Dip switches description in test mode are wrong: they are the same as | |
| 126 | bermudaj, even if the actual behaviour has changed. | |
| 127 | 4) bermudaa | |
| 128 | - New gameplay | |
| 129 | - US version | |
| 130 | - 3 letters when entering initials, and "SNK " as default names | |
| 131 | - Test mode accessed using dedicated service button | |
| 132 | - Dip switches descriptions updated. | |
| 77 | 133 | |
| 134 | - ikari/victroad do a "front hard check" during boot. This appears to be | |
| 135 | hardware bounds checking test which is also used during the game. | |
| 136 | However the game also does software collision detection, because making | |
| 137 | the test always return true is enough to make the game work. | |
| 78 | 138 | |
| 79 | 2b) 'bermudao' | |
| 139 | - bermudat/bermudaj do a "turbo front check" during boot, which is missing in | |
| 140 | bermudaa/worldwar. Perhaps they realised that as a protection device it was | |
| 141 | useless since the game doesn't use the hardware after the check. | |
| 80 | 142 | |
| 81 | - Japan version (5 letters when entering initials, and "TOKYO" as default names) | |
| 143 | - tdfever2: though the gfx appear strange on the vs. screens / choose number of | |
| 144 | players screens eg. the numbers aren't in the boxes, they're in the lower | |
| 145 | right corners, and there is no background color like there is in tdfever, this | |
| 146 | is not a bug, it is confirmed to be correct against the pcb. | |
| 82 | 147 | |
| 83 | - How to enter the "test mode" : while "front turbo check" is displayed on screen, | |
| 84 | press '1' (start player 1) until a grid is displayed. You can then press '1' | |
| 85 | to go to the next part or press '2' to reset the game. | |
| 148 | - the gwarb bootleg has two Y8950 instead of YM3526+Y8950. However, the sound | |
| 149 | program ROM is identical to gwar, so the replacement Y8950 is definitely used | |
| 150 | only in its YM3526 compatible part, without using its additional ADPCM | |
| 151 | capabilities. It should be noted that the gwara sound program has a small | |
| 152 | patch that apparently would set two extra bits in register 04 which should | |
| 153 | only exist in the Y8950, not in the YM3526. | |
| 86 | 154 | |
| 87 | - There is typo bug in the "test mode" : when "Bonus Life" Dip Switch is set to | |
| 88 | "60k 120k", it is written "80000P 160000P every". | |
| 155 | - while tdfever2 does write to the addresses where the YM3526 is mapped in | |
| 156 | tdfever, those seem to be bogus writes since it causes sound to malfunction | |
| 157 | (a continuous scale is played by the Y8950). Taking the YM3526 out appears to | |
| 158 | fix the problem since all game sounds are apparently played by the Y8950 alone. | |
| 89 | 159 | |
| 90 | 160 | |
| 91 | 2c) 'bermudaa' | |
| 161 | TODO: | |
| 162 | ----- | |
| 92 | 163 | |
| 93 | - US version (3 letters when entering initials, and "SNK " as default names) | |
| 164 | - jcross might be a bad dump. The current ROM set is made by mixing two sets | |
| 165 | which were marked as 'bad'. | |
| 94 | 166 | |
| 95 | - How to enter the "test mode" : reset the game and press F2 until is a grid is | |
| 96 | displayed. You can then press F2 again to go to the next part. | |
| 167 | - jcross: only the first bank of the fg charset is used. The second bank is | |
| 168 | almost identical apart from a few characters. Should it be used? When? | |
| 97 | 169 | |
| 170 | - sgladiat: unknown writes to D200/DA00, probably video related. Also some bits | |
| 171 | of A600 are unknown. | |
| 98 | 172 | |
| 99 | 2d) 'worldwar' | |
| 173 | - ASO: unknown writes to CE00, probably video related. Always 05? | |
| 174 | Also unknown writes to F002 by the sound CPU, during reset. | |
| 100 | 175 | |
| 101 | - World version (5 letters when entering initials, and "WORLD" as default names) | |
| 102 | And this had been confirmed by the guy who loant the PCB. | |
| 176 | - Fighting Golf: unknown writes to CF00, probably video related. | |
| 103 | 177 | |
| 104 | - How to enter the "test mode" : reset the game and press F2 until is a grid is | |
| 105 | displayed. You can then press F2 again to go to the next part. | |
| 178 | - The Fighting Golf flyer shows a different gameplay, where button A is pressed | |
| 179 | multiple times to select the spin. The flyer also says that the game "includes | |
| 180 | the unique feature of 2 distinct styles of game play, selectable by dipswitch | |
| 181 | setting. For the avid golfer, a more challenging style of swing.". | |
| 182 | Either a different ROM set exists, or we are missing some configuration option. | |
| 106 | 183 | |
| 107 | - Don't trust the "test mode" for the Dip Switches ! The infos which are | |
| 108 | displayed are the one from 'bermudao' (see what the "unknown" Dip Switches do). | |
| 184 | - ikari/victroad: unknown writes to C980. This is probably (also) related to the | |
| 185 | color used to draw the FG layer, and supporting it is needed to fix the color | |
| 186 | test in ikaria/ikarijp. | |
| 109 | 187 | |
| 188 | - gwar: unknown writes to CA00/CA40. Always 0? | |
| 110 | 189 | |
| 111 | AT042903: | |
| 112 | - fixed Psycho Soldier lyrics tempo | |
| 113 | - fixed char layer alignment in Fighting Golf, Athena and TNK3 | |
| 114 | - cleaned garbage tiles in Bermuda Triangle and improved sprite priority | |
| 115 | - corrected tile ROM loading in Bermuda(alt)/Worldwar | |
| 116 | - corrected sound ROM loading and palette in Touchdown Fever | |
| 117 | - various sprite adjustments from MAME32 plus | |
| 190 | - tdfever/fsoccer: the dots in the radar flicker. In fsoccer, this is greatly | |
| 191 | improved by forcing partial screen updates when the sprite RAM is changed (see | |
| 192 | snk68.c for another game that needs this). tdfever dots still flicker a lot, | |
| 193 | however I'm not sure if this is an emulation bug or the real game behaviour. | |
| 118 | 194 | |
| 119 | AT08XX03: | |
| 120 | - revamped CPU handshaking, improved clipping and made changes public to | |
| 121 | marvins.c, hal21.c and sgladiat.c | |
| 122 | - fixed shadows in tnk3, athena, fitegolf, countryc, | |
| 123 | and fsoccer | |
| 124 | - added highlights to tdfever and fsoccer(needs masking at team selection) | |
| 125 | - notes: | |
| 195 | - psychos: in all games using the gwar video, palette colors 0x180-0x1ff are not | |
| 196 | used because bit 3 of the sprite attribute is used for tile bank select instead. | |
| 197 | In all games, those colors 0x180-0x1ff are a copy of 0x100-0x17f so even if the | |
| 198 | bit was wired to the palette, it would make no difference. In psychos, however, | |
| 199 | the colors are different. Game colors appear to be correct as they are, and | |
| 200 | connecting bit 3 would break them, so it's unknown if colors 0x180-0x1ff should | |
| 201 | be used and how. | |
| 126 | 202 | |
| 127 | Mad Crasher and Gladiator(sgladiat.c) have different memory maps but | |
| 128 | their code base and port layouts are quite similar. The following are | |
| 129 | some distinctive designs of these two games common to many other SNK | |
| 130 | triple Z80 boards made in the mid-80's. | |
| 203 | ***************************************************************************/ | |
| 131 | 204 | |
| 132 | 1) Shared RAM | |
| 205 | #include "driver.h" | |
| 206 | #include "snk.h" | |
| 207 | #include "sound/ay8910.h" | |
| 208 | #include "sound/namco.h" | |
| 209 | #include "sound/3812intf.h" | |
| 133 | 210 | |
| 134 | The "shared" RAM in Mad Crasher is more appropriately | |
| 135 | "switched" RAM. Marvin's schematics indicate selector | |
| 136 | circuits and when a CPU wants to access specific part of | |
| 137 | the memory it will write to the first byte of the 4k page | |
| 138 | and give the selector a few cycles to settle. | |
| 139 | 211 | |
| 140 | It is not known what exactly happens when more than one CPU | |
| 141 | try to access the same page. | |
| 212 | static int countryc_trackball; | |
| 142 | 213 | |
| 143 | 2) IRQ | |
| 214 | // FIXME this should be initialised on machine reset | |
| 215 | static int sound_status; | |
| 144 | 216 | |
| 145 | CPUA starts recalculating game logic and constructing | |
| 146 | sprites for the next frame upon receiving IRQ0. When CPUB | |
| 147 | receives its own IRQ0 it copies sprite data prepared by | |
| 148 | CPUA in the previous frame to VRAM and updates scroll | |
| 149 | registers. The process takes about 2ms which fits in vblank | |
| 150 | nicely. However, if CPUA modifies sprite data before | |
| 151 | blitting is complete sprites for the current frame may get | |
| 152 | overwritten by those for the next and it creates a funny | |
| 153 | rubber-band effect. | |
| 217 | /*********************************************************************/ | |
| 218 | // Interrupt Handlers Common to All SNK Triple Z80 Games | |
| 154 | 219 | |
| 155 | In essence CPUA's IRQ0 should fire 1-2ms later than CPUB's | |
| 156 | to maintain visual stability. Increasing the delay will only | |
| 157 | waste cycles in idle loops. Note that certain games may have | |
| 158 | CPUA and B switched roles. | |
| 220 | READ8_HANDLER ( snk_cpuA_nmi_trigger_r ) | |
| 221 | { | |
| 222 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, ASSERT_LINE); | |
| 223 | return 0; | |
| 224 | } | |
| 159 | 225 | |
| 160 | 3) NMI | |
| 226 | WRITE8_HANDLER( snk_cpuA_nmi_ack_w ) | |
| 227 | { | |
| 228 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, CLEAR_LINE); | |
| 229 | } | |
| 161 | 230 | |
| 162 | CPUA and B handshake through NMIs. They were implemented in | |
| 163 | all SNK triple Z80 drivers as | |
| 231 | READ8_HANDLER ( snk_cpuB_nmi_trigger_r ) | |
| 232 | { | |
| 233 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, ASSERT_LINE); | |
| 234 | return 0; | |
| 235 | } | |
| 164 | 236 | |
| 165 | ENABLE->SIGNAL->HOLDUP->MAKEUP->ACKNOWLEDGE | |
| 237 | WRITE8_HANDLER( snk_cpuB_nmi_ack_w ) | |
| 238 | { | |
| 239 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, CLEAR_LINE); | |
| 240 | } | |
| 166 | 241 | |
| 167 | but upon close examination of the games code no evidence of | |
| 168 | any game relying on this behavior to function correctly was | |
| 169 | found. Sometimes it even has adverse effects by triggering | |
| 170 | extra NMI's therefore handshaking has been reduced to basic | |
| 242 | /*********************************************************************/ | |
| 171 | 243 | |
| 172 | SIGNAL->ACKNOWLEDGE | |
| 244 | enum | |
| 245 | { | |
| 246 | YM1IRQ_ASSERT, | |
| 247 | YM1IRQ_CLEAR, | |
| 248 | YM2IRQ_ASSERT, | |
| 249 | YM2IRQ_CLEAR, | |
| 250 | CMDIRQ_BUSY_ASSERT, | |
| 251 | BUSY_CLEAR, | |
| 252 | CMDIRQ_CLEAR | |
| 253 | }; | |
| 173 | 254 | |
| 174 | 4) Sound Latching | |
| 175 | 255 | |
| 176 | Each game has a byte-size sound command port being | |
| 177 | represented by Marvin's scheme as a single unit consists | |
| 178 | of one flip-flop and two latches. The flip-flop may be | |
| 179 | responsible for the sound busy flag but the second latch's | |
| 180 | function is unclear. HAL21 seems to have the most complex | |
| 181 | soundlatch circuit and the hardware is able to report | |
| 182 | playback status in six different bits. | |
| 256 | static TIMER_CALLBACK( sgladiat_sndirq_update_callback ) | |
| 257 | { | |
| 258 | switch(param) | |
| 259 | { | |
| 260 | case CMDIRQ_BUSY_ASSERT: | |
| 261 | sound_status |= 8|4; | |
| 262 | break; | |
| 183 | 263 | |
| 184 | The sound busy flag is raised when CPUA writes to the | |
| 185 | soundlatch and is lowered when a designated port is read. | |
| 186 | For games based on Marvin's hardware the designated port is | |
| 187 | the soundlatch itself. Most games clear the flag within the | |
| 188 | alerting IRQ autonomously but some like ASO and HAL21 do it | |
| 189 | shortly after the sound CPU has finished modulating an effect. | |
| 264 | case BUSY_CLEAR: | |
| 265 | sound_status &= ~4; | |
| 266 | break; | |
| 190 | 267 | |
| 191 | **************************************************************************** | |
| 268 | case CMDIRQ_CLEAR: | |
| 269 | sound_status &= ~8; | |
| 270 | break; | |
| 271 | } | |
| 192 | 272 | |
| 193 | ym3526 | |
| 194 | Aso, Tank | |
| 273 | cpunum_set_input_line(machine, 2, INPUT_LINE_NMI, (sound_status & 0x8) ? ASSERT_LINE : CLEAR_LINE); | |
| 274 | } | |
| 195 | 275 | |
| 196 | ym3526x2 | |
| 197 | Athena, Ikari, Fighting Golf | |
| 198 | 276 | |
| 199 | ym3526 + y8950 | |
| 200 | Victory Road, Psycho Soldier, Bermuda Triangle, Touchdown Fever, Guerilla War | |
| 277 | static WRITE8_HANDLER( sgladiat_soundlatch_w ) | |
| 278 | { | |
| 279 | soundlatch_w(machine, offset, data); | |
| 280 | timer_call_after_resynch(NULL, CMDIRQ_BUSY_ASSERT, sgladiat_sndirq_update_callback); | |
| 281 | } | |
| 201 | 282 | |
| 202 | ym3812 + y8950 | |
| 203 | Legofair, Chopper1 | |
| 283 | static READ8_HANDLER( sgladiat_soundlatch_r ) | |
| 284 | { | |
| 285 | timer_call_after_resynch(NULL, BUSY_CLEAR, sgladiat_sndirq_update_callback); | |
| 286 | return soundlatch_r(machine,0); | |
| 287 | } | |
| 204 | 288 | |
| 205 | y8950 | |
| 206 | Fighting Soccer | |
| 289 | static READ8_HANDLER( sgladiat_sound_nmi_ack_r ) | |
| 290 | { | |
| 291 | timer_call_after_resynch(NULL, CMDIRQ_CLEAR, sgladiat_sndirq_update_callback); | |
| 292 | return 0xff; | |
| 293 | } | |
| 207 | 294 | |
| 208 | Credits (in alphabetical order) | |
| 209 | Ernesto Corvi | |
| 210 | Carlos A. Lozano | |
| 211 | Jarek Parchanski | |
| 212 | Phil Stroffolino (pjstroff@hotmail.com) | |
| 213 | Victor Trucco | |
| 214 | Marco Cassili | |
| 295 | static READ8_HANDLER( sgladiat_sound_irq_ack_r ) | |
| 296 | { | |
| 297 | cpunum_set_input_line(machine, 2, 0, CLEAR_LINE); | |
| 298 | return 0xff; | |
| 299 | } | |
| 215 | 300 | |
| 216 | ***************************************************************************/ | |
| 217 | 301 | |
| 218 | #include "driver.h" | |
| 219 | #include "deprecat.h" | |
| 220 | #include "cpu/z80/z80.h" | |
| 221 | #include "snk.h" | |
| 222 | #include "sound/3812intf.h" | |
| 302 | /*********************************************************************/ | |
| 223 | 303 | |
| 304 | ||
| 305 | /* | |
| 306 | All the later games (from athena onwards) have the same sound status flag handling. | |
| 307 | ||
| 308 | This 4 bit register is mapped at 0xf800. | |
| 309 | ||
| 310 | Writes to this register always contain 0x0f in the lower nibble. | |
| 311 | The upper nibble contains a mask, which clears bits | |
| 312 | ||
| 313 | bit 0: irq request from first YM chip | |
| 314 | bit 1: irq request from second YM chip | |
| 315 | bit 2: sound cpu busy | |
| 316 | bit 3: sound command pending | |
| 317 | ||
| 318 | The main CPU can read the busy flag using an input port. | |
| 319 | ||
| 320 | The earlier games are different. E.g. in tnk3 there are only three status | |
| 321 | bits since there is only one YM chip, and the bits are cleared using | |
| 322 | separate memory addresses. Additionally, clearing the cmd irq also | |
| 323 | clears the sound latch. | |
| 324 | */ | |
| 325 | ||
| 224 | 326 | /*********************************************************************/ |
| 225 | // Variables and Interrupt Handlers Common to All SNK Triple Z80 Games | |
| 226 | 327 | |
| 227 | int snk_gamegroup = 0; | |
| 228 | int snk_sound_busy_bit = 0; | |
| 229 | int snk_irq_delay = 1500; | |
| 230 | static int use_input_cp_hack = 0; | |
| 328 | static TIMER_CALLBACK( sndirq_update_callback ) | |
| 329 | { | |
| 330 | switch(param) | |
| 331 | { | |
| 332 | case YM1IRQ_ASSERT: | |
| 333 | sound_status |= 1; | |
| 334 | break; | |
| 231 | 335 | |
| 232 | static const UINT32 dial_8_gray[8] = { 0x0a,0x08,0x0c,0x04,0x05,0x01,0x03,0x0f }; | |
| 336 | case YM1IRQ_CLEAR: | |
| 337 | sound_status &= ~1; | |
| 338 | break; | |
| 233 | 339 | |
| 234 | // see IRQ notes in drivers\marvins.c | |
| 235 | static TIMER_CALLBACK( irq_trigger_callback ) { cpunum_set_input_line(machine, param, 0, HOLD_LINE); } | |
| 340 | case YM2IRQ_ASSERT: | |
| 341 | sound_status |= 2; | |
| 342 | break; | |
| 236 | 343 | |
| 237 | INTERRUPT_GEN( snk_irq_AB ) | |
| 344 | case YM2IRQ_CLEAR: | |
| 345 | sound_status &= ~2; | |
| 346 | break; | |
| 347 | ||
| 348 | case CMDIRQ_BUSY_ASSERT: | |
| 349 | sound_status |= 8|4; | |
| 350 | break; | |
| 351 | ||
| 352 | case BUSY_CLEAR: | |
| 353 | sound_status &= ~4; | |
| 354 | break; | |
| 355 | ||
| 356 | case CMDIRQ_CLEAR: | |
| 357 | sound_status &= ~8; | |
| 358 | break; | |
| 359 | } | |
| 360 | ||
| 361 | cpunum_set_input_line(machine, 2, 0, (sound_status & 0xb) ? ASSERT_LINE : CLEAR_LINE); | |
| 362 | } | |
| 363 | ||
| 364 | ||
| 365 | ||
| 366 | static const namco_interface snkwave_interface = | |
| 238 | 367 | { |
| 239 | cpunum_set_input_line(machine, 0, 0, HOLD_LINE); | |
| 240 | timer_set(ATTOTIME_IN_USEC(snk_irq_delay), NULL, 1, irq_trigger_callback); | |
| 368 | 1, | |
| 369 | 0 /* stereo */ | |
| 370 | }; | |
| 371 | ||
| 372 | ||
| 373 | static void ymirq_callback_1(running_machine *machine, int irq) | |
| 374 | { | |
| 375 | if (irq) | |
| 376 | timer_call_after_resynch(NULL, YM1IRQ_ASSERT, sndirq_update_callback); | |
| 241 | 377 | } |
| 242 | 378 | |
| 243 | ||
| 379 | static void ymirq_callback_2(running_machine *machine, int irq | |
| 244 | 380 | { |
| 245 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE); | |
| 246 | timer_set(ATTOTIME_IN_USEC(snk_irq_delay), NULL, 0, irq_trigger_callback); | |
| 381 | if (irq) | |
| 382 | timer_call_after_resynch(NULL, YM2IRQ_ASSERT, sndirq_update_callback); | |
| 247 | 383 | } |
| 248 | 384 | |
| 249 | // NMI handshakes between CPUs are determined to be much simpler | |
| 250 | READ8_HANDLER ( snk_cpuA_nmi_trigger_r ) { cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, ASSERT_LINE); return 0; } | |
| 251 | WRITE8_HANDLER( snk_cpuA_nmi_ack_w ) { cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, CLEAR_LINE); } | |
| 252 | 385 | |
| 253 | READ8_HANDLER ( snk_cpuB_nmi_trigger_r ) { cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, ASSERT_LINE); return 0; } | |
| 254 | WRITE8_HANDLER( snk_cpuB_nmi_ack_w ) { cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, CLEAR_LINE); } | |
| 386 | static const ym3526_interface ym3526_config_1 = | |
| 387 | { | |
| 388 | ymirq_callback_1 | |
| 389 | }; | |
| 255 | 390 | |
| 256 | /*********************************************************************/ | |
| 391 | static const ym3526_interface ym3526_config_2 = | |
| 392 | { | |
| 393 | ymirq_callback_2 | |
| 394 | }; | |
| 257 | 395 | |
| 258 | #define SNK_MAX_INPUT_PORTS 13 | |
| 396 | static const ym3812_interface ym3812_config_1 = | |
| 397 | { | |
| 398 | ymirq_callback_1 | |
| 399 | }; | |
| 259 | 400 | |
| 260 | typedef enum { | |
| 261 | SNK_UNUSED, | |
| 262 | SNK_INP0, | |
| 263 | SNK_INP1,SNK_INP2,SNK_INP3,SNK_INP4, | |
| 264 | SNK_INP5,SNK_INP6,SNK_INP7,SNK_INP8, | |
| 265 | SNK_DSW1,SNK_DSW2,SNK_INP9, | |
| 266 | SNK_ROT_PLAYER1, SNK_ROT_PLAYER2 | |
| 267 | } SNK_INPUT_PORT_TYPE; | |
| 401 | static const y8950_interface y8950_config_2 = | |
| 402 | { | |
| 403 | ymirq_callback_2 | |
| 404 | }; | |
| 268 | 405 | |
| 269 | UINT8 *snk_rambase; | |
| 270 | static UINT8 *io_ram; | |
| 271 | static const SNK_INPUT_PORT_TYPE *snk_io; /* input port configuration */ | |
| 272 | 406 | |
| 273 | static int hard_flags; | |
| 274 | 407 | |
| 275 | /*********************************************************************/ | |
| 408 | static WRITE8_HANDLER( snk_soundlatch_w ) | |
| 409 | { | |
| 410 | soundlatch_w(machine, offset, data); | |
| 411 | timer_call_after_resynch(NULL, CMDIRQ_BUSY_ASSERT, sndirq_update_callback); | |
| 412 | } | |
| 276 | 413 | |
| 277 | /* | |
| 278 | This 4 bit register is mapped at 0xf800. | |
| 414 | static CUSTOM_INPUT( snk_sound_busy ) | |
| 415 | { | |
| 416 | return (sound_status & 4) ? 1 : 0; | |
| 417 | } | |
| 279 | 418 | |
| 280 | Writes to this register always contain 0x0f in the lower nibble. | |
| 281 | The upper nibble contains a mask, which clears bits | |
| 282 | 419 | |
| 283 | bit 0: set by YM3526/YM3812 callback? | |
| 284 | bit 1: set by Y8950 callback? | |
| 285 | bit 2: sound cpu busy | |
| 286 | bit 3: sound command pending | |
| 287 | */ | |
| 288 | static int snk_sound_register; | |
| 289 | 420 | |
| 290 | /*********************************************************************/ | |
| 421 | static READ8_HANDLER( snk_sound_status_r ) | |
| 422 | { | |
| 423 | return sound_status; | |
| 424 | } | |
| 291 | 425 | |
| 426 | static WRITE8_HANDLER( snk_sound_status_w ) | |
| 427 | { | |
| 428 | if (~data & 0x10) // ack YM1 irq | |
| 429 | timer_call_after_resynch(NULL, YM1IRQ_CLEAR, sndirq_update_callback); | |
| 292 | 430 | |
| 293 | static int snk_rot( running_machine *machine, int which ) | |
| 431 | if (~data & 0x20) // ack YM2 irq | |
| 432 | timer_call_after_resynch(NULL, YM2IRQ_CLEAR, sndirq_update_callback); | |
| 433 | ||
| 434 | if (~data & 0x40) // clear busy flag | |
| 435 | timer_call_after_resynch(NULL, BUSY_CLEAR, sndirq_update_callback); | |
| 436 | ||
| 437 | if (~data & 0x80) // ack command from main cpu | |
| 438 | timer_call_after_resynch(NULL, CMDIRQ_CLEAR, sndirq_update_callback); | |
| 439 | } | |
| 440 | ||
| 441 | ||
| 442 | ||
| 443 | static READ8_HANDLER( tnk3_cmdirq_ack_r ) | |
| 294 | 444 | { |
| 445 | timer_call_after_resynch(NULL, CMDIRQ_CLEAR, sndirq_update_callback); | |
| 446 | return 0xff; | |
| 447 | } | |
| 448 | ||
| 449 | static READ8_HANDLER( tnk3_ymirq_ack_r ) | |
| 450 | { | |
| 451 | timer_call_after_resynch(NULL, YM1IRQ_CLEAR, sndirq_update_callback); | |
| 452 | return 0xff; | |
| 453 | } | |
| 454 | ||
| 455 | static READ8_HANDLER( tnk3_busy_clear_r ) | |
| 456 | { | |
| 457 | // it's uncertain whether the latch should be cleared here or when it's read | |
| 458 | soundlatch_clear_w(machine, 0, 0); | |
| 459 | timer_call_after_resynch(NULL, BUSY_CLEAR, sndirq_update_callback); | |
| 460 | return 0xff; | |
| 461 | } | |
| 462 | ||
| 463 | ||
| 464 | ||
| 465 | /***************************************************************************** | |
| 466 | ||
| 467 | "Hard Flags" simulation | |
| 468 | ||
| 469 | Apparently this is just a hardware bounds checking test. | |
| 470 | ||
| 471 | The details might be slightly wrong, however this implementation passes the | |
| 472 | startup checks, and is good enough to make collision detection work in the | |
| 473 | game, so it cannot be far from correct (e.g. inverting the bit order in | |
| 474 | hardflags_check8 will make collision detection not work). | |
| 475 | ||
| 476 | In particular, the hf_size handling might be wrong. | |
| 477 | ||
| 478 | A trojan could be used on the board to verify the exact behaviour. | |
| 479 | ||
| 480 | *****************************************************************************/ | |
| 481 | ||
| 482 | static int hf_posy, hf_posx; | |
| 483 | ||
| 484 | static WRITE8_HANDLER( hardflags_scrollx_w ) | |
| 485 | { | |
| 486 | hf_posx = (hf_posx & ~0xff) | data; | |
| 487 | } | |
| 488 | ||
| 489 | static WRITE8_HANDLER( hardflags_scrolly_w ) | |
| 490 | { | |
| 491 | hf_posy = (hf_posy & ~0xff) | data; | |
| 492 | } | |
| 493 | ||
| 494 | static WRITE8_HANDLER( hardflags_scroll_msb_w ) | |
| 495 | { | |
| 496 | hf_posx = (hf_posx & 0xff) | ((data & 0x80) << 1); | |
| 497 | hf_posy = (hf_posy & 0xff) | ((data & 0x40) << 2); | |
| 498 | ||
| 499 | // low 6 bits might indicate radius, but it's not clear | |
| 500 | } | |
| 501 | ||
| 502 | static int hardflags_check(int num) | |
| 503 | { | |
| 504 | const UINT8 *sr = &spriteram[0x800 + 4*num]; | |
| 505 | int x = sr[2] + ((sr[3] & 0x80) << 1); | |
| 506 | int y = sr[0] + ((sr[3] & 0x10) << 4); | |
| 507 | ||
| 508 | int dx = (x - hf_posx) & 0x1ff; | |
| 509 | int dy = (y - hf_posy) & 0x1ff; | |
| 510 | ||
| 511 | if (dx > 0x20 && dx <= 0x1e0 && dy > 0x20 && dy <= 0x1e0) | |
| 512 | return 0; | |
| 513 | else | |
| 514 | return 1; | |
| 515 | } | |
| 516 | ||
| 517 | static int hardflags_check8(int num) | |
| 518 | { | |
| 519 | return | |
| 520 | (hardflags_check(num + 0) << 0) | | |
| 521 | (hardflags_check(num + 1) << 1) | | |
| 522 | (hardflags_check(num + 2) << 2) | | |
| 523 | (hardflags_check(num + 3) << 3) | | |
| 524 | (hardflags_check(num + 4) << 4) | | |
| 525 | (hardflags_check(num + 5) << 5) | | |
| 526 | (hardflags_check(num + 6) << 6) | | |
| 527 | (hardflags_check(num + 7) << 7); | |
| 528 | } | |
| 529 | ||
| 530 | static READ8_HANDLER( hardflags1_r ) { return hardflags_check8(0*8); } | |
| 531 | static READ8_HANDLER( hardflags2_r ) { return hardflags_check8(1*8); } | |
| 532 | static READ8_HANDLER( hardflags3_r ) { return hardflags_check8(2*8); } | |
| 533 | static READ8_HANDLER( hardflags4_r ) { return hardflags_check8(3*8); } | |
| 534 | static READ8_HANDLER( hardflags5_r ) { return hardflags_check8(4*8); } | |
| 535 | static READ8_HANDLER( hardflags6_r ) { return hardflags_check8(5*8); } | |
| 536 | static READ8_HANDLER( hardflags7_r ) | |
| 537 | { | |
| 538 | // apparently the startup tests use bits 0&1 while the game uses bits 4&5 | |
| 539 | return | |
| 540 | (hardflags_check(6*8 + 0) << 0) | | |
| 541 | (hardflags_check(6*8 + 1) << 1) | | |
| 542 | (hardflags_check(6*8 + 0) << 4) | | |
| 543 | (hardflags_check(6*8 + 1) << 5); | |
| 544 | } | |
| 545 | ||
| 546 | ||
| 547 | ||
| 548 | /***************************************************************************** | |
| 549 | ||
| 550 | "Turbo Front" simulation | |
| 551 | ||
| 552 | This is used by Bermuda Triangle, and appears to be similar to Ikari Warriors. | |
| 553 | In this case, however, the test is only done during boot and not used at all | |
| 554 | in the game. | |
| 555 | ||
| 556 | The simulation is modeled on the ikari one, however all we can do is that it | |
| 557 | passes the startup checks. There is not enough evidence to infer more. | |
| 558 | ||
| 559 | A trojan could be used on the board to verify the exact behaviour. | |
| 560 | ||
| 561 | *****************************************************************************/ | |
| 562 | ||
| 563 | static int tc16_posy, tc16_posx, tc32_posy, tc32_posx; | |
| 564 | ||
| 565 | static WRITE8_HANDLER( turbocheck16_1_w ) | |
| 566 | { | |
| 567 | tc16_posy = (tc16_posy & ~0xff) | data; | |
| 568 | } | |
| 569 | ||
| 570 | static WRITE8_HANDLER( turbocheck16_2_w ) | |
| 571 | { | |
| 572 | tc16_posx = (tc16_posx & ~0xff) | data; | |
| 573 | } | |
| 574 | ||
| 575 | static WRITE8_HANDLER( turbocheck32_1_w ) | |
| 576 | { | |
| 577 | tc32_posy = (tc32_posy & ~0xff) | data; | |
| 578 | } | |
| 579 | ||
| 580 | static WRITE8_HANDLER( turbocheck32_2_w ) | |
| 581 | { | |
| 582 | tc32_posx = (tc32_posx & ~0xff) | data; | |
| 583 | } | |
| 584 | ||
| 585 | static WRITE8_HANDLER( turbocheck_msb_w ) | |
| 586 | { | |
| 587 | tc16_posx = (tc16_posx & 0xff) | ((data & 0x80) << 1); | |
| 588 | tc16_posy = (tc16_posy & 0xff) | ((data & 0x40) << 2); | |
| 589 | tc32_posx = (tc32_posx & 0xff) | ((data & 0x80) << 1); | |
| 590 | tc32_posy = (tc32_posy & 0xff) | ((data & 0x40) << 2); | |
| 591 | ||
| 592 | // low 6 bits might indicate radius, but it's not clear | |
| 593 | } | |
| 594 | ||
| 595 | static int turbofront_check(int small, int num) | |
| 596 | { | |
| 597 | const UINT8 *sr = &spriteram[0x800*small + 4*num]; | |
| 598 | int x = sr[2] + ((sr[3] & 0x80) << 1); | |
| 599 | int y = sr[0] + ((sr[3] & 0x10) << 4); | |
| 600 | ||
| 601 | int dx = (x - (small ? tc16_posx : tc32_posx)) & 0x1ff; | |
| 602 | int dy = (y - (small ? tc16_posy : tc32_posy)) & 0x1ff; | |
| 603 | ||
| 604 | if (dx > 0x20 && dx <= 0x1e0 && dy > 0x20 && dy <= 0x1e0) | |
| 605 | return 0; | |
| 606 | else | |
| 607 | return 1; | |
| 608 | } | |
| 609 | ||
| 610 | static int turbofront_check8(int small, int num) | |
| 611 | { | |
| 612 | return | |
| 613 | (turbofront_check(small, num + 0) << 0) | | |
| 614 | (turbofront_check(small, num + 1) << 1) | | |
| 615 | (turbofront_check(small, num + 2) << 2) | | |
| 616 | (turbofront_check(small, num + 3) << 3) | | |
| 617 | (turbofront_check(small, num + 4) << 4) | | |
| 618 | (turbofront_check(small, num + 5) << 5) | | |
| 619 | (turbofront_check(small, num + 6) << 6) | | |
| 620 | (turbofront_check(small, num + 7) << 7); | |
| 621 | } | |
| 622 | ||
| 623 | static READ8_HANDLER( turbocheck16_1_r ) { return turbofront_check8(1, 0*8); } | |
| 624 | static READ8_HANDLER( turbocheck16_2_r ) { return turbofront_check8(1, 1*8); } | |
| 625 | static READ8_HANDLER( turbocheck16_3_r ) { return turbofront_check8(1, 2*8); } | |
| 626 | static READ8_HANDLER( turbocheck16_4_r ) { return turbofront_check8(1, 3*8); } | |
| 627 | static READ8_HANDLER( turbocheck16_5_r ) { return turbofront_check8(1, 4*8); } | |
| 628 | static READ8_HANDLER( turbocheck16_6_r ) { return turbofront_check8(1, 5*8); } | |
| 629 | static READ8_HANDLER( turbocheck16_7_r ) { return turbofront_check8(1, 6*8); } | |
| 630 | static READ8_HANDLER( turbocheck16_8_r ) { return turbofront_check8(1, 7*8); } | |
| 631 | static READ8_HANDLER( turbocheck32_1_r ) { return turbofront_check8(0, 0*8); } | |
| 632 | static READ8_HANDLER( turbocheck32_2_r ) { return turbofront_check8(0, 1*8); } | |
| 633 | static READ8_HANDLER( turbocheck32_3_r ) { return turbofront_check8(0, 2*8); } | |
| 634 | static READ8_HANDLER( turbocheck32_4_r ) { return turbofront_check8(0, 3*8); } | |
| 635 | ||
| 636 | ||
| 637 | ||
| 638 | /***************************************************************************** | |
| 639 | ||
| 640 | Guerrilla War protection | |
| 641 | ||
| 642 | We add a 0xf value for 1 input read once every 8 rotations. | |
| 643 | 0xf isn't a valid direction, but avoids the "joystick error" protection | |
| 644 | which happens when direction changes directly from 0x5<->0x6 8 times. | |
| 645 | The rotary joystick is a mechanical 12-way positional switch, so what happens | |
| 646 | is that occasionally while rotating the stick none of the switches will be | |
| 647 | closed. The protection test verifies that this happens, to prevent replacement | |
| 648 | of the rotary stick with a simple TTL counter. | |
| 649 | Note that returning 0xf just once is enough to disable the test. On the other | |
| 650 | hand, always returning 0xf inbetween valid values confuses the game. | |
| 651 | ||
| 652 | *****************************************************************************/ | |
| 653 | ||
| 654 | CUSTOM_INPUT( gwar_rotary ) | |
| 655 | { | |
| 295 | 656 | static int last_value[2] = {0, 0}; |
| 296 | 657 | static int cp_count[2] = {0, 0}; |
| 297 | static const char *ports[] = { "IN1", "IN2" }; | |
| 298 | int value = input_port_read(machine, ports[which]); | |
| 299 | int bttn; | |
| 658 | static const char *ports[] = { "P1ROT", "P2ROT" }; | |
| 659 | int which = (int)(FPTR)param; | |
| 660 | int value = input_port_read(field->port->machine, ports[which]); | |
| 300 | 661 | |
| 301 | /* For Guerilla War we add a 0xf0 value for 1 input read once every 8 rotations. | |
| 302 | * 0xf0 isn't a valid direction, but avoids the "joystick error" protection | |
| 303 | * which happens when direction changes directly from 0x50<->0x60 8 times. | |
| 304 | */ | |
| 305 | if (use_input_cp_hack) | |
| 662 | if ((last_value[which] == 0x5 && value == 0x6) || (last_value[which] == 0x6 && value == 0x5)) | |
| 306 | 663 | { |
| 307 | bttn = value & 0x0f; | |
| 308 | value &= 0xf0; | |
| 309 | if ((last_value[which] == 0x50 && value == 0x60) || (last_value[which] == 0x60 && value == 0x50)) | |
| 310 | { | |
| 311 | if (!cp_count[which]) value = 0xf0; | |
| 312 | cp_count[which] = (cp_count[which] + 1) & 0x07; | |
| 313 | } | |
| 314 | last_value[which] = value; | |
| 315 | value |= bttn; | |
| 664 | if (!cp_count[which]) | |
| 665 | value = 0xf; | |
| 666 | cp_count[which] = (cp_count[which] + 1) & 0x07; | |
| 316 | 667 | } |
| 668 | last_value[which] = value; | |
| 317 | 669 | |
| 318 | 670 | return value; |
| 319 | 671 | } |
| 320 | 672 | |
| 321 | static int snk_input_port_r( running_machine *machine, int which ){ | |
| 322 | switch( snk_io[which] ) | |
| 323 | { | |
| 324 | case SNK_INP0: | |
| 325 | { | |
| 326 | int value = input_port_read(machine, "IN0"); | |
| 327 | if( (snk_sound_register & 0x04) == 0 ) value &= ~snk_sound_busy_bit; | |
| 328 | return value; | |
| 329 | } | |
| 330 | 673 | |
| 331 | case SNK_ROT_PLAYER1: return snk_rot(machine, 0); | |
| 332 | case SNK_ROT_PLAYER2: return snk_rot(machine, 1); | |
| 674 | /************************************************************************/ | |
| 333 | 675 | |
| 334 | case SNK_INP1: return input_port_read(machine, "IN1"); | |
| 335 | case SNK_INP2: return input_port_read(machine, "IN2"); | |
| 336 | case SNK_INP3: return input_port_read(machine, "IN3"); | |
| 337 | case SNK_INP4: return input_port_read(machine, "IN4"); | |
| 338 | case SNK_INP5: return input_port_read(machine, "IN5"); | |
| 339 | case SNK_INP6: return input_port_read(machine, "IN6"); | |
| 340 | case SNK_INP7: return input_port_read(machine, "IN7"); | |
| 341 | case SNK_INP8: return input_port_read(machine, "IN8"); | |
| 342 | case SNK_INP9: return input_port_read(machine, "IN9"); | |
| 343 | 676 | |
| 344 | case SNK_DSW1: return input_port_read(machine, "DSW1"); | |
| 345 | case SNK_DSW2: return input_port_read(machine, "DSW2"); | |
| 677 | static WRITE8_HANDLER( athena_coin_counter_w ) | |
| 678 | { | |
| 679 | coin_counter_w(0, ~data & 2); | |
| 680 | coin_counter_w(1, ~data & 1); | |
| 681 | } | |
| 346 | 682 | |
| 347 | default: | |
| 348 | logerror("read from unmapped input port:%d\n", which ); | |
| 349 | break; | |
| 683 | static WRITE8_HANDLER( ikari_coin_counter_w ) | |
| 684 | { | |
| 685 | if (~data & 0x80) | |
| 686 | { | |
| 687 | coin_counter_w(0, 1); | |
| 688 | coin_counter_w(0, 0); | |
| 350 | 689 | } |
| 351 | return 0; | |
| 690 | ||
| 691 | if (~data & 0x40) | |
| 692 | { | |
| 693 | coin_counter_w(1, 1); | |
| 694 | coin_counter_w(1, 0); | |
| 695 | } | |
| 352 | 696 | } |
| 353 | 697 | |
| 354 | /*********************************************************************/ | |
| 355 | ||
| 356 | static WRITE8_HANDLER( snk_sound_register_w ){ | |
| 357 | snk_sound_register &= (data>>4); | |
| 698 | static WRITE8_HANDLER( tdfever_coin_counter_w ) | |
| 699 | { | |
| 700 | coin_counter_w(0, data & 1); | |
| 701 | coin_counter_w(1, data & 2); | |
| 358 | 702 | } |
| 359 | 703 | |
| 360 | static READ8_HANDLER( snk_sound_register_r ){ | |
| 361 | return snk_sound_register;// | 0x2; /* hack; lets chopper1 play music */ | |
| 704 | static WRITE8_HANDLER( countryc_trackball_w ) | |
| 705 | { | |
| 706 | countryc_trackball = data & 1; | |
| 362 | 707 | } |
| 363 | 708 | |
| 364 | static void snk_sound_callback0_w( running_machine *machine, int state ){ /* ? */ | |
| 365 | if( state ) snk_sound_register |= 0x01; | |
| 709 | static CUSTOM_INPUT( countryc_trackball_x ) | |
| 710 | { | |
| 711 | return input_port_read(field->port->machine, countryc_trackball ? "TRACKBALLX2" : "TRACKBALLX1"); | |
| 366 | 712 | } |
| 367 | 713 | |
| 368 | static void snk_sound_callback1_w( running_machine *machine, int state ){ /* ? */ | |
| 369 | if( state ) snk_sound_register |= 0x02; | |
| 714 | static CUSTOM_INPUT( countryc_trackball_y ) | |
| 715 | { | |
| 716 | return input_port_read(field->port->machine, countryc_trackball ? "TRACKBALLY2" : "TRACKBALLY1"); | |
| 370 | 717 | } |
| 371 | 718 | |
| 372 | static const ym3526_interface ym3526_interface_0 = { | |
| 373 | snk_sound_callback0_w /* ? */ | |
| 374 | }; | |
| 375 | 719 | |
| 376 | static const ym3526_interface ym3526_interface_1 = { | |
| 377 | snk_sound_callback1_w /* ? */ | |
| 378 | }; | |
| 720 | /************************************************************************/ | |
| 379 | 721 | |
| 380 | static const y8950_interface y8950_config = { | |
| 381 | snk_sound_callback1_w /* ? */ | |
| 382 | }; | |
| 722 | static CUSTOM_INPUT( snk_older_bonus_r ) | |
| 723 | { | |
| 724 | int bit_mask = (FPTR)param; | |
| 383 | 725 | |
| 384 | static const ym3812_interface ym3812_config = { | |
| 385 | snk_sound_callback0_w /* ? */ | |
| 386 | }; | |
| 387 | ||
| 388 | static WRITE8_HANDLER( snk_soundlatch_w ){ | |
| 389 | snk_sound_register |= 0x08 | 0x04; | |
| 390 | soundlatch_w( machine, offset, data ); | |
| 726 | switch (bit_mask) | |
| 727 | { | |
| 728 | case 0x01: | |
| 729 | return ((input_port_read(field->port->machine, "BONUS") & bit_mask) >> 0); | |
| 730 | case 0xc0: | |
| 731 | return ((input_port_read(field->port->machine, "BONUS") & bit_mask) >> 6); | |
| 732 | default: | |
| 733 | logerror("snk_older_bonus_r : invalid %02X bit_mask\n",bit_mask); | |
| 734 | return 0; | |
| 735 | } | |
| 391 | 736 | } |
| 392 | 737 | |
| 393 | static READ8_HANDLER( snk_soundlatch_clear_r ){ /* TNK3 */ | |
| 394 | soundlatch_w( machine, 0, 0 ); | |
| 395 | snk_sound_register = 0; | |
| 396 | return 0x00; | |
| 738 | #if 0 | |
| 739 | static CUSTOM_INPUT( snk_later_bonus_r ) | |
| 740 | { | |
| 741 | int bit_mask = (FPTR)param; | |
| 742 | ||
| 743 | switch (bit_mask) | |
| 744 | { | |
| 745 | case 0x04: | |
| 746 | return ((input_port_read(field->port->machine, "BONUS") & bit_mask) >> 2); | |
| 747 | case 0x30: | |
| 748 | return ((input_port_read(field->port->machine, "BONUS") & bit_mask) >> 4); | |
| 749 | default: | |
| 750 | logerror("snk_later_bonus_r : invalid %02X bit_mask\n",bit_mask); | |
| 751 | return 0; | |
| 752 | } | |
| 397 | 753 | } |
| 754 | #endif | |
| 398 | 755 | |
| 399 | /*********************************************************************/ | |
| 756 | /************************************************************************/ | |
| 400 | 757 | |
| 401 | static ADDRESS_MAP_START( YM3526_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 758 | static ADDRESS_MAP_START( jcross_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 759 | AM_RANGE(0x0000, 0x9fff) AM_ROM | |
| 760 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN0") | |
| 761 | AM_RANGE(0xa100, 0xa100) AM_READ_PORT("IN1") | |
| 762 | AM_RANGE(0xa200, 0xa200) AM_READ_PORT("IN2") | |
| 763 | AM_RANGE(0xa300, 0xa300) AM_WRITE(sgladiat_soundlatch_w) | |
| 764 | AM_RANGE(0xa400, 0xa400) AM_READ_PORT("DSW1") | |
| 765 | AM_RANGE(0xa500, 0xa500) AM_READ_PORT("DSW2") | |
| 766 | AM_RANGE(0xa600, 0xa600) AM_WRITE(sgladiat_flipscreen_w) | |
| 767 | AM_RANGE(0xa700, 0xa700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 768 | AM_RANGE(0xd300, 0xd300) AM_WRITE(jcross_scroll_msb_w) | |
| 769 | AM_RANGE(0xd400, 0xd400) AM_WRITE(snk_sp16_scrolly_w) | |
| 770 | AM_RANGE(0xd500, 0xd500) AM_WRITE(snk_sp16_scrollx_w) | |
| 771 | AM_RANGE(0xd600, 0xd600) AM_WRITE(snk_bg_scrolly_w) | |
| 772 | AM_RANGE(0xd700, 0xd700) AM_WRITE(snk_bg_scrollx_w) | |
| 773 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_BASE(&spriteram) AM_SHARE(1) | |
| 774 | AM_RANGE(0xe000, 0xefff) AM_RAM_WRITE(aso_bg_videoram_w) AM_SHARE(2) AM_BASE(&snk_bg_videoram) | |
| 775 | AM_RANGE(0xf000, 0xf7ff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(3) AM_BASE(&snk_fg_videoram) // + work RAM | |
| 776 | AM_RANGE(0xffff, 0xffff) AM_WRITENOP // simply a program patch to not write to two not existing video registers? | |
| 777 | ADDRESS_MAP_END | |
| 778 | ||
| 779 | static ADDRESS_MAP_START( jcross_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 402 | 780 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 781 | AM_RANGE(0xa700, 0xa700) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) | |
| 782 | AM_RANGE(0xc000, 0xc7ff) AM_RAM AM_SHARE(1) | |
| 783 | AM_RANGE(0xc800, 0xd7ff) AM_RAM_WRITE(aso_bg_videoram_w) AM_SHARE(2) | |
| 784 | AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(3) | |
| 785 | ADDRESS_MAP_END | |
| 786 | ||
| 787 | ||
| 788 | static ADDRESS_MAP_START( sgladiat_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 789 | AM_RANGE(0x0000, 0x9fff) AM_ROM | |
| 790 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN0") | |
| 791 | AM_RANGE(0xa100, 0xa100) AM_READ_PORT("IN1") | |
| 792 | AM_RANGE(0xa200, 0xa200) AM_READ_PORT("IN2") | |
| 793 | AM_RANGE(0xa300, 0xa300) AM_WRITE(sgladiat_soundlatch_w) | |
| 794 | AM_RANGE(0xa400, 0xa400) AM_READ_PORT("DSW1") | |
| 795 | AM_RANGE(0xa500, 0xa500) AM_READ_PORT("DSW2") | |
| 796 | AM_RANGE(0xa600, 0xa600) AM_WRITE(sgladiat_flipscreen_w) | |
| 797 | AM_RANGE(0xa700, 0xa700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 798 | AM_RANGE(0xd200, 0xd200) AM_WRITENOP // unknown | |
| 799 | AM_RANGE(0xd300, 0xd300) AM_WRITE(sgladiat_scroll_msb_w) | |
| 800 | AM_RANGE(0xd400, 0xd400) AM_WRITE(snk_sp16_scrolly_w) | |
| 801 | AM_RANGE(0xd500, 0xd500) AM_WRITE(snk_sp16_scrollx_w) | |
| 802 | AM_RANGE(0xd600, 0xd600) AM_WRITE(snk_bg_scrolly_w) | |
| 803 | AM_RANGE(0xd700, 0xd700) AM_WRITE(snk_bg_scrollx_w) | |
| 804 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_BASE(&spriteram) AM_SHARE(1) | |
| 805 | AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(aso_bg_videoram_w) AM_SHARE(2) AM_BASE(&snk_bg_videoram) | |
| 806 | AM_RANGE(0xe800, 0xefff) AM_RAM | |
| 807 | AM_RANGE(0xf000, 0xf7ff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(3) AM_BASE(&snk_fg_videoram) // + work RAM | |
| 808 | ADDRESS_MAP_END | |
| 809 | ||
| 810 | static ADDRESS_MAP_START( sgladiat_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 811 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 812 | AM_RANGE(0xa000, 0xa000) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) | |
| 813 | AM_RANGE(0xa600, 0xa600) AM_WRITE(sgladiat_flipscreen_w) | |
| 814 | AM_RANGE(0xc000, 0xc7ff) AM_RAM AM_SHARE(1) | |
| 815 | AM_RANGE(0xc800, 0xcfff) AM_RAM_WRITE(aso_bg_videoram_w) AM_SHARE(2) | |
| 816 | AM_RANGE(0xda00, 0xda00) AM_WRITENOP // unknown | |
| 817 | AM_RANGE(0xdb00, 0xdb00) AM_WRITE(sgladiat_scroll_msb_w) | |
| 818 | AM_RANGE(0xdc00, 0xdc00) AM_WRITE(snk_sp16_scrolly_w) | |
| 819 | AM_RANGE(0xdd00, 0xdd00) AM_WRITE(snk_sp16_scrollx_w) | |
| 820 | AM_RANGE(0xde00, 0xde00) AM_WRITE(snk_bg_scrolly_w) | |
| 821 | AM_RANGE(0xdf00, 0xdf00) AM_WRITE(snk_bg_scrollx_w) | |
| 822 | AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(3) | |
| 823 | ADDRESS_MAP_END | |
| 824 | ||
| 825 | ||
| 826 | static ADDRESS_MAP_START( aso_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 827 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 828 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("IN0") | |
| 829 | AM_RANGE(0xc100, 0xc100) AM_READ_PORT("IN1") | |
| 830 | AM_RANGE(0xc200, 0xc200) AM_READ_PORT("IN2") | |
| 831 | AM_RANGE(0xc400, 0xc400) AM_WRITE(snk_soundlatch_w) | |
| 832 | AM_RANGE(0xc500, 0xc500) AM_READ_PORT("DSW1") | |
| 833 | AM_RANGE(0xc600, 0xc600) AM_READ_PORT("DSW2") | |
| 834 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 835 | AM_RANGE(0xc800, 0xc800) AM_WRITE(aso_videoattrs_w) // flip screen, scroll msb | |
| 836 | AM_RANGE(0xc900, 0xc900) AM_WRITE(snk_sp16_scrolly_w) | |
| 837 | AM_RANGE(0xca00, 0xca00) AM_WRITE(snk_sp16_scrollx_w) | |
| 838 | AM_RANGE(0xcb00, 0xcb00) AM_WRITE(snk_bg_scrolly_w) | |
| 839 | AM_RANGE(0xcc00, 0xcc00) AM_WRITE(snk_bg_scrollx_w) | |
| 840 | AM_RANGE(0xce00, 0xce00) AM_WRITENOP // always 05? | |
| 841 | AM_RANGE(0xcf00, 0xcf00) AM_WRITE(aso_bg_bank_w) // tile and palette bank | |
| 842 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_SHARE(1) | |
| 843 | AM_RANGE(0xe000, 0xe7ff) AM_RAM AM_SHARE(2) AM_BASE(&spriteram) // + work ram | |
| 844 | AM_RANGE(0xe800, 0xf7ff) AM_RAM_WRITE(aso_bg_videoram_w) AM_SHARE(3) AM_BASE(&snk_bg_videoram) | |
| 845 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) AM_BASE(&snk_fg_videoram) // + work RAM | |
| 846 | ADDRESS_MAP_END | |
| 847 | ||
| 848 | static ADDRESS_MAP_START( aso_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 849 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 850 | AM_RANGE(0xc000, 0xc000) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) | |
| 851 | AM_RANGE(0xc800, 0xcfff) AM_RAM AM_SHARE(1) | |
| 852 | AM_RANGE(0xd000, 0xd7ff) AM_RAM AM_SHARE(2) | |
| 853 | AM_RANGE(0xd800, 0xe7ff) AM_RAM_WRITE(aso_bg_videoram_w) AM_SHARE(3) | |
| 854 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) | |
| 855 | ADDRESS_MAP_END | |
| 856 | ||
| 857 | ||
| 858 | static ADDRESS_MAP_START( tnk3_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 859 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 860 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("IN0") | |
| 861 | AM_RANGE(0xc100, 0xc100) AM_READ_PORT("IN1") | |
| 862 | AM_RANGE(0xc200, 0xc200) AM_READ_PORT("IN2") | |
| 863 | // c300 is an input in tnk3, output in athena/fitegolf (coin counter) | |
| 864 | // and in countryc (trackball select) (see DRIVER_INIT). | |
| 865 | AM_RANGE(0xc300, 0xc300) AM_READ_PORT("IN3") AM_WRITE(athena_coin_counter_w) | |
| 866 | AM_RANGE(0xc400, 0xc400) AM_WRITE(snk_soundlatch_w) | |
| 867 | AM_RANGE(0xc500, 0xc500) AM_READ_PORT("DSW1") | |
| 868 | AM_RANGE(0xc600, 0xc600) AM_READ_PORT("DSW2") | |
| 869 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 870 | AM_RANGE(0xc800, 0xc800) AM_WRITE(tnk3_videoattrs_w) // flip screen, char bank, scroll msb | |
| 871 | AM_RANGE(0xc900, 0xc900) AM_WRITE(snk_sp16_scrolly_w) | |
| 872 | AM_RANGE(0xca00, 0xca00) AM_WRITE(snk_sp16_scrollx_w) | |
| 873 | AM_RANGE(0xcb00, 0xcb00) AM_WRITE(snk_bg_scrolly_w) | |
| 874 | AM_RANGE(0xcc00, 0xcc00) AM_WRITE(snk_bg_scrollx_w) | |
| 875 | AM_RANGE(0xcf00, 0xcf00) AM_WRITENOP // fitegolf/countryc only. Either 0 or 1. Video related? | |
| 876 | AM_RANGE(0xd000, 0xd7ff) AM_RAM AM_SHARE(1) AM_BASE(&spriteram) // + work ram | |
| 877 | AM_RANGE(0xd800, 0xf7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(2) AM_BASE(&snk_bg_videoram) | |
| 878 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(3) AM_BASE(&snk_fg_videoram) // + work RAM | |
| 879 | ADDRESS_MAP_END | |
| 880 | ||
| 881 | static ADDRESS_MAP_START( tnk3_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 882 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 883 | AM_RANGE(0xc000, 0xc000) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) // tnk3, athena | |
| 884 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) // fitegolf | |
| 885 | AM_RANGE(0xc800, 0xcfff) AM_RAM AM_SHARE(1) | |
| 886 | AM_RANGE(0xd000, 0xefff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(2) | |
| 887 | AM_RANGE(0xf000, 0xf7ff) AM_RAM | |
| 888 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(3) | |
| 889 | ADDRESS_MAP_END | |
| 890 | ||
| 891 | ||
| 892 | static ADDRESS_MAP_START( ikari_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 893 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 894 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("IN0") | |
| 895 | AM_RANGE(0xc100, 0xc100) AM_READ_PORT("IN1") | |
| 896 | AM_RANGE(0xc200, 0xc200) AM_READ_PORT("IN2") | |
| 897 | AM_RANGE(0xc300, 0xc300) AM_READ_PORT("IN3") AM_WRITE(ikari_coin_counter_w) // ikarijp doesn't use the coin counter | |
| 898 | AM_RANGE(0xc400, 0xc400) AM_WRITE(snk_soundlatch_w) | |
| 899 | AM_RANGE(0xc500, 0xc500) AM_READ_PORT("DSW1") | |
| 900 | AM_RANGE(0xc600, 0xc600) AM_READ_PORT("DSW2") | |
| 901 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 902 | AM_RANGE(0xc800, 0xc800) AM_WRITE(snk_bg_scrolly_w) | |
| 903 | AM_RANGE(0xc880, 0xc880) AM_WRITE(snk_bg_scrollx_w) | |
| 904 | AM_RANGE(0xc900, 0xc900) AM_WRITE(ikari_bg_scroll_msb_w) | |
| 905 | AM_RANGE(0xc980, 0xc980) AM_WRITE(ikari_unknown_video_w) | |
| 906 | AM_RANGE(0xca00, 0xca00) AM_WRITE(snk_sp16_scrolly_w) | |
| 907 | AM_RANGE(0xca80, 0xca80) AM_WRITE(snk_sp16_scrollx_w) | |
| 908 | AM_RANGE(0xcb00, 0xcb00) AM_WRITE(snk_sp32_scrolly_w) | |
| 909 | AM_RANGE(0xcb80, 0xcb80) AM_WRITE(snk_sp32_scrollx_w) | |
| 910 | AM_RANGE(0xcc00, 0xcc00) AM_WRITE(hardflags_scrolly_w) | |
| 911 | AM_RANGE(0xcc80, 0xcc80) AM_WRITE(hardflags_scrollx_w) | |
| 912 | AM_RANGE(0xcd00, 0xcd00) AM_WRITE(ikari_sp_scroll_msb_w) | |
| 913 | AM_RANGE(0xcd80, 0xcd80) AM_WRITE(hardflags_scroll_msb_w) | |
| 914 | AM_RANGE(0xce00, 0xce00) AM_READ(hardflags1_r) | |
| 915 | AM_RANGE(0xce20, 0xce20) AM_READ(hardflags2_r) | |
| 916 | AM_RANGE(0xce40, 0xce40) AM_READ(hardflags3_r) | |
| 917 | AM_RANGE(0xce60, 0xce60) AM_READ(hardflags4_r) | |
| 918 | AM_RANGE(0xce80, 0xce80) AM_READ(hardflags5_r) | |
| 919 | AM_RANGE(0xcea0, 0xcea0) AM_READ(hardflags6_r) | |
| 920 | AM_RANGE(0xcee0, 0xcee0) AM_READ(hardflags7_r) | |
| 921 | // note the mirror. ikari and victroad use d800, ikarijp uses d000 | |
| 922 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_MIRROR(0x0800) AM_SHARE(2) AM_BASE(&snk_bg_videoram) | |
| 923 | AM_RANGE(0xe000, 0xf7ff) AM_RAM AM_SHARE(3) AM_BASE(&spriteram) // + work ram | |
| 924 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) AM_BASE(&snk_fg_videoram) // + work RAM | |
| 925 | ADDRESS_MAP_END | |
| 926 | ||
| 927 | static ADDRESS_MAP_START( ikari_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 928 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 929 | AM_RANGE(0xc000, 0xc000) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) | |
| 930 | AM_RANGE(0xc980, 0xc980) AM_WRITE(ikari_unknown_video_w) | |
| 931 | AM_RANGE(0xcc00, 0xcc00) AM_WRITE(hardflags_scrolly_w) | |
| 932 | AM_RANGE(0xcc80, 0xcc80) AM_WRITE(hardflags_scrollx_w) | |
| 933 | AM_RANGE(0xcd80, 0xcd80) AM_WRITE(hardflags_scroll_msb_w) | |
| 934 | AM_RANGE(0xce00, 0xce00) AM_READ(hardflags1_r) | |
| 935 | AM_RANGE(0xce20, 0xce20) AM_READ(hardflags2_r) | |
| 936 | AM_RANGE(0xce40, 0xce40) AM_READ(hardflags3_r) | |
| 937 | AM_RANGE(0xce60, 0xce60) AM_READ(hardflags4_r) | |
| 938 | AM_RANGE(0xce80, 0xce80) AM_READ(hardflags5_r) | |
| 939 | AM_RANGE(0xcea0, 0xcea0) AM_READ(hardflags6_r) | |
| 940 | AM_RANGE(0xcee0, 0xcee0) AM_READ(hardflags7_r) | |
| 941 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_MIRROR(0x0800) AM_SHARE(2) | |
| 942 | AM_RANGE(0xe000, 0xf7ff) AM_RAM AM_SHARE(3) | |
| 943 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) | |
| 944 | ADDRESS_MAP_END | |
| 945 | ||
| 946 | ||
| 947 | static ADDRESS_MAP_START( bermudat_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 948 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 949 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("IN0") | |
| 950 | AM_RANGE(0xc100, 0xc100) AM_READ_PORT("IN1") | |
| 951 | AM_RANGE(0xc200, 0xc200) AM_READ_PORT("IN2") | |
| 952 | AM_RANGE(0xc300, 0xc300) AM_READ_PORT("IN3") AM_WRITE(ikari_coin_counter_w) | |
| 953 | AM_RANGE(0xc400, 0xc400) AM_WRITE(snk_soundlatch_w) | |
| 954 | AM_RANGE(0xc500, 0xc500) AM_READ_PORT("DSW1") | |
| 955 | AM_RANGE(0xc600, 0xc600) AM_READ_PORT("DSW2") | |
| 956 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 957 | AM_RANGE(0xc800, 0xc800) AM_WRITE(snk_bg_scrolly_w) | |
| 958 | AM_RANGE(0xc840, 0xc840) AM_WRITE(snk_bg_scrollx_w) | |
| 959 | AM_RANGE(0xc880, 0xc880) AM_WRITE(gwara_videoattrs_w) // flip screen, scroll msb | |
| 960 | AM_RANGE(0xc8c0, 0xc8c0) AM_WRITE(gwar_fg_bank_w) // char and palette bank | |
| 961 | AM_RANGE(0xc900, 0xc900) AM_WRITE(snk_sp16_scrolly_w) | |
| 962 | AM_RANGE(0xc940, 0xc940) AM_WRITE(snk_sp16_scrollx_w) | |
| 963 | AM_RANGE(0xc980, 0xc980) AM_WRITE(snk_sp32_scrolly_w) | |
| 964 | AM_RANGE(0xc9c0, 0xc9c0) AM_WRITE(snk_sp32_scrollx_w) | |
| 965 | // the "turbo check" addresses are only used by bermudat/bermudaj, not bermudaa/worldwar or the other games | |
| 966 | AM_RANGE(0xca00, 0xca00) AM_WRITE(turbocheck16_1_w) | |
| 967 | AM_RANGE(0xca40, 0xca40) AM_WRITE(turbocheck16_2_w) | |
| 968 | AM_RANGE(0xca80, 0xca80) AM_WRITE(gwara_sp_scroll_msb_w) | |
| 969 | AM_RANGE(0xcac0, 0xcac0) AM_WRITE(gwar_sprite_split_point_w) | |
| 970 | AM_RANGE(0xcb00, 0xcb00) AM_READ(turbocheck16_1_r) | |
| 971 | AM_RANGE(0xcb10, 0xcb10) AM_READ(turbocheck16_2_r) | |
| 972 | AM_RANGE(0xcb20, 0xcb20) AM_READ(turbocheck16_3_r) | |
| 973 | AM_RANGE(0xcb30, 0xcb30) AM_READ(turbocheck16_4_r) | |
| 974 | AM_RANGE(0xcb40, 0xcb40) AM_READ(turbocheck16_5_r) | |
| 975 | AM_RANGE(0xcb50, 0xcb50) AM_READ(turbocheck16_6_r) | |
| 976 | AM_RANGE(0xcb60, 0xcb60) AM_READ(turbocheck16_7_r) | |
| 977 | AM_RANGE(0xcb70, 0xcb70) AM_READ(turbocheck16_8_r) | |
| 978 | AM_RANGE(0xcc00, 0xcc00) AM_WRITE(turbocheck32_1_w) | |
| 979 | AM_RANGE(0xcc40, 0xcc40) AM_WRITE(turbocheck32_2_w) | |
| 980 | AM_RANGE(0xcc80, 0xcc80) AM_WRITE(turbocheck_msb_w) | |
| 981 | AM_RANGE(0xccc0, 0xccc0) AM_READ(turbocheck32_1_r) | |
| 982 | AM_RANGE(0xccd0, 0xccd0) AM_READ(turbocheck32_2_r) | |
| 983 | AM_RANGE(0xcce0, 0xcce0) AM_READ(turbocheck32_3_r) | |
| 984 | AM_RANGE(0xccf0, 0xccf0) AM_READ(turbocheck32_4_r) | |
| 985 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(1) AM_BASE(&snk_bg_videoram) | |
| 986 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_SHARE(2) | |
| 987 | AM_RANGE(0xe000, 0xf7ff) AM_RAM AM_SHARE(3) AM_BASE(&spriteram) // + work ram | |
| 988 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) AM_BASE(&snk_fg_videoram) // + work RAM | |
| 989 | ADDRESS_MAP_END | |
| 990 | ||
| 991 | static ADDRESS_MAP_START( bermudat_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 992 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 993 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) | |
| 994 | AM_RANGE(0xc800, 0xc800) AM_WRITE(snk_bg_scrolly_w) | |
| 995 | AM_RANGE(0xc840, 0xc840) AM_WRITE(snk_bg_scrollx_w) | |
| 996 | AM_RANGE(0xc880, 0xc880) AM_WRITE(gwara_videoattrs_w) // flip screen, scroll msb | |
| 997 | AM_RANGE(0xc8c0, 0xc8c0) AM_WRITE(gwar_fg_bank_w) // char and palette bank | |
| 998 | AM_RANGE(0xc900, 0xc900) AM_WRITE(snk_sp16_scrolly_w) | |
| 999 | AM_RANGE(0xc940, 0xc940) AM_WRITE(snk_sp16_scrollx_w) | |
| 1000 | AM_RANGE(0xc980, 0xc980) AM_WRITE(snk_sp32_scrolly_w) | |
| 1001 | AM_RANGE(0xc9c0, 0xc9c0) AM_WRITE(snk_sp32_scrollx_w) | |
| 1002 | AM_RANGE(0xca80, 0xca80) AM_WRITE(gwara_sp_scroll_msb_w) | |
| 1003 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(1) | |
| 1004 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_SHARE(2) | |
| 1005 | AM_RANGE(0xe000, 0xf7ff) AM_RAM AM_SHARE(3) | |
| 1006 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) | |
| 1007 | ADDRESS_MAP_END | |
| 1008 | ||
| 1009 | ||
| 1010 | static ADDRESS_MAP_START( gwar_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1011 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 1012 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("IN0") | |
| 1013 | AM_RANGE(0xc100, 0xc100) AM_READ_PORT("IN1") | |
| 1014 | AM_RANGE(0xc200, 0xc200) AM_READ_PORT("IN2") | |
| 1015 | AM_RANGE(0xc300, 0xc300) AM_READ_PORT("IN3") AM_WRITE(ikari_coin_counter_w) | |
| 1016 | AM_RANGE(0xc400, 0xc400) AM_WRITE(snk_soundlatch_w) | |
| 1017 | AM_RANGE(0xc500, 0xc500) AM_READ_PORT("DSW1") | |
| 1018 | AM_RANGE(0xc600, 0xc600) AM_READ_PORT("DSW2") | |
| 1019 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 1020 | AM_RANGE(0xc800, 0xc800) AM_WRITE(snk_bg_scrolly_w) | |
| 1021 | AM_RANGE(0xc840, 0xc840) AM_WRITE(snk_bg_scrollx_w) | |
| 1022 | AM_RANGE(0xc880, 0xc880) AM_WRITE(gwar_videoattrs_w) // flip screen, scroll msb | |
| 1023 | AM_RANGE(0xc8c0, 0xc8c0) AM_WRITE(gwar_fg_bank_w) // char and palette bank | |
| 1024 | AM_RANGE(0xc900, 0xc900) AM_WRITE(snk_sp16_scrolly_w) | |
| 1025 | AM_RANGE(0xc940, 0xc940) AM_WRITE(snk_sp16_scrollx_w) | |
| 1026 | AM_RANGE(0xc980, 0xc980) AM_WRITE(snk_sp32_scrolly_w) | |
| 1027 | AM_RANGE(0xc9c0, 0xc9c0) AM_WRITE(snk_sp32_scrollx_w) | |
| 1028 | AM_RANGE(0xca00, 0xca00) AM_WRITENOP // always 0? | |
| 1029 | AM_RANGE(0xca40, 0xca40) AM_WRITENOP // always 0? | |
| 1030 | AM_RANGE(0xcac0, 0xcac0) AM_WRITE(gwar_sprite_split_point_w) | |
| 1031 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(1) AM_BASE(&snk_bg_videoram) | |
| 1032 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_SHARE(2) | |
| 1033 | AM_RANGE(0xe000, 0xf7ff) AM_RAM AM_SHARE(3) AM_BASE(&spriteram) // + work ram | |
| 1034 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) AM_BASE(&snk_fg_videoram) // + work RAM | |
| 1035 | ADDRESS_MAP_END | |
| 1036 | ||
| 1037 | static ADDRESS_MAP_START( gwar_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1038 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 1039 | AM_RANGE(0xc000, 0xc000) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) | |
| 1040 | AM_RANGE(0xc8c0, 0xc8c0) AM_WRITE(gwar_fg_bank_w) // char and palette bank | |
| 1041 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(1) | |
| 1042 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_SHARE(2) | |
| 1043 | AM_RANGE(0xe000, 0xf7ff) AM_RAM AM_SHARE(3) | |
| 1044 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) | |
| 1045 | ADDRESS_MAP_END | |
| 1046 | ||
| 1047 | ||
| 1048 | static ADDRESS_MAP_START( gwara_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1049 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 1050 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("IN0") | |
| 1051 | AM_RANGE(0xc100, 0xc100) AM_READ_PORT("IN1") | |
| 1052 | AM_RANGE(0xc200, 0xc200) AM_READ_PORT("IN2") | |
| 1053 | AM_RANGE(0xc300, 0xc300) AM_READ_PORT("IN3") AM_WRITE(ikari_coin_counter_w) | |
| 1054 | AM_RANGE(0xc400, 0xc400) AM_WRITE(snk_soundlatch_w) | |
| 1055 | AM_RANGE(0xc500, 0xc500) AM_READ_PORT("DSW1") | |
| 1056 | AM_RANGE(0xc600, 0xc600) AM_READ_PORT("DSW2") | |
| 1057 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 1058 | AM_RANGE(0xc800, 0xcfff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(1) AM_BASE(&snk_fg_videoram) // + work RAM | |
| 1059 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(2) AM_BASE(&snk_bg_videoram) | |
| 1060 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_SHARE(3) | |
| 1061 | AM_RANGE(0xe000, 0xf7ff) AM_RAM AM_SHARE(4) AM_BASE(&spriteram) // + work ram | |
| 1062 | AM_RANGE(0xf800, 0xf800) AM_WRITE(snk_bg_scrolly_w) | |
| 1063 | AM_RANGE(0xf840, 0xf840) AM_WRITE(snk_bg_scrollx_w) | |
| 1064 | AM_RANGE(0xf880, 0xf880) AM_WRITE(gwara_videoattrs_w) // flip screen, scroll msb | |
| 1065 | AM_RANGE(0xf8c0, 0xf8c0) AM_WRITE(gwar_fg_bank_w) // char and palette bank | |
| 1066 | AM_RANGE(0xf900, 0xf900) AM_WRITE(snk_sp16_scrolly_w) | |
| 1067 | AM_RANGE(0xf940, 0xf940) AM_WRITE(snk_sp16_scrollx_w) | |
| 1068 | AM_RANGE(0xf980, 0xf980) AM_WRITE(snk_sp32_scrolly_w) | |
| 1069 | AM_RANGE(0xf9c0, 0xf9c0) AM_WRITE(snk_sp32_scrollx_w) | |
| 1070 | AM_RANGE(0xfa80, 0xfa80) AM_WRITE(gwara_sp_scroll_msb_w) | |
| 1071 | AM_RANGE(0xfac0, 0xfac0) AM_WRITE(gwar_sprite_split_point_w) | |
| 1072 | ADDRESS_MAP_END | |
| 1073 | ||
| 1074 | static ADDRESS_MAP_START( gwara_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1075 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 1076 | AM_RANGE(0xc000, 0xc000) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) | |
| 1077 | AM_RANGE(0xc800, 0xcfff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(1) | |
| 1078 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(2) | |
| 1079 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_SHARE(3) | |
| 1080 | AM_RANGE(0xe000, 0xf7ff) AM_RAM AM_SHARE(4) AM_BASE(&spriteram) // + work ram | |
| 1081 | AM_RANGE(0xf8c0, 0xf8c0) AM_WRITE(gwar_fg_bank_w) // char and palette bank | |
| 1082 | ADDRESS_MAP_END | |
| 1083 | ||
| 1084 | ||
| 1085 | static ADDRESS_MAP_START( tdfever_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1086 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 1087 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("IN0") | |
| 1088 | AM_RANGE(0xc080, 0xc080) AM_READ_PORT("IN1") | |
| 1089 | AM_RANGE(0xc100, 0xc100) AM_READ_PORT("IN2") | |
| 1090 | AM_RANGE(0xc180, 0xc180) AM_READ_PORT("IN3") | |
| 1091 | AM_RANGE(0xc200, 0xc200) AM_READ_PORT("IN4") | |
| 1092 | AM_RANGE(0xc280, 0xc280) AM_READ_PORT("IN5") | |
| 1093 | AM_RANGE(0xc300, 0xc300) AM_READ_PORT("IN6") | |
| 1094 | AM_RANGE(0xc380, 0xc380) AM_READ_PORT("IN7") | |
| 1095 | AM_RANGE(0xc400, 0xc400) AM_READ_PORT("IN8") | |
| 1096 | AM_RANGE(0xc480, 0xc480) AM_READ_PORT("IN9") | |
| 1097 | AM_RANGE(0xc500, 0xc500) AM_WRITE(snk_soundlatch_w) | |
| 1098 | AM_RANGE(0xc580, 0xc580) AM_READ_PORT("DSW1") | |
| 1099 | AM_RANGE(0xc600, 0xc600) AM_READ_PORT("DSW2") | |
| 1100 | AM_RANGE(0xc680, 0xc680) AM_WRITE(tdfever_coin_counter_w) | |
| 1101 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 1102 | AM_RANGE(0xc800, 0xc800) AM_WRITE(snk_bg_scrolly_w) | |
| 1103 | AM_RANGE(0xc840, 0xc840) AM_WRITE(snk_bg_scrollx_w) | |
| 1104 | AM_RANGE(0xc880, 0xc880) AM_WRITE(gwara_videoattrs_w) // flip screen, scroll msb | |
| 1105 | AM_RANGE(0xc8c0, 0xc8c0) AM_WRITE(gwar_fg_bank_w) // char and palette bank | |
| 1106 | AM_RANGE(0xc900, 0xc900) AM_WRITE(tdfever_sp_scroll_msb_w) | |
| 1107 | AM_RANGE(0xc980, 0xc980) AM_WRITE(snk_sp32_scrolly_w) | |
| 1108 | AM_RANGE(0xc9c0, 0xc9c0) AM_WRITE(snk_sp32_scrollx_w) | |
| 1109 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(1) AM_BASE(&snk_bg_videoram) | |
| 1110 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_SHARE(2) | |
| 1111 | AM_RANGE(0xe000, 0xf7ff) AM_RAM_WRITE(tdfever_spriteram_w) AM_SHARE(3) AM_BASE(&spriteram) // + work ram | |
| 1112 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) AM_BASE(&snk_fg_videoram) // + work RAM | |
| 1113 | ADDRESS_MAP_END | |
| 1114 | ||
| 1115 | static ADDRESS_MAP_START( tdfever_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1116 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 1117 | AM_RANGE(0xc000, 0xc000) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) // tdfever, tdfever2 | |
| 1118 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) // fsoccer | |
| 1119 | AM_RANGE(0xc8c0, 0xc8c0) AM_WRITE(gwar_fg_bank_w) // char and palette bank | |
| 1120 | AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(snk_bg_videoram_w) AM_SHARE(1) | |
| 1121 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_SHARE(2) | |
| 1122 | AM_RANGE(0xe000, 0xf7ff) AM_RAM_WRITE(tdfever_spriteram_w) AM_SHARE(3) | |
| 1123 | AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(snk_fg_videoram_w) AM_SHARE(4) | |
| 1124 | ADDRESS_MAP_END | |
| 1125 | ||
| 1126 | /***********************************************************************/ | |
| 1127 | ||
| 1128 | static ADDRESS_MAP_START( jcross_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1129 | AM_RANGE(0x0000, 0x3fff) AM_ROM AM_BASE(&namco_wavedata) | |
| 403 | 1130 | AM_RANGE(0x8000, 0x87ff) AM_RAM |
| 1131 | AM_RANGE(0xa000, 0xa000) AM_READ(sgladiat_soundlatch_r) | |
| 1132 | AM_RANGE(0xc000, 0xc000) AM_READ(sgladiat_sound_nmi_ack_r) | |
| 1133 | AM_RANGE(0xe000, 0xe000) AM_WRITE(ay8910_control_port_0_w) | |
| 1134 | AM_RANGE(0xe001, 0xe001) AM_WRITE(ay8910_write_port_0_w) | |
| 1135 | AM_RANGE(0xe002, 0xe007) AM_WRITE(snkwave_w) | |
| 1136 | AM_RANGE(0xe008, 0xe008) AM_WRITE(ay8910_control_port_1_w) | |
| 1137 | AM_RANGE(0xe009, 0xe009) AM_WRITE(ay8910_write_port_1_w) | |
| 1138 | ADDRESS_MAP_END | |
| 1139 | ||
| 1140 | static ADDRESS_MAP_START( sgladiat_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1141 | AM_RANGE(0x0000, 0x3fff) AM_ROM | |
| 1142 | AM_RANGE(0x8000, 0x87ff) AM_RAM | |
| 1143 | AM_RANGE(0xa000, 0xa000) AM_READ(sgladiat_soundlatch_r) | |
| 1144 | AM_RANGE(0xc000, 0xc000) AM_READ(sgladiat_sound_nmi_ack_r) | |
| 1145 | AM_RANGE(0xe000, 0xe000) AM_WRITE(ay8910_control_port_0_w) | |
| 1146 | AM_RANGE(0xe001, 0xe001) AM_WRITE(ay8910_write_port_0_w) | |
| 1147 | AM_RANGE(0xe002, 0xe003) AM_WRITENOP // leftover wave generator ports? | |
| 1148 | AM_RANGE(0xe004, 0xe004) AM_WRITE(ay8910_control_port_1_w) | |
| 1149 | AM_RANGE(0xe005, 0xe005) AM_WRITE(ay8910_write_port_1_w) | |
| 1150 | ADDRESS_MAP_END | |
| 1151 | ||
| 1152 | static ADDRESS_MAP_START( jcross_sound_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 1153 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 1154 | AM_RANGE(0x00, 0x00) AM_READ(sgladiat_sound_irq_ack_r) | |
| 1155 | ADDRESS_MAP_END | |
| 1156 | ||
| 1157 | static ADDRESS_MAP_START( tnk3_YM3526_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1158 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 1159 | AM_RANGE(0x8000, 0x87ff) AM_RAM | |
| 404 | 1160 | AM_RANGE(0xa000, 0xa000) AM_READ(soundlatch_r) |
| 405 | AM_RANGE(0xc000, 0xc000) AM_READ( | |
| 1161 | AM_RANGE(0xc000, 0xc000) AM_READ(tnk3_b | |
| 406 | 1162 | AM_RANGE(0xe000, 0xe000) AM_READWRITE(ym3526_status_port_0_r, ym3526_control_port_0_w) |
| 407 | 1163 | AM_RANGE(0xe001, 0xe001) AM_WRITE(ym3526_write_port_0_w) |
| 1164 | AM_RANGE(0xe004, 0xe004) AM_READ(tnk3_cmdirq_ack_r) | |
| 1165 | AM_RANGE(0xe006, 0xe006) AM_READ(tnk3_ymirq_ack_r) | |
| 408 | 1166 | ADDRESS_MAP_END |
| 409 | 1167 | |
| 1168 | static ADDRESS_MAP_START( aso_YM3526_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1169 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 1170 | AM_RANGE(0xc000, 0xc7ff) AM_RAM | |
| 1171 | AM_RANGE(0xd000, 0xd000) AM_READ(soundlatch_r) | |
| 1172 | AM_RANGE(0xe000, 0xe000) AM_READ(tnk3_busy_clear_r) | |
| 1173 | AM_RANGE(0xf000, 0xf000) AM_READWRITE(ym3526_status_port_0_r, ym3526_control_port_0_w) | |
| 1174 | AM_RANGE(0xf001, 0xf001) AM_WRITE(ym3526_write_port_0_w) | |
| 1175 | // AM_RANGE(0xf002, 0xf002) AM_READNOP unknown | |
| 1176 | AM_RANGE(0xf004, 0xf004) AM_READ(tnk3_cmdirq_ack_r) | |
| 1177 | AM_RANGE(0xf006, 0xf006) AM_READ(tnk3_ymirq_ack_r) | |
| 1178 | ADDRESS_MAP_END | |
| 410 | 1179 | |
| 411 | 1180 | static ADDRESS_MAP_START( YM3526_YM3526_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 412 | 1181 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| r3115 | r3116 | |
| 416 | 1185 | AM_RANGE(0xec00, 0xec00) AM_WRITE(ym3526_write_port_0_w) |
| 417 | 1186 | AM_RANGE(0xf000, 0xf000) AM_READWRITE(ym3526_status_port_1_r, ym3526_control_port_1_w) |
| 418 | 1187 | AM_RANGE(0xf400, 0xf400) AM_WRITE(ym3526_write_port_1_w) |
| 419 | AM_RANGE(0xf800, 0xf800) AM_READWRITE(snk_sound_ | |
| 1188 | AM_RANGE(0xf800, 0xf800) AM_READWRITE(snk_sound_ | |
| 420 | 1189 | ADDRESS_MAP_END |
| 421 | 1190 | |
| 1191 | static ADDRESS_MAP_START( YM3812_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1192 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 1193 | AM_RANGE(0xc000, 0xcfff) AM_RAM | |
| 1194 | AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_r) | |
| 1195 | AM_RANGE(0xe800, 0xe800) AM_READWRITE(ym3812_status_port_0_r, ym3812_control_port_0_w) | |
| 1196 | AM_RANGE(0xec00, 0xec00) AM_WRITE(ym3812_write_port_0_w) | |
| 1197 | AM_RANGE(0xf800, 0xf800) AM_READWRITE(snk_sound_status_r, snk_sound_status_w) | |
| 1198 | ADDRESS_MAP_END | |
| 422 | 1199 | |
| 423 | 1200 | static ADDRESS_MAP_START( YM3526_Y8950_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 424 | 1201 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| r3115 | r3116 | |
| 428 | 1205 | AM_RANGE(0xec00, 0xec00) AM_WRITE(ym3526_write_port_0_w) |
| 429 | 1206 | AM_RANGE(0xf000, 0xf000) AM_READWRITE(y8950_status_port_0_r, y8950_control_port_0_w) |
| 430 | 1207 | AM_RANGE(0xf400, 0xf400) AM_WRITE(y8950_write_port_0_w) |
| 431 | AM_RANGE(0xf800, 0xf800) AM_READWRITE(snk_sound_ | |
| 1208 | AM_RANGE(0xf800, 0xf800) AM_READWRITE(snk_sound_ | |
| 432 | 1209 | ADDRESS_MAP_END |
| 433 | 1210 | |
| 434 | ||
| 435 | 1211 | static ADDRESS_MAP_START( YM3812_Y8950_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 436 | 1212 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 437 | 1213 | AM_RANGE(0xc000, 0xcfff) AM_RAM |
| r3115 | r3116 | |
| 440 | 1216 | AM_RANGE(0xec00, 0xec00) AM_WRITE(ym3812_write_port_0_w) |
| 441 | 1217 | AM_RANGE(0xf000, 0xf000) AM_READWRITE(y8950_status_port_0_r, y8950_control_port_0_w) |
| 442 | 1218 | AM_RANGE(0xf400, 0xf400) AM_WRITE(y8950_write_port_0_w) |
| 443 | AM_RANGE(0xf800, 0xf800) AM_READWRITE(snk_sound_ | |
| 1219 | AM_RANGE(0xf800, 0xf800) AM_READWRITE(snk_sound_ | |
| 444 | 1220 | ADDRESS_MAP_END |
| 445 | 1221 | |
| 446 | ||
| 447 | 1222 | static ADDRESS_MAP_START( Y8950_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 448 | 1223 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 449 | 1224 | AM_RANGE(0xc000, 0xcfff) AM_RAM |
| 450 | 1225 | AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_r) |
| 451 | 1226 | AM_RANGE(0xf000, 0xf000) AM_READWRITE(y8950_status_port_0_r, y8950_control_port_0_w) |
| 452 | 1227 | AM_RANGE(0xf400, 0xf400) AM_WRITE(y8950_write_port_0_w) |
| 453 | AM_RANGE(0xf800, 0xf800) AM_READWRITE(snk_sound_ | |
| 1228 | AM_RANGE(0xf800, 0xf800) AM_READWRITE(snk_sound_ | |
| 454 | 1229 | ADDRESS_MAP_END |
| 455 | 1230 | |
| 1231 | /*********************************************************************/ | |
| 456 | 1232 | |
| 457 | /********************** Tnk3, Athena, Fighting Golf ********************/ | |
| 1233 | static INPUT_PORTS_START( jcross ) | |
| 1234 | PORT_START("IN0") | |
| 1235 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1236 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1237 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1238 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1239 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1240 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1241 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1242 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 458 | 1243 | |
| 459 | static READ8_HANDLER( cpuA_io_r ) | |
| 460 | { | |
| 461 | switch( offset ) | |
| 462 | { | |
| 463 | case 0x000: return snk_input_port_r(machine, 0); // coin input, player start | |
| 464 | case 0x100: return snk_input_port_r(machine, 1); // joy1 | |
| 465 | case 0x180: return snk_input_port_r(machine, 2); // joy2 | |
| 466 | case 0x200: return snk_input_port_r(machine, 3); // joy3 | |
| 467 | case 0x280: return snk_input_port_r(machine, 4); // joy4 | |
| 468 | case 0x300: return snk_input_port_r(machine, 5); // aim1 | |
| 469 | case 0x380: return snk_input_port_r(machine, 6); // aim2 | |
| 470 | case 0x400: return snk_input_port_r(machine, 7); // aim3 | |
| 471 | case 0x480: return snk_input_port_r(machine, 8); // aim4 | |
| 472 | case 0x500: return snk_input_port_r(machine, 9); // unused by tdfever | |
| 473 | case 0x580: return snk_input_port_r(machine, 10); // dsw | |
| 474 | case 0x600: return snk_input_port_r(machine, 11); // dsw | |
| 475 | case 0x080: return snk_input_port_r(machine, 12); // player start (types C and D in 'fsoccer') | |
| 1244 | PORT_START("IN1") | |
| 1245 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1246 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1247 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1248 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1249 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1250 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1251 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1252 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 476 | 1253 | |
| 477 | case 0x700: return(snk_cpuB_nmi_trigger_r(machine, 0)); | |
| 1254 | PORT_START("IN2") | |
| 1255 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1256 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1257 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1258 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1259 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1260 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1261 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1262 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 478 | 1263 | |
| 479 | /* "Hard Flags" */ | |
| 480 | case 0xe00: | |
| 481 | case 0xe20: | |
| 482 | case 0xe40: | |
| 483 | case 0xe60: | |
| 484 | case 0xe80: | |
| 485 | case 0xea0: | |
| 486 | case 0xee0: if( hard_flags ) return 0xff; | |
| 487 | } | |
| 488 | return io_ram[offset]; | |
| 489 | } | |
| 1264 | PORT_START("DSW1") | |
| 1265 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DSW1:1,2") | |
| 1266 | PORT_DIPSETTING( 0x03, "Upright, Single Controls" ) | |
| 1267 | // PORT_DIPSETTING( 0x01, "Upright, Single Controls" ) /* duplicated setting + unknown additional stuff (code at 0x03ff) */ | |
| 1268 | PORT_DIPSETTING( 0x00, "Upright, Dual Controls" ) | |
| 1269 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 1270 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:3") | |
| 1271 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1272 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1273 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coinage ) ) PORT_DIPLOCATION("DSW1:4,5,6") | |
| 1274 | PORT_DIPSETTING( 0x28, DEF_STR( 3C_1C ) ) | |
| 1275 | PORT_DIPSETTING( 0x30, DEF_STR( 2C_1C ) ) | |
| 1276 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1277 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 1278 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_3C ) ) | |
| 1279 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1280 | // PORT_DIPSETTING( 0x10, "INVALID !" ) /* settings table at 0x0378 is only 5 bytes wide */ | |
| 1281 | // PORT_DIPSETTING( 0x08, "INVALID !" ) /* settings table at 0x0378 is only 5 bytes wide */ | |
| 1282 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_older_bonus_r, (void *)0xc0) | |
| 490 | 1283 | |
| 491 | static WRITE8_HANDLER( cpuA_io_w ) | |
| 492 | { | |
| 493 | switch( offset ) | |
| 494 | { | |
| 495 | case 0x000: | |
| 496 | break; | |
| 1284 | PORT_START("DSW2") | |
| 1285 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_older_bonus_r, (void *)0x01) | |
| 1286 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:2,3") | |
| 1287 | PORT_DIPSETTING( 0x06, DEF_STR( Easy ) ) | |
| 1288 | PORT_DIPSETTING( 0x04, DEF_STR( Normal ) ) | |
| 1289 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 1290 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1291 | PORT_DIPNAME( 0x18, 0x10, "Game mode" ) PORT_DIPLOCATION("DSW2:4,5") | |
| 1292 | PORT_DIPSETTING( 0x18, "Demo Sounds Off" ) | |
| 1293 | PORT_DIPSETTING( 0x10, "Demo Sounds On" ) | |
| 1294 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 1295 | PORT_DIPSETTING( 0x08, "Infinite Lives (Cheat)" ) | |
| 1296 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW2:6") | |
| 1297 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1298 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1299 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "DSW2:7" ) | |
| 1300 | PORT_DIPNAME( 0x80, 0x80, "Debug Mode (No BG Collision)" ) PORT_DIPLOCATION("DSW2:8") | |
| 1301 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1302 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 497 | 1303 | |
| 498 | case 0x400: /* most games */ | |
| 499 | case 0x500: /* tdfever */ | |
| 500 | snk_soundlatch_w( machine, 0, data ); | |
| 501 | break; | |
| 1304 | PORT_START("BONUS") /* fake port to handle bonus lives settings via multiple input ports */ | |
| 1305 | PORT_DIPNAME( 0xc1, 0xc1, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:1,DSW1:7,8") | |
| 1306 | PORT_DIPSETTING( 0xc1, "20k 60k 40k+" ) | |
| 1307 | PORT_DIPSETTING( 0x81, "40k 120k 80k+" ) | |
| 1308 | PORT_DIPSETTING( 0x41, "60k 160k 100k+" ) | |
| 1309 | PORT_DIPSETTING( 0xc0, "20k" ) | |
| 1310 | PORT_DIPSETTING( 0x80, "40k" ) | |
| 1311 | PORT_DIPSETTING( 0x40, "60k" ) | |
| 1312 | // PORT_DIPSETTING( 0x01, DEF_STR( None ) ) /* duplicated setting */ | |
| 1313 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1314 | INPUT_PORTS_END | |
| 502 | 1315 | |
| 503 | case 0x700: | |
| 504 | snk_cpuA_nmi_ack_w(machine, 0, 0); | |
| 505 | break; | |
| 506 | 1316 | |
| 507 | default: | |
| 508 | io_ram[offset] = data; | |
| 509 | break; | |
| 510 | } | |
| 511 | } | |
| 1317 | static INPUT_PORTS_START( sgladiat ) | |
| 1318 | PORT_START("IN0") | |
| 1319 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1320 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1321 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1322 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1323 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1324 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1325 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1326 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) /* code at 0x054e */ | |
| 512 | 1327 | |
| 513 | static READ8_HANDLER( cpuB_io_r ) | |
| 514 | { | |
| 515 | switch( offset ) | |
| 516 | { | |
| 517 | case 0x000: | |
| 518 | case 0x700: return(snk_cpuA_nmi_trigger_r(machine, 0)); | |
| 1328 | PORT_START("IN1") | |
| 1329 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1330 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1331 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1332 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1333 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1334 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1335 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1336 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 519 | 1337 | |
| 520 | /* "Hard Flags" they are needed here, otherwise ikarijp/b doesn't work right */ | |
| 521 | case 0xe00: | |
| 522 | case 0xe20: | |
| 523 | case 0xe40: | |
| 524 | case 0xe60: | |
| 525 | case 0xe80: | |
| 526 | case 0xea0: | |
| 527 | case 0xee0: if( hard_flags ) return 0xff; | |
| 528 | } | |
| 529 | return io_ram[offset]; | |
| 530 | } | |
| 1338 | PORT_START("IN2") | |
| 1339 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1340 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1341 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1342 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1343 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1344 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1345 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1346 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 531 | 1347 | |
| 532 | static WRITE8_HANDLER( cpuB_io_w ) | |
| 533 | { | |
| 534 | io_ram[offset] = data; | |
| 1348 | PORT_START("DSW1") | |
| 1349 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "DSW1:1" ) | |
| 1350 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DSW1:2") | |
| 1351 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) /* Single Controls */ | |
| 1352 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 1353 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:3") | |
| 1354 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1355 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1356 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coinage ) ) PORT_DIPLOCATION("DSW1:4,5,6") | |
| 1357 | PORT_DIPSETTING( 0x10, DEF_STR( 5C_1C ) ) | |
| 1358 | // PORT_DIPSETTING( 0x08, DEF_STR( 5C_1C ) ) /* duplicated setting */ | |
| 1359 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1360 | PORT_DIPSETTING( 0x18, DEF_STR( 2C_1C ) ) | |
| 1361 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1362 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1363 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 1364 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1365 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_older_bonus_r, (void *)0xc0) | |
| 535 | 1366 | |
| 536 | if (offset==0 || offset==0x700) snk_cpuB_nmi_ack_w(machine, 0, 0); | |
| 537 | } | |
| 1367 | PORT_START("DSW2") | |
| 1368 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_older_bonus_r, (void *)0x01) | |
| 1369 | PORT_DIPNAME( 0x02, 0x02, "Time" ) PORT_DIPLOCATION("DSW2:2") | |
| 1370 | PORT_DIPSETTING( 0x02, "More" ) /* Hazard race 2:30 / Chariot race 3:30 */ | |
| 1371 | PORT_DIPSETTING( 0x00, "Less" ) /* Hazard race 2:00 / Chariot race 3:00 */ | |
| 1372 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "DSW2:3" ) | |
| 1373 | PORT_DIPNAME( 0x18, 0x10, "Game Mode" ) PORT_DIPLOCATION("DSW2:4,5") | |
| 1374 | PORT_DIPSETTING( 0x18, "Demo Sounds Off" ) | |
| 1375 | PORT_DIPSETTING( 0x10, "Demo Sounds On" ) | |
| 1376 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 1377 | PORT_DIPSETTING( 0x08, "Infinite Lives (Cheat)") | |
| 1378 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW2:6") | |
| 1379 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1380 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1381 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW2:7") /* code at 0x4169 */ | |
| 1382 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1383 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1384 | PORT_DIPNAME( 0x80, 0x80, "Debug Mode (No Opponents)" ) PORT_DIPLOCATION("DSW2:8") | |
| 1385 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1386 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 538 | 1387 | |
| 539 | /********************** Tnk3, Athena, Fighting Golf ********************/ | |
| 1388 | PORT_START("BONUS") /* fake port to handle bonus lives settings via multiple input ports */ | |
| 1389 | PORT_DIPNAME( 0xc1, 0xc1, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:1,DSW1:7,8") | |
| 1390 | PORT_DIPSETTING( 0xc1, "20k 60k 60k+" ) | |
| 1391 | PORT_DIPSETTING( 0x81, "40k 90k 90k+" ) | |
| 1392 | PORT_DIPSETTING( 0x41, "50k 120k 120k+" ) | |
| 1393 | PORT_DIPSETTING( 0xc0, "20k" ) | |
| 1394 | PORT_DIPSETTING( 0x80, "40k" ) | |
| 1395 | PORT_DIPSETTING( 0x40, "50k" ) | |
| 1396 | // PORT_DIPSETTING( 0x01, DEF_STR( None ) ) /* duplicated setting */ | |
| 1397 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1398 | INPUT_PORTS_END | |
| 540 | 1399 | |
| 541 | static ADDRESS_MAP_START( tnk3_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 542 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 543 | AM_RANGE(0xc000, 0xcfff) AM_READWRITE(cpuA_io_r, cpuA_io_w) AM_BASE(&io_ram) | |
| 544 | AM_RANGE(0xd000, 0xf7ff) AM_RAM AM_SHARE(2) AM_BASE(&snk_rambase) | |
| 545 | AM_RANGE(0xf800, 0xffff) AM_RAM AM_SHARE(1) | |
| 546 | ADDRESS_MAP_END | |
| 547 | 1400 | |
| 548 | static ADDRESS_MAP_START( tnk3_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 549 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 550 | AM_RANGE(0xc000, 0xc7ff) AM_READWRITE(cpuB_io_r, cpuB_io_w) | |
| 551 | AM_RANGE(0xc800, 0xefff) AM_RAM AM_SHARE(2) | |
| 552 | AM_RANGE(0xf000, 0xf7ff) AM_RAM | |
| 553 | AM_RANGE(0xf800, 0xffff) AM_RAM AM_SHARE(1) | |
| 554 | ADDRESS_MAP_END | |
| 1401 | static INPUT_PORTS_START( aso ) | |
| 1402 | PORT_START("IN0") | |
| 1403 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1404 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1405 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1406 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1407 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1408 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1409 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1410 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 555 | 1411 | |
| 1412 | PORT_START("IN1") | |
| 1413 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1414 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1415 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1416 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1417 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 1418 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1419 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1420 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 556 | 1421 | |
| 557 | /* Chopper I, T.D.Fever, Psycho S., Bermuda T. */ | |
| 1422 | PORT_START("IN2") | |
| 1423 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1424 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1425 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1426 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1427 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL | |
| 1428 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1429 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1430 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 558 | 1431 | |
| 559 | static ADDRESS_MAP_START( cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 560 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 561 | AM_RANGE(0xc000, 0xcfff) AM_READWRITE(cpuA_io_r, cpuA_io_w) AM_BASE(&io_ram) | |
| 562 | AM_RANGE(0xd000, 0xffff) AM_RAM AM_SHARE(1) AM_BASE(&snk_rambase) | |
| 563 | ADDRESS_MAP_END | |
| 1432 | PORT_START("DSW1") | |
| 1433 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW1:1") | |
| 1434 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 1435 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1436 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DSW1:2") | |
| 1437 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1438 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 1439 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:3") | |
| 1440 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1441 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1442 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coinage ) ) PORT_DIPLOCATION("DSW1:4,5,6") | |
| 1443 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) | |
| 1444 | PORT_DIPSETTING( 0x28, DEF_STR( 3C_1C ) ) | |
| 1445 | PORT_DIPSETTING( 0x30, DEF_STR( 2C_1C ) ) | |
| 1446 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1447 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 1448 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 1449 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_4C ) ) | |
| 1450 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 1451 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 1452 | PORT_DIPSETTING( 0xc0, "50k 100k" ) | |
| 1453 | PORT_DIPSETTING( 0x80, "60k 120k" ) | |
| 1454 | PORT_DIPSETTING( 0x40, "100k 200k" ) | |
| 1455 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 564 | 1456 | |
| 565 | static ADDRESS_MAP_START( cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 566 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 567 | AM_RANGE(0xc000, 0xcfff) AM_READWRITE(cpuB_io_r, cpuB_io_w) | |
| 568 | AM_RANGE(0xd000, 0xffff) AM_RAM AM_SHARE(1) | |
| 569 | ADDRESS_MAP_END | |
| 1457 | PORT_START("DSW2") | |
| 1458 | PORT_DIPNAME( 0x01, 0x01, "Bonus Occurrence" ) PORT_DIPLOCATION("DSW2:1") | |
| 1459 | PORT_DIPSETTING( 0x01, "1st & every 2nd" ) | |
| 1460 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 1461 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:2,3") | |
| 1462 | PORT_DIPSETTING( 0x06, DEF_STR( Easy ) ) | |
| 1463 | PORT_DIPSETTING( 0x04, DEF_STR( Normal ) ) | |
| 1464 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 1465 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1466 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("DSW2:4") | |
| 1467 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1468 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1469 | PORT_DIPNAME( 0x10, 0x10, "Effect of some kind (Cheat)") PORT_DIPLOCATION("DSW2:5") | |
| 1470 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1471 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1472 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW2:6") | |
| 1473 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1474 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1475 | PORT_DIPNAME( 0xc0, 0xc0, "Start Area" ) PORT_DIPLOCATION("DSW2:7,8") | |
| 1476 | PORT_DIPSETTING( 0xc0, "1" ) | |
| 1477 | PORT_DIPSETTING( 0x80, "2" ) | |
| 1478 | PORT_DIPSETTING( 0x40, "3" ) | |
| 1479 | PORT_DIPSETTING( 0x00, "4" ) | |
| 1480 | INPUT_PORTS_END | |
| 570 | 1481 | |
| 1482 | ||
| 1483 | static INPUT_PORTS_START( tnk3 ) | |
| 1484 | PORT_START("IN0") | |
| 1485 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1486 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1487 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1488 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1489 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1490 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1491 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1492 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1493 | ||
| 1494 | PORT_START("IN1") | |
| 1495 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1496 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1497 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1498 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1499 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE PORT_FULL_TURN_COUNT(12) \ | |
| 1500 | ||
| 1501 | PORT_START("IN2") | |
| 1502 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1503 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1504 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1505 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1506 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 1507 | ||
| 1508 | PORT_START("IN3") | |
| 1509 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1510 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1511 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1512 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1513 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1514 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1515 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1516 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1517 | ||
| 1518 | PORT_START("DSW1") | |
| 1519 | PORT_DIPNAME( 0x01, 0x01, "Walk everywhere (Cheat)") PORT_DIPLOCATION("DSW1:1") | |
| 1520 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1521 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1522 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DSW1:2") | |
| 1523 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1524 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 1525 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:3") | |
| 1526 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1527 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1528 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coinage ) ) PORT_DIPLOCATION("DSW1:4,5,6") | |
| 1529 | /* 0x08 and 0x10: 1 Coin/1 Credit */ | |
| 1530 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1531 | PORT_DIPSETTING( 0x18, DEF_STR( 2C_1C ) ) | |
| 1532 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1533 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1534 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 1535 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1536 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 1537 | PORT_DIPSETTING( 0xc0, "20k 60k" ) | |
| 1538 | PORT_DIPSETTING( 0x80, "40k 90k" ) | |
| 1539 | PORT_DIPSETTING( 0x40, "50k 120k" ) | |
| 1540 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1541 | ||
| 1542 | PORT_START("DSW2") | |
| 1543 | PORT_DIPNAME( 0x01, 0x01, "Bonus Occurrence" ) PORT_DIPLOCATION("DSW2:1") | |
| 1544 | PORT_DIPSETTING( 0x01, "1st & every 2nd" ) | |
| 1545 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 1546 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:2,3") | |
| 1547 | PORT_DIPSETTING( 0x06, DEF_STR( Easy ) ) | |
| 1548 | PORT_DIPSETTING( 0x04, DEF_STR( Normal ) ) | |
| 1549 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 1550 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1551 | PORT_DIPNAME( 0x18, 0x10, "Game Mode" ) PORT_DIPLOCATION("DSW2:4,5") | |
| 1552 | PORT_DIPSETTING( 0x18, "Demo Sounds Off" ) | |
| 1553 | PORT_DIPSETTING( 0x10, "Demo Sounds On" ) | |
| 1554 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 1555 | PORT_DIPSETTING( 0x08, "Infinite Lives (Cheat)") | |
| 1556 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW2:6") | |
| 1557 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1558 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1559 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW2:7") // unused in manual | |
| 1560 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1561 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1562 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW2:8") | |
| 1563 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) | |
| 1564 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1565 | INPUT_PORTS_END | |
| 1566 | ||
| 1567 | ||
| 1568 | static INPUT_PORTS_START( athena ) | |
| 1569 | PORT_START("IN0") | |
| 1570 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1571 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1572 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1573 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1574 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1575 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1576 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1577 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1578 | ||
| 1579 | PORT_START("IN1") | |
| 1580 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1581 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1582 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1583 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1584 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1585 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1586 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1587 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1588 | ||
| 1589 | PORT_START("IN2") | |
| 1590 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1591 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1592 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1593 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1594 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1595 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1596 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1597 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1598 | ||
| 1599 | PORT_START("IN3") | |
| 1600 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1601 | ||
| 1602 | PORT_START("DSW1") | |
| 1603 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW1:1") /* Listed as "Unused" in the manual */ | |
| 1604 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1605 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1606 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DSW1:2") | |
| 1607 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1608 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 1609 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) PORT_DIPLOCATION("DSW1:3") | |
| 1610 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 1611 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 1612 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:4") | |
| 1613 | PORT_DIPSETTING( 0x08, "3" ) | |
| 1614 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1615 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:5,6") | |
| 1616 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1617 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 1618 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 1619 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 1620 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 1621 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 1622 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 1623 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 1624 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 1625 | ||
| 1626 | PORT_START("DSW2") | |
| 1627 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:1,2") | |
| 1628 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 1629 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 1630 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 1631 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1632 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("DSW2:3") | |
| 1633 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1634 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1635 | PORT_DIPNAME( 0x08, 0x08, "Freeze" ) PORT_DIPLOCATION("DSW2:4") | |
| 1636 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1637 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1638 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:5,6") | |
| 1639 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 1640 | PORT_DIPSETTING( 0x20, "80k 160k" ) | |
| 1641 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 1642 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1643 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW2:7") /* Listed as "Unused" in the manual */ | |
| 1644 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1645 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1646 | PORT_DIPNAME( 0x80, 0x80, "Energy" ) PORT_DIPLOCATION("DSW2:8") | |
| 1647 | PORT_DIPSETTING( 0x80, "12" ) | |
| 1648 | PORT_DIPSETTING( 0x00, "14" ) | |
| 1649 | INPUT_PORTS_END | |
| 1650 | ||
| 1651 | ||
| 1652 | static INPUT_PORTS_START( fitegolf ) | |
| 1653 | PORT_START("IN0") | |
| 1654 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1655 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1656 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) /* reset */ | |
| 1657 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) // same as the dip switch | |
| 1658 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1659 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1660 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1661 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1662 | ||
| 1663 | PORT_START("IN1") | |
| 1664 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1665 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1666 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1667 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1668 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1669 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1670 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1671 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1672 | ||
| 1673 | PORT_START("IN2") | |
| 1674 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1675 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1676 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1677 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1678 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_8WAY PORT_PLAYER(2) | |
| 1679 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_8WAY PORT_PLAYER(2) | |
| 1680 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1681 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1682 | ||
| 1683 | PORT_START("IN3") | |
| 1684 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1685 | ||
| 1686 | PORT_START("DSW1") | |
| 1687 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Language ) ) PORT_DIPLOCATION("DSW1:1") /* Version */ | |
| 1688 | PORT_DIPSETTING( 0x01, DEF_STR( English ) ) /* Over Sea */ | |
| 1689 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) /* Domestic */ | |
| 1690 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW1:2") | |
| 1691 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1692 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1693 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DSW1:3") | |
| 1694 | PORT_DIPSETTING( 0x04, "Upright 2 Players" ) | |
| 1695 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1696 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:4,5") | |
| 1697 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1698 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 1699 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 1700 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 1701 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:6,7") | |
| 1702 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 1703 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 1704 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 1705 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 1706 | ||
| 1707 | PORT_START("DSW2") | |
| 1708 | PORT_DIPNAME( 0x01, 0x01, "Shot Time" ) PORT_DIPLOCATION("DSW2:1") | |
| 1709 | PORT_DIPSETTING( 0x00, "Short (10 sec)" ) | |
| 1710 | PORT_DIPSETTING( 0x01, "Long (12 sec)" ) | |
| 1711 | PORT_DIPNAME( 0x02, 0x02, "Bonus Holes" ) PORT_DIPLOCATION("DSW2:2") | |
| 1712 | PORT_DIPSETTING( 0x02, "5 (Par 1,Birdie 2,Eagle 3)" ) | |
| 1713 | PORT_DIPSETTING( 0x00, "3 (Par 0,Birdie 1,Eagle 2)" ) | |
| 1714 | PORT_DIPNAME( 0x0c, 0x0c, "Game Mode" ) PORT_DIPLOCATION("DSW2:3,4") | |
| 1715 | PORT_DIPSETTING( 0x04, "Demo Sounds Off" ) | |
| 1716 | PORT_DIPSETTING( 0x0c, "Demo Sounds On" ) | |
| 1717 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 1718 | PORT_DIPSETTING( 0x08, "Endless Game (Cheat)") | |
| 1719 | PORT_DIPNAME( 0x30, 0x30, "Play Holes" ) PORT_DIPLOCATION("DSW2:5,6") | |
| 1720 | PORT_DIPSETTING( 0x30, "2" ) | |
| 1721 | PORT_DIPSETTING( 0x20, "3" ) | |
| 1722 | PORT_DIPSETTING( 0x10, "4" ) | |
| 1723 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1724 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW2:7") | |
| 1725 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1726 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 1727 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) PORT_DIPLOCATION("DSW2:8") | |
| 1728 | INPUT_PORTS_END | |
| 1729 | ||
| 1730 | ||
| 1731 | static INPUT_PORTS_START( countryc ) | |
| 1732 | PORT_INCLUDE( fitegolf ) | |
| 1733 | ||
| 1734 | PORT_MODIFY("IN1") | |
| 1735 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(countryc_trackball_x, 0) | |
| 1736 | ||
| 1737 | PORT_MODIFY("IN2") | |
| 1738 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(countryc_trackball_y, 0) | |
| 1739 | ||
| 1740 | PORT_START("TRACKBALLX1") | |
| 1741 | PORT_BIT( 0x7f, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) PORT_REVERSE PORT_PLAYER(1) | |
| 1742 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1743 | ||
| 1744 | PORT_START("TRACKBALLY1") | |
| 1745 | PORT_BIT( 0x7f, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) PORT_PLAYER(1) | |
| 1746 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1747 | ||
| 1748 | PORT_START("TRACKBALLX2") | |
| 1749 | PORT_BIT( 0x7f, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) PORT_REVERSE PORT_PLAYER(2) | |
| 1750 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1751 | ||
| 1752 | PORT_START("TRACKBALLY2") | |
| 1753 | PORT_BIT( 0x7f, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) PORT_PLAYER(2) | |
| 1754 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1755 | ||
| 1756 | PORT_MODIFY("DSW1") | |
| 1757 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Controls ) ) PORT_DIPLOCATION("DSW1:3") | |
| 1758 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) | |
| 1759 | PORT_DIPSETTING( 0x04, DEF_STR( Dual ) ) | |
| 1760 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:6,7") | |
| 1761 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) | |
| 1762 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 1763 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 1764 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_4C ) ) | |
| 1765 | INPUT_PORTS_END | |
| 1766 | ||
| 1767 | ||
| 1768 | static INPUT_PORTS_START( ikari ) | |
| 1769 | PORT_START("IN0") | |
| 1770 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1771 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1772 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1773 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1774 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1775 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1776 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1777 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1778 | ||
| 1779 | PORT_START("IN1") | |
| 1780 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1781 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1782 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1783 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1784 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 1785 | ||
| 1786 | PORT_START("IN2") | |
| 1787 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1788 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1789 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1790 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1791 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 1792 | ||
| 1793 | PORT_START("IN3") | |
| 1794 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1795 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1796 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1797 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1798 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1799 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1800 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1801 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1802 | ||
| 1803 | PORT_START("DSW1") | |
| 1804 | PORT_DIPNAME( 0x01, 0x01, "Allow killing each other" ) PORT_DIPLOCATION("DSW1:1") | |
| 1805 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 1806 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1807 | PORT_DIPNAME( 0x02, 0x02, "P1 & P2 Fire Buttons" ) PORT_DIPLOCATION("DSW1:2") | |
| 1808 | PORT_DIPSETTING( 0x02, "Separate" ) | |
| 1809 | PORT_DIPSETTING( 0x00, "Common" ) | |
| 1810 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) PORT_DIPLOCATION("DSW1:3") | |
| 1811 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 1812 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 1813 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:4") | |
| 1814 | PORT_DIPSETTING( 0x08, "3" ) | |
| 1815 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1816 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:5,6") | |
| 1817 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1818 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 1819 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 1820 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 1821 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 1822 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 1823 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 1824 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 1825 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 1826 | ||
| 1827 | PORT_START("DSW2") | |
| 1828 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:1,2") | |
| 1829 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 1830 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 1831 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 1832 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1833 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) PORT_DIPLOCATION("DSW2:3,4") | |
| 1834 | PORT_DIPSETTING( 0x0c, "Demo Sounds Off" ) | |
| 1835 | PORT_DIPSETTING( 0x08, "Demo Sounds On" ) | |
| 1836 | PORT_DIPSETTING( 0x04, "Freeze" ) | |
| 1837 | PORT_DIPSETTING( 0x00, "Infinite Lives (Cheat)") | |
| 1838 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:5,6") | |
| 1839 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 1840 | PORT_DIPSETTING( 0x20, "60k 120k" ) | |
| 1841 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 1842 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1843 | PORT_DIPNAME( 0x40 ,0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("DSW2:7") | |
| 1844 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1845 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1846 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW2:8") | |
| 1847 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) | |
| 1848 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1849 | INPUT_PORTS_END | |
| 1850 | ||
| 1851 | ||
| 1852 | static INPUT_PORTS_START( ikarijp ) | |
| 1853 | PORT_INCLUDE( ikari ) | |
| 1854 | ||
| 1855 | PORT_MODIFY("IN0") | |
| 1856 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1857 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1858 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1859 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1860 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1861 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1862 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1863 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_TILT ) /* reset */ | |
| 1864 | ||
| 1865 | PORT_MODIFY("DSW2") | |
| 1866 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW2:8") | |
| 1867 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1868 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1869 | INPUT_PORTS_END | |
| 1870 | ||
| 1871 | ||
| 1872 | static INPUT_PORTS_START( ikarijpb ) | |
| 1873 | PORT_INCLUDE( ikarijp ) | |
| 1874 | ||
| 1875 | // no rotary joystick in this version. Player fires in the direction he's facing. | |
| 1876 | // this is accomplished by hooking the joystick input to the rotary input, plus | |
| 1877 | // of course the code is patched to handle that. | |
| 1878 | ||
| 1879 | PORT_MODIFY("IN1") | |
| 1880 | PORT_BIT( 0x21, 0x01, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1881 | PORT_BIT( 0x42, 0x02, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1882 | PORT_BIT( 0x84, 0x04, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1883 | PORT_BIT( 0x18, 0x08, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1884 | ||
| 1885 | PORT_MODIFY("IN2") | |
| 1886 | PORT_BIT( 0x21, 0x01, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1887 | PORT_BIT( 0x42, 0x02, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1888 | PORT_BIT( 0x84, 0x04, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1889 | PORT_BIT( 0x18, 0x08, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1890 | INPUT_PORTS_END | |
| 1891 | ||
| 1892 | ||
| 1893 | static INPUT_PORTS_START( victroad ) | |
| 1894 | PORT_START("IN0") | |
| 1895 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1896 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1897 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) /* reset */ | |
| 1898 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1899 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1900 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1901 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1902 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1903 | ||
| 1904 | PORT_START("IN1") | |
| 1905 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1906 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1907 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1908 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1909 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 1910 | ||
| 1911 | PORT_START("IN2") | |
| 1912 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1913 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1914 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1915 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1916 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 1917 | ||
| 1918 | PORT_START("IN3") | |
| 1919 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1920 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1921 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1922 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1923 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1924 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1925 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1926 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1927 | ||
| 1928 | PORT_START("DSW1") | |
| 1929 | PORT_DIPNAME( 0x01, 0x01, "Kill friend & walk everywhere (Cheat)") PORT_DIPLOCATION("DSW1:1") | |
| 1930 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 1931 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1932 | PORT_DIPNAME( 0x02, 0x02, "P1 & P2 Fire Buttons" ) PORT_DIPLOCATION("DSW1:2") | |
| 1933 | PORT_DIPSETTING( 0x02, "Separate" ) | |
| 1934 | PORT_DIPSETTING( 0x00, "Common" ) | |
| 1935 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) PORT_DIPLOCATION("DSW1:3") | |
| 1936 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 1937 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 1938 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:4") | |
| 1939 | PORT_DIPSETTING( 0x08, "3" ) | |
| 1940 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1941 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:5,6") | |
| 1942 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1943 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 1944 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 1945 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 1946 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 1947 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 1948 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 1949 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 1950 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 1951 | ||
| 1952 | PORT_START("DSW2") | |
| 1953 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:1,2") | |
| 1954 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 1955 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 1956 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 1957 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1958 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) PORT_DIPLOCATION("DSW2:3,4") | |
| 1959 | PORT_DIPSETTING( 0x0c, "Demo Sounds Off" ) | |
| 1960 | PORT_DIPSETTING( 0x08, "Demo Sounds On" ) | |
| 1961 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 1962 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 1963 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:5,6") | |
| 1964 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 1965 | PORT_DIPSETTING( 0x20, "60k 120k" ) | |
| 1966 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 1967 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1968 | PORT_DIPNAME( 0x40 ,0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW2:7") | |
| 1969 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 1970 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1971 | PORT_DIPNAME( 0x80, 0x80, "Credits Buy Lives During Play" ) PORT_DIPLOCATION("DSW2:8") | |
| 1972 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1973 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) | |
| 1974 | INPUT_PORTS_END | |
| 1975 | ||
| 1976 | ||
| 1977 | static INPUT_PORTS_START( dogosokb ) | |
| 1978 | PORT_INCLUDE( victroad ) | |
| 1979 | ||
| 1980 | // no rotary joystick in this version. Player fires in the direction he's facing. | |
| 1981 | ||
| 1982 | PORT_MODIFY("IN1") | |
| 1983 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1984 | ||
| 1985 | PORT_MODIFY("IN2") | |
| 1986 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1987 | ||
| 1988 | PORT_MODIFY("DSW2") | |
| 1989 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW2:8") | |
| 1990 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1991 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1992 | INPUT_PORTS_END | |
| 1993 | ||
| 1994 | ||
| 1995 | static INPUT_PORTS_START( bermudat ) | |
| 1996 | PORT_START("IN0") | |
| 1997 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 1998 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1999 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) /* tilt? */ | |
| 2000 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2001 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2002 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2003 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2004 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2005 | ||
| 2006 | PORT_START("IN1") | |
| 2007 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2008 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2009 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2010 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2011 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 2012 | ||
| 2013 | PORT_START("IN2") | |
| 2014 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2015 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2016 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2017 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2018 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 2019 | ||
| 2020 | PORT_START("IN3") | |
| 2021 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2022 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2023 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2024 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2025 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2026 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2027 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2028 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2029 | ||
| 2030 | PORT_START("DSW1") | |
| 2031 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) PORT_DIPLOCATION("DSW1:1") | |
| 2032 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 2033 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2034 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW1:2") | |
| 2035 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 2036 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2037 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) PORT_DIPLOCATION("DSW1:3") | |
| 2038 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 2039 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 2040 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:4") | |
| 2041 | PORT_DIPSETTING( 0x08, "3" ) | |
| 2042 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2043 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:5,6") | |
| 2044 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 2045 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 2046 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 2047 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 2048 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 2049 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 2050 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 2051 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 2052 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 2053 | ||
| 2054 | PORT_START("DSW2") | |
| 2055 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:1,2") | |
| 2056 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 2057 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 2058 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 2059 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2060 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) PORT_DIPLOCATION("DSW2:3,4") | |
| 2061 | PORT_DIPSETTING( 0x0c, "Demo Sounds Off" ) | |
| 2062 | PORT_DIPSETTING( 0x08, "Demo Sounds On" ) | |
| 2063 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 2064 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 2065 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:5,6") | |
| 2066 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 2067 | PORT_DIPSETTING( 0x20, "60k 120k" ) | |
| 2068 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 2069 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 2070 | PORT_DIPNAME( 0xc0, 0xc0, "Game Style" ) PORT_DIPLOCATION("DSW2:7,8") | |
| 2071 | PORT_DIPSETTING( 0xc0, "Normal without continue" ) | |
| 2072 | PORT_DIPSETTING( 0x80, "Normal with continue" ) | |
| 2073 | PORT_DIPSETTING( 0x40, "Time attack 3 minutes" ) | |
| 2074 | PORT_DIPSETTING( 0x00, "Time attack 5 minutes" ) | |
| 2075 | INPUT_PORTS_END | |
| 2076 | ||
| 2077 | ||
| 2078 | static INPUT_PORTS_START( worldwar ) | |
| 2079 | PORT_INCLUDE( bermudat ) | |
| 2080 | ||
| 2081 | PORT_MODIFY("IN0") | |
| 2082 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) | |
| 2083 | ||
| 2084 | PORT_MODIFY("DSW1") | |
| 2085 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW1:1") | |
| 2086 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 2087 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 2088 | ||
| 2089 | PORT_MODIFY("DSW2") | |
| 2090 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:5,6") | |
| 2091 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 2092 | PORT_DIPSETTING( 0x20, "80k 160k" ) | |
| 2093 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 2094 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 2095 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("DSW2:7") | |
| 2096 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2097 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2098 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("DSW2:8") | |
| 2099 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2100 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2101 | INPUT_PORTS_END | |
| 2102 | ||
| 2103 | ||
| 2104 | static INPUT_PORTS_START( bermudaa ) | |
| 2105 | PORT_INCLUDE( worldwar ) | |
| 2106 | ||
| 2107 | PORT_MODIFY("DSW2") | |
| 2108 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:5,6") | |
| 2109 | PORT_DIPSETTING( 0x30, "25k 50k" ) | |
| 2110 | PORT_DIPSETTING( 0x20, "35k 70k" ) | |
| 2111 | PORT_DIPSETTING( 0x10, "50K 100k" ) | |
| 2112 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 2113 | INPUT_PORTS_END | |
| 2114 | ||
| 2115 | ||
| 2116 | static INPUT_PORTS_START( gwar ) | |
| 2117 | PORT_START("IN0") | |
| 2118 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 2119 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2120 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) /* tilt? causes reset */ | |
| 2121 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) | |
| 2122 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2123 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2124 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2125 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2126 | ||
| 2127 | PORT_START("IN1") | |
| 2128 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2129 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2130 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2131 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2132 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(gwar_rotary, (void*)0) | |
| 2133 | ||
| 2134 | PORT_START("P1ROT") | |
| 2135 | PORT_BIT( 0x0f, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 2136 | ||
| 2137 | PORT_START("IN2") | |
| 2138 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2139 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2140 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2141 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2142 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(gwar_rotary, (void*)1) | |
| 2143 | ||
| 2144 | PORT_START("P2ROT") | |
| 2145 | PORT_BIT( 0x0f, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 2146 | ||
| 2147 | PORT_START("IN3") | |
| 2148 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2149 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2150 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2151 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2152 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2153 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2154 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2155 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2156 | ||
| 2157 | PORT_START("DSW1") | |
| 2158 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW1:1") | |
| 2159 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 2160 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) | |
| 2161 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW1:2") | |
| 2162 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 2163 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2164 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) PORT_DIPLOCATION("DSW1:3") | |
| 2165 | PORT_DIPSETTING( 0x04, "1st & 2nd only" ) | |
| 2166 | PORT_DIPSETTING( 0x00, "1st & every 2nd" ) | |
| 2167 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:4") | |
| 2168 | PORT_DIPSETTING( 0x08, "3" ) | |
| 2169 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2170 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:5,6") | |
| 2171 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 2172 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 2173 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 2174 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 2175 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 2176 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 2177 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 2178 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 2179 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 2180 | ||
| 2181 | PORT_START("DSW2") | |
| 2182 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:1,2") | |
| 2183 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 2184 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 2185 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 2186 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2187 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) PORT_DIPLOCATION("DSW2:3,4") | |
| 2188 | PORT_DIPSETTING( 0x0c, "Demo Sounds Off" ) | |
| 2189 | PORT_DIPSETTING( 0x08, "Demo Sounds On" ) | |
| 2190 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 2191 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 2192 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:5,6") | |
| 2193 | PORT_DIPSETTING( 0x30, "30k 60k" ) | |
| 2194 | PORT_DIPSETTING( 0x20, "40k 80k" ) | |
| 2195 | PORT_DIPSETTING( 0x10, "50k 100k" ) | |
| 2196 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 2197 | PORT_DIPNAME( 0x40 ,0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW2:7") | |
| 2198 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2199 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2200 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW2:8") | |
| 2201 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2202 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2203 | INPUT_PORTS_END | |
| 2204 | ||
| 2205 | ||
| 2206 | static INPUT_PORTS_START( psychos ) | |
| 2207 | PORT_START("IN0") | |
| 2208 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 2209 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2210 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) /* reset */ | |
| 2211 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2212 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2213 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2214 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2215 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2216 | ||
| 2217 | PORT_START("IN1") | |
| 2218 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2219 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2220 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2221 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2222 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2223 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2224 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2225 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2226 | ||
| 2227 | PORT_START("IN2") | |
| 2228 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2229 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2230 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2231 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2232 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2233 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2234 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2235 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2236 | ||
| 2237 | PORT_START("IN3") | |
| 2238 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2239 | ||
| 2240 | PORT_START("DSW1") | |
| 2241 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) PORT_DIPLOCATION("DSW1:1") | |
| 2242 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW1:2") | |
| 2243 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 2244 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2245 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) PORT_DIPLOCATION("DSW1:3") | |
| 2246 | PORT_DIPSETTING( 0x00, "1st & every 2nd" ) | |
| 2247 | PORT_DIPSETTING( 0x04, "1st & 2nd only" ) | |
| 2248 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:4") | |
| 2249 | PORT_DIPSETTING( 0x08, "3" ) | |
| 2250 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2251 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:5,6") | |
| 2252 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 2253 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 2254 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 2255 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 2256 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 2257 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 2258 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 2259 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 2260 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 2261 | ||
| 2262 | PORT_START("DSW2") | |
| 2263 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:1,2") | |
| 2264 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 2265 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 2266 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 2267 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2268 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("DSW2:3") | |
| 2269 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2270 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 2271 | PORT_DIPNAME( 0x08, 0x08, "Freeze" ) PORT_DIPLOCATION("DSW2:4") | |
| 2272 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 2273 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2274 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:5,6") | |
| 2275 | PORT_DIPSETTING( 0x30, "50K 100K" ) | |
| 2276 | PORT_DIPSETTING( 0x20, "60K 120K" ) | |
| 2277 | PORT_DIPSETTING( 0x10, "100K 200K" ) | |
| 2278 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 2279 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW2:7") | |
| 2280 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 2281 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 2282 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("DSW2:8") | |
| 2283 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2284 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2285 | INPUT_PORTS_END | |
| 2286 | ||
| 2287 | ||
| 2288 | static INPUT_PORTS_START( chopper ) | |
| 2289 | PORT_START("IN0") | |
| 2290 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 2291 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2292 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) /* Reset */ | |
| 2293 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) | |
| 2294 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2295 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2296 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2297 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2298 | ||
| 2299 | PORT_START("IN1") | |
| 2300 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2301 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2302 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2303 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2304 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2305 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2306 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 2307 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2308 | ||
| 2309 | PORT_START("IN2") | |
| 2310 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 2311 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 2312 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2313 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2314 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2315 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2316 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2317 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2318 | ||
| 2319 | PORT_START("IN3") | |
| 2320 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2321 | ||
| 2322 | PORT_START("DSW1") | |
| 2323 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW1:1") | |
| 2324 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 2325 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2326 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DSW1:2") | |
| 2327 | PORT_DIPSETTING( 0x02, DEF_STR( Upright ) ) | |
| 2328 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 2329 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) PORT_DIPLOCATION("DSW1:3") | |
| 2330 | PORT_DIPSETTING( 0x00, "1st & every 2nd" ) | |
| 2331 | PORT_DIPSETTING( 0x04, "1st & 2nd only" ) | |
| 2332 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:4") | |
| 2333 | PORT_DIPSETTING( 0x08, "3" ) | |
| 2334 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2335 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:5,6") | |
| 2336 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 2337 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 2338 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 2339 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 2340 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 2341 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 2342 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 2343 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 2344 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 2345 | ||
| 2346 | PORT_START("DSW2") | |
| 2347 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:1,2") | |
| 2348 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 2349 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 2350 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 2351 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2352 | PORT_DIPNAME( 0x0c, 0x0c, "Game Mode" ) PORT_DIPLOCATION("DSW2:3,4") | |
| 2353 | PORT_DIPSETTING( 0x08, "Demo Sounds Off" ) | |
| 2354 | PORT_DIPSETTING( 0x0c, "Demo Sounds On" ) | |
| 2355 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 2356 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 2357 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DSW2:5,6") | |
| 2358 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 2359 | PORT_DIPSETTING( 0x20, "75k 150k" ) | |
| 2360 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 2361 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 2362 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW2:7") | |
| 2363 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 2364 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 2365 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") PORT_DIPLOCATION("DSW2:8") | |
| 2366 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2367 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2368 | INPUT_PORTS_END | |
| 2369 | ||
| 2370 | static INPUT_PORTS_START( choppera ) | |
| 2371 | PORT_INCLUDE( chopper ) | |
| 2372 | ||
| 2373 | // P1 and P2 inputs are split in two ports | |
| 2374 | ||
| 2375 | PORT_MODIFY("IN1") | |
| 2376 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2377 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2378 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 2379 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2380 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2381 | ||
| 2382 | PORT_MODIFY("IN2") | |
| 2383 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2384 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2385 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2386 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2387 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2388 | ||
| 2389 | PORT_MODIFY("IN3") | |
| 2390 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 2391 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 2392 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2393 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2394 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2395 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2396 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2397 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2398 | INPUT_PORTS_END | |
| 2399 | ||
| 2400 | ||
| 2401 | static INPUT_PORTS_START( tdfever ) | |
| 2402 | PORT_START("IN0") | |
| 2403 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2404 | PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW ) | |
| 2405 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2406 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 2407 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2408 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2409 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start Game A") | |
| 2410 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Start Game B") | |
| 2411 | ||
| 2412 | PORT_START("IN1") | |
| 2413 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2414 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2415 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2416 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2417 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2418 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2419 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START3 ) PORT_NAME("Start Game C") | |
| 2420 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Start Game D") | |
| 2421 | ||
| 2422 | PORT_START("IN2") | |
| 2423 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2424 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2425 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2426 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2427 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2428 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2429 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2430 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2431 | ||
| 2432 | PORT_START("IN3") | |
| 2433 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2434 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2435 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2436 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2437 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2438 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2439 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2440 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2441 | ||
| 2442 | PORT_START("IN4") | |
| 2443 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 2444 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 2445 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2446 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START5 ) PORT_NAME("Start Game E") | |
| 2447 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 2448 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 2449 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 2450 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 2451 | ||
| 2452 | PORT_START("IN5") | |
| 2453 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 2454 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 2455 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2456 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2457 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) | |
| 2458 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) | |
| 2459 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) | |
| 2460 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) | |
| 2461 | ||
| 2462 | PORT_START("IN6") | |
| 2463 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_PLAYER(1) | |
| 2464 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2465 | ||
| 2466 | PORT_START("IN7") | |
| 2467 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) | |
| 2468 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2469 | ||
| 2470 | PORT_START("IN8") | |
| 2471 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(3) | |
| 2472 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2473 | ||
| 2474 | PORT_START("IN9") | |
| 2475 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(4) | |
| 2476 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2477 | ||
| 2478 | PORT_START("DSW1") | |
| 2479 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW1:1") | |
| 2480 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 2481 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 2482 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DSW1:2") | |
| 2483 | PORT_DIPSETTING( 0x02, "2 Player Upright" ) | |
| 2484 | PORT_DIPSETTING( 0x00, "4 Player Cocktail" ) | |
| 2485 | PORT_DIPNAME( 0x0c, 0x00, "1st Down Bonus Time" ) PORT_DIPLOCATION("DSW1:3,4") | |
| 2486 | PORT_DIPSETTING( 0x00, "Every 1st Down" ) | |
| 2487 | PORT_DIPSETTING( 0x04, "Every 4 1st Downs" ) | |
| 2488 | PORT_DIPSETTING( 0x08, "Every 6 1st Downs" ) | |
| 2489 | PORT_DIPSETTING( 0x0c, "Every 8 1st Downs" ) | |
| 2490 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:5,6") | |
| 2491 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 2492 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 2493 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 2494 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 2495 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:7,8") /* Manual shows these two as blank */ | |
| 2496 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 2497 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 2498 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 2499 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 2500 | ||
| 2501 | PORT_START("DSW2") | |
| 2502 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW2:1,2") | |
| 2503 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 2504 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 2505 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 2506 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2507 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) PORT_DIPLOCATION("DSW2:3,4") | |
| 2508 | PORT_DIPSETTING( 0x0c, "Demo Sound Off" ) | |
| 2509 | PORT_DIPSETTING( 0x08, "Demo Sound On" ) | |
| 2510 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 2511 | PORT_DIPSETTING( 0x04, "Never Finish (Cheat)") | |
| 2512 | /* | |
| 2513 | Actual Play Times listed in manual based on Players & cabinet type: | |
| 2514 | ||
| 2515 | Upright/Cocktail Cocktail Only | |
| 2516 | Dip Switch A B C D E <-- Start button "MODE" | |
| 2517 | SW6 SW7 SW8 1PvsCPU 2PvsCPU 1Pvs2P 2Pvs1P 2Pvs2P | |
| 2518 | OFF OFF OFF 1:00 1:10 2:00 2:10 3:00 | |
| 2519 | ON OFF OFF 1:10 1:20 2:10 2:20 3:10 | |
| 2520 | OFF ON OFF 1:20 1:30 2:20 2:30 3:20 | |
| 2521 | ON ON OFF 1:30 1:40 2:30 2:40 3:30 | |
| 2522 | OFF OFF ON 1:40 1:50 2:40 2:50 3:40 | |
| 2523 | ON OFF ON 1:50 2:00 2:50 3:00 3:50 | |
| 2524 | OFF ON ON 2:00 2:10 3:00 3:10 4:00 | |
| 2525 | ON ON ON 2:10 2:20 3:10 3:20 4:10 | |
| 2526 | */ | |
| 2527 | PORT_DIPNAME( 0x70, 0x70, "Play Time (Type A)" ) PORT_DIPLOCATION("DSW2:5,6,7") | |
| 2528 | PORT_DIPSETTING( 0x70, "1:00" ) | |
| 2529 | PORT_DIPSETTING( 0x60, "1:10" ) | |
| 2530 | PORT_DIPSETTING( 0x50, "1:20" ) | |
| 2531 | PORT_DIPSETTING( 0x40, "1:30" ) | |
| 2532 | PORT_DIPSETTING( 0x30, "1:40" ) | |
| 2533 | PORT_DIPSETTING( 0x20, "1:50" ) | |
| 2534 | PORT_DIPSETTING( 0x10, "2:00" ) | |
| 2535 | PORT_DIPSETTING( 0x00, "2:10" ) | |
| 2536 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW2:8") | |
| 2537 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2538 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2539 | INPUT_PORTS_END | |
| 2540 | ||
| 2541 | ||
| 2542 | static INPUT_PORTS_START( fsoccer ) | |
| 2543 | PORT_START("IN0") | |
| 2544 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2545 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) // same as the dip switch | |
| 2546 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2547 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snk_sound_busy, 0) | |
| 2548 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2549 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2550 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start Game A") | |
| 2551 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Start Game B") | |
| 2552 | ||
| 2553 | PORT_START("IN1") | |
| 2554 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2555 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2556 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2557 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2558 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2559 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2560 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START3 ) PORT_NAME("Start Game C") | |
| 2561 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Start Game D") | |
| 2562 | ||
| 2563 | PORT_START("IN2") | |
| 2564 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2565 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 2566 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2567 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2568 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2569 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2570 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2571 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 2572 | ||
| 2573 | PORT_START("IN3") | |
| 2574 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2575 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 2576 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2577 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2578 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2579 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2580 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 2581 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2582 | ||
| 2583 | PORT_START("IN4") | |
| 2584 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 2585 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 2586 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2587 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START5 ) PORT_NAME("Start Game E") | |
| 2588 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 2589 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 2590 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 2591 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 2592 | ||
| 2593 | PORT_START("IN5") | |
| 2594 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 2595 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 2596 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2597 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2598 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) | |
| 2599 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) | |
| 2600 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) | |
| 2601 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) | |
| 2602 | ||
| 2603 | PORT_START("IN6") | |
| 2604 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_PLAYER(1) | |
| 2605 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2606 | ||
| 2607 | PORT_START("IN7") | |
| 2608 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) | |
| 2609 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2610 | ||
| 2611 | PORT_START("IN8") | |
| 2612 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(3) | |
| 2613 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2614 | ||
| 2615 | PORT_START("IN9") | |
| 2616 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(4) | |
| 2617 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2618 | ||
| 2619 | PORT_START("DSW1") | |
| 2620 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DSW1:1,2") | |
| 2621 | PORT_DIPSETTING( 0x03, "Upright (With VS)" ) | |
| 2622 | PORT_DIPSETTING( 0x02, "Upright (Without VS)" ) | |
| 2623 | PORT_DIPSETTING( 0x00, "Cocktail (2 Players)" ) | |
| 2624 | PORT_DIPSETTING( 0x01, "Cocktail (4 Players)" ) | |
| 2625 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Version ) ) PORT_DIPLOCATION("DSW1:3,4") | |
| 2626 | PORT_DIPSETTING( 0x04, DEF_STR( Europe ) ) | |
| 2627 | PORT_DIPSETTING( 0x00, DEF_STR( USA ) ) | |
| 2628 | PORT_DIPSETTING( 0x08, DEF_STR( Japan ) ) | |
| 2629 | // PORT_DIPSETTING( 0x0c, DEF_STR( Europe ) ) | |
| 2630 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW1:5,6") | |
| 2631 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 2632 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 2633 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 2634 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 2635 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DSW1:7,8") | |
| 2636 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 2637 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 2638 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 2639 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 2640 | ||
| 2641 | PORT_START("DSW2") | |
| 2642 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("DSW2:1") | |
| 2643 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 2644 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) | |
| 2645 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("DSW2:2") | |
| 2646 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 2647 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2648 | PORT_DIPNAME( 0x0c, 0x0c, "Game Mode" ) PORT_DIPLOCATION("DSW2:3,4") | |
| 2649 | PORT_DIPSETTING( 0x08, "Demo Sound Off" ) | |
| 2650 | PORT_DIPSETTING( 0x0c, "Demo Sound On" ) | |
| 2651 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 2652 | PORT_DIPSETTING( 0x04, "Win Match Against CPU (Cheat)") | |
| 2653 | /* | |
| 2654 | Dip Switch settings are the time for match type A. Here is what you | |
| 2655 | have to add for games B to E : | |
| 2656 | ||
| 2657 | Match Type B C D E | |
| 2658 | Time to add 00:30 01:00 01:30 02:00 | |
| 2659 | */ | |
| 2660 | PORT_DIPNAME( 0x70, 0x70, "Play Time (Type A)" ) PORT_DIPLOCATION("DSW2:5,6,7") | |
| 2661 | PORT_DIPSETTING( 0x10, "1:00" ) | |
| 2662 | PORT_DIPSETTING( 0x60, "1:10" ) | |
| 2663 | PORT_DIPSETTING( 0x50, "1:20" ) | |
| 2664 | PORT_DIPSETTING( 0x40, "1:30" ) | |
| 2665 | PORT_DIPSETTING( 0x30, "1:40" ) | |
| 2666 | PORT_DIPSETTING( 0x20, "1:50" ) | |
| 2667 | PORT_DIPSETTING( 0x70, "2:00" ) | |
| 2668 | PORT_DIPSETTING( 0x00, "2:10" ) | |
| 2669 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) PORT_DIPLOCATION("DSW2:8") | |
| 2670 | INPUT_PORTS_END | |
| 2671 | ||
| 2672 | ||
| 2673 | static INPUT_PORTS_START( fsoccerb ) | |
| 2674 | ||
| 2675 | PORT_INCLUDE( fsoccer ) | |
| 2676 | ||
| 2677 | // no spinners in this version. Player shoots in the direction he's facing | |
| 2678 | // (see the 'jmp' instruction at 0x00f1) | |
| 2679 | ||
| 2680 | PORT_MODIFY("IN6") | |
| 2681 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2682 | ||
| 2683 | PORT_MODIFY("IN7") | |
| 2684 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2685 | ||
| 2686 | PORT_MODIFY("IN8") | |
| 2687 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2688 | ||
| 2689 | PORT_MODIFY("IN9") | |
| 2690 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2691 | INPUT_PORTS_END | |
| 2692 | ||
| 2693 | ||
| 571 | 2694 | /*********************************************************************/ |
| 572 | 2695 | |
| 573 | 2696 | static const gfx_layout charlayout_4bpp = |
| r3115 | r3116 | |
| 670 | 2793 | /*********************************************************************/ |
| 671 | 2794 | |
| 672 | 2795 | static GFXDECODE_START( tnk3 ) |
| 673 | GFXDECODE_ENTRY( "gfx1", 0, charlayout_4bpp, 0x180, 0x080>>4 ) | |
| 674 | GFXDECODE_ENTRY( "gfx2", 0, charlayout_4bpp, 0x080, 0x100>>4 ) | |
| 675 | GFXDECODE_ENTRY( "gfx3", 0, spritelayout_3bpp, 0x000, 0x080>>3 ) | |
| 2796 | GFXDECODE_ENTRY( "fg_tiles", 0, charlayout_4bpp, 0x180, 0x080>>4 ) | |
| 2797 | GFXDECODE_ENTRY( "bg_tiles", 0, charlayout_4bpp, 0x080, 0x100>>4 ) | |
| 2798 | GFXDECODE_ENTRY( "sp16_tiles", 0, spritelayout_3bpp, 0x000, 0x080>>3 ) | |
| 676 | 2799 | /* colors 0x200-0x3ff contain shadows */ |
| 677 | 2800 | GFXDECODE_END |
| 678 | 2801 | |
| 679 | 2802 | static GFXDECODE_START( ikari ) |
| 680 | GFXDECODE_ENTRY( "gfx1", 0, charlayout_4bpp, 0x100, 0x100>>4 ) | |
| 681 | GFXDECODE_ENTRY( "gfx2", 0, tilelayout_4bpp, 0x100, 0x100>>4 ) | |
| 682 | GFXDECODE_ENTRY( "gfx3", 0, spritelayout_3bpp, 0x000, 0x080>>3 ) | |
| 683 | GFXDECODE_ENTRY( "gfx4", 0, bigspritelayout_3bpp, 0x080, 0x080>>3 ) | |
| 2803 | GFXDECODE_ENTRY( "fg_tiles", 0, charlayout_4bpp, 0x180, 0x080>>4 ) | |
| 2804 | GFXDECODE_ENTRY( "bg_tiles", 0, tilelayout_4bpp, 0x100, 0x080>>4 ) | |
| 2805 | GFXDECODE_ENTRY( "sp16_tiles", 0, spritelayout_3bpp, 0x000, 0x080>>3 ) | |
| 2806 | GFXDECODE_ENTRY( "sp32_tiles", 0, bigspritelayout_3bpp, 0x080, 0x080>>3 ) | |
| 684 | 2807 | /* colors 0x200-0x3ff contain shadows */ |
| 685 | 2808 | GFXDECODE_END |
| 686 | 2809 | |
| 687 | 2810 | static GFXDECODE_START( gwar ) |
| 688 | GFXDECODE_ENTRY( "gfx1", 0, charlayout_4bpp, 0x000, 0x100>>4 ) | |
| 689 | GFXDECODE_ENTRY( "gfx2", 0, tilelayout_4bpp, 0x300, 0x100>>4 ) | |
| 690 | GFXDECODE_ENTRY( "gfx3", 0, spritelayout_4bpp, 0x100, 0x100>>4 ) | |
| 691 | GFXDECODE_ENTRY( "gfx4", 0, bigspritelayout_4bpp, 0x200, 0x100>>4 ) | |
| 2811 | GFXDECODE_ENTRY( "fg_tiles", 0, charlayout_4bpp, 0x000, 0x100>>4 ) | |
| 2812 | GFXDECODE_ENTRY( "bg_tiles", 0, tilelayout_4bpp, 0x300, 0x100>>4 ) | |
| 2813 | GFXDECODE_ENTRY( "sp16_tiles", 0, spritelayout_4bpp, 0x100, 0x080>>4 ) | |
| 2814 | GFXDECODE_ENTRY( "sp32_tiles", 0, bigspritelayout_4bpp, 0x200, 0x100>>4 ) | |
| 2815 | /* what about colors 0x180-0x1ff? */ | |
| 692 | 2816 | GFXDECODE_END |
| 693 | 2817 | |
| 694 | 2818 | static GFXDECODE_START( tdfever ) |
| 695 | GFXDECODE_ENTRY( "gfx1", 0, charlayout_4bpp, 0x000, 0x100>>4 ) | |
| 696 | GFXDECODE_ENTRY( "gfx2", 0, tilelayout_4bpp, 0x200, 0x100>>4 ) | |
| 697 | GFXDECODE_ENTRY( "gfx3", 0, bigspritelayout_4bpp, 0x100, 0x100>>4 ) | |
| 2819 | GFXDECODE_ENTRY( "fg_tiles", 0, charlayout_4bpp, 0x000, 0x100>>4 ) | |
| 2820 | GFXDECODE_ENTRY( "bg_tiles", 0, tilelayout_4bpp, 0x200, 0x100>>4 ) | |
| 2821 | GFXDECODE_ENTRY( "sp32_tiles", 0, bigspritelayout_4bpp, 0x100, 0x100>>4 ) | |
| 698 | 2822 | /* colors 0x300-0x3ff contain shadows */ |
| 699 | 2823 | GFXDECODE_END |
| 700 | 2824 | |
| 701 | 2825 | /**********************************************************************/ |
| 702 | 2826 | |
| 703 | static MACHINE_DRIVER_START( | |
| 2827 | static MACHINE_DRIVER_START( jcross ) | |
| 704 | 2828 | |
| 705 | 2829 | /* basic machine hardware */ |
| 706 | MDRV_CPU_ADD("main", Z80, XTAL_13_4MHz/4) /* verified on pcb */ | |
| 707 | MDRV_CPU_PROGRAM_MAP(tnk3_cpuA_map,0) | |
| 2830 | MDRV_CPU_ADD("main", Z80, 3250000) /* NOT verified */ | |
| 2831 | MDRV_CPU_PROGRAM_MAP(jcross_cpuA_map,0) | |
| 708 | 2832 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 709 | 2833 | |
| 710 | MDRV_CPU_ADD("sub", Z80, XTAL_13_4MHz/4) /* verified on pcb */ | |
| 711 | MDRV_CPU_PROGRAM_MAP(tnk3_cpuB_map,0) | |
| 2834 | MDRV_CPU_ADD("sub", Z80, 3250000) /* NOT verified */ | |
| 2835 | MDRV_CPU_PROGRAM_MAP(jcross_cpuB_map,0) | |
| 712 | 2836 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 713 | 2837 | |
| 714 | MDRV_CPU_ADD("audio", Z80, XTAL_8MHz/2) /* verified on pcb */ | |
| 715 | MDRV_CPU_PROGRAM_MAP(YM3526_sound_map,0) | |
| 716 | MDRV_CPU_VBLANK_INT_HACK(irq0_line_hold,4) | |
| 2838 | MDRV_CPU_ADD("audio", Z80, 4000000) /* NOT verified */ | |
| 2839 | MDRV_CPU_PROGRAM_MAP(jcross_sound_map,0) | |
| 2840 | MDRV_CPU_IO_MAP(jcross_sound_portmap,0) | |
| 2841 | MDRV_CPU_PERIODIC_INT(irq0_line_assert, 244) // Marvin's frequency, sounds ok | |
| 717 | 2842 | |
| 718 | 2843 | MDRV_INTERLEAVE(100) |
| 719 | 2844 | |
| r3115 | r3116 | |
| 722 | 2847 | |
| 723 | 2848 | MDRV_SCREEN_ADD("main", RASTER) |
| 724 | 2849 | MDRV_SCREEN_REFRESH_RATE(60) |
| 725 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 726 | 2850 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 727 | 2851 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 728 | 2852 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) |
| r3115 | r3116 | |
| 730 | 2854 | MDRV_GFXDECODE(tnk3) |
| 731 | 2855 | MDRV_PALETTE_LENGTH(0x400) |
| 732 | 2856 | |
| 733 | MDRV_PALETTE_INIT(aso) | |
| 734 | MDRV_VIDEO_START(snk_3bpp_shadow) | |
| 2857 | MDRV_PALETTE_INIT(tnk3) | |
| 2858 | MDRV_VIDEO_START(jcross) | |
| 735 | 2859 | MDRV_VIDEO_UPDATE(tnk3) |
| 736 | 2860 | |
| 737 | 2861 | /* sound hardware */ |
| 738 | 2862 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 739 | 2863 | |
| 740 | MDRV_SOUND_ADD("ym", YM3526, XTAL_8MHz/2) /* verified on pcb */ | |
| 741 | MDRV_SOUND_CONFIG(ym3526_interface_0) | |
| 742 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2864 | MDRV_SOUND_ADD("ay1", AY8910, 2000000) /* NOT verified */ | |
| 2865 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.35) | |
| 2866 | ||
| 2867 | MDRV_SOUND_ADD("ay2", AY8910, 2000000) /* NOT verified */ | |
| 2868 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.35) | |
| 2869 | ||
| 2870 | MDRV_SOUND_ADD("namco", NAMCO, 24000) | |
| 2871 | MDRV_SOUND_CONFIG(snkwave_interface) | |
| 2872 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.08) | |
| 743 | 2873 | MACHINE_DRIVER_END |
| 744 | 2874 | |
| 745 | 2875 | |
| 746 | static MACHINE_DRIVER_START( a | |
| 2876 | static MACHINE_DRIVER_START( sgladi | |
| 747 | 2877 | |
| 2878 | MDRV_IMPORT_FROM(jcross) | |
| 2879 | ||
| 748 | 2880 | /* basic machine hardware */ |
| 2881 | MDRV_CPU_MODIFY("main") | |
| 2882 | MDRV_CPU_PROGRAM_MAP(sgladiat_cpuA_map,0) | |
| 2883 | ||
| 2884 | MDRV_CPU_MODIFY("sub") | |
| 2885 | MDRV_CPU_PROGRAM_MAP(sgladiat_cpuB_map,0) | |
| 2886 | ||
| 2887 | MDRV_CPU_MODIFY("audio") | |
| 2888 | MDRV_CPU_PROGRAM_MAP(sgladiat_sound_map,0) | |
| 2889 | ||
| 2890 | /* video hardware */ | |
| 2891 | /* visible area is correct. Debug info is shown in the black bars at the sides | |
| 2892 | of the screen when the Debug dip switch is on */ | |
| 2893 | ||
| 2894 | MDRV_VIDEO_START(sgladiat) | |
| 2895 | ||
| 2896 | /* sound hardware */ | |
| 2897 | MDRV_SOUND_REMOVE("namco") | |
| 2898 | MACHINE_DRIVER_END | |
| 2899 | ||
| 2900 | ||
| 2901 | static MACHINE_DRIVER_START( tnk3 ) | |
| 2902 | ||
| 2903 | /* basic machine hardware */ | |
| 749 | 2904 | MDRV_CPU_ADD("main", Z80, XTAL_13_4MHz/4) /* verified on pcb */ |
| 750 | 2905 | MDRV_CPU_PROGRAM_MAP(tnk3_cpuA_map,0) |
| 751 | 2906 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| r3115 | r3116 | |
| 755 | 2910 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 756 | 2911 | |
| 757 | 2912 | MDRV_CPU_ADD("audio", Z80, XTAL_8MHz/2) /* verified on pcb */ |
| 758 | MDRV_CPU_PROGRAM_MAP(YM3526_YM3526_sound_map,0) | |
| 759 | MDRV_CPU_VBLANK_INT_HACK(irq0_line_hold,2) | |
| 2913 | MDRV_CPU_PROGRAM_MAP(tnk3_YM3526_sound_map,0) | |
| 760 | 2914 | |
| 761 | MDRV_INTERLEAVE( | |
| 2915 | MDRV_INTERLEAVE(100) | |
| 762 | 2916 | |
| 763 | 2917 | /* video hardware */ |
| 764 | 2918 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) |
| 765 | 2919 | |
| 766 | 2920 | MDRV_SCREEN_ADD("main", RASTER) |
| 767 | 2921 | MDRV_SCREEN_REFRESH_RATE(60) |
| 768 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 769 | 2922 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 770 | 2923 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 771 | 2924 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) |
| r3115 | r3116 | |
| 773 | 2926 | MDRV_GFXDECODE(tnk3) |
| 774 | 2927 | MDRV_PALETTE_LENGTH(0x400) |
| 775 | 2928 | |
| 776 | MDRV_PALETTE_INIT(aso) | |
| 777 | MDRV_VIDEO_START(snk_3bpp_shadow) | |
| 778 | MDRV_VIDEO_UPDATE(athena) | |
| 2929 | MDRV_PALETTE_INIT(tnk3) | |
| 2930 | MDRV_VIDEO_START(tnk3) | |
| 2931 | MDRV_VIDEO_UPDATE(tnk3) | |
| 779 | 2932 | |
| 780 | 2933 | /* sound hardware */ |
| 781 | 2934 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 782 | 2935 | |
| 783 | 2936 | MDRV_SOUND_ADD("ym1", YM3526, XTAL_8MHz/2) /* verified on pcb */ |
| 784 | MDRV_SOUND_CONFIG(ym3526_interface_0) | |
| 785 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 786 | ||
| 787 | MDRV_SOUND_ADD("ym2", YM3526, XTAL_8MHz/2) /* verified on pcb */ | |
| 788 | MDRV_SOUND_CONFIG(ym3526_interface_1) | |
| 789 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2937 | MDRV_SOUND_CONFIG(ym3526_config_1) | |
| 2938 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) | |
| 790 | 2939 | MACHINE_DRIVER_END |
| 791 | 2940 | |
| 792 | 2941 | |
| 793 | static MACHINE_DRIVER_START( | |
| 2942 | static MACHINE_DRIVER_START( | |
| 794 | 2943 | |
| 2944 | MDRV_IMPORT_FROM(tnk3) | |
| 2945 | ||
| 795 | 2946 | /* basic machine hardware */ |
| 796 | MDRV_CPU_ADD("main", Z80, XTAL_13_4MHz/4) /* verified on pcb */ | |
| 797 | MDRV_CPU_PROGRAM_MAP(cpuA_map,0) | |
| 798 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 2947 | MDRV_CPU_MODIFY("main") | |
| 2948 | MDRV_CPU_PROGRAM_MAP(aso_cpuA_map,0) | |
| 799 | 2949 | |
| 800 | MDRV_CPU_ADD("sub", Z80, XTAL_13_4MHz/4) /* verified on pcb */ | |
| 801 | MDRV_CPU_PROGRAM_MAP(cpuB_map,0) | |
| 802 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 2950 | MDRV_CPU_MODIFY("sub") | |
| 2951 | MDRV_CPU_PROGRAM_MAP(aso_cpuB_map,0) | |
| 803 | 2952 | |
| 804 | MDRV_CPU_ADD("audio", Z80, XTAL_8MHz/2) /* verified on pcb */ | |
| 805 | MDRV_CPU_PROGRAM_MAP(YM3526_YM3526_sound_map,0) | |
| 806 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 2953 | MDRV_CPU_MODIFY("audio") | |
| 2954 | MDRV_CPU_PROGRAM_MAP(aso_YM3526_sound_map,0) | |
| 807 | 2955 | |
| 808 | MDRV_INTERLEAVE(100) | |
| 809 | ||
| 810 | 2956 | /* video hardware */ |
| 811 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 2957 | MDRV_VIDEO_START(aso) | |
| 2958 | MACHINE_DRIVER_END | |
| 812 | 2959 | |
| 813 | MDRV_SCREEN_ADD("main", RASTER) | |
| 814 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 815 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 816 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 817 | MDRV_SCREEN_SIZE(36*8, 28*8) | |
| 818 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) | |
| 819 | 2960 | |
| 820 | MDRV_GFXDECODE(ikari) | |
| 821 | MDRV_PALETTE_LENGTH(0x400) | |
| 2961 | static MACHINE_DRIVER_START( athena ) | |
| 822 | 2962 | |
| 823 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) | |
| 824 | MDRV_VIDEO_START(snk_3bpp_shadow) | |
| 825 | MDRV_VIDEO_UPDATE(ikari) | |
| 2963 | MDRV_IMPORT_FROM(tnk3) | |
| 826 | 2964 | |
| 2965 | /* basic machine hardware */ | |
| 2966 | MDRV_CPU_MODIFY("audio") | |
| 2967 | MDRV_CPU_PROGRAM_MAP(YM3526_YM3526_sound_map,0) | |
| 2968 | ||
| 827 | 2969 | /* sound hardware */ |
| 828 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 2970 | MDRV_SOUND_ADD("ym2", YM3526, XTAL_8MHz/2) /* verified on pcb */ | |
| 2971 | MDRV_SOUND_CONFIG(ym3526_config_2) | |
| 2972 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) | |
| 2973 | MACHINE_DRIVER_END | |
| 829 | 2974 | |
| 830 | MDRV_SOUND_ADD("ym1", YM3526, XTAL_8MHz/2) /* verified on pcb */ | |
| 831 | MDRV_SOUND_CONFIG(ym3526_interface_0) | |
| 832 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 833 | 2975 | |
| 834 | MDRV_SOUND_ADD("ym2", YM3526, XTAL_8MHz/2) /* verified on pcb */ | |
| 835 | MDRV_SOUND_CONFIG(ym3526_interface_1) | |
| 836 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2976 | static MACHINE_DRIVER_START( fitegolf ) | |
| 2977 | ||
| 2978 | MDRV_IMPORT_FROM(tnk3) | |
| 2979 | ||
| 2980 | /* basic machine hardware */ | |
| 2981 | MDRV_CPU_MODIFY("audio") | |
| 2982 | // xtal is 4MHz instead of 8MHz/2 but the end result is the same | |
| 2983 | MDRV_CPU_PROGRAM_MAP(YM3812_sound_map,0) | |
| 2984 | ||
| 2985 | /* sound hardware */ | |
| 2986 | MDRV_SOUND_REPLACE("ym1", YM3812, XTAL_4MHz) /* verified on pcb */ | |
| 2987 | MDRV_SOUND_CONFIG(ym3812_config_1) | |
| 2988 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) | |
| 837 | 2989 | MACHINE_DRIVER_END |
| 838 | 2990 | |
| 839 | 2991 | |
| 840 | static MACHINE_DRIVER_START( | |
| 2992 | static MACHINE_DRIVER_START( | |
| 841 | 2993 | |
| 842 | 2994 | /* basic machine hardware */ |
| 843 | 2995 | MDRV_CPU_ADD("main", Z80, XTAL_13_4MHz/4) /* verified on pcb */ |
| 844 | MDRV_CPU_PROGRAM_MAP(cpuA_map,0) | |
| 2996 | MDRV_CPU_PROGRAM_MAP(ikari_cpuA_map,0) | |
| 845 | 2997 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 846 | 2998 | |
| 847 | 2999 | MDRV_CPU_ADD("sub", Z80, XTAL_13_4MHz/4) /* verified on pcb */ |
| 848 | MDRV_CPU_PROGRAM_MAP(cpuB_map,0) | |
| 3000 | MDRV_CPU_PROGRAM_MAP(ikari_cpuB_map,0) | |
| 849 | 3001 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 850 | 3002 | |
| 851 | 3003 | MDRV_CPU_ADD("audio", Z80, XTAL_8MHz/2) /* verified on pcb */ |
| 852 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) | |
| 853 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3004 | MDRV_CPU_PROGRAM_MAP(YM3526_YM3526_sound_map,0) | |
| 854 | 3005 | |
| 855 | 3006 | MDRV_INTERLEAVE(100) |
| 856 | 3007 | |
| r3115 | r3116 | |
| 859 | 3010 | |
| 860 | 3011 | MDRV_SCREEN_ADD("main", RASTER) |
| 861 | 3012 | MDRV_SCREEN_REFRESH_RATE(60) |
| 862 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 863 | 3013 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 864 | 3014 | MDRV_SCREEN_SIZE(36*8, 28*8) |
| 865 | 3015 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) |
| r3115 | r3116 | |
| 868 | 3018 | MDRV_PALETTE_LENGTH(0x400) |
| 869 | 3019 | |
| 870 | 3020 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| 871 | MDRV_VIDEO_START( | |
| 3021 | MDRV_VIDEO_START(i | |
| 872 | 3022 | MDRV_VIDEO_UPDATE(ikari) |
| 873 | 3023 | |
| 874 | 3024 | /* sound hardware */ |
| 875 | 3025 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 876 | 3026 | |
| 877 | 3027 | MDRV_SOUND_ADD("ym1", YM3526, XTAL_8MHz/2) /* verified on pcb */ |
| 878 | MDRV_SOUND_CONFIG(ym3526_interface_0) | |
| 879 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3028 | MDRV_SOUND_CONFIG(ym3526_config_1) | |
| 3029 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) | |
| 880 | 3030 | |
| 881 | MDRV_SOUND_ADD("ym2", Y8950, XTAL_8MHz/2) /* verified on pcb */ | |
| 882 | MDRV_SOUND_CONFIG(y8950_config) | |
| 883 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3031 | MDRV_SOUND_ADD("ym2", YM3526, XTAL_8MHz/2) /* verified on pcb */ | |
| 3032 | MDRV_SOUND_CONFIG(ym3526_config_2) | |
| 3033 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) | |
| 884 | 3034 | MACHINE_DRIVER_END |
| 885 | 3035 | |
| 886 | 3036 | |
| 887 | static MACHINE_DRIVER_START( | |
| 3037 | static MACHINE_DRIVER_START( victroad ) | |
| 888 | 3038 | |
| 3039 | MDRV_IMPORT_FROM(ikari) | |
| 3040 | ||
| 889 | 3041 | /* basic machine hardware */ |
| 3042 | MDRV_CPU_MODIFY("audio") | |
| 3043 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) | |
| 3044 | ||
| 3045 | /* sound hardware */ | |
| 3046 | MDRV_SOUND_REPLACE("ym2", Y8950, XTAL_8MHz/2) /* verified on pcb */ | |
| 3047 | MDRV_SOUND_CONFIG(y8950_config_2) | |
| 3048 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) | |
| 3049 | MACHINE_DRIVER_END | |
| 3050 | ||
| 3051 | ||
| 3052 | static MACHINE_DRIVER_START( bermudat ) | |
| 3053 | ||
| 3054 | /* basic machine hardware */ | |
| 890 | 3055 | MDRV_CPU_ADD("main", Z80, XTAL_8MHz/2) /* verified on pcb */ |
| 891 | MDRV_CPU_PROGRAM_MAP(cpuA_map,0) | |
| 3056 | MDRV_CPU_PROGRAM_MAP(bermudat_cpuA_map,0) | |
| 892 | 3057 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 893 | 3058 | |
| 894 | 3059 | MDRV_CPU_ADD("sub", Z80, XTAL_8MHz/2) /* verified on pcb */ |
| 895 | MDRV_CPU_PROGRAM_MAP(cpuB_map,0) | |
| 3060 | MDRV_CPU_PROGRAM_MAP(bermudat_cpuB_map,0) | |
| 896 | 3061 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 897 | 3062 | |
| 898 | 3063 | MDRV_CPU_ADD("audio", Z80, XTAL_8MHz/2) /* verified on pcb */ |
| 899 | 3064 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) |
| 900 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 901 | 3065 | |
| 902 | 3066 | MDRV_INTERLEAVE(100) |
| 903 | 3067 | |
| 904 | 3068 | /* video hardware */ |
| 905 | 3069 | MDRV_SCREEN_ADD("main", RASTER) |
| 906 | 3070 | MDRV_SCREEN_REFRESH_RATE(60) |
| 907 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 908 | 3071 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 909 | MDRV_SCREEN_SIZE(400, 224) | |
| 910 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) | |
| 3072 | // visible area uncertain but this size avoids glitches at the bottom of the screen | |
| 3073 | // in worldwar at the beginning of the game | |
| 3074 | MDRV_SCREEN_SIZE(50*8, 28*8) | |
| 3075 | MDRV_SCREEN_VISIBLE_AREA(2*8, 48*8-1, 0*8, 28*8-1) | |
| 911 | 3076 | |
| 912 | 3077 | MDRV_GFXDECODE(gwar) |
| 913 | 3078 | MDRV_PALETTE_LENGTH(0x400) |
| 914 | 3079 | |
| 915 | 3080 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| 916 | MDRV_VIDEO_START( | |
| 3081 | MDRV_VIDEO_START(gwar) | |
| 917 | 3082 | MDRV_VIDEO_UPDATE(gwar) |
| 918 | 3083 | |
| 919 | 3084 | /* sound hardware */ |
| 920 | 3085 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 921 | 3086 | |
| 922 | 3087 | MDRV_SOUND_ADD("ym1", YM3526, XTAL_8MHz/2) /* verified on pcb */ |
| 923 | MDRV_SOUND_CONFIG(ym3526_interface_0) | |
| 924 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3088 | MDRV_SOUND_CONFIG(ym3526_config_1) | |
| 3089 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) | |
| 925 | 3090 | |
| 926 | 3091 | MDRV_SOUND_ADD("ym2", Y8950, XTAL_8MHz/2) /* verified on pcb */ |
| 927 | MDRV_SOUND_CONFIG(y8950_config) | |
| 928 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3092 | MDRV_SOUND_CONFIG(y8950_config_2) | |
| 3093 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) | |
| 929 | 3094 | MACHINE_DRIVER_END |
| 930 | 3095 | |
| 931 | 3096 | |
| 932 | static MACHINE_DRIVER_START( | |
| 3097 | static MACHINE_DRIVER_START( gw | |
| 933 | 3098 | |
| 3099 | MDRV_IMPORT_FROM(bermudat) | |
| 3100 | ||
| 934 | 3101 | /* basic machine hardware */ |
| 935 | MDRV_CPU_ADD("main", Z80, 4000000) | |
| 936 | MDRV_CPU_PROGRAM_MAP(cpuA_map,0) | |
| 937 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3102 | MDRV_CPU_MODIFY("main") | |
| 3103 | MDRV_CPU_PROGRAM_MAP(gwar_cpuA_map,0) | |
| 938 | 3104 | |
| 939 | // 5MHz gives CPUB higher priority or ROM test will fail if the first NMI is triggered too early by CPUA | |
| 940 | MDRV_CPU_ADD("sub", Z80, 5000000) | |
| 941 | MDRV_CPU_PROGRAM_MAP(cpuB_map,0) | |
| 942 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3105 | MDRV_CPU_MODIFY("sub") | |
| 3106 | MDRV_CPU_PROGRAM_MAP(gwar_cpuB_map,0) | |
| 943 | 3107 | |
| 944 | MDRV_CPU_ADD("audio", Z80, 4000000) | |
| 945 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) | |
| 946 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 947 | ||
| 948 | MDRV_INTERLEAVE(100) | |
| 949 | ||
| 950 | 3108 | /* video hardware */ |
| 951 | MDRV_SCREEN_ADD("main", RASTER) | |
| 952 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 953 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 954 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 955 | MDRV_SCREEN_SIZE(400, 224) | |
| 956 | MDRV_SCREEN_VISIBLE_AREA(16, 399, 0, 223) | |
| 3109 | MDRV_SCREEN_MODIFY("main") | |
| 3110 | // this visible area matches pcb screenshots | |
| 3111 | MDRV_SCREEN_SIZE(49*8, 28*8) | |
| 3112 | MDRV_SCREEN_VISIBLE_AREA(1*8, 48*8-1, 0*8, 28*8-1) | |
| 3113 | MACHINE_DRIVER_END | |
| 957 | 3114 | |
| 958 | MDRV_GFXDECODE(gwar) | |
| 959 | MDRV_PALETTE_LENGTH(0x400) | |
| 960 | 3115 | |
| 961 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) | |
| 962 | MDRV_VIDEO_START(snk) | |
| 963 | MDRV_VIDEO_UPDATE(gwar) | |
| 3116 | static MACHINE_DRIVER_START( gwara ) | |
| 964 | 3117 | |
| 965 | /* sound hardware */ | |
| 966 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 3118 | MDRV_IMPORT_FROM(bermudat) | |
| 967 | 3119 | |
| 968 | MDRV_SOUND_ADD("ym1", YM3526, 4000000) | |
| 969 | MDRV_SOUND_CONFIG(ym3526_interface_0) | |
| 970 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3120 | /* basic machine hardware */ | |
| 3121 | MDRV_CPU_MODIFY("main") | |
| 3122 | MDRV_CPU_PROGRAM_MAP(gwara_cpuA_map,0) | |
| 971 | 3123 | |
| 972 | MDRV_SOUND_ADD("ym2", Y8950, 4000000) | |
| 973 | MDRV_SOUND_CONFIG(y8950_config) | |
| 974 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3124 | MDRV_CPU_MODIFY("sub") | |
| 3125 | MDRV_CPU_PROGRAM_MAP(gwara_cpuB_map,0) | |
| 975 | 3126 | MACHINE_DRIVER_END |
| 976 | 3127 | |
| 977 | 3128 | |
| 978 | static MACHINE_DRIVER_START( | |
| 3129 | static MACHINE_DRIVER_START( | |
| 979 | 3130 | |
| 3131 | MDRV_IMPORT_FROM(bermudat) | |
| 3132 | ||
| 980 | 3133 | /* basic machine hardware */ |
| 981 | MDRV_CPU_ADD("main", Z80, 4000000) | |
| 982 | MDRV_CPU_PROGRAM_MAP(cpuA_map,0) | |
| 983 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3134 | MDRV_CPU_MODIFY("sub") | |
| 3135 | MDRV_CPU_PROGRAM_MAP(gwar_cpuB_map,0) | |
| 984 | 3136 | |
| 985 | MDRV_CPU_ADD("sub", Z80, 4000000) | |
| 986 | MDRV_CPU_PROGRAM_MAP(cpuB_map,0) | |
| 987 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3137 | MDRV_CPU_MODIFY("audio") | |
| 3138 | MDRV_CPU_PROGRAM_MAP(YM3812_Y8950_sound_map,0) | |
| 988 | 3139 | |
| 989 | MDRV_CPU_ADD("audio", Z80, 4000000) | |
| 990 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) | |
| 991 | MDRV_CPU_VBLANK_INT_HACK(irq0_line_hold,2) | |
| 992 | ||
| 993 | MDRV_INTERLEAVE(100) | |
| 994 | ||
| 995 | 3140 | /* video hardware */ |
| 996 | MDRV_SCREEN_ADD("main", RASTER) | |
| 997 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 998 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 999 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 1000 | MDRV_SCREEN_SIZE(400, 224) | |
| 1001 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) | |
| 3141 | MDRV_SCREEN_MODIFY("main") | |
| 3142 | // this visible area matches the flyer | |
| 3143 | MDRV_SCREEN_SIZE(51*8, 28*8) | |
| 3144 | MDRV_SCREEN_VISIBLE_AREA(1*8, 50*8-1, 0*8, 28*8-1) | |
| 1002 | 3145 | |
| 1003 | MDRV_GFXDECODE(gwar) | |
| 1004 | MDRV_PALETTE_LENGTH(0x400) | |
| 3146 | /* sound hardware */ | |
| 3147 | MDRV_SOUND_REPLACE("ym1", YM3812, 4000000) | |
| 3148 | MDRV_SOUND_CONFIG(ym3812_config_1) | |
| 3149 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3150 | MACHINE_DRIVER_END | |
| 1005 | 3151 | |
| 1006 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) | |
| 1007 | MDRV_VIDEO_START(snk) | |
| 1008 | MDRV_VIDEO_UPDATE(gwar) | |
| 1009 | 3152 | |
| 1010 | /* sound hardware */ | |
| 1011 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 3153 | static MACHINE_DRIVER_START( choppera ) | |
| 1012 | 3154 | |
| 1013 | MDRV_SOUND_ADD("ym1", YM3526, 4000000) | |
| 1014 | MDRV_SOUND_CONFIG(ym3526_interface_0) | |
| 1015 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3155 | MDRV_IMPORT_FROM(chopper1) | |
| 1016 | 3156 | |
| 1017 | MDRV_SOUND_ADD("ym2", Y8950, 4000000) | |
| 1018 | MDRV_SOUND_CONFIG(y8950_config) | |
| 1019 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3157 | /* basic machine hardware */ | |
| 3158 | MDRV_CPU_MODIFY("main") | |
| 3159 | MDRV_CPU_PROGRAM_MAP(gwar_cpuA_map,0) | |
| 1020 | 3160 | MACHINE_DRIVER_END |
| 1021 | 3161 | |
| 1022 | 3162 | |
| 1023 | static MACHINE_DRIVER_START( | |
| 3163 | static MACHINE_DRIVER_START( tdf | |
| 1024 | 3164 | |
| 1025 | 3165 | /* basic machine hardware */ |
| 1026 | 3166 | MDRV_CPU_ADD("main", Z80, 4000000) |
| 1027 | MDRV_CPU_PROGRAM_MAP(cpuA_map,0) | |
| 3167 | MDRV_CPU_PROGRAM_MAP(tdfever_cpuA_map,0) | |
| 1028 | 3168 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 1029 | 3169 | |
| 1030 | 3170 | MDRV_CPU_ADD("sub", Z80, 4000000) |
| 1031 | MDRV_CPU_PROGRAM_MAP(cpuB_map,0) | |
| 3171 | MDRV_CPU_PROGRAM_MAP(tdfever_cpuB_map,0) | |
| 1032 | 3172 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 1033 | 3173 | |
| 1034 | 3174 | MDRV_CPU_ADD("audio", Z80, 4000000) |
| 1035 | MDRV_CPU_PROGRAM_MAP(YM3812_Y8950_sound_map,0) | |
| 1036 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3175 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) | |
| 1037 | 3176 | |
| 1038 | 3177 | MDRV_INTERLEAVE(100) |
| 1039 | 3178 | |
| 1040 | 3179 | /* video hardware */ |
| 3180 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 3181 | ||
| 1041 | 3182 | MDRV_SCREEN_ADD("main", RASTER) |
| 1042 | 3183 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1043 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1044 | 3184 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1045 | MDRV_SCREEN_SIZE(400, 224) | |
| 1046 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) | |
| 3185 | MDRV_SCREEN_SIZE(50*8, 28*8) | |
| 3186 | MDRV_SCREEN_VISIBLE_AREA(0*8, 50*8-1, 0*8, 28*8-1) | |
| 1047 | 3187 | |
| 1048 | MDRV_GFXDECODE( | |
| 3188 | MDRV_GFXDECODE(tdfever) | |
| 1049 | 3189 | MDRV_PALETTE_LENGTH(0x400) |
| 1050 | 3190 | |
| 1051 | 3191 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) |
| 1052 | MDRV_VIDEO_START(snk) | |
| 1053 | MDRV_VIDEO_UPDATE(gwar) | |
| 3192 | MDRV_VIDEO_START(tdfever) | |
| 3193 | MDRV_VIDEO_UPDATE(tdfever) | |
| 1054 | 3194 | |
| 1055 | 3195 | /* sound hardware */ |
| 1056 | 3196 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1057 | 3197 | |
| 1058 | MDRV_SOUND_ADD("ym1", YM3812, 4000000) | |
| 1059 | MDRV_SOUND_CONFIG(ym3812_config) | |
| 3198 | MDRV_SOUND_ADD("ym1", YM3526, 4000000) | |
| 3199 | MDRV_SOUND_CONFIG(ym3526_config_1) | |
| 1060 | 3200 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1061 | 3201 | |
| 1062 | 3202 | MDRV_SOUND_ADD("ym2", Y8950, 4000000) |
| 1063 | MDRV_SOUND_CONFIG(y8950_config) | |
| 3203 | MDRV_SOUND_CONFIG(y8950_config_2) | |
| 1064 | 3204 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1065 | 3205 | MACHINE_DRIVER_END |
| 1066 | 3206 | |
| 1067 | 3207 | |
| 1068 | static MACHINE_DRIVER_START( tdfever ) | |
| 3208 | static MACHINE_DRIVER_START( tdfever2 ) | |
| 1069 | 3209 | |
| 3210 | MDRV_IMPORT_FROM(tdfever) | |
| 3211 | ||
| 1070 | 3212 | /* basic machine hardware */ |
| 1071 | MDRV_CPU_ADD("main", Z80, 4000000) | |
| 1072 | MDRV_CPU_PROGRAM_MAP(cpuA_map,0) | |
| 1073 | MDRV_CPU_VBLANK_INT("main", snk_irq_AB) | |
| 3213 | MDRV_CPU_MODIFY("audio") | |
| 3214 | MDRV_CPU_PROGRAM_MAP(Y8950_sound_map,0) | |
| 1074 | 3215 | |
| 1075 | MDRV_CPU_ADD("sub", Z80, 4000000) | |
| 1076 | MDRV_CPU_PROGRAM_MAP(cpuB_map,0) | |
| 1077 | // MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3216 | /* sound hardware */ | |
| 1078 | 3217 | |
| 1079 | MDRV_CPU_ADD("audio", Z80, 4000000) | |
| 1080 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) | |
| 1081 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3218 | // apparently, no "ym1" in tdfever2 | |
| 3219 | // (registers are written to but they cause sound not to work) | |
| 3220 | MDRV_SOUND_REMOVE("ym1") | |
| 3221 | MACHINE_DRIVER_END | |
| 1082 | 3222 | |
| 1083 | MDRV_INTERLEAVE(300) | |
| 1084 | 3223 | |
| 1085 | /* video hardware */ | |
| 1086 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK | VIDEO_HAS_SHADOWS) | |
| 3224 | /***********************************************************************/ | |
| 1087 | 3225 | |
| 1088 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1089 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1090 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1000)) | |
| 1091 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 1092 | MDRV_SCREEN_SIZE(400,224) | |
| 1093 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) | |
| 3226 | ROM_START( jcross ) | |
| 3227 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3228 | ROM_LOAD( "jcrossa0.10b", 0x0000, 0x2000, CRC(0e79bbcd) SHA1(7088a8effd30080529b797991e24e9807bf90475) ) | |
| 3229 | ROM_LOAD( "jcrossa1.12b", 0x2000, 0x2000, CRC(999b2bcc) SHA1(e5d13c9c11a82cedee15777341e6424639ecf2f5) ) | |
| 3230 | ROM_LOAD( "jcrossa2.13b", 0x4000, 0x2000, CRC(ac89e49c) SHA1(9b9a0eec8ad341ce7af58bffe55f10bec696af62) ) | |
| 3231 | ROM_LOAD( "jcrossa3.14b", 0x6000, 0x2000, CRC(4fd7848d) SHA1(870aea0b8e027616814df87afd24418fd140f736) ) | |
| 3232 | ROM_LOAD( "jcrossa4.15b", 0x8000, 0x2000, CRC(8500575d) SHA1(b8751b86508de484f2eb8a6702c63a47ec882036) ) | |
| 1094 | 3233 | |
| 1095 | MDRV_GFXDECODE(tdfever) | |
| 1096 | MDRV_PALETTE_LENGTH(0x400) | |
| 3234 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3235 | ROM_LOAD( "jcrossb0.15a", 0x0000, 0x2000, CRC(77ed51e7) SHA1(56b457846f71f442da6f99889231d4b71d5fcb6c) ) | |
| 3236 | ROM_LOAD( "jcrossb1.14a", 0x2000, 0x2000, CRC(23cf0f70) SHA1(f258e899f332a026eeb0db92330fd60c478218af) ) | |
| 3237 | ROM_LOAD( "jcrossb2.13a", 0x4000, 0x2000, CRC(5bed3118) SHA1(f105ca55223a4bfbc8e2d61c365c76cf2153254c) ) | |
| 3238 | ROM_LOAD( "jcrossb3.12a", 0x6000, 0x2000, CRC(cd75dc95) SHA1(ef03d2b0f66f30fad5132e7b6aee9ec978650b53) ) | |
| 1097 | 3239 | |
| 1098 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) | |
| 1099 | MDRV_VIDEO_START(snk_4bpp_shadow) | |
| 1100 | MDRV_VIDEO_UPDATE(tdfever) | |
| 3240 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3241 | ROM_LOAD( "jcrosss0.f1", 0x0000, 0x2000, CRC(9ae8ea93) SHA1(1d824302305a41bf5c354c36e2e11981d1aa5ea4) ) | |
| 3242 | ROM_LOAD( "jcrosss1.h2", 0x2000, 0x2000, CRC(83785601) SHA1(cd3d484ef5464090c4b543b1edbbedcc52b15071) ) | |
| 1101 | 3243 | |
| 1102 | /* sound hardware */ | |
| 1103 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 3244 | ROM_REGION( 0x4000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 3245 | ROM_LOAD( "jcrossb4.10a", 0x0000, 0x2000, CRC(08ad93fe) SHA1(04baf2d9735b0d794b114abeced5a6b899958ce7) ) | |
| 3246 | ROM_LOAD( "jcrosss.d2", 0x2000, 0x2000, CRC(3ebb5beb) SHA1(de0a1f0fdb5b08b76dab9fa64d9ae3047c4ff84b) ) | |
| 1104 | 3247 | |
| 1105 | MDRV_SOUND_ADD("ym1", YM3526, 4000000) | |
| 1106 | MDRV_SOUND_CONFIG(ym3526_interface_0) | |
| 1107 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3248 | ROM_REGION( 0x2000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 3249 | ROM_LOAD( "jcrossb1.a2", 0x0000, 0x2000, CRC(ea3dfbc9) SHA1(eee56acd1c9dbc6c3ecdee4ffe860273e65cc09b) ) | |
| 1108 | 3250 | |
| 1109 | MDRV_SOUND_ADD("ym2", Y8950, 4000000) | |
| 1110 | MDRV_SOUND_CONFIG(y8950_config) | |
| 1111 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 1112 | MACHINE_DRIVER_END | |
| 3251 | ROM_REGION( 0x6000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 3252 | ROM_LOAD( "jcrossf0.l2", 0x0000, 0x2000, CRC(4532509b) SHA1(c99f87e2b06b94d815e6099bccb2aee0edf8c98d) ) | |
| 3253 | ROM_LOAD( "jcrossf1.k2", 0x2000, 0x2000, CRC(70d219bf) SHA1(9ff9f88221edd141e8204ac810434b4290db7cff) ) | |
| 3254 | ROM_LOAD( "jcrossf2.j2", 0x4000, 0x2000, CRC(42a12b9d) SHA1(9f2bdb1f84f444442282cf0fc1f7b3c7f9a9bf48) ) | |
| 1113 | 3255 | |
| 3256 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 3257 | ROM_LOAD( "jcrossp2.j7", 0x000, 0x400, CRC(b72a96a5) SHA1(20d40e4b6a2652e61dc3ad0c4afaec04e3c7cf74) ) | |
| 3258 | ROM_LOAD( "jcrossp1.j8", 0x400, 0x400, CRC(35650448) SHA1(17e4a661ff304c093bb0253efceaf4e9b2498924) ) | |
| 3259 | ROM_LOAD( "jcrossp0.j9", 0x800, 0x400, CRC(99f54d48) SHA1(9bd20eaa9706d28eaca9f5e195204d89e302272f) ) | |
| 3260 | ROM_END | |
| 1114 | 3261 | |
| 1115 | ||
| 3262 | /***********************************************************************/ | |
| 1116 | 3263 | |
| 1117 | /* basic machine hardware */ | |
| 1118 | MDRV_CPU_ADD("main", Z80, 4000000) | |
| 1119 | MDRV_CPU_PROGRAM_MAP(cpuA_map,0) | |
| 1120 | MDRV_CPU_VBLANK_INT("main", snk_irq_AB) | |
| 3264 | ROM_START( sgladiat ) | |
| 3265 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3266 | ROM_LOAD( "glad.005", 0x0000, 0x4000, CRC(4bc60f0b) SHA1(19baf7533b8fc6bab372f1d35603068a6b93627c) ) | |
| 3267 | ROM_LOAD( "glad.004", 0x4000, 0x4000, CRC(db557f46) SHA1(dc3565096c95a20d2c64dd4f5d0b465fbd85e041) ) | |
| 3268 | ROM_LOAD( "glad.003", 0x8000, 0x2000, CRC(55ce82b4) SHA1(703f017a8501e4dd5166b5717b244aa6b1e7dc0a) ) | |
| 1121 | 3269 | |
| 1122 | MDRV_CPU_ADD("sub", Z80, 4000000) | |
| 1123 | MDRV_CPU_PROGRAM_MAP(cpuB_map,0) | |
| 1124 | // MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3270 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3271 | ROM_LOAD( "glad.002", 0x0000, 0x4000, CRC(8350261c) SHA1(046099128d5d941b3a37dce559ff5f0aa7f61683) ) | |
| 3272 | ROM_LOAD( "glad.001", 0x4000, 0x4000, CRC(5ee9d3fb) SHA1(6c8d8db7a966d3d3a2e8c46fd779e12e1f1e3716) ) | |
| 1125 | 3273 | |
| 1126 | MDRV_CPU_ADD("audio", Z80, 4000000) | |
| 1127 | MDRV_CPU_PROGRAM_MAP(YM3526_Y8950_sound_map,0) | |
| 1128 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3274 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3275 | ROM_LOAD( "glad.007", 0x0000, 0x2000, CRC(c25b6731) SHA1(519c6844bfec958b9bb65f148b3527b41fe38b99) ) | |
| 3276 | ROM_LOAD( "glad.006", 0x2000, 0x2000, CRC(2024d716) SHA1(6ff069fc53524d13c386e8e714ba3056509adc4d) ) | |
| 1129 | 3277 | |
| 1130 | MDRV_INTERLEAVE(300) | |
| 3278 | ROM_REGION( 0x2000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 3279 | ROM_LOAD( "glad.011", 0x0000, 0x2000, CRC(305bb294) SHA1(e148571a581b12ff9502a65ec428e4d19bc757cb) ) | |
| 1131 | 3280 | |
| 1132 | /* video hardware */ | |
| 1133 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK | VIDEO_HAS_SHADOWS) | |
| 3281 | ROM_REGION( 0x2000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 3282 | ROM_LOAD( "glad.012", 0x0000, 0x2000, CRC(b7dd519f) SHA1(7bd760e54712648105d1049e678fa6b9effa600b) ) | |
| 1134 | 3283 | |
| 1135 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1136 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1137 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1000)) | |
| 1138 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 1139 | MDRV_SCREEN_SIZE(400,224) | |
| 1140 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) | |
| 3284 | ROM_REGION( 0x6000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 3285 | ROM_LOAD( "glad.008", 0x0000, 0x2000, CRC(bcf42587) SHA1(1546fe903fbc6dc0b410c83ab51887c33c91ec2d) ) | |
| 3286 | ROM_LOAD( "glad.009", 0x2000, 0x2000, CRC(912a20e0) SHA1(9621b955bc00b7c52ed8363bb441b568efb55863) ) | |
| 3287 | ROM_LOAD( "glad.010", 0x4000, 0x2000, CRC(8b1db3a5) SHA1(5ca403d40071ab13deb7fdb04cb0e055e6b30b05) ) | |
| 1141 | 3288 | |
| 1142 | MDRV_GFXDECODE(tdfever) | |
| 1143 | MDRV_PALETTE_LENGTH(0x400) | |
| 3289 | ROM_REGION( 0xc00, "proms", 0 ) | |
| 3290 | ROM_LOAD( "82s137.001", 0x000, 0x400, CRC(d9184823) SHA1(455c6a437d54c29673dddb8248ca78d000c7f354) ) | |
| 3291 | ROM_LOAD( "82s137.002", 0x400, 0x400, CRC(1a6b0953) SHA1(552ac2897abe507f2fd9ca11c8128a0314af215c) ) | |
| 3292 | ROM_LOAD( "82s137.003", 0x800, 0x400, CRC(c0e70308) SHA1(d7dbc500bc9991c2d1b95850f3723a2a224fbfbb) ) | |
| 3293 | ROM_END | |
| 1144 | 3294 | |
| 1145 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) | |
| 1146 | MDRV_VIDEO_START(snk_4bpp_shadow) | |
| 1147 | MDRV_VIDEO_UPDATE(tdfever) | |
| 3295 | /***********************************************************************/ | |
| 1148 | 3296 | |
| 1149 | /* sound hardware */ | |
| 1150 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 3297 | ROM_START( aso ) | |
| 3298 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3299 | ROM_LOAD( "p1.bin", 0x0000, 0x8000, CRC(3fc9d5e4) SHA1(1318904d3d896affd5affd8e475ac9ee6929b955) ) | |
| 3300 | ROM_LOAD( "p3.bin", 0x8000, 0x4000, CRC(39a666d2) SHA1(b5426520eb600d44bc5566d742d7b88194076494) ) | |
| 1151 | 3301 | |
| 1152 | MDRV_SOUND_ADD("ym1", YM3526, 4000000) | |
| 1153 | MDRV_SOUND_CONFIG(ym3526_interface_0) | |
| 1154 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 3302 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3303 | ROM_LOAD( "p4.bin", 0x0000, 0x8000, CRC(2429792b) SHA1(674e81880f359f7e8d34d0ad9074267360afadbf) ) | |
| 3304 | ROM_LOAD( "p6.bin", 0x8000, 0x4000, CRC(c0bfdf1f) SHA1(65b15ce9c2e78df79cb603c58639421d29701633) ) | |
| 1155 | 3305 | |
| 1156 | MDRV_SOUND_ADD("ym2", Y8950, 4000000) | |
| 1157 | MDRV_SOUND_CONFIG(y8950_config) | |
| 1158 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 1159 | MACHINE_DRIVER_END | |
| 3306 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3307 | ROM_LOAD( "p7.bin", 0x0000, 0x8000, CRC(49258162) SHA1(c265b79d012be1e065389f910f7b4ce61f5b27ce) ) | |
| 3308 | ROM_LOAD( "p9.bin", 0x8000, 0x4000, CRC(aef5a4f4) SHA1(e908e79e27ff892fe75d1ba5cb0bc9dc6b7b4268) ) | |
| 1160 | 3309 | |
| 3310 | ROM_REGION( 0x2000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 3311 | ROM_LOAD( "p14.bin", 0x0000, 0x2000, CRC(8baa2253) SHA1(e6e4a5aa005e89744c4e2a19a080cf322edc6b52) ) | |
| 1161 | 3312 | |
| 1162 | static MACHINE_DRIVER_START( fsoccer ) | |
| 3313 | ROM_REGION( 0x8000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 3314 | ROM_LOAD( "p10.bin", 0x0000, 0x8000, CRC(00dff996) SHA1(4f6ce4c0f2da0d2a711bcbf9aa998b4e31d0d9bf) ) | |
| 1163 | 3315 | |
| 1164 | /* basic machine hardware */ | |
| 1165 | MDRV_CPU_ADD("main", Z80, XTAL_8MHz/2) /* verified on pcb */ | |
| 1166 | MDRV_CPU_PROGRAM_MAP(cpuA_map,0) | |
| 1167 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3316 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 3317 | ROM_LOAD( "p11.bin", 0x04000, 0x4000, CRC(7feac86c) SHA1(13b81f006ec587583416c1e7432da4c3f0375924) ) | |
| 3318 | ROM_CONTINUE( 0x00000, 0x4000) | |
| 3319 | ROM_LOAD( "p12.bin", 0x0c000, 0x4000, CRC(6895990b) SHA1(e84554cae9a768021c3dc7183bc3d28e2dd768ee) ) | |
| 3320 | ROM_CONTINUE( 0x08000, 0x4000) | |
| 3321 | ROM_LOAD( "p13.bin", 0x14000, 0x4000, CRC(87a81ce1) SHA1(28c1069e6c08ecd579f99620c1cb6df01ad1aa74) ) | |
| 3322 | ROM_CONTINUE( 0x10000, 0x4000) | |
| 1168 | 3323 | |
| 1169 | MDRV_CPU_ADD("sub", Z80, XTAL_8MHz/2) /* verified on pcb */ | |
| 1170 | MDRV_CPU_PROGRAM_MAP(cpuB_map,0) | |
| 1171 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 3324 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 3325 | ROM_LOAD( "mb7122h.f12", 0x000, 0x00400, CRC(5b0a0059) SHA1(f61e17c8959f1cd6cc12b38f2fb7c6190ebd0e0c) ) | |
| 3326 | ROM_LOAD( "mb7122h.f13", 0x400, 0x00400, CRC(37e28dd8) SHA1(681726e490872a574dd0295823a44d64ef3a7b45) ) | |
| 3327 | ROM_LOAD( "mb7122h.f14", 0x800, 0x00400, CRC(c3fd1dd3) SHA1(c48030cc458f0bebea0ffccf3d3c43260da6a7fb) ) | |
| 1172 | 3328 | |
| 1173 | MDRV_CPU_ADD("audio", Z80, XTAL_8MHz/2) /* verified on pcb */ | |
| 1174 | MDRV_CPU_PROGRAM_MAP(Y8950_sound_map, 0) | |
| 1175 | MDRV_CPU_VBLANK_INT_HACK(irq0_line_hold,2) | |
| 3329 | ROM_REGION( 0x0600, "plds", ROMREGION_DISPOSE ) | |
| 3330 | ROM_LOAD( "pal16l8a-1.bin", 0x0000, 0x0104, CRC(4e3f9e0d) SHA1(de448d50c0d1cdef159a8c4028846142210eba0b) ) | |
| 3331 | ROM_LOAD( "pal16l8a-2.bin", 0x0200, 0x0104, CRC(2a681f9e) SHA1(b26eb631d3e4fa6850a109a9a63d377cf86923bc) ) | |
| 3332 | ROM_LOAD( "pal16r6a.bin", 0x0400, 0x0104, CRC(59c03681) SHA1(d21090b35596c28d44862782386e84dfc1feff0c) ) | |
| 3333 | ROM_END | |
| 1176 | 3334 | |
| 1177 | MDRV_INTERLEAVE(100) | |
| 3335 | ROM_START( alphamis ) | |
| 3336 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3337 | ROM_LOAD( "p1.rom", 0x0000, 0x4000, CRC(69af874b) SHA1(11a13574614e7e3b9e33c2b2827571946a805376) ) | |
| 3338 | ROM_LOAD( "p2.rom", 0x4000, 0x4000, CRC(7707bfe3) SHA1(fb1f4ef862f6762d2479e537fc67a819d11ace76) ) | |
| 3339 | ROM_LOAD( "p3.rom", 0x8000, 0x4000, CRC(b970d642) SHA1(d3a8045f05f001e5e2fae8ef7900cf87ab17fc74) ) | |
| 1178 | 3340 | |
| 1179 | /* video hardware */ | |
| 1180 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK | VIDEO_HAS_SHADOWS) | |
| 3341 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3342 | ROM_LOAD( "p4.rom", 0x0000, 0x4000, CRC(91a89d3c) SHA1(46ef8718c81aac2f09dd1884538750edf9662760) ) | |
| 3343 | ROM_LOAD( "p5.rom", 0x4000, 0x4000, CRC(9879e506) SHA1(0bce5fcb9d05ce77cd8e9ad1cac04ef617928db0) ) | |
| 3344 | ROM_LOAD( "p6.bin", 0x8000, 0x4000, CRC(c0bfdf1f) SHA1(65b15ce9c2e78df79cb603c58639421d29701633) ) | |
| 1181 | 3345 | |
| 1182 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1183 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1184 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 1185 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 1186 | MDRV_SCREEN_SIZE(400,224) | |
| 1187 | MDRV_SCREEN_VISIBLE_AREA(8, 399-8, 0, 223) | |
| 3346 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3347 | ROM_LOAD( "p7.rom", 0x0000, 0x4000, CRC(dbc19736) SHA1(fe365d70ead8243374979d2162c395fed9870405) ) | |
| 3348 | ROM_LOAD( "p8.rom", 0x4000, 0x4000, CRC(537726a9) SHA1(ddf66946be71d2e6ab2cc53150e3b36d45dde2eb) ) | |
| 3349 | ROM_LOAD( "p9.bin", 0x8000, 0x4000, CRC(aef5a4f4) SHA1(e908e79e27ff892fe75d1ba5cb0bc9dc6b7b4268) ) | |
| 1188 | 3350 | |
| 1189 | MDRV_GFXDECODE(tdfever) | |
| 1190 | MDRV_PALETTE_LENGTH(0x400) | |
| 3351 | ROM_REGION( 0x2000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 3352 | ROM_LOAD( "p14.rom", 0x0000, 0x2000, CRC(acbe29b2) SHA1(e304c6d30888fa7549d25e6329ba94d5088bd8b7) ) | |
| 1191 | 3353 | |
| 1192 | MDRV_PALETTE_INIT(RRRR_GGGG_BBBB) | |
| 1193 | MDRV_VIDEO_START(snk_4bpp_shadow) | |
| 1194 | MDRV_VIDEO_UPDATE(tdfever) | |
| 3354 | ROM_REGION( 0x8000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 3355 | ROM_LOAD( "p10.bin", 0x0000, 0x8000, CRC(00dff996) SHA1(4f6ce4c0f2da0d2a711bcbf9aa998b4e31d0d9bf) ) | |
| 1195 | 3356 | |
| 1196 | /* sound hardware */ | |
| 1197 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 3357 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 3358 | ROM_LOAD( "p11.bin", 0x04000, 0x4000, CRC(7feac86c) SHA1(13b81f006ec587583416c1e7432da4c3f0375924) ) | |
| 3359 | ROM_CONTINUE( 0x00000, 0x4000) | |
| 3360 | ROM_LOAD( "p12.bin", 0x0c000, 0x4000, CRC(6895990b) SHA1(e84554cae9a768021c3dc7183bc3d28e2dd768ee) ) | |
| 3361 | ROM_CONTINUE( 0x08000, 0x4000) | |
| 3362 | ROM_LOAD( "p13.bin", 0x14000, 0x4000, CRC(87a81ce1) SHA1(28c1069e6c08ecd579f99620c1cb6df01ad1aa74) ) | |
| 3363 | ROM_CONTINUE( 0x10000, 0x4000) | |
| 1198 | 3364 | |
| 1199 | MDRV_SOUND_ADD("ym", Y8950, XTAL_8MHz/2) /* verified on pcb */ | |
| 1200 | MDRV_SOUND_CONFIG(y8950_config) | |
| 1201 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 1202 | MACHINE_DRIVER_END | |
| 3365 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 3366 | ROM_LOAD( "mb7122h.f12", 0x000, 0x00400, CRC(5b0a0059) SHA1(f61e17c8959f1cd6cc12b38f2fb7c6190ebd0e0c) ) | |
| 3367 | ROM_LOAD( "mb7122h.f13", 0x400, 0x00400, CRC(37e28dd8) SHA1(681726e490872a574dd0295823a44d64ef3a7b45) ) | |
| 3368 | ROM_LOAD( "mb7122h.f14", 0x800, 0x00400, CRC(c3fd1dd3) SHA1(c48030cc458f0bebea0ffccf3d3c43260da6a7fb) ) | |
| 1203 | 3369 | |
| 3370 | ROM_REGION( 0x0600, "plds", ROMREGION_DISPOSE ) | |
| 3371 | ROM_LOAD( "pal16l8a-1.bin", 0x0000, 0x0104, CRC(4e3f9e0d) SHA1(de448d50c0d1cdef159a8c4028846142210eba0b) ) | |
| 3372 | ROM_LOAD( "pal16l8a-2.bin", 0x0200, 0x0104, CRC(2a681f9e) SHA1(b26eb631d3e4fa6850a109a9a63d377cf86923bc) ) | |
| 3373 | ROM_LOAD( "pal16r6a.bin", 0x0400, 0x0104, CRC(59c03681) SHA1(d21090b35596c28d44862782386e84dfc1feff0c) ) | |
| 3374 | ROM_END | |
| 1204 | 3375 | |
| 3376 | ROM_START( arian ) | |
| 3377 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3378 | ROM_LOAD( "p1.d8", 0x0000, 0x4000, CRC(0ca89307) SHA1(d0ecb97b1e147a4001a4383fd5709394e2358a45) ) /* roms that differ from above sets all had a red stripe on the label */ | |
| 3379 | ROM_LOAD( "p2.d7", 0x4000, 0x4000, CRC(724518c3) SHA1(debbfe2a485af5f452d208a04705dbd48d47d90f) ) /* IE: P1 through P4 and P14 */ | |
| 3380 | ROM_LOAD( "p3.d6", 0x8000, 0x4000, CRC(4d8db650) SHA1(184141847d38077737ee7140861d94832018e2e2) ) | |
| 3381 | ||
| 3382 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3383 | ROM_LOAD( "p4.d3", 0x0000, 0x4000, CRC(47baf1db) SHA1(3947a679745811e5499d690f2b73b4f28b1d47f9) ) | |
| 3384 | ROM_LOAD( "p5.rom", 0x4000, 0x4000, CRC(9879e506) SHA1(0bce5fcb9d05ce77cd8e9ad1cac04ef617928db0) ) | |
| 3385 | ROM_LOAD( "p6.bin", 0x8000, 0x4000, CRC(c0bfdf1f) SHA1(65b15ce9c2e78df79cb603c58639421d29701633) ) | |
| 3386 | ||
| 3387 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3388 | ROM_LOAD( "p7.rom", 0x0000, 0x4000, CRC(dbc19736) SHA1(fe365d70ead8243374979d2162c395fed9870405) ) | |
| 3389 | ROM_LOAD( "p8.rom", 0x4000, 0x4000, CRC(537726a9) SHA1(ddf66946be71d2e6ab2cc53150e3b36d45dde2eb) ) | |
| 3390 | ROM_LOAD( "p9.bin", 0x8000, 0x4000, CRC(aef5a4f4) SHA1(e908e79e27ff892fe75d1ba5cb0bc9dc6b7b4268) ) | |
| 3391 | ||
| 3392 | ROM_REGION( 0x2000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 3393 | ROM_LOAD( "p14.h1", 0x0000, 0x2000, CRC(e599bd30) SHA1(bf70aae9a15d548bb532ca1fc8d7220dfa150d6e) ) | |
| 3394 | ||
| 3395 | ROM_REGION( 0x8000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 3396 | ROM_LOAD( "p10.bin", 0x0000, 0x8000, CRC(00dff996) SHA1(4f6ce4c0f2da0d2a711bcbf9aa998b4e31d0d9bf) ) | |
| 3397 | ||
| 3398 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 3399 | ROM_LOAD( "p11.bin", 0x04000, 0x4000, CRC(7feac86c) SHA1(13b81f006ec587583416c1e7432da4c3f0375924) ) | |
| 3400 | ROM_CONTINUE( 0x00000, 0x4000) | |
| 3401 | ROM_LOAD( "p12.bin", 0x0c000, 0x4000, CRC(6895990b) SHA1(e84554cae9a768021c3dc7183bc3d28e2dd768ee) ) | |
| 3402 | ROM_CONTINUE( 0x08000, 0x4000) | |
| 3403 | ROM_LOAD( "p13.bin", 0x14000, 0x4000, CRC(87a81ce1) SHA1(28c1069e6c08ecd579f99620c1cb6df01ad1aa74) ) | |
| 3404 | ROM_CONTINUE( 0x10000, 0x4000) | |
| 3405 | ||
| 3406 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 3407 | ROM_LOAD( "mb7122h.f12", 0x000, 0x00400, CRC(5b0a0059) SHA1(f61e17c8959f1cd6cc12b38f2fb7c6190ebd0e0c) ) | |
| 3408 | ROM_LOAD( "mb7122h.f13", 0x400, 0x00400, CRC(37e28dd8) SHA1(681726e490872a574dd0295823a44d64ef3a7b45) ) | |
| 3409 | ROM_LOAD( "mb7122h.f14", 0x800, 0x00400, CRC(c3fd1dd3) SHA1(c48030cc458f0bebea0ffccf3d3c43260da6a7fb) ) | |
| 3410 | ||
| 3411 | ROM_REGION( 0x0600, "plds", ROMREGION_DISPOSE ) | |
| 3412 | ROM_LOAD( "pal16l8a-1.bin", 0x0000, 0x0104, CRC(4e3f9e0d) SHA1(de448d50c0d1cdef159a8c4028846142210eba0b) ) | |
| 3413 | ROM_LOAD( "pal16l8a-2.bin", 0x0200, 0x0104, CRC(2a681f9e) SHA1(b26eb631d3e4fa6850a109a9a63d377cf86923bc) ) | |
| 3414 | ROM_LOAD( "pal16r6a.bin", 0x0400, 0x0104, CRC(59c03681) SHA1(d21090b35596c28d44862782386e84dfc1feff0c) ) | |
| 3415 | ROM_END | |
| 3416 | ||
| 1205 | 3417 | /***********************************************************************/ |
| 1206 | 3418 | |
| 1207 | 3419 | ROM_START( tnk3 ) |
| 1208 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3420 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1209 | 3421 | ROM_LOAD( "tnk3-p1.bin", 0x0000, 0x4000, CRC(0d2a8ca9) SHA1(eba950dab044496e8c1c02af20a9d380996ea20a) ) |
| 1210 | 3422 | ROM_LOAD( "tnk3-p2.bin", 0x4000, 0x4000, CRC(0ae0a483) SHA1(6a1ba86da4fd75bfb00855db04eac2727ec4159e) ) |
| 1211 | 3423 | ROM_LOAD( "tnk3-p3.bin", 0x8000, 0x4000, CRC(d16dd4db) SHA1(dcbc61251c13e11ce3cdd7a5ad200cd2d2758cab) ) |
| 1212 | 3424 | |
| 1213 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3425 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1214 | 3426 | ROM_LOAD( "tnk3-p4.bin", 0x0000, 0x4000, CRC(01b45a90) SHA1(85ba3b157cd6463c92ed831bb48d38f3a16f9537) ) |
| 1215 | 3427 | ROM_LOAD( "tnk3-p5.bin", 0x4000, 0x4000, CRC(60db6667) SHA1(9c4bb99473c6d9b8ac9086b7364b6278b70757f6) ) |
| 1216 | 3428 | ROM_LOAD( "tnk3-p6.bin", 0x8000, 0x4000, CRC(4761fde7) SHA1(dadf60e33f5dd8108478ca480bcef6b2624cfca8) ) |
| 1217 | 3429 | |
| 1218 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3430 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1219 | 3431 | ROM_LOAD( "tnk3-p10.bin", 0x0000, 0x4000, CRC(7bf0a517) SHA1(0197feeaf511ac59f3df8195ec57e947fb08e995) ) |
| 1220 | 3432 | ROM_LOAD( "tnk3-p11.bin", 0x4000, 0x4000, CRC(0569ce27) SHA1(7aa73f57ad97445ce5729f05cd8d24973886dbf5) ) |
| 1221 | 3433 | |
| r3115 | r3116 | |
| 1224 | 3436 | ROM_LOAD( "7122.1", 0x400, 0x400, CRC(6d0ac66a) SHA1(e792218ec43dd10473dc020afed8527cf43ea0d0) ) |
| 1225 | 3437 | ROM_LOAD( "7122.0", 0x800, 0x400, CRC(4662b4c8) SHA1(391c2b8a17ce2e092b46a17fc4170dc1e3bde426) ) |
| 1226 | 3438 | |
| 1227 | ROM_REGION( 0x4000, " | |
| 3439 | ROM_REGION( 0x4000, " | |
| 1228 | 3440 | ROM_LOAD( "tnk3-p14.bin", 0x0000, 0x2000, CRC(1fd18c43) SHA1(611b5aa97df84c0117681772deb006f32a899ad3) ) |
| 1229 | 3441 | ROM_RELOAD( 0x2000, 0x2000 ) |
| 1230 | 3442 | |
| 1231 | ROM_REGION( 0x8000, "g | |
| 3443 | ROM_REGION( 0x8000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1232 | 3444 | ROM_LOAD( "tnk3-p12.bin", 0x0000, 0x4000, CRC(ff495a16) SHA1(e6b97a63efe58018260ff34f0ea4edc81718cb14) ) |
| 1233 | 3445 | ROM_LOAD( "tnk3-p13.bin", 0x4000, 0x4000, CRC(f8344843) SHA1(c741dc84b48f830f6d4eaa4476f5c2a391153acc) ) |
| 1234 | 3446 | |
| 1235 | ROM_REGION( 0x0c000, " | |
| 3447 | ROM_REGION( 0x0c000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1236 | 3448 | ROM_LOAD( "tnk3-p7.bin", 0x00000, 0x4000, CRC(06b92c88) SHA1(b39c2cc4a58937d89f9b0c9093b9742509db64a3) ) |
| 1237 | 3449 | ROM_LOAD( "tnk3-p8.bin", 0x04000, 0x4000, CRC(63d0e2eb) SHA1(96182639bb620d9692a4c8266130769c44dd29f8) ) |
| 1238 | 3450 | ROM_LOAD( "tnk3-p9.bin", 0x08000, 0x4000, CRC(872e3fac) SHA1(98e7e9315fe7ccc51151c67dc60a362a1c2d8372) ) |
| 1239 | 3451 | ROM_END |
| 1240 | 3452 | |
| 1241 | 3453 | ROM_START( tnk3j ) |
| 1242 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3454 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1243 | 3455 | ROM_LOAD( "p1.4e", 0x0000, 0x4000, CRC(03aca147) SHA1(9ce4cfdfbd22f10e13c8e474dc2e5aa3bfd57e0b) ) |
| 1244 | 3456 | ROM_LOAD( "tnk3-p2.bin", 0x4000, 0x4000, CRC(0ae0a483) SHA1(6a1ba86da4fd75bfb00855db04eac2727ec4159e) ) |
| 1245 | 3457 | ROM_LOAD( "tnk3-p3.bin", 0x8000, 0x4000, CRC(d16dd4db) SHA1(dcbc61251c13e11ce3cdd7a5ad200cd2d2758cab) ) |
| 1246 | 3458 | |
| 1247 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3459 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1248 | 3460 | ROM_LOAD( "tnk3-p4.bin", 0x0000, 0x4000, CRC(01b45a90) SHA1(85ba3b157cd6463c92ed831bb48d38f3a16f9537) ) |
| 1249 | 3461 | ROM_LOAD( "tnk3-p5.bin", 0x4000, 0x4000, CRC(60db6667) SHA1(9c4bb99473c6d9b8ac9086b7364b6278b70757f6) ) |
| 1250 | 3462 | ROM_LOAD( "tnk3-p6.bin", 0x8000, 0x4000, CRC(4761fde7) SHA1(dadf60e33f5dd8108478ca480bcef6b2624cfca8) ) |
| 1251 | 3463 | |
| 1252 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3464 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1253 | 3465 | ROM_LOAD( "tnk3-p10.bin", 0x0000, 0x4000, CRC(7bf0a517) SHA1(0197feeaf511ac59f3df8195ec57e947fb08e995) ) |
| 1254 | 3466 | ROM_LOAD( "tnk3-p11.bin", 0x4000, 0x4000, CRC(0569ce27) SHA1(7aa73f57ad97445ce5729f05cd8d24973886dbf5) ) |
| 1255 | 3467 | |
| r3115 | r3116 | |
| 1258 | 3470 | ROM_LOAD( "7122.1", 0x400, 0x400, CRC(6d0ac66a) SHA1(e792218ec43dd10473dc020afed8527cf43ea0d0) ) |
| 1259 | 3471 | ROM_LOAD( "7122.0", 0x800, 0x400, CRC(4662b4c8) SHA1(391c2b8a17ce2e092b46a17fc4170dc1e3bde426) ) |
| 1260 | 3472 | |
| 1261 | ROM_REGION( 0x4000, " | |
| 3473 | ROM_REGION( 0x4000, " | |
| 1262 | 3474 | ROM_LOAD( "p14.1e", 0x0000, 0x2000, CRC(6bd575ca) SHA1(446bb929fa19a7ff8b92731f71ab3e3252899f07) ) |
| 1263 | 3475 | ROM_RELOAD( 0x2000, 0x2000 ) |
| 1264 | 3476 | |
| 1265 | ROM_REGION( 0x8000, "g | |
| 3477 | ROM_REGION( 0x8000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1266 | 3478 | ROM_LOAD( "tnk3-p12.bin", 0x0000, 0x4000, CRC(ff495a16) SHA1(e6b97a63efe58018260ff34f0ea4edc81718cb14) ) |
| 1267 | 3479 | ROM_LOAD( "tnk3-p13.bin", 0x4000, 0x4000, CRC(f8344843) SHA1(c741dc84b48f830f6d4eaa4476f5c2a391153acc) ) |
| 1268 | 3480 | |
| 1269 | ROM_REGION( 0x0c000, " | |
| 3481 | ROM_REGION( 0x0c000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1270 | 3482 | ROM_LOAD( "tnk3-p7.bin", 0x00000, 0x4000, CRC(06b92c88) SHA1(b39c2cc4a58937d89f9b0c9093b9742509db64a3) ) |
| 1271 | 3483 | ROM_LOAD( "tnk3-p8.bin", 0x04000, 0x4000, CRC(63d0e2eb) SHA1(96182639bb620d9692a4c8266130769c44dd29f8) ) |
| 1272 | 3484 | ROM_LOAD( "tnk3-p9.bin", 0x08000, 0x4000, CRC(872e3fac) SHA1(98e7e9315fe7ccc51151c67dc60a362a1c2d8372) ) |
| r3115 | r3116 | |
| 1275 | 3487 | /***********************************************************************/ |
| 1276 | 3488 | |
| 1277 | 3489 | ROM_START( athena ) |
| 1278 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3490 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1279 | 3491 | ROM_LOAD( "up02_p4.rom", 0x0000, 0x4000, CRC(900a113c) SHA1(3a85f87cbf79d60f58858df4852d6d97300c9280) ) |
| 1280 | 3492 | ROM_LOAD( "up02_m4.rom", 0x4000, 0x8000, CRC(61c69474) SHA1(93f1222a3908c84fe6679e2deb90afbe4a22e675) ) |
| 1281 | 3493 | |
| 1282 | ROM_REGION( 0x10000 , "sub", 0 ) | |
| 3494 | ROM_REGION( 0x10000 , "sub", 0 ) | |
| 1283 | 3495 | ROM_LOAD( "up02_p8.rom", 0x0000, 0x4000, CRC(df50af7e) SHA1(2a69089aecf598cb11f4f1c9b42d81670f9bd68e) ) |
| 1284 | 3496 | ROM_LOAD( "up02_m8.rom", 0x4000, 0x8000, CRC(f3c933df) SHA1(70a0bf63230be53da9196fae4c3e604205275ddd) ) |
| 1285 | 3497 | |
| 1286 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3498 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1287 | 3499 | ROM_LOAD( "up02_g6.rom", 0x0000, 0x4000, CRC(42dbe029) SHA1(9aa311860693bd3e73f2b72ca4b171cb95f069ee) ) |
| 1288 | 3500 | ROM_LOAD( "up02_k6.rom", 0x4000, 0x8000, CRC(596f1c8a) SHA1(8f1400c77473c845e57a14fa479cf4f7ac66a909) ) |
| 1289 | 3501 | |
| r3115 | r3116 | |
| 1292 | 3504 | ROM_LOAD( "up02_b1.rom", 0x400, 0x400, CRC(d25c9099) SHA1(f3933075cce1255affc61dfefd9559b6e15ed29c) ) |
| 1293 | 3505 | ROM_LOAD( "up02_c1.rom", 0x800, 0x400, CRC(a4a4e7dc) SHA1(aa694c2d44dcabc6cfd46307c55c3759eff57236) ) |
| 1294 | 3506 | |
| 1295 | ROM_REGION( 0x4000, " | |
| 3507 | ROM_REGION( 0x4000, " | |
| 1296 | 3508 | ROM_LOAD( "up01_d2.rom", 0x0000, 0x4000, CRC(18b4bcca) SHA1(2476aa6c8d55e117d840202a97fe2a65e252ad7f) ) |
| 1297 | 3509 | |
| 1298 | ROM_REGION( 0x8000, "g | |
| 3510 | ROM_REGION( 0x8000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1299 | 3511 | ROM_LOAD( "up01_b2.rom", 0x0000, 0x8000, CRC(f269c0eb) SHA1(a947c6e4d82e0aafa616d25395ef63c33d9beb06) ) |
| 1300 | 3512 | |
| 1301 | ROM_REGION( 0x18000, " | |
| 3513 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1302 | 3514 | ROM_LOAD( "up01_p2.rom", 0x00000, 0x8000, CRC(c63a871f) SHA1(0ab8ebebd750fdcad283eed427179f2124b300ae) ) |
| 1303 | 3515 | ROM_LOAD( "up01_s2.rom", 0x08000, 0x8000, CRC(760568d8) SHA1(9dc447c446791c79322e21e3caef6ceae347e2fb) ) |
| 1304 | 3516 | ROM_LOAD( "up01_t2.rom", 0x10000, 0x8000, CRC(57b35c73) SHA1(6d15b94b50c3734f7d60bd9bd1c5e6c76591d829) ) |
| r3115 | r3116 | |
| 1307 | 3519 | /***********************************************************************/ |
| 1308 | 3520 | |
| 1309 | 3521 | ROM_START( fitegolf ) |
| 1310 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3522 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1311 | 3523 | ROM_LOAD( "gu2", 0x0000, 0x4000, CRC(19be7ad6) SHA1(6f0faf606e44a3f8cc027699cc816aa3414a1b98) ) |
| 1312 | 3524 | ROM_LOAD( "gu1", 0x4000, 0x8000, CRC(bc32568f) SHA1(35fec3dbdd773ec7f427ecdd81066fb8f1b74e05) ) |
| 1313 | 3525 | |
| 1314 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3526 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1315 | 3527 | ROM_LOAD( "gu6", 0x0000, 0x4000, CRC(2b9978c5) SHA1(5490e9f796697318650fc5f70c0e64d6785ad7fc) ) |
| 1316 | 3528 | ROM_LOAD( "gu5", 0x4000, 0x8000, CRC(ea3d138c) SHA1(af0a0bfe2d266179946948cf42fe697505798a4f) ) |
| 1317 | 3529 | |
| 1318 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3530 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1319 | 3531 | ROM_LOAD( "gu3", 0x0000, 0x4000, CRC(811b87d7) SHA1(fb387f42085d6e0e5a88729ca0e50656411ce037) ) |
| 1320 | 3532 | ROM_LOAD( "gu4", 0x4000, 0x8000, CRC(2d998e2b) SHA1(a471cfbb4dabc90fcc29c562620b9965eaff6861) ) |
| 1321 | 3533 | |
| r3115 | r3116 | |
| 1324 | 3536 | ROM_LOAD( "82s137.1b", 0x00400, 0x00400, CRC(29e7986f) SHA1(85ba8d3443458c27728f633745857a1315dd183f) ) |
| 1325 | 3537 | ROM_LOAD( "82s137.1c", 0x00800, 0x00400, CRC(27ba9ff9) SHA1(f021d10460f40de4447560df5ac47fa53bb57ff9) ) |
| 1326 | 3538 | |
| 1327 | ROM_REGION( 0x4000, " | |
| 3539 | ROM_REGION( 0x4000, " | |
| 1328 | 3540 | ROM_LOAD( "gu8", 0x0000, 0x4000, CRC(f1628dcf) SHA1(efea343d3a9dd45ef74947c297e166e34afbb680) ) |
| 1329 | 3541 | |
| 1330 | ROM_REGION( 0x8000, "g | |
| 3542 | ROM_REGION( 0x8000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1331 | 3543 | ROM_LOAD( "gu7", 0x0000, 0x8000, CRC(4655f94e) SHA1(08526206d8e929bb01d61fff8de2ee99fd287c17) ) |
| 1332 | 3544 | |
| 1333 | ROM_REGION( 0x18000, " | |
| 3545 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1334 | 3546 | ROM_LOAD( "gu9", 0x00000, 0x8000, CRC(d4957ec5) SHA1(8ead7866ba5ac66ead6b707aa868bcae30c486e1) ) |
| 1335 | 3547 | ROM_LOAD( "gu10", 0x08000, 0x8000, CRC(b3acdac2) SHA1(7377480d5e1b5ab2c49f5fee2927623ce8240e19) ) |
| 1336 | 3548 | ROM_LOAD( "gu11", 0x10000, 0x8000, CRC(b99cf73b) SHA1(23989fc3914e77d364807a9eb96a4ddf75ad7cf1) ) |
| r3115 | r3116 | |
| 1342 | 3554 | ROM_END |
| 1343 | 3555 | |
| 1344 | 3556 | ROM_START( fitegol2 ) |
| 1345 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3557 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1346 | 3558 | ROM_LOAD( "np45.128", 0x0000, 0x4000, CRC(16e8e763) SHA1(0b5296f2a91a7f3176b7461ca4958865ce998241) ) |
| 1347 | 3559 | ROM_LOAD( "mn45.256", 0x4000, 0x8000, CRC(a4fa09d5) SHA1(ae7f0cb47de06006ae71252c4201a93a01a26887) ) |
| 1348 | 3560 | |
| 1349 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3561 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1350 | 3562 | ROM_LOAD( "gu6", 0x0000, 0x4000, CRC(2b9978c5) SHA1(5490e9f796697318650fc5f70c0e64d6785ad7fc) ) // NP8.256 |
| 1351 | 3563 | ROM_LOAD( "gu5", 0x4000, 0x8000, CRC(ea3d138c) SHA1(af0a0bfe2d266179946948cf42fe697505798a4f) ) // MN8.256 |
| 1352 | 3564 | |
| 1353 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3565 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1354 | 3566 | ROM_LOAD( "gu3", 0x0000, 0x4000, CRC(811b87d7) SHA1(fb387f42085d6e0e5a88729ca0e50656411ce037) ) // FG67.256 |
| 1355 | 3567 | ROM_LOAD( "gu4", 0x4000, 0x8000, CRC(2d998e2b) SHA1(a471cfbb4dabc90fcc29c562620b9965eaff6861) ) // K67.256 |
| 1356 | 3568 | |
| r3115 | r3116 | |
| 1359 | 3571 | ROM_LOAD( "82s137.1b", 0x00400, 0x00400, CRC(29e7986f) SHA1(85ba8d3443458c27728f633745857a1315dd183f) ) |
| 1360 | 3572 | ROM_LOAD( "82s137.1c", 0x00800, 0x00400, CRC(27ba9ff9) SHA1(f021d10460f40de4447560df5ac47fa53bb57ff9) ) |
| 1361 | 3573 | |
| 1362 | ROM_REGION( 0x4000, " | |
| 3574 | ROM_REGION( 0x4000, " | |
| 1363 | 3575 | ROM_LOAD( "gu8", 0x0000, 0x4000, CRC(f1628dcf) SHA1(efea343d3a9dd45ef74947c297e166e34afbb680) ) // D2.128 |
| 1364 | 3576 | |
| 1365 | ROM_REGION( 0x8000, "g | |
| 3577 | ROM_REGION( 0x8000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1366 | 3578 | ROM_LOAD( "gu7", 0x0000, 0x8000, CRC(4655f94e) SHA1(08526206d8e929bb01d61fff8de2ee99fd287c17) ) // BC2.256 |
| 1367 | 3579 | |
| 1368 | ROM_REGION( 0x18000, " | |
| 3580 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1369 | 3581 | ROM_LOAD( "gu9", 0x00000, 0x8000, CRC(d4957ec5) SHA1(8ead7866ba5ac66ead6b707aa868bcae30c486e1) ) // P2.256 |
| 1370 | 3582 | ROM_LOAD( "gu10", 0x08000, 0x8000, CRC(b3acdac2) SHA1(7377480d5e1b5ab2c49f5fee2927623ce8240e19) ) // R2.256 |
| 1371 | 3583 | ROM_LOAD( "gu11", 0x10000, 0x8000, CRC(b99cf73b) SHA1(23989fc3914e77d364807a9eb96a4ddf75ad7cf1) ) // S2.256 |
| r3115 | r3116 | |
| 1376 | 3588 | ROM_LOAD( "pal20l8a.6r", 0x0400, 0x0144, CRC(0f011673) SHA1(383e6f6e78daec9c874d5b48378111ca60f5ed64) ) |
| 1377 | 3589 | ROM_END |
| 1378 | 3590 | |
| 3591 | /***********************************************************************/ | |
| 1379 | 3592 | |
| 1380 | 3593 | /* |
| 1381 | 3594 | Country Club |
| r3115 | r3116 | |
| 1409 | 3622 | cc8.7e 27c256 \ |
| 1410 | 3623 | cc9.7g '' | gfx |
| 1411 | 3624 | cc10.7h '' / |
| 1412 | cc1pr.5f 63s441 \ | |
| 1413 | cc2pr.5g '' | proms | |
| 1414 | cc3pr.5h '' / | |
| 3625 | cc1pr.5f 63s441 \ | |
| 3626 | cc2pr.5g '' | proms | |
| 3627 | cc3pr.5h '' / | |
| 1415 | 3628 | |
| 1416 | 3629 | |
| 1417 | 3630 | 3rd PCB (Video board) |
| r3115 | r3116 | |
| 1427 | 3640 | */ |
| 1428 | 3641 | |
| 1429 | 3642 | ROM_START( countryc ) |
| 1430 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3643 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1431 | 3644 | ROM_LOAD( "cc2.2e", 0x0000, 0x04000, CRC(43d205e0) SHA1(d32f597bf2b70e326e68583cb95e0beeea34d5d0) ) |
| 1432 | 3645 | ROM_LOAD( "cc3.2g", 0x4000, 0x04000, CRC(7290770f) SHA1(41184047e3e21f6ff4f724d59f4c6f34b19bcfc1) ) |
| 1433 | 3646 | ROM_LOAD( "cc4.2h", 0x8000, 0x04000, CRC(61990582) SHA1(b12e6da3b8d7690bf6848a624b42dcb93f69ead7) ) |
| 1434 | 3647 | |
| 1435 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3648 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1436 | 3649 | ROM_LOAD( "cc5.4e", 0x00000, 0x4000, CRC(07666af8) SHA1(4b4c51bd1bc5ee49bb516e6851b2e6b5a7780576) ) |
| 1437 | 3650 | ROM_LOAD( "cc6.4g", 0x04000, 0x4000, CRC(ab18fd9f) SHA1(30a30998191cb81a6bfcd672e54f8a155639ccd7) ) |
| 1438 | 3651 | ROM_LOAD( "cc7.4h", 0x08000, 0x4000, CRC(58a1ec0c) SHA1(877935463121a992851e9b76074e1a4d033a0b2e) ) |
| 1439 | 3652 | |
| 1440 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3653 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1441 | 3654 | ROM_LOAD( "cc1.1f", 0x00000, 0x10000, CRC(863f1624) SHA1(11c0aeefaddf16cc9e1c259e97b90fe418d70c89) ) |
| 1442 | 3655 | |
| 1443 | 3656 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 1445 | 3658 | ROM_LOAD( "cc2pr.5g", 0x400, 0x00400, CRC(982e4f46) SHA1(c4703a35201bc4c6b43f629a9a6a4c66354c6305) ) |
| 1446 | 3659 | ROM_LOAD( "cc3pr.5h", 0x800, 0x00400, CRC(47f2b83d) SHA1(6335be47f09ad33d7e05fda26a2f3fb9048dbbc2) ) |
| 1447 | 3660 | |
| 1448 | ROM_REGION( 0x4000, " | |
| 3661 | ROM_REGION( 0x4000, " | |
| 1449 | 3662 | ROM_LOAD( "cc11.1e", 0x0000, 0x4000, CRC(ce927ac7) SHA1(a0dd281912aa9ae7e408c2132fae30bffbc83750) ) |
| 1450 | 3663 | |
| 1451 | ROM_REGION( 0x8000, "g | |
| 3664 | ROM_REGION( 0x8000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1452 | 3665 | ROM_LOAD( "cc13.2d", 0x0000, 0x4000, CRC(ef86c388) SHA1(19e443f6a4901a3c9db868964c08b0f58be1983d) ) |
| 1453 | 3666 | ROM_LOAD( "cc12.2c", 0x4000, 0x4000, CRC(d7d55a36) SHA1(1956097c2633f603cc1557f6e686b3c06b199dd8) ) |
| 1454 | 3667 | |
| 1455 | ROM_REGION( 0x18000, " | |
| 3668 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1456 | 3669 | ROM_LOAD( "cc10.7h", 0x00000, 0x8000, CRC(90091667) SHA1(d0d3813a0c3ac7e9e9ab824292dccb27c2087ea7) ) |
| 1457 | 3670 | ROM_LOAD( "cc9.7g", 0x08000, 0x8000, CRC(56249142) SHA1(10b703f15977ba21757aee3d212790372b35cc66) ) |
| 1458 | 3671 | ROM_LOAD( "cc8.7e", 0x10000, 0x8000, CRC(55943065) SHA1(ea545c6e8666c915994836d2f2cfc02db35e37c1) ) |
| r3115 | r3116 | |
| 1461 | 3674 | /***********************************************************************/ |
| 1462 | 3675 | |
| 1463 | 3676 | ROM_START( ikari ) |
| 1464 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3677 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1465 | 3678 | ROM_LOAD( "1.rom", 0x0000, 0x10000, CRC(52a8b2dd) SHA1(a896387d68ed9a55c313bdb81acdf8d68b7a1264) ) |
| 1466 | 3679 | |
| 1467 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3680 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1468 | 3681 | ROM_LOAD( "2.rom", 0x0000, 0x10000, CRC(45364d55) SHA1(323b998f782a4681ceb18016c5fb0fa1d6361aac) ) |
| 1469 | 3682 | |
| 1470 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3683 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1471 | 3684 | ROM_LOAD( "3.rom", 0x0000, 0x10000, CRC(56a26699) SHA1(e9ccb27f1e711e4648fdfe3c7ff956038d3e101c) ) |
| 1472 | 3685 | |
| 1473 | 3686 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 1475 | 3688 | ROM_LOAD( "7122eg.prm", 0x400, 0x400, CRC(0703a770) SHA1(62861ef4987003d4965ef5018ccdf7157981d939) ) |
| 1476 | 3689 | ROM_LOAD( "7122eb.prm", 0x800, 0x400, CRC(0a11cdde) SHA1(faae17398341317e7afbd06b903b8e9e65967bf1) ) |
| 1477 | 3690 | |
| 1478 | ROM_REGION( 0x4000, " | |
| 3691 | ROM_REGION( 0x4000, " | |
| 1479 | 3692 | ROM_LOAD( "7.rom", 0x00000, 0x4000, CRC(a7eb4917) SHA1(6c07323cc243df4c5c30bc0daedbff3887309f65) ) |
| 1480 | 3693 | |
| 1481 | ROM_REGION( 0x20000, "g | |
| 3694 | ROM_REGION( 0x20000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1482 | 3695 | ROM_LOAD( "17.rom", 0x00000, 0x8000, CRC(e0dba976) SHA1(5a8f14f7a199b5fb1862debda0bceee42cddac59) ) |
| 1483 | 3696 | ROM_LOAD( "18.rom", 0x08000, 0x8000, CRC(24947d5f) SHA1(ffd18074ced8171c9da56c839e8289afc29af2c9) ) |
| 1484 | 3697 | ROM_LOAD( "19.rom", 0x10000, 0x8000, CRC(9ee59e91) SHA1(fe51d13ab73cb596a233669e304b2be66f9becae) ) |
| 1485 | 3698 | ROM_LOAD( "20.rom", 0x18000, 0x8000, CRC(5da7ec1a) SHA1(4b212c1dfe4c18eced90ee3a783e7edf8d23c906) ) |
| 1486 | 3699 | |
| 1487 | ROM_REGION( 0x18000, " | |
| 3700 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1488 | 3701 | ROM_LOAD( "8.rom", 0x00000, 0x8000, CRC(9827c14a) SHA1(b54dcee95c6f6e46c187a117b4e7aaf1c0ece6c6) ) |
| 1489 | 3702 | ROM_LOAD( "9.rom", 0x08000, 0x8000, CRC(545c790c) SHA1(7738738f4a1343b04efd029ecaefac74010451f0) ) |
| 1490 | 3703 | ROM_LOAD( "10.rom", 0x10000, 0x8000, CRC(ec9ba07e) SHA1(6b492b2cd7b8cca948ce39c3450f1cc153f41d90) ) |
| 1491 | 3704 | |
| 1492 | ROM_REGION( 0x30000, " | |
| 3705 | ROM_REGION( 0x30000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 1493 | 3706 | ROM_LOAD( "11.rom", 0x00000, 0x8000, CRC(5c75ea8f) SHA1(4e8ee56a2dbeb9ac2dd74bc584dba29433d91ae0) ) |
| 1494 | 3707 | ROM_LOAD( "14.rom", 0x08000, 0x8000, CRC(3293fde4) SHA1(3e2f0fa00c22f1c0c1427d8d3de57dd9ec7682a9) ) |
| 1495 | 3708 | ROM_LOAD( "12.rom", 0x10000, 0x8000, CRC(95138498) SHA1(8ac3d2cd793312434b9ffb8c47c30473f713e0e8) ) |
| r3115 | r3116 | |
| 1498 | 3711 | ROM_LOAD( "16.rom", 0x28000, 0x8000, CRC(e9b03e07) SHA1(124e5328a965ea2af28c4d74934a82394a2ffd72) ) |
| 1499 | 3712 | ROM_END |
| 1500 | 3713 | |
| 3714 | ROM_START( ikaria ) | |
| 3715 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3716 | ROM_LOAD( "p1", 0x0000, 0x4000, CRC(738fcec4) SHA1(24a29f9487064b745262638350a332996b986e5d) ) | |
| 3717 | ROM_LOAD( "p2", 0x4000, 0x8000, CRC(89f7945a) SHA1(39f7f40b2028a77d6e7c79f27c2420b8422b5dab) ) | |
| 3718 | ||
| 3719 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3720 | ROM_LOAD( "p3", 0x0000, 0x4000, CRC(8a9bd1f0) SHA1(dbf855e328daeddd38c64b7af2d303426d13bf3b) ) | |
| 3721 | ROM_LOAD( "p4", 0x4000, 0x8000, CRC(f4101cb4) SHA1(cee0eb1cae9f584fb5a866d3a8725f6a3feba912) ) | |
| 3722 | ||
| 3723 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3724 | ROM_LOAD( "ik5", 0x0000, 0x4000, CRC(863448fa) SHA1(19cad05dc9c4495f36e0d8627927ea6d0a971824) ) // p5 | |
| 3725 | ROM_LOAD( "ik6", 0x4000, 0x8000, CRC(9b16aa57) SHA1(69866ce41c587721702c92ac2e9ba3f6645004cf) ) // p6 | |
| 3726 | ||
| 3727 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 3728 | ROM_LOAD( "7122er.prm", 0x000, 0x400, CRC(b9bf2c2c) SHA1(8eb62152dcb04f463baf6ec2a66148eb947403ef) ) | |
| 3729 | ROM_LOAD( "7122eg.prm", 0x400, 0x400, CRC(0703a770) SHA1(62861ef4987003d4965ef5018ccdf7157981d939) ) | |
| 3730 | ROM_LOAD( "7122eb.prm", 0x800, 0x400, CRC(0a11cdde) SHA1(faae17398341317e7afbd06b903b8e9e65967bf1) ) | |
| 3731 | ||
| 3732 | ROM_REGION( 0x4000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 3733 | ROM_LOAD( "7.rom", 0x00000, 0x4000, CRC(a7eb4917) SHA1(6c07323cc243df4c5c30bc0daedbff3887309f65) ) // p7 | |
| 3734 | ||
| 3735 | ROM_REGION( 0x20000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 3736 | ROM_LOAD( "17.rom", 0x00000, 0x8000, CRC(e0dba976) SHA1(5a8f14f7a199b5fb1862debda0bceee42cddac59) ) | |
| 3737 | ROM_LOAD( "18.rom", 0x08000, 0x8000, CRC(24947d5f) SHA1(ffd18074ced8171c9da56c839e8289afc29af2c9) ) | |
| 3738 | ROM_LOAD( "19.rom", 0x10000, 0x8000, CRC(9ee59e91) SHA1(fe51d13ab73cb596a233669e304b2be66f9becae) ) | |
| 3739 | ROM_LOAD( "20.rom", 0x18000, 0x8000, CRC(5da7ec1a) SHA1(4b212c1dfe4c18eced90ee3a783e7edf8d23c906) ) | |
| 3740 | ||
| 3741 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 3742 | ROM_LOAD( "8.rom", 0x00000, 0x8000, CRC(9827c14a) SHA1(b54dcee95c6f6e46c187a117b4e7aaf1c0ece6c6) ) // p8 | |
| 3743 | ROM_LOAD( "9.rom", 0x08000, 0x8000, CRC(545c790c) SHA1(7738738f4a1343b04efd029ecaefac74010451f0) ) // p9 | |
| 3744 | ROM_LOAD( "10.rom", 0x10000, 0x8000, CRC(ec9ba07e) SHA1(6b492b2cd7b8cca948ce39c3450f1cc153f41d90) ) // p10 | |
| 3745 | ||
| 3746 | ROM_REGION( 0x30000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 3747 | ROM_LOAD( "11.rom", 0x00000, 0x8000, CRC(5c75ea8f) SHA1(4e8ee56a2dbeb9ac2dd74bc584dba29433d91ae0) ) | |
| 3748 | ROM_LOAD( "14.rom", 0x08000, 0x8000, CRC(3293fde4) SHA1(3e2f0fa00c22f1c0c1427d8d3de57dd9ec7682a9) ) | |
| 3749 | ROM_LOAD( "12.rom", 0x10000, 0x8000, CRC(95138498) SHA1(8ac3d2cd793312434b9ffb8c47c30473f713e0e8) ) | |
| 3750 | ROM_LOAD( "15.rom", 0x18000, 0x8000, CRC(65a61c99) SHA1(767694c919180de208b6211b593db68fc5a66ff1) ) | |
| 3751 | ROM_LOAD( "13.rom", 0x20000, 0x8000, CRC(315383d7) SHA1(1c1c5931e3447c4dcbd54fc8ae383b03cb5fbf5b) ) | |
| 3752 | ROM_LOAD( "16.rom", 0x28000, 0x8000, CRC(e9b03e07) SHA1(124e5328a965ea2af28c4d74934a82394a2ffd72) ) | |
| 3753 | ||
| 3754 | ROM_REGION( 0x0800, "plds", ROMREGION_DISPOSE ) | |
| 3755 | ROM_LOAD( "ampal16r6a-a5004.1", 0x0000, 0x0104, CRC(a2e9a162) SHA1(35abf667725abea74d36c76552387e7a1debe75a) ) | |
| 3756 | ROM_LOAD( "pal20l8a-a5004.2", 0x0200, 0x0144, CRC(28f2c404) SHA1(d0832ef9e6be6449018f9b224d5f7203820a5135) ) | |
| 3757 | ROM_LOAD( "ampal16l8a-a5004.3", 0x0400, 0x0104, CRC(540351f2) SHA1(d9c3aebb839935c8b49678693b87cc2bca2a674d) ) | |
| 3758 | ROM_LOAD( "ampal16l8a-a5004.4", 0x0600, 0x0104, CRC(540351f2) SHA1(d9c3aebb839935c8b49678693b87cc2bca2a674d) ) | |
| 3759 | ROM_END | |
| 3760 | ||
| 1501 | 3761 | ROM_START( ikarijp ) |
| 1502 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3762 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1503 | 3763 | ROM_LOAD( "up03_l4.rom", 0x0000, 0x4000, CRC(cde006be) SHA1(a42e23659cf0ea5194f8a7a9a1679ebcaed75ead) ) |
| 1504 | 3764 | ROM_LOAD( "up03_k4.rom", 0x4000, 0x8000, CRC(26948850) SHA1(bfeba5f7019f6eaacf2a5464756d9cb283c5f5a2) ) |
| 1505 | 3765 | |
| 1506 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3766 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1507 | 3767 | ROM_LOAD( "ik3", 0x0000, 0x4000, CRC(9bb385f8) SHA1(70cc30bece54c28205017e755dc32a1c088f9f80) ) |
| 1508 | 3768 | ROM_LOAD( "ik4", 0x4000, 0x8000, CRC(3a144bca) SHA1(c1b09bffb8d89e607332304b1d8845794f25273f) ) |
| 1509 | 3769 | |
| 1510 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3770 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1511 | 3771 | ROM_LOAD( "ik5", 0x0000, 0x4000, CRC(863448fa) SHA1(19cad05dc9c4495f36e0d8627927ea6d0a971824) ) |
| 1512 | 3772 | ROM_LOAD( "ik6", 0x4000, 0x8000, CRC(9b16aa57) SHA1(69866ce41c587721702c92ac2e9ba3f6645004cf) ) |
| 1513 | 3773 | |
| r3115 | r3116 | |
| 1516 | 3776 | ROM_LOAD( "7122eg.prm", 0x400, 0x400, CRC(0703a770) SHA1(62861ef4987003d4965ef5018ccdf7157981d939) ) |
| 1517 | 3777 | ROM_LOAD( "7122eb.prm", 0x800, 0x400, CRC(0a11cdde) SHA1(faae17398341317e7afbd06b903b8e9e65967bf1) ) |
| 1518 | 3778 | |
| 1519 | ROM_REGION( 0x4000, "gfx1", ROMREGION_DISPOSE ) /* characters */ | |
| 1520 | ROM_LOAD( "ik7", 0x00000, 0x4000, CRC(9e88f536) SHA1(80e9aadeb626e60318a2139fd1b3875f6256c492) ) /* characters */ | |
| 3779 | ROM_REGION( 0x4000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 3780 | ROM_LOAD( "ik7", 0x00000, 0x4000, CRC(9e88f536) SHA1(80e9aadeb626e60318a2139fd1b3875f6256c492) ) | |
| 1521 | 3781 | |
| 1522 | ROM_REGION( 0x20000, "g | |
| 3782 | ROM_REGION( 0x20000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1523 | 3783 | ROM_LOAD( "17.rom", 0x00000, 0x8000, CRC(e0dba976) SHA1(5a8f14f7a199b5fb1862debda0bceee42cddac59) ) |
| 1524 | 3784 | ROM_LOAD( "18.rom", 0x08000, 0x8000, CRC(24947d5f) SHA1(ffd18074ced8171c9da56c839e8289afc29af2c9) ) |
| 1525 | ROM_LOAD( "ik19", 0x10000, 0x8000, CRC(566242ec) SHA1(ca25587460491597d462d2526d59afbc9b92fb75) ) | |
| 3785 | ROM_LOAD( "ik19", 0x10000, 0x8000, CRC(566242ec) SHA1(ca25587460491597d462d2526d59afbc9b92fb75) ) | |
| 1526 | 3786 | ROM_LOAD( "20.rom", 0x18000, 0x8000, CRC(5da7ec1a) SHA1(4b212c1dfe4c18eced90ee3a783e7edf8d23c906) ) |
| 1527 | 3787 | |
| 1528 | ROM_REGION( 0x18000, " | |
| 3788 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1529 | 3789 | ROM_LOAD( "ik8", 0x00000, 0x8000, CRC(75d796d0) SHA1(395c1d22b935c92c50a326edc8b6cd9aab235f7c) ) |
| 1530 | 3790 | ROM_LOAD( "ik9", 0x08000, 0x8000, CRC(2c34903b) SHA1(1949fc0cef4b30665ad288fa8e506a05741face0) ) |
| 1531 | 3791 | ROM_LOAD( "ik10", 0x10000, 0x8000, CRC(da9ccc94) SHA1(be3c9d44a887ac823039153b832dfae18fe69965) ) |
| 1532 | 3792 | |
| 1533 | ROM_REGION( 0x30000, " | |
| 3793 | ROM_REGION( 0x30000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 1534 | 3794 | ROM_LOAD( "11.rom", 0x00000, 0x8000, CRC(5c75ea8f) SHA1(4e8ee56a2dbeb9ac2dd74bc584dba29433d91ae0) ) |
| 1535 | 3795 | ROM_LOAD( "14.rom", 0x08000, 0x8000, CRC(3293fde4) SHA1(3e2f0fa00c22f1c0c1427d8d3de57dd9ec7682a9) ) |
| 1536 | 3796 | ROM_LOAD( "12.rom", 0x10000, 0x8000, CRC(95138498) SHA1(8ac3d2cd793312434b9ffb8c47c30473f713e0e8) ) |
| r3115 | r3116 | |
| 1546 | 3806 | ROM_END |
| 1547 | 3807 | |
| 1548 | 3808 | ROM_START( ikarijpb ) |
| 1549 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3809 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1550 | 3810 | ROM_LOAD( "ik1", 0x00000, 0x4000, CRC(2ef87dce) SHA1(4b52567fee81018f7a4b33bac79ea521c7d19d52) ) |
| 1551 | 3811 | ROM_LOAD( "up03_k4.rom", 0x04000, 0x8000, CRC(26948850) SHA1(bfeba5f7019f6eaacf2a5464756d9cb283c5f5a2) ) |
| 1552 | 3812 | |
| 1553 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3813 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1554 | 3814 | ROM_LOAD( "ik3", 0x0000, 0x4000, CRC(9bb385f8) SHA1(70cc30bece54c28205017e755dc32a1c088f9f80) ) |
| 1555 | 3815 | ROM_LOAD( "ik4", 0x4000, 0x8000, CRC(3a144bca) SHA1(c1b09bffb8d89e607332304b1d8845794f25273f) ) |
| 1556 | 3816 | |
| 1557 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3817 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1558 | 3818 | ROM_LOAD( "ik5", 0x0000, 0x4000, CRC(863448fa) SHA1(19cad05dc9c4495f36e0d8627927ea6d0a971824) ) |
| 1559 | 3819 | ROM_LOAD( "ik6", 0x4000, 0x8000, CRC(9b16aa57) SHA1(69866ce41c587721702c92ac2e9ba3f6645004cf) ) |
| 1560 | 3820 | |
| r3115 | r3116 | |
| 1563 | 3823 | ROM_LOAD( "7122eg.prm", 0x400, 0x400, CRC(0703a770) SHA1(62861ef4987003d4965ef5018ccdf7157981d939) ) |
| 1564 | 3824 | ROM_LOAD( "7122eb.prm", 0x800, 0x400, CRC(0a11cdde) SHA1(faae17398341317e7afbd06b903b8e9e65967bf1) ) |
| 1565 | 3825 | |
| 1566 | ROM_REGION( 0x4000, " | |
| 3826 | ROM_REGION( 0x4000, " | |
| 1567 | 3827 | ROM_LOAD( "ik7", 0x0000, 0x4000, CRC(9e88f536) SHA1(80e9aadeb626e60318a2139fd1b3875f6256c492) ) |
| 1568 | 3828 | |
| 1569 | ROM_REGION( 0x20000, "g | |
| 3829 | ROM_REGION( 0x20000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1570 | 3830 | ROM_LOAD( "17.rom", 0x00000, 0x8000, CRC(e0dba976) SHA1(5a8f14f7a199b5fb1862debda0bceee42cddac59) ) |
| 1571 | 3831 | ROM_LOAD( "18.rom", 0x08000, 0x8000, CRC(24947d5f) SHA1(ffd18074ced8171c9da56c839e8289afc29af2c9) ) |
| 1572 | 3832 | ROM_LOAD( "ik19", 0x10000, 0x8000, CRC(566242ec) SHA1(ca25587460491597d462d2526d59afbc9b92fb75) ) |
| 1573 | 3833 | ROM_LOAD( "20.rom", 0x18000, 0x8000, CRC(5da7ec1a) SHA1(4b212c1dfe4c18eced90ee3a783e7edf8d23c906) ) |
| 1574 | 3834 | |
| 1575 | ROM_REGION( 0x18000, " | |
| 3835 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1576 | 3836 | ROM_LOAD( "ik8", 0x00000, 0x8000, CRC(75d796d0) SHA1(395c1d22b935c92c50a326edc8b6cd9aab235f7c) ) |
| 1577 | 3837 | ROM_LOAD( "ik9", 0x08000, 0x8000, CRC(2c34903b) SHA1(1949fc0cef4b30665ad288fa8e506a05741face0) ) |
| 1578 | 3838 | ROM_LOAD( "ik10", 0x10000, 0x8000, CRC(da9ccc94) SHA1(be3c9d44a887ac823039153b832dfae18fe69965) ) |
| 1579 | 3839 | |
| 1580 | ROM_REGION( 0x30000, " | |
| 3840 | ROM_REGION( 0x30000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 1581 | 3841 | ROM_LOAD( "11.rom", 0x00000, 0x8000, CRC(5c75ea8f) SHA1(4e8ee56a2dbeb9ac2dd74bc584dba29433d91ae0) ) |
| 1582 | 3842 | ROM_LOAD( "14.rom", 0x08000, 0x8000, CRC(3293fde4) SHA1(3e2f0fa00c22f1c0c1427d8d3de57dd9ec7682a9) ) |
| 1583 | 3843 | ROM_LOAD( "12.rom", 0x10000, 0x8000, CRC(95138498) SHA1(8ac3d2cd793312434b9ffb8c47c30473f713e0e8) ) |
| r3115 | r3116 | |
| 1589 | 3849 | /***********************************************************************/ |
| 1590 | 3850 | |
| 1591 | 3851 | ROM_START( victroad ) |
| 1592 | ROM_REGION( 0x10000, "main", 0 ) | |
| 3852 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1593 | 3853 | ROM_LOAD( "p1", 0x0000, 0x10000, CRC(e334acef) SHA1(f6d8da554276abbe5579c92eea46591a92623f6e) ) |
| 1594 | 3854 | |
| 1595 | ROM_REGION( 0x10000 , "sub", 0 ) | |
| 3855 | ROM_REGION( 0x10000 , "sub", 0 ) | |
| 1596 | 3856 | ROM_LOAD( "p2", 0x00000, 0x10000, CRC(907fac83) SHA1(691d95f95ef7a308c7f5e7defb20971b54423745) ) |
| 1597 | 3857 | |
| 1598 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3858 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1599 | 3859 | ROM_LOAD( "p3", 0x00000, 0x10000, CRC(bac745f6) SHA1(c118d94aff16cbf1b85615ff5a93292f6e98c149) ) |
| 1600 | 3860 | |
| 1601 | 3861 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 1603 | 3863 | ROM_LOAD( "mb7122e.2l", 0x400, 0x400, CRC(8feca424) SHA1(c3d666f4b4b914199b24ded02f9a1b643bf90d26) ) |
| 1604 | 3864 | ROM_LOAD( "mb7122e.1l", 0x800, 0x400, CRC(220076ca) SHA1(a353c770c0ffb1105fb93c97977597ad2fda8ac8) ) |
| 1605 | 3865 | |
| 1606 | ROM_REGION( 0x4000, " | |
| 3866 | ROM_REGION( 0x4000, " | |
| 1607 | 3867 | ROM_LOAD( "p7", 0x0000, 0x4000, CRC(2b6ed95b) SHA1(dddf3aa21776778153572a20d29d47928a7116d8) ) |
| 1608 | 3868 | |
| 1609 | ROM_REGION( 0x20000, "g | |
| 3869 | ROM_REGION( 0x20000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1610 | 3870 | ROM_LOAD( "p17", 0x00000, 0x8000, CRC(19d4518c) SHA1(133ac6e3d75af6cfc9aa9d1d467f16696c7f3794) ) |
| 1611 | 3871 | ROM_LOAD( "p18", 0x08000, 0x8000, CRC(d818be43) SHA1(274827b13e8572f68302b7e0b5964d3e32544303) ) |
| 1612 | 3872 | ROM_LOAD( "p19", 0x10000, 0x8000, CRC(d64e0f89) SHA1(41204d5b0bc9d2f2599c3e881f10b73bddae3c5c) ) |
| 1613 | 3873 | ROM_LOAD( "p20", 0x18000, 0x8000, CRC(edba0f31) SHA1(b3fc886d3cf7a34b470dd72cc0268a193f9a64d7) ) |
| 1614 | 3874 | |
| 1615 | ROM_REGION( 0x18000, " | |
| 3875 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1616 | 3876 | ROM_LOAD( "p8", 0x00000, 0x8000, CRC(df7f252a) SHA1(435aade99144c9be51f65d76583256aa089cce78) ) |
| 1617 | 3877 | ROM_LOAD( "p9", 0x08000, 0x8000, CRC(9897bc05) SHA1(ec181dc64dd78ff2fab193509743376ab192b99e) ) |
| 1618 | 3878 | ROM_LOAD( "p10", 0x10000, 0x8000, CRC(ecd3c0ea) SHA1(f398b6a64706fcaa727ff1c150e05888091cb77c) ) |
| 1619 | 3879 | |
| 1620 | ROM_REGION( 0x30000, " | |
| 3880 | ROM_REGION( 0x30000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 1621 | 3881 | ROM_LOAD( "p11", 0x00000, 0x8000, CRC(668b25a4) SHA1(235423e3b442271581dde0195fdff2a37596a9bc) ) |
| 1622 | 3882 | ROM_LOAD( "p14", 0x08000, 0x8000, CRC(a7031d4a) SHA1(9ea184990372909de7d8fe0891bb3e0441b13f90) ) |
| 1623 | 3883 | ROM_LOAD( "p12", 0x10000, 0x8000, CRC(f44e95fa) SHA1(6633bd1e9e947cae5ba696f6fd393bf0cd7969b0) ) |
| r3115 | r3116 | |
| 1630 | 3890 | ROM_LOAD( "p5", 0x10000, 0x10000, CRC(93e5f110) SHA1(065a78805e50ce6a48cb7930f264bada236feb13) ) |
| 1631 | 3891 | ROM_END |
| 1632 | 3892 | |
| 1633 | ROM_START( dogosoke ) /* Victory Road Japan */ | |
| 1634 | ROM_REGION( 0x10000, "main", 0 ) /* CPU A code */ | |
| 3893 | ROM_START( dogosoke ) | |
| 3894 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1635 | 3895 | ROM_LOAD( "up03_p4.rom", 0x0000, 0x10000, CRC(37867ad2) SHA1(4444e428eb7126451f34351b1a2bc193484ca641) ) |
| 1636 | 3896 | |
| 1637 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 3897 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1638 | 3898 | ROM_LOAD( "p2", 0x00000, 0x10000, CRC(907fac83) SHA1(691d95f95ef7a308c7f5e7defb20971b54423745) ) |
| 1639 | 3899 | |
| 1640 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3900 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1641 | 3901 | ROM_LOAD( "up03_k7.rom", 0x00000, 0x10000, CRC(173fa571) SHA1(fb9c783e5377fa86f70afee6804c8ee9061b27fd) ) |
| 1642 | 3902 | |
| 1643 | 3903 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 1645 | 3905 | ROM_LOAD( "up03_l2.rom", 0x400, 0x400, CRC(99dc9792) SHA1(dcdcea2bad524776e17eaeb70dd4882283f1b125) ) |
| 1646 | 3906 | ROM_LOAD( "up03_l1.rom", 0x800, 0x400, CRC(e7213160) SHA1(bc762a346e1639c8a9636fe85c18d68a08c1b586) ) |
| 1647 | 3907 | |
| 1648 | ROM_REGION( 0x4000, " | |
| 3908 | ROM_REGION( 0x4000, " | |
| 1649 | 3909 | ROM_LOAD( "up02_b3.rom", 0x0000, 0x4000, CRC(51a4ec83) SHA1(8cb743c68a51b71ef3d78127b2cf6ab0877b13f6) ) |
| 1650 | 3910 | |
| 1651 | ROM_REGION( 0x20000, "g | |
| 3911 | ROM_REGION( 0x20000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1652 | 3912 | ROM_LOAD( "p17", 0x00000, 0x8000, CRC(19d4518c) SHA1(133ac6e3d75af6cfc9aa9d1d467f16696c7f3794) ) |
| 1653 | 3913 | ROM_LOAD( "p18", 0x08000, 0x8000, CRC(d818be43) SHA1(274827b13e8572f68302b7e0b5964d3e32544303) ) |
| 1654 | 3914 | ROM_LOAD( "p19", 0x10000, 0x8000, CRC(d64e0f89) SHA1(41204d5b0bc9d2f2599c3e881f10b73bddae3c5c) ) |
| 1655 | 3915 | ROM_LOAD( "p20", 0x18000, 0x8000, CRC(edba0f31) SHA1(b3fc886d3cf7a34b470dd72cc0268a193f9a64d7) ) |
| 1656 | 3916 | |
| 1657 | ROM_REGION( 0x18000, " | |
| 3917 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1658 | 3918 | ROM_LOAD( "up02_d3.rom", 0x00000, 0x8000, CRC(d43044f8) SHA1(4d5bc3730ea1bb1978ae246745416b71979cb100) ) |
| 1659 | 3919 | ROM_LOAD( "up02_e3.rom", 0x08000, 0x8000, CRC(365ed2d8) SHA1(e0f600c936483e3d0d03709ae709321d072145bd) ) |
| 1660 | 3920 | ROM_LOAD( "up02_g3.rom", 0x10000, 0x8000, CRC(92579bf3) SHA1(eb2084bf5c62cbbf08dc25997702f8e8eb3dcc5d) ) |
| 1661 | 3921 | |
| 1662 | ROM_REGION( 0x30000, " | |
| 3922 | ROM_REGION( 0x30000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 1663 | 3923 | ROM_LOAD( "p11", 0x00000, 0x8000, CRC(668b25a4) SHA1(235423e3b442271581dde0195fdff2a37596a9bc) ) |
| 1664 | 3924 | ROM_LOAD( "p14", 0x08000, 0x8000, CRC(a7031d4a) SHA1(9ea184990372909de7d8fe0891bb3e0441b13f90) ) |
| 1665 | 3925 | ROM_LOAD( "p12", 0x10000, 0x8000, CRC(f44e95fa) SHA1(6633bd1e9e947cae5ba696f6fd393bf0cd7969b0) ) |
| r3115 | r3116 | |
| 1672 | 3932 | ROM_LOAD( "up03_g5.rom", 0x10000, 0x10000, CRC(aae30cd6) SHA1(9d0d2c0f947387a0924bf0ed73de9305c1625054) ) |
| 1673 | 3933 | ROM_END |
| 1674 | 3934 | |
| 1675 | ROM_START( dogosokj ) /* Victory Road Japan (Joystik version) */ | |
| 1676 | ROM_REGION( 0x10000, "main", 0 ) /* CPU A code */ | |
| 3935 | ROM_START( dogosokb ) | |
| 3936 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1677 | 3937 | ROM_LOAD( "01", 0x00000, 0x10000, CRC(53b0ad90) SHA1(7581365d6c82b35189852d96437b0f19abe2cf74) ) |
| 1678 | 3938 | |
| 1679 | ROM_REGION( 0x10000 , "sub", 0 ) | |
| 3939 | ROM_REGION( 0x10000 , "sub", 0 ) | |
| 1680 | 3940 | ROM_LOAD( "p2", 0x00000, 0x10000, CRC(907fac83) SHA1(691d95f95ef7a308c7f5e7defb20971b54423745) ) |
| 1681 | 3941 | |
| 1682 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 3942 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1683 | 3943 | ROM_LOAD( "up03_k7.rom", 0x00000, 0x10000, CRC(173fa571) SHA1(fb9c783e5377fa86f70afee6804c8ee9061b27fd) ) |
| 1684 | 3944 | |
| 1685 | 3945 | ROM_REGION( 0x0c00, "proms", 0 ) |
| 1686 | ROM_LOAD( "mb7122e.1k", 0x000, 0x400, CRC(491ab831) SHA1(2801d68d8a7fddaca5c48f09d421fc48ff53d244) ) | |
| 1687 | ROM_LOAD( "mb7122e.2l", 0x400, 0x400, CRC(8feca424) SHA1(c3d666f4b4b914199b24ded02f9a1b643bf90d26) ) | |
| 1688 | ROM_LOAD( "mb7122e.1l", 0x800, 0x400, CRC(220076ca) SHA1(a353c770c0ffb1105fb93c97977597ad2fda8ac8) ) | |
| 3946 | ROM_LOAD( "up03_k1.rom", 0x000, 0x400, CRC(10a2ce2b) SHA1(8de93250b81fbabb012c96454ef3a888b2783ab5) ) | |
| 3947 | ROM_LOAD( "up03_l2.rom", 0x400, 0x400, CRC(99dc9792) SHA1(dcdcea2bad524776e17eaeb70dd4882283f1b125) ) | |
| 3948 | ROM_LOAD( "up03_l1.rom", 0x800, 0x400, CRC(e7213160) SHA1(bc762a346e1639c8a9636fe85c18d68a08c1b586) ) | |
| 1689 | 3949 | |
| 1690 | ROM_REGION( 0x4000, " | |
| 3950 | ROM_REGION( 0x4000, " | |
| 1691 | 3951 | ROM_LOAD( "up02_b3.rom", 0x0000, 0x4000, CRC(51a4ec83) SHA1(8cb743c68a51b71ef3d78127b2cf6ab0877b13f6) ) |
| 1692 | 3952 | |
| 1693 | ROM_REGION( 0x20000, "g | |
| 3953 | ROM_REGION( 0x20000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 1694 | 3954 | ROM_LOAD( "p17", 0x00000, 0x8000, CRC(19d4518c) SHA1(133ac6e3d75af6cfc9aa9d1d467f16696c7f3794) ) |
| 1695 | 3955 | ROM_LOAD( "p18", 0x08000, 0x8000, CRC(d818be43) SHA1(274827b13e8572f68302b7e0b5964d3e32544303) ) |
| 1696 | 3956 | ROM_LOAD( "p19", 0x10000, 0x8000, CRC(d64e0f89) SHA1(41204d5b0bc9d2f2599c3e881f10b73bddae3c5c) ) |
| 1697 | 3957 | ROM_LOAD( "p20", 0x18000, 0x8000, CRC(edba0f31) SHA1(b3fc886d3cf7a34b470dd72cc0268a193f9a64d7) ) |
| 1698 | 3958 | |
| 1699 | ROM_REGION( 0x18000, " | |
| 3959 | ROM_REGION( 0x18000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 1700 | 3960 | ROM_LOAD( "up02_d3.rom", 0x00000, 0x8000, CRC(d43044f8) SHA1(4d5bc3730ea1bb1978ae246745416b71979cb100) ) |
| 1701 | 3961 | ROM_LOAD( "up02_e3.rom", 0x08000, 0x8000, CRC(365ed2d8) SHA1(e0f600c936483e3d0d03709ae709321d072145bd) ) |
| 1702 | 3962 | ROM_LOAD( "up02_g3.rom", 0x10000, 0x8000, CRC(92579bf3) SHA1(eb2084bf5c62cbbf08dc25997702f8e8eb3dcc5d) ) |
| 1703 | 3963 | |
| 1704 | ROM_REGION( 0x30000, " | |
| 3964 | ROM_REGION( 0x30000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 1705 | 3965 | ROM_LOAD( "p11", 0x00000, 0x8000, CRC(668b25a4) SHA1(235423e3b442271581dde0195fdff2a37596a9bc) ) |
| 1706 | 3966 | ROM_LOAD( "p14", 0x08000, 0x8000, CRC(a7031d4a) SHA1(9ea184990372909de7d8fe0891bb3e0441b13f90) ) |
| 1707 | 3967 | ROM_LOAD( "p12", 0x10000, 0x8000, CRC(f44e95fa) SHA1(6633bd1e9e947cae5ba696f6fd393bf0cd7969b0) ) |
| r3115 | r3116 | |
| 1716 | 3976 | |
| 1717 | 3977 | /***********************************************************************/ |
| 1718 | 3978 | |
| 1719 | ROM_START( gwar ) | |
| 1720 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1721 | ROM_LOAD( "7g", 0x00000, 0x10000, CRC(5bcfa7dc) SHA1(1af2c36df287c9c84be8e7fc173b66f3dde5375e) ) | |
| 1722 | ||
| 1723 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1724 | ROM_LOAD( "g02", 0x00000, 0x10000, CRC(86d931bf) SHA1(8bf7c7a7c01561568973d01956e5398bbc9c3463) ) | |
| 1725 | ||
| 1726 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1727 | ROM_LOAD( "g03", 0x00000, 0x10000, CRC(eb544ab9) SHA1(433af63feb4c4ef0e3bd383f2f9bc19e436fb103) ) | |
| 1728 | ||
| 1729 | ROM_REGION( 0x2400, "proms", 0 ) | |
| 1730 | ROM_LOAD( "guprom.3", 0x0000, 0x0400, CRC(090236a3) SHA1(40d066e34291492c6baf8c120657e3d547274b59) ) /* red */ | |
| 1731 | ROM_LOAD( "guprom.2", 0x0400, 0x0400, CRC(9147de69) SHA1(e4b3b546e429c195e82f97322e2a295882e38a58) ) /* green */ | |
| 1732 | ROM_LOAD( "guprom.1", 0x0800, 0x0400, CRC(7f9c839e) SHA1(2fa60fa335f76891d961c9bd0066fa7f82f76779) ) /* blue */ | |
| 1733 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* h-decode */ | |
| 1734 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* v-decode */ | |
| 1735 | ROM_LOAD( "ls.bin", 0x1400, 0x1000, CRC(73df921d) SHA1(c0f765da3e0e80d104b0baaa7a83bdcc399254b3) ) /* ls-joystick encoder */ | |
| 1736 | ||
| 1737 | ROM_REGION( 0x8000, "gfx1", ROMREGION_DISPOSE ) | |
| 1738 | ROM_LOAD( "g05", 0x0000, 0x08000, CRC(80f73e2e) SHA1(820824fb10f7dfec6247b46dde8ff7124bde3734) ) | |
| 1739 | ||
| 1740 | ROM_REGION( 0x40000, "gfx2", ROMREGION_DISPOSE ) | |
| 1741 | ROM_LOAD( "g06", 0x00000, 0x10000, CRC(f1dcdaef) SHA1(d9b65e7f4025787037628528d3bef699be2eb874) ) | |
| 1742 | ROM_LOAD( "g07", 0x10000, 0x10000, CRC(326e4e5e) SHA1(6935429925d748bb43072429db0d3b08ffdbc95d) ) | |
| 1743 | ROM_LOAD( "g08", 0x20000, 0x10000, CRC(0aa70967) SHA1(a6cbadbb960280b5e79660c0bbd43089ced39a44) ) | |
| 1744 | ROM_LOAD( "g09", 0x30000, 0x10000, CRC(b7686336) SHA1(d654d282862ff00488be38fb9c1302c8bb6f7e7c) ) | |
| 1745 | ||
| 1746 | ROM_REGION( 0x40000, "gfx3", ROMREGION_DISPOSE ) | |
| 1747 | ROM_LOAD( "g10", 0x00000, 0x10000, CRC(58600f7d) SHA1(3dcd25d1ed07e6f74f3316ebe41768eb155f4c45) ) | |
| 1748 | ROM_LOAD( "g11", 0x10000, 0x10000, CRC(a3f9b463) SHA1(ee83d18cf08972c792b05c277b1ca25d732e294d) ) | |
| 1749 | ROM_LOAD( "g12", 0x20000, 0x10000, CRC(092501be) SHA1(85d9a8922dde6824805a4b8e6c52b2a9ad092df9) ) | |
| 1750 | ROM_LOAD( "g13", 0x30000, 0x10000, CRC(25801ea6) SHA1(1aa61716d6be399a1eee2ee5079f13da0f1bd4e8) ) | |
| 1751 | ||
| 1752 | ROM_REGION( 0x80000, "gfx4", ROMREGION_DISPOSE ) | |
| 1753 | ROM_LOAD( "g20", 0x00000, 0x10000, CRC(2b46edff) SHA1(db97e042621dcbedfeed71937ead6d715899d4f7) ) | |
| 1754 | ROM_LOAD( "g21", 0x10000, 0x10000, CRC(be19888d) SHA1(bc7b1b6236d41685faacc2008d51ae2da9a82909) ) | |
| 1755 | ROM_LOAD( "g18", 0x20000, 0x10000, CRC(2d653f0c) SHA1(99eb7883822b10f61b6e922c0d0519aacac83732) ) | |
| 1756 | ROM_LOAD( "g19", 0x30000, 0x10000, CRC(ebbf3ba2) SHA1(bc3631c43058faf1ec6b21ed8017b744afee6f5d) ) | |
| 1757 | ROM_LOAD( "g16", 0x40000, 0x10000, CRC(aeb3707f) SHA1(58d1a71cf83ab0f5f0dd67d441edbc8ece8c2ba5) ) | |
| 1758 | ROM_LOAD( "g17", 0x50000, 0x10000, CRC(0808f95f) SHA1(f67763cceb287a02e3b946ade52105a72161e540) ) | |
| 1759 | ROM_LOAD( "g14", 0x60000, 0x10000, CRC(8dfc7b87) SHA1(e3d75020aa1b90f12633f6515a0386f87441b225) ) | |
| 1760 | ROM_LOAD( "g15", 0x70000, 0x10000, CRC(06822aac) SHA1(630d438cbebe0b5af571948d0d3f4996f52aae1d) ) | |
| 1761 | ||
| 1762 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 1763 | ROM_LOAD( "g04", 0x00000, 0x10000, CRC(2255f8dd) SHA1(fac31b617762d0fa39cf82a658be250b91ab73ce) ) | |
| 1764 | ROM_END | |
| 1765 | ||
| 1766 | ROM_START( gwara ) | |
| 1767 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1768 | ROM_LOAD( "gv3", 0x00000, 0x10000, CRC(24936d83) SHA1(33842322ead66e426946c6cfaa04e56afea90d78) ) | |
| 1769 | ||
| 1770 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1771 | ROM_LOAD( "gv4", 0x00000, 0x10000, CRC(26335a55) SHA1(de3e7d9e204a969745367aa37326d7b3e28c7424) ) | |
| 1772 | ||
| 1773 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1774 | ROM_LOAD( "gv2", 0x00000, 0x10000, CRC(896682dd) SHA1(dc2125c2378a01291197b2798a5eef6459cf5b99) ) | |
| 1775 | ||
| 1776 | ROM_REGION( 0x2400, "proms", 0 ) | |
| 1777 | ROM_LOAD( "guprom.3", 0x000, 0x400, CRC(090236a3) SHA1(40d066e34291492c6baf8c120657e3d547274b59) ) /* red */ | |
| 1778 | ROM_LOAD( "guprom.2", 0x400, 0x400, CRC(9147de69) SHA1(e4b3b546e429c195e82f97322e2a295882e38a58) ) /* green */ | |
| 1779 | ROM_LOAD( "guprom.1", 0x800, 0x400, CRC(7f9c839e) SHA1(2fa60fa335f76891d961c9bd0066fa7f82f76779) ) /* blue */ | |
| 1780 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* h-decode */ | |
| 1781 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* v-decode */ | |
| 1782 | ROM_LOAD( "ls.bin", 0x1400, 0x1000, CRC(73df921d) SHA1(c0f765da3e0e80d104b0baaa7a83bdcc399254b3) ) /* ls-joystick encoder */ | |
| 1783 | ||
| 1784 | ROM_REGION( 0x8000, "gfx1", ROMREGION_DISPOSE ) | |
| 1785 | ROM_LOAD( "g05", 0x0000, 0x08000, CRC(80f73e2e) SHA1(820824fb10f7dfec6247b46dde8ff7124bde3734) ) | |
| 1786 | ||
| 1787 | ROM_REGION( 0x40000, "gfx2", ROMREGION_DISPOSE ) | |
| 1788 | ROM_LOAD( "g06", 0x00000, 0x10000, CRC(f1dcdaef) SHA1(d9b65e7f4025787037628528d3bef699be2eb874) ) | |
| 1789 | ROM_LOAD( "g07", 0x10000, 0x10000, CRC(326e4e5e) SHA1(6935429925d748bb43072429db0d3b08ffdbc95d) ) | |
| 1790 | ROM_LOAD( "g08", 0x20000, 0x10000, CRC(0aa70967) SHA1(a6cbadbb960280b5e79660c0bbd43089ced39a44) ) | |
| 1791 | ROM_LOAD( "g09", 0x30000, 0x10000, CRC(b7686336) SHA1(d654d282862ff00488be38fb9c1302c8bb6f7e7c) ) | |
| 1792 | ||
| 1793 | ROM_REGION( 0x40000, "gfx3", ROMREGION_DISPOSE ) | |
| 1794 | ROM_LOAD( "g10", 0x00000, 0x10000, CRC(58600f7d) SHA1(3dcd25d1ed07e6f74f3316ebe41768eb155f4c45) ) | |
| 1795 | ROM_LOAD( "g11", 0x10000, 0x10000, CRC(a3f9b463) SHA1(ee83d18cf08972c792b05c277b1ca25d732e294d) ) | |
| 1796 | ROM_LOAD( "g12", 0x20000, 0x10000, CRC(092501be) SHA1(85d9a8922dde6824805a4b8e6c52b2a9ad092df9) ) | |
| 1797 | ROM_LOAD( "g13", 0x30000, 0x10000, CRC(25801ea6) SHA1(1aa61716d6be399a1eee2ee5079f13da0f1bd4e8) ) | |
| 1798 | ||
| 1799 | ROM_REGION( 0x80000, "gfx4", ROMREGION_DISPOSE ) | |
| 1800 | ROM_LOAD( "g20", 0x00000, 0x10000, CRC(2b46edff) SHA1(db97e042621dcbedfeed71937ead6d715899d4f7) ) | |
| 1801 | ROM_LOAD( "g21", 0x10000, 0x10000, CRC(be19888d) SHA1(bc7b1b6236d41685faacc2008d51ae2da9a82909) ) | |
| 1802 | ROM_LOAD( "g18", 0x20000, 0x10000, CRC(2d653f0c) SHA1(99eb7883822b10f61b6e922c0d0519aacac83732) ) | |
| 1803 | ROM_LOAD( "g19", 0x30000, 0x10000, CRC(ebbf3ba2) SHA1(bc3631c43058faf1ec6b21ed8017b744afee6f5d) ) | |
| 1804 | ROM_LOAD( "g16", 0x40000, 0x10000, CRC(aeb3707f) SHA1(58d1a71cf83ab0f5f0dd67d441edbc8ece8c2ba5) ) | |
| 1805 | ROM_LOAD( "g17", 0x50000, 0x10000, CRC(0808f95f) SHA1(f67763cceb287a02e3b946ade52105a72161e540) ) | |
| 1806 | ROM_LOAD( "g14", 0x60000, 0x10000, CRC(8dfc7b87) SHA1(e3d75020aa1b90f12633f6515a0386f87441b225) ) | |
| 1807 | ROM_LOAD( "g15", 0x70000, 0x10000, CRC(06822aac) SHA1(630d438cbebe0b5af571948d0d3f4996f52aae1d) ) | |
| 1808 | ||
| 1809 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 1810 | ROM_LOAD( "g04", 0x00000, 0x10000, CRC(2255f8dd) SHA1(fac31b617762d0fa39cf82a658be250b91ab73ce) ) | |
| 1811 | ROM_END | |
| 1812 | ||
| 1813 | ROM_START( gwarj ) | |
| 1814 | ROM_REGION( 0x10000, "main", 0 ) | |
| 1815 | ROM_LOAD( "7y3047", 0x00000, 0x10000, CRC(7f8a880c) SHA1(1eb1c3eb45aa933118e5bd116eb3f81f39063ae3) ) | |
| 1816 | ||
| 1817 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 1818 | ROM_LOAD( "g02", 0x00000, 0x10000, CRC(86d931bf) SHA1(8bf7c7a7c01561568973d01956e5398bbc9c3463) ) | |
| 1819 | ||
| 1820 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 1821 | ROM_LOAD( "g03", 0x00000, 0x10000, CRC(eb544ab9) SHA1(433af63feb4c4ef0e3bd383f2f9bc19e436fb103) ) | |
| 1822 | ||
| 1823 | ROM_REGION( 0x2400, "proms", 0 ) | |
| 1824 | ROM_LOAD( "guprom.3", 0x000, 0x400, CRC(090236a3) SHA1(40d066e34291492c6baf8c120657e3d547274b59) ) /* red */ | |
| 1825 | ROM_LOAD( "guprom.2", 0x400, 0x400, CRC(9147de69) SHA1(e4b3b546e429c195e82f97322e2a295882e38a58) ) /* green */ | |
| 1826 | ROM_LOAD( "guprom.1", 0x800, 0x400, CRC(7f9c839e) SHA1(2fa60fa335f76891d961c9bd0066fa7f82f76779) ) /* blue */ | |
| 1827 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* h-decode */ | |
| 1828 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* v-decode */ | |
| 1829 | ROM_LOAD( "ls.bin", 0x1400, 0x1000, CRC(73df921d) SHA1(c0f765da3e0e80d104b0baaa7a83bdcc399254b3) ) /* ls-joystick encoder */ | |
| 1830 | ||
| 1831 | ROM_REGION( 0x8000, "gfx1", ROMREGION_DISPOSE ) | |
| 1832 | ROM_LOAD( "792001", 0x0000, 0x08000, CRC(99d7ddf3) SHA1(4e4bc400d184e1fb9d0af3a33cc6f6d099bb3bee) ) | |
| 1833 | ||
| 1834 | ROM_REGION( 0x40000, "gfx2", ROMREGION_DISPOSE ) | |
| 1835 | ROM_LOAD( "g06", 0x00000, 0x10000, CRC(f1dcdaef) SHA1(d9b65e7f4025787037628528d3bef699be2eb874) ) | |
| 1836 | ROM_LOAD( "g07", 0x10000, 0x10000, CRC(326e4e5e) SHA1(6935429925d748bb43072429db0d3b08ffdbc95d) ) | |
| 1837 | ROM_LOAD( "g08", 0x20000, 0x10000, CRC(0aa70967) SHA1(a6cbadbb960280b5e79660c0bbd43089ced39a44) ) | |
| 1838 | ROM_LOAD( "g09", 0x30000, 0x10000, CRC(b7686336) SHA1(d654d282862ff00488be38fb9c1302c8bb6f7e7c) ) | |
| 1839 | ||
| 1840 | ROM_REGION( 0x40000, "gfx3", ROMREGION_DISPOSE ) | |
| 1841 | ROM_LOAD( "g10", 0x00000, 0x10000, CRC(58600f7d) SHA1(3dcd25d1ed07e6f74f3316ebe41768eb155f4c45) ) | |
| 1842 | ROM_LOAD( "g11", 0x10000, 0x10000, CRC(a3f9b463) SHA1(ee83d18cf08972c792b05c277b1ca25d732e294d) ) | |
| 1843 | ROM_LOAD( "g12", 0x20000, 0x10000, CRC(092501be) SHA1(85d9a8922dde6824805a4b8e6c52b2a9ad092df9) ) | |
| 1844 | ROM_LOAD( "g13", 0x30000, 0x10000, CRC(25801ea6) SHA1(1aa61716d6be399a1eee2ee5079f13da0f1bd4e8) ) | |
| 1845 | ||
| 1846 | ROM_REGION( 0x80000, "gfx4", ROMREGION_DISPOSE ) | |
| 1847 | ROM_LOAD( "g20", 0x00000, 0x10000, CRC(2b46edff) SHA1(db97e042621dcbedfeed71937ead6d715899d4f7) ) | |
| 1848 | ROM_LOAD( "g21", 0x10000, 0x10000, CRC(be19888d) SHA1(bc7b1b6236d41685faacc2008d51ae2da9a82909) ) | |
| 1849 | ROM_LOAD( "g18", 0x20000, 0x10000, CRC(2d653f0c) SHA1(99eb7883822b10f61b6e922c0d0519aacac83732) ) | |
| 1850 | ROM_LOAD( "g19", 0x30000, 0x10000, CRC(ebbf3ba2) SHA1(bc3631c43058faf1ec6b21ed8017b744afee6f5d) ) | |
| 1851 | ROM_LOAD( "g16", 0x40000, 0x10000, CRC(aeb3707f) SHA1(58d1a71cf83ab0f5f0dd67d441edbc8ece8c2ba5) ) | |
| 1852 | ROM_LOAD( "g17", 0x50000, 0x10000, CRC(0808f95f) SHA1(f67763cceb287a02e3b946ade52105a72161e540) ) | |
| 1853 | ROM_LOAD( "g14", 0x60000, 0x10000, CRC(8dfc7b87) SHA1(e3d75020aa1b90f12633f6515a0386f87441b225) ) | |
| 1854 | ROM_LOAD( "g15", 0x70000, 0x10000, CRC(06822aac) SHA1(630d438cbebe0b5af571948d0d3f4996f52aae1d) ) | |
| 1855 | ||
| 1856 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 1857 | ROM_LOAD( "g04", 0x00000, 0x10000, CRC(2255f8dd) SHA1(fac31b617762d0fa39cf82a658be250b91ab73ce) ) | |
| 1858 | ROM_END | |
| 1859 | ||
| 1860 | ROM_START( gwarb ) | |
| 1861 | ROM_REGION( 0x10000, "main", 0 ) /* 64k for cpuA code */ | |
| 1862 | ROM_LOAD( "g01", 0x00000, 0x10000, CRC(ce1d3c80) SHA1(605ada3529d0b26425e6c573c31117249bb7a7db) ) | |
| 1863 | ||
| 1864 | ROM_REGION( 0x10000, "sub", 0 ) /* 64k for cpuB code */ | |
| 1865 | ROM_LOAD( "g02", 0x00000, 0x10000, CRC(86d931bf) SHA1(8bf7c7a7c01561568973d01956e5398bbc9c3463) ) | |
| 1866 | ||
| 1867 | ROM_REGION( 0x10000, "audio", 0 ) /* 64k for sound code */ | |
| 1868 | ROM_LOAD( "g03", 0x00000, 0x10000, CRC(eb544ab9) SHA1(433af63feb4c4ef0e3bd383f2f9bc19e436fb103) ) | |
| 1869 | ||
| 1870 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 1871 | ROM_LOAD( "guprom.3", 0x000, 0x400, CRC(090236a3) SHA1(40d066e34291492c6baf8c120657e3d547274b59) ) /* red */ // up03_k1.rom | |
| 1872 | ROM_LOAD( "guprom.2", 0x400, 0x400, CRC(9147de69) SHA1(e4b3b546e429c195e82f97322e2a295882e38a58) ) /* green */ // up03_l1.rom | |
| 1873 | ROM_LOAD( "guprom.1", 0x800, 0x400, CRC(7f9c839e) SHA1(2fa60fa335f76891d961c9bd0066fa7f82f76779) ) /* blue */ // up03_k2.rom | |
| 1874 | ||
| 1875 | ROM_REGION( 0x8000, "gfx1", ROMREGION_DISPOSE ) /* characters */ | |
| 1876 | ROM_LOAD( "g05", 0x0000, 0x08000, CRC(80f73e2e) SHA1(820824fb10f7dfec6247b46dde8ff7124bde3734) ) | |
| 1877 | ||
| 1878 | ROM_REGION( 0x40000, "gfx2", ROMREGION_DISPOSE ) /* background tiles */ | |
| 1879 | ROM_LOAD( "g06", 0x00000, 0x10000, CRC(f1dcdaef) SHA1(d9b65e7f4025787037628528d3bef699be2eb874) ) | |
| 1880 | ROM_LOAD( "g07", 0x10000, 0x10000, CRC(326e4e5e) SHA1(6935429925d748bb43072429db0d3b08ffdbc95d) ) | |
| 1881 | ROM_LOAD( "g08", 0x20000, 0x10000, CRC(0aa70967) SHA1(a6cbadbb960280b5e79660c0bbd43089ced39a44) ) | |
| 1882 | ROM_LOAD( "g09", 0x30000, 0x10000, CRC(b7686336) SHA1(d654d282862ff00488be38fb9c1302c8bb6f7e7c) ) | |
| 1883 | ||
| 1884 | ROM_REGION( 0x40000, "gfx3", ROMREGION_DISPOSE ) /* 16x16 sprites */ | |
| 1885 | ROM_LOAD( "g10", 0x00000, 0x10000, CRC(58600f7d) SHA1(3dcd25d1ed07e6f74f3316ebe41768eb155f4c45) ) | |
| 1886 | ROM_LOAD( "g11", 0x10000, 0x10000, CRC(a3f9b463) SHA1(ee83d18cf08972c792b05c277b1ca25d732e294d) ) | |
| 1887 | ROM_LOAD( "g12", 0x20000, 0x10000, CRC(092501be) SHA1(85d9a8922dde6824805a4b8e6c52b2a9ad092df9) ) | |
| 1888 | ROM_LOAD( "g13", 0x30000, 0x10000, CRC(25801ea6) SHA1(1aa61716d6be399a1eee2ee5079f13da0f1bd4e8) ) | |
| 1889 | ||
| 1890 | ROM_REGION( 0x80000, "gfx4", ROMREGION_DISPOSE ) /* 32x32 sprites */ | |
| 1891 | ROM_LOAD( "g20", 0x00000, 0x10000, CRC(2b46edff) SHA1(db97e042621dcbedfeed71937ead6d715899d4f7) ) | |
| 1892 | ROM_LOAD( "g21", 0x10000, 0x10000, CRC(be19888d) SHA1(bc7b1b6236d41685faacc2008d51ae2da9a82909) ) | |
| 1893 | ROM_LOAD( "g18", 0x20000, 0x10000, CRC(2d653f0c) SHA1(99eb7883822b10f61b6e922c0d0519aacac83732) ) | |
| 1894 | ROM_LOAD( "g19", 0x30000, 0x10000, CRC(ebbf3ba2) SHA1(bc3631c43058faf1ec6b21ed8017b744afee6f5d) ) | |
| 1895 | ROM_LOAD( "g16", 0x40000, 0x10000, CRC(aeb3707f) SHA1(58d1a71cf83ab0f5f0dd67d441edbc8ece8c2ba5) ) | |
| 1896 | ROM_LOAD( "g17", 0x50000, 0x10000, CRC(0808f95f) SHA1(f67763cceb287a02e3b946ade52105a72161e540) ) | |
| 1897 | ROM_LOAD( "g14", 0x60000, 0x10000, CRC(8dfc7b87) SHA1(e3d75020aa1b90f12633f6515a0386f87441b225) ) | |
| 1898 | ROM_LOAD( "g15", 0x70000, 0x10000, CRC(06822aac) SHA1(630d438cbebe0b5af571948d0d3f4996f52aae1d) ) | |
| 1899 | ||
| 1900 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 1901 | ROM_LOAD( "g04", 0x00000, 0x10000, CRC(2255f8dd) SHA1(fac31b617762d0fa39cf82a658be250b91ab73ce) ) | |
| 1902 | ROM_END | |
| 1903 | ||
| 1904 | 3979 | /* |
| 1905 | 3980 | pals |
| 1906 | 3981 | ---- |
| r3115 | r3116 | |
| 2140 | 4215 | /***********************************************************************/ |
| 2141 | 4216 | |
| 2142 | 4217 | ROM_START( bermudat ) |
| 2143 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4218 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2144 | 4219 | ROM_LOAD( "bt_p1.rom", 0x0000, 0x10000, CRC(43dec5e9) SHA1(2b29016d4af2a0a6be87f440f235a6a76f8a52a0) ) |
| 2145 | 4220 | |
| 2146 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4221 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2147 | 4222 | ROM_LOAD( "bt_p2.rom", 0x00000, 0x10000, CRC(0e193265) SHA1(765ad63d1f752920d3d7829747e8f2808670ee84) ) |
| 2148 | 4223 | |
| 2149 | ROM_REGION( 0x10000, "audio", 0 ) /* 64k for sound code */ | |
| 2150 | ROM_LOAD( "bt_p3.rom", 0x00000, 0x10000, CRC(53a82e50) SHA1(ce1e72f0ddc5e19c2d8a6a545ce205c7c39da2dd) ) /* YM3526 */ | |
| 4224 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4225 | ROM_LOAD( "bt_p3.rom", 0x00000, 0x10000, CRC(53a82e50) SHA1(ce1e72f0ddc5e19c2d8a6a545ce205c7c39da2dd) ) | |
| 2151 | 4226 | |
| 2152 | 4227 | ROM_REGION( 0x1400, "proms", 0 ) |
| 2153 | 4228 | ROM_LOAD( "btj_01r.prm", 0x0000, 0x0400, CRC(f4b54d06) SHA1(620ea513dbf3219844cdb36ea5d7e2a1b13e3198) ) /* red */ |
| r3115 | r3116 | |
| 2156 | 4231 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* ? */ |
| 2157 | 4232 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* ? */ |
| 2158 | 4233 | |
| 2159 | ROM_REGION( 0x8000, " | |
| 4234 | ROM_REGION( 0x8000, " | |
| 2160 | 4235 | ROM_LOAD( "bt_p10.rom", 0x0000, 0x8000, CRC(d3650211) SHA1(cc7cfe05c5903caf33f8f02c416f68e6d2f6baa7) ) |
| 2161 | 4236 | |
| 2162 | ROM_REGION( 0x40000, "g | |
| 4237 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2163 | 4238 | ROM_LOAD( "bt_p22.rom", 0x00000, 0x10000, CRC(8daf7df4) SHA1(c6b5157821f3751bc70411ba0e1ea43d223ad0f6) ) |
| 2164 | 4239 | ROM_LOAD( "bt_p21.rom", 0x10000, 0x10000, CRC(b7689599) SHA1(ffa35b480efbc55948e5d0202e7a7ab6446db905) ) |
| 2165 | 4240 | ROM_LOAD( "bt_p20.rom", 0x20000, 0x10000, CRC(ab6217b7) SHA1(fb4b0fcd9ff1f04cf772a46b6727d3de531beb0e) ) |
| 2166 | 4241 | ROM_LOAD( "bt_p19.rom", 0x30000, 0x10000, CRC(8ed759a0) SHA1(cd039ed9cb4127729bd29c6232dcbb77b85a4159) ) |
| 2167 | 4242 | |
| 2168 | ROM_REGION( 0x20000, " | |
| 4243 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2169 | 4244 | ROM_LOAD( "bt_p6.rom", 0x00000, 0x8000, CRC(8ffdf969) SHA1(68672dc74156ebbf59316dfeae25b155d699d0eb) ) |
| 2170 | 4245 | ROM_LOAD( "bt_p7.rom", 0x08000, 0x8000, CRC(268d10df) SHA1(6a297bbd7b4248306d8756a80f4403c45d833eb3) ) |
| 2171 | 4246 | ROM_LOAD( "bt_p8.rom", 0x10000, 0x8000, CRC(3e39e9dd) SHA1(394c85841113a1b2bdd744445e3e4e3acc7099c6) ) |
| 2172 | 4247 | ROM_LOAD( "bt_p9.rom", 0x18000, 0x8000, CRC(bf56da61) SHA1(855687b6a0a4cef3b8294ca359abe14b11ad5749) ) |
| 2173 | 4248 | |
| 2174 | ROM_REGION( 0x80000, " | |
| 4249 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 2175 | 4250 | ROM_LOAD( "bt_p11.rom", 0x00000, 0x10000, CRC(aae7410e) SHA1(19dcd13fc53c05bac05d2242965129ab1e3a4a88) ) |
| 2176 | 4251 | ROM_LOAD( "bt_p12.rom", 0x10000, 0x10000, CRC(18914f70) SHA1(2c4e7db8b6e70dffb27d10032f750932c7379a66) ) |
| 2177 | 4252 | ROM_LOAD( "bt_p13.rom", 0x20000, 0x10000, CRC(cd79ce81) SHA1(00f205f8a97f839e2592bdfb624fe6b902ce5a93) ) |
| r3115 | r3116 | |
| 2186 | 4261 | ROM_LOAD( "bt_p5.rom", 0x10000, 0x10000, CRC(817bd62c) SHA1(d3ee2ff01a4da8b928728b2fd4948fabd2b04420) ) |
| 2187 | 4262 | ROM_END |
| 2188 | 4263 | |
| 2189 | ROM_START( bermudao ) | |
| 2190 | ROM_REGION( 0x10000, "main", 0 ) /* 64k for cpuA code */ | |
| 4264 | ROM_START( bermudaj ) | |
| 4265 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2191 | 4266 | ROM_LOAD( "btj_p01.bin", 0x0000, 0x10000, CRC(eda75f36) SHA1(d6fcb46dc45007a77bf6a8ca7aa53aefedcecf92) ) |
| 2192 | 4267 | |
| 2193 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4268 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2194 | 4269 | ROM_LOAD( "bt_p2.rom", 0x00000, 0x10000, CRC(0e193265) SHA1(765ad63d1f752920d3d7829747e8f2808670ee84) ) |
| 2195 | 4270 | |
| 2196 | ROM_REGION( 0x10000, "audio", 0 ) /* 64k for sound code */ | |
| 2197 | ROM_LOAD( "btj_p03.bin", 0x00000, 0x10000, CRC(fea8a096) SHA1(593e34a20ab6f5bae9d74415af5a834646d2444e) ) /* YM3526 */ | |
| 4271 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4272 | ROM_LOAD( "btj_p03.bin", 0x00000, 0x10000, CRC(fea8a096) SHA1(593e34a20ab6f5bae9d74415af5a834646d2444e) ) | |
| 2198 | 4273 | |
| 2199 | 4274 | ROM_REGION( 0x1400, "proms", 0 ) |
| 2200 | 4275 | ROM_LOAD( "btj_01r.prm", 0x0000, 0x0400, CRC(f4b54d06) SHA1(620ea513dbf3219844cdb36ea5d7e2a1b13e3198) ) /* red */ |
| r3115 | r3116 | |
| 2203 | 4278 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* ? */ |
| 2204 | 4279 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* ? */ |
| 2205 | 4280 | |
| 2206 | ROM_REGION( 0x8000, " | |
| 4281 | ROM_REGION( 0x8000, " | |
| 2207 | 4282 | ROM_LOAD( "bt_p10.rom", 0x0000, 0x8000, CRC(d3650211) SHA1(cc7cfe05c5903caf33f8f02c416f68e6d2f6baa7) ) |
| 2208 | 4283 | |
| 2209 | ROM_REGION( 0x40000, "g | |
| 4284 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2210 | 4285 | ROM_LOAD( "bt_p22.rom", 0x00000, 0x10000, CRC(8daf7df4) SHA1(c6b5157821f3751bc70411ba0e1ea43d223ad0f6) ) |
| 2211 | 4286 | ROM_LOAD( "bt_p21.rom", 0x10000, 0x10000, CRC(b7689599) SHA1(ffa35b480efbc55948e5d0202e7a7ab6446db905) ) |
| 2212 | 4287 | ROM_LOAD( "bt_p20.rom", 0x20000, 0x10000, CRC(ab6217b7) SHA1(fb4b0fcd9ff1f04cf772a46b6727d3de531beb0e) ) |
| 2213 | 4288 | ROM_LOAD( "bt_p19.rom", 0x30000, 0x10000, CRC(8ed759a0) SHA1(cd039ed9cb4127729bd29c6232dcbb77b85a4159) ) |
| 2214 | 4289 | |
| 2215 | ROM_REGION( 0x20000, " | |
| 4290 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2216 | 4291 | ROM_LOAD( "bt_p6.rom", 0x00000, 0x8000, CRC(8ffdf969) SHA1(68672dc74156ebbf59316dfeae25b155d699d0eb) ) |
| 2217 | 4292 | ROM_LOAD( "bt_p7.rom", 0x08000, 0x8000, CRC(268d10df) SHA1(6a297bbd7b4248306d8756a80f4403c45d833eb3) ) |
| 2218 | 4293 | ROM_LOAD( "bt_p8.rom", 0x10000, 0x8000, CRC(3e39e9dd) SHA1(394c85841113a1b2bdd744445e3e4e3acc7099c6) ) |
| 2219 | 4294 | ROM_LOAD( "bt_p9.rom", 0x18000, 0x8000, CRC(bf56da61) SHA1(855687b6a0a4cef3b8294ca359abe14b11ad5749) ) |
| 2220 | 4295 | |
| 2221 | ROM_REGION( 0x80000, " | |
| 4296 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 2222 | 4297 | ROM_LOAD( "bt_p11.rom", 0x00000, 0x10000, CRC(aae7410e) SHA1(19dcd13fc53c05bac05d2242965129ab1e3a4a88) ) |
| 2223 | 4298 | ROM_LOAD( "bt_p12.rom", 0x10000, 0x10000, CRC(18914f70) SHA1(2c4e7db8b6e70dffb27d10032f750932c7379a66) ) |
| 2224 | 4299 | ROM_LOAD( "bt_p13.rom", 0x20000, 0x10000, CRC(cd79ce81) SHA1(00f205f8a97f839e2592bdfb624fe6b902ce5a93) ) |
| r3115 | r3116 | |
| 2234 | 4309 | ROM_END |
| 2235 | 4310 | |
| 2236 | 4311 | ROM_START( worldwar ) |
| 2237 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4312 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2238 | 4313 | ROM_LOAD( "ww4.bin", 0x0000, 0x10000, CRC(bc29d09f) SHA1(9bd5a47565934590347b7152457869331ae94375) ) |
| 2239 | 4314 | |
| 2240 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4315 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2241 | 4316 | ROM_LOAD( "ww5.bin", 0x00000, 0x10000, CRC(8dc15909) SHA1(dc0f0e969c36469cc91ecfb1a98cfdb1020972eb) ) |
| 2242 | 4317 | |
| 2243 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4318 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2244 | 4319 | ROM_LOAD( "ww3.bin", 0x00000, 0x10000, CRC(8b74c951) SHA1(f4560380f16bcd396d08f48541c65f7be5b290d0) ) |
| 2245 | 4320 | |
| 2246 | 4321 | ROM_REGION( 0x1400, "proms", 0 ) |
| r3115 | r3116 | |
| 2250 | 4325 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* ? */ |
| 2251 | 4326 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* ? */ |
| 2252 | 4327 | |
| 2253 | ROM_REGION( 0x8000, " | |
| 4328 | ROM_REGION( 0x8000, " | |
| 2254 | 4329 | ROM_LOAD( "ww6.bin", 0x0000, 0x8000, CRC(d57570ab) SHA1(98997de12225d177be4916c7f2e6a7a2df24b8f2) ) |
| 2255 | 4330 | |
| 2256 | ROM_REGION( 0x40000, "g | |
| 4331 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2257 | 4332 | ROM_LOAD( "ww11.bin", 0x00000, 0x10000, CRC(603ddcb5) SHA1(766d477672f7936a2b12d3aef435b59aaa77886d) ) |
| 2258 | 4333 | ROM_LOAD( "ww12.bin", 0x10000, 0x10000, CRC(388093ff) SHA1(b449031c8225b10d7e27e3a2a0636cfd8cb4e03d) ) |
| 2259 | 4334 | ROM_LOAD( "ww13.bin", 0x20000, 0x10000, CRC(83a7ef62) SHA1(692be1db8b0b0ff518ffe6e000fa8eb0ca7d8b06) ) |
| 2260 | 4335 | ROM_LOAD( "ww14.bin", 0x30000, 0x10000, CRC(04c784be) SHA1(1a485eeb65dee295c791006d58e4e7305bdcf490) ) |
| 2261 | 4336 | |
| 2262 | ROM_REGION( 0x20000, " | |
| 4337 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2263 | 4338 | ROM_LOAD( "ww10.bin", 0x00000, 0x08000, CRC(f68a2d51) SHA1(bf3bfcb7fcb77f4605472775025dc69e979155c8) ) |
| 2264 | 4339 | ROM_LOAD( "ww9.bin", 0x08000, 0x08000, CRC(d9d35911) SHA1(74c23f2967be76ced82522a67291de233528b099) ) |
| 2265 | 4340 | ROM_LOAD( "ww8.bin", 0x10000, 0x08000, CRC(0ec15086) SHA1(6f5fb4a0f96b3ab745f402c04c2cdc2bacaf4844) ) |
| 2266 | 4341 | ROM_LOAD( "ww7.bin", 0x18000, 0x08000, CRC(53c4b24e) SHA1(5f72848f585dcee857715d6ca0020237dd23abc3) ) |
| 2267 | 4342 | |
| 2268 | ROM_REGION( 0x80000, "gfx4", ROMREGION_DISPOSE ) /* 32x32 sprites */ | |
| 4343 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 4344 | ROM_LOAD( "ww21.bin", 0x00000, 0x10000, CRC(be974fbe) SHA1(bcfafb85ad858fc0a3dceb2d5fe319d812df50fc) ) | |
| 4345 | ROM_LOAD( "ww22.bin", 0x10000, 0x10000, CRC(9914972a) SHA1(57a27173bc525b18f42699eab9300d4c8652a7c6) ) | |
| 4346 | ROM_LOAD( "ww19.bin", 0x20000, 0x10000, CRC(c39ac1a7) SHA1(9f8048250306ee23c6c66c751b64f19168123ff3) ) | |
| 4347 | ROM_LOAD( "ww20.bin", 0x30000, 0x10000, CRC(8504170f) SHA1(e9970d006dbc63640234bb4baa76a10d84f22bcd) ) | |
| 2269 | 4348 | ROM_LOAD( "ww15.bin", 0x40000, 0x10000, CRC(d55ce063) SHA1(c0845db7e928e735746822ab94e5f148f38e73cc) ) |
| 2270 | 4349 | ROM_LOAD( "ww16.bin", 0x50000, 0x10000, CRC(a2d19ce5) SHA1(ec1e22c8aa1d24b24fa97015c43e651aebb5a3bb) ) |
| 2271 | 4350 | ROM_LOAD( "ww17.bin", 0x60000, 0x10000, CRC(a9a6b128) SHA1(bd09fcf91211739a304771f633f04235d32b057d) ) |
| 2272 | 4351 | ROM_LOAD( "ww18.bin", 0x70000, 0x10000, CRC(c712d24c) SHA1(59858d446491e63f8bd0fd1f8aa20262fa0522ef) ) |
| 2273 | ROM_LOAD( "ww19.bin", 0x20000, 0x10000, CRC(c39ac1a7) SHA1(9f8048250306ee23c6c66c751b64f19168123ff3) ) | |
| 2274 | ROM_LOAD( "ww20.bin", 0x30000, 0x10000, CRC(8504170f) SHA1(e9970d006dbc63640234bb4baa76a10d84f22bcd) ) | |
| 2275 | ROM_LOAD( "ww21.bin", 0x00000, 0x10000, CRC(be974fbe) SHA1(bcfafb85ad858fc0a3dceb2d5fe319d812df50fc) ) | |
| 2276 | ROM_LOAD( "ww22.bin", 0x10000, 0x10000, CRC(9914972a) SHA1(57a27173bc525b18f42699eab9300d4c8652a7c6) ) | |
| 2277 | 4352 | |
| 2278 | ROM_REGION( 0x20000, "ym2", 0 ) | |
| 4353 | ROM_REGION( 0x20000, "ym2", 0 ) | |
| 2279 | 4354 | ROM_LOAD( "bt_p4.rom", 0x00000, 0x10000, CRC(4bc83229) SHA1(b58d08ebed0b02279385a7ac2f385e62443e3de6) ) |
| 2280 | 4355 | ROM_LOAD( "bt_p5.rom", 0x10000, 0x10000, CRC(817bd62c) SHA1(d3ee2ff01a4da8b928728b2fd4948fabd2b04420) ) |
| 2281 | 4356 | ROM_END |
| 2282 | 4357 | |
| 2283 | 4358 | ROM_START( bermudaa ) |
| 2284 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4359 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2285 | 4360 | ROM_LOAD( "4", 0x0000, 0x10000, CRC(4de39d01) SHA1(4312660c6658079c2d148c07d24f741804f3e45c) ) |
| 2286 | 4361 | |
| 2287 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4362 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2288 | 4363 | ROM_LOAD( "5", 0x00000, 0x10000, CRC(76158e94) SHA1(221e59b3fd87c6193755753d6ac6a96807e23120) ) |
| 2289 | 4364 | |
| 2290 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4365 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2291 | 4366 | ROM_LOAD( "3", 0x00000, 0x10000, CRC(c79134a8) SHA1(247459d31022f1491978ba7fcc62dd71983c9057) ) |
| 2292 | 4367 | |
| 2293 | 4368 | ROM_REGION( 0x1400, "proms", 0 ) |
| r3115 | r3116 | |
| 2297 | 4372 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* ? */ |
| 2298 | 4373 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* ? */ |
| 2299 | 4374 | |
| 2300 | ROM_REGION( 0x8000, " | |
| 4375 | ROM_REGION( 0x8000, " | |
| 2301 | 4376 | ROM_LOAD( "6", 0x0000, 0x8000, CRC(a0e6710c) SHA1(28010eaed046681295661b6fa3e76090ba86592b) ) |
| 2302 | 4377 | |
| 2303 | ROM_REGION( 0x40000, "g | |
| 4378 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2304 | 4379 | ROM_LOAD( "ww11.bin", 0x00000, 0x10000, CRC(603ddcb5) SHA1(766d477672f7936a2b12d3aef435b59aaa77886d) ) |
| 2305 | 4380 | ROM_LOAD( "ww12.bin", 0x10000, 0x10000, CRC(388093ff) SHA1(b449031c8225b10d7e27e3a2a0636cfd8cb4e03d) ) |
| 2306 | 4381 | ROM_LOAD( "ww13.bin", 0x20000, 0x10000, CRC(83a7ef62) SHA1(692be1db8b0b0ff518ffe6e000fa8eb0ca7d8b06) ) |
| 2307 | 4382 | ROM_LOAD( "ww14.bin", 0x30000, 0x10000, CRC(04c784be) SHA1(1a485eeb65dee295c791006d58e4e7305bdcf490) ) |
| 2308 | 4383 | |
| 2309 | ROM_REGION( 0x20000, " | |
| 4384 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2310 | 4385 | ROM_LOAD( "ww10.bin", 0x00000, 0x08000, CRC(f68a2d51) SHA1(bf3bfcb7fcb77f4605472775025dc69e979155c8) ) |
| 2311 | 4386 | ROM_LOAD( "ww9.bin", 0x08000, 0x08000, CRC(d9d35911) SHA1(74c23f2967be76ced82522a67291de233528b099) ) |
| 2312 | 4387 | ROM_LOAD( "ww8.bin", 0x10000, 0x08000, CRC(0ec15086) SHA1(6f5fb4a0f96b3ab745f402c04c2cdc2bacaf4844) ) |
| 2313 | 4388 | ROM_LOAD( "ww7.bin", 0x18000, 0x08000, CRC(53c4b24e) SHA1(5f72848f585dcee857715d6ca0020237dd23abc3) ) |
| 2314 | 4389 | |
| 2315 | ROM_REGION( 0x80000, "gfx4", ROMREGION_DISPOSE ) /* 32x32 sprites */ | |
| 4390 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 4391 | ROM_LOAD( "ww21.bin", 0x00000, 0x10000, CRC(be974fbe) SHA1(bcfafb85ad858fc0a3dceb2d5fe319d812df50fc) ) | |
| 4392 | ROM_LOAD( "ww22.bin", 0x10000, 0x10000, CRC(9914972a) SHA1(57a27173bc525b18f42699eab9300d4c8652a7c6) ) | |
| 4393 | ROM_LOAD( "ww19.bin", 0x20000, 0x10000, CRC(c39ac1a7) SHA1(9f8048250306ee23c6c66c751b64f19168123ff3) ) | |
| 4394 | ROM_LOAD( "ww20.bin", 0x30000, 0x10000, CRC(8504170f) SHA1(e9970d006dbc63640234bb4baa76a10d84f22bcd) ) | |
| 2316 | 4395 | ROM_LOAD( "ww15.bin", 0x40000, 0x10000, CRC(d55ce063) SHA1(c0845db7e928e735746822ab94e5f148f38e73cc) ) |
| 2317 | 4396 | ROM_LOAD( "ww16.bin", 0x50000, 0x10000, CRC(a2d19ce5) SHA1(ec1e22c8aa1d24b24fa97015c43e651aebb5a3bb) ) |
| 2318 | 4397 | ROM_LOAD( "ww17.bin", 0x60000, 0x10000, CRC(a9a6b128) SHA1(bd09fcf91211739a304771f633f04235d32b057d) ) |
| 2319 | 4398 | ROM_LOAD( "ww18.bin", 0x70000, 0x10000, CRC(c712d24c) SHA1(59858d446491e63f8bd0fd1f8aa20262fa0522ef) ) |
| 2320 | ROM_LOAD( "ww19.bin", 0x20000, 0x10000, CRC(c39ac1a7) SHA1(9f8048250306ee23c6c66c751b64f19168123ff3) ) | |
| 2321 | ROM_LOAD( "ww20.bin", 0x30000, 0x10000, CRC(8504170f) SHA1(e9970d006dbc63640234bb4baa76a10d84f22bcd) ) | |
| 2322 | ROM_LOAD( "ww21.bin", 0x00000, 0x10000, CRC(be974fbe) SHA1(bcfafb85ad858fc0a3dceb2d5fe319d812df50fc) ) | |
| 2323 | ROM_LOAD( "ww22.bin", 0x10000, 0x10000, CRC(9914972a) SHA1(57a27173bc525b18f42699eab9300d4c8652a7c6) ) | |
| 2324 | 4399 | |
| 2325 | ROM_REGION( 0x20000, "ym2", 0 ) | |
| 4400 | ROM_REGION( 0x20000, "ym2", 0 ) | |
| 2326 | 4401 | ROM_LOAD( "bt_p4.rom", 0x00000, 0x10000, CRC(4bc83229) SHA1(b58d08ebed0b02279385a7ac2f385e62443e3de6) ) |
| 2327 | 4402 | ROM_LOAD( "bt_p5.rom", 0x10000, 0x10000, CRC(817bd62c) SHA1(d3ee2ff01a4da8b928728b2fd4948fabd2b04420) ) |
| 2328 | 4403 | ROM_END |
| r3115 | r3116 | |
| 2330 | 4405 | /***********************************************************************/ |
| 2331 | 4406 | |
| 2332 | 4407 | ROM_START( psychos ) |
| 2333 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4408 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2334 | 4409 | ROM_LOAD( "p7", 0x00000, 0x10000, CRC(562809f4) SHA1(71d2a0fbfbe953e2bc4169d3c0a4f259911f04c3) ) |
| 2335 | 4410 | |
| 2336 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4411 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2337 | 4412 | ROM_LOAD( "up03_m8.rom", 0x00000, 0x10000, CRC(5f426ddb) SHA1(d4b2215122b23066ba2b231992f0f27057259ded) ) |
| 2338 | 4413 | |
| 2339 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4414 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2340 | 4415 | ROM_LOAD( "p5", 0x0000, 0x10000, CRC(64503283) SHA1(e380164ac4268eda1d9ca2404b3dddc5fd3f9dcc) ) |
| 2341 | 4416 | |
| 2342 | 4417 | ROM_REGION( 0x1400, "proms", 0 ) |
| 2343 | ROM_LOAD( "up03_k1.rom", 0x00000, 0x00400, CRC(27b8ca8c) SHA1(a2dbc22ca10c2c2c874bf766fe64981f9be75aba) ) /* red */ | |
| 2344 | ROM_LOAD( "up03_l1.rom", 0x00400, 0x00400, CRC(40e78c9e) SHA1(779c84e5a40365d36088a018d9d1a3524f53844a) ) /* green */ | |
| 2345 | ROM_LOAD( "up03_k2.rom", 0x00800, 0x00400, CRC(d845d5ac) SHA1(e1e0954c44264456a02aebe5e3b0bba6031b837b) ) /* blue */ | |
| 4418 | ROM_LOAD( "up03_k1.rom", 0x0000, 0x400, CRC(27b8ca8c) SHA1(a2dbc22ca10c2c2c874bf766fe64981f9be75aba) ) /* red */ | |
| 4419 | ROM_LOAD( "up03_l1.rom", 0x0400, 0x400, CRC(40e78c9e) SHA1(779c84e5a40365d36088a018d9d1a3524f53844a) ) /* green */ | |
| 4420 | ROM_LOAD( "up03_k2.rom", 0x0800, 0x400, CRC(d845d5ac) SHA1(e1e0954c44264456a02aebe5e3b0bba6031b837b) ) /* blue */ | |
| 2346 | 4421 | ROM_LOAD( "mb7122e.8j", 0x0c00, 0x400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* ? */ |
| 2347 | 4422 | ROM_LOAD( "mb7122e.8k", 0x1000, 0x400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* ? */ |
| 2348 | 4423 | |
| 2349 | ROM_REGION( 0x8000, " | |
| 4424 | ROM_REGION( 0x8000, " | |
| 2350 | 4425 | ROM_LOAD( "up02_a3.rom", 0x0000, 0x8000, CRC(11a71919) SHA1(ffb8c54ad5162ea5040508ccb9244b7cd087c047) ) |
| 2351 | 4426 | |
| 2352 | ROM_REGION( 0x40000, "g | |
| 4427 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2353 | 4428 | ROM_LOAD( "up01_f1.rom", 0x00000, 0x10000, CRC(167e5765) SHA1(5deb66255278e1891c344e0e9665c6f0fda59391) ) |
| 2354 | 4429 | ROM_LOAD( "up01_d1.rom", 0x10000, 0x10000, CRC(8b0fe8d0) SHA1(30b24878e0e333a635dae475b6527b03b9e0302c) ) |
| 2355 | 4430 | ROM_LOAD( "up01_c1.rom", 0x20000, 0x10000, CRC(f4361c50) SHA1(59d0915c4c4d07e26d205ffee95d7628f8eefb6d) ) |
| 2356 | 4431 | ROM_LOAD( "up01_a1.rom", 0x30000, 0x10000, CRC(e4b0b95e) SHA1(8e35138f9d1fc6c1d787cf09ec17a900710db375) ) |
| 2357 | 4432 | |
| 2358 | ROM_REGION( 0x20000, " | |
| 4433 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2359 | 4434 | ROM_LOAD( "up02_f3.rom", 0x00000, 0x8000, CRC(f96f82db) SHA1(8062721431762dfcf7cc499a1f050e4cbe0fc793) ) |
| 2360 | 4435 | ROM_LOAD( "up02_e3.rom", 0x08000, 0x8000, CRC(2b007733) SHA1(7b808a134a9aa70aef1cf2a503b7ea786fd05275) ) |
| 2361 | 4436 | ROM_LOAD( "up02_c3.rom", 0x10000, 0x8000, CRC(efa830e1) SHA1(0a41a764a751a6566b9bb58086a417cfb7925d50) ) |
| 2362 | 4437 | ROM_LOAD( "up02_b3.rom", 0x18000, 0x8000, CRC(24559ee1) SHA1(ca2166558a8dffba9042349db2f85f9111bd8d93) ) |
| 2363 | 4438 | |
| 2364 | ROM_REGION( 0x80000, " | |
| 4439 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 2365 | 4440 | ROM_LOAD( "up01_f10.rom", 0x00000, 0x10000, CRC(2bac250e) SHA1(aaf424fb9663e14c19d4063a402fb3c4c5c5b059) ) |
| 2366 | 4441 | ROM_LOAD( "up01_h10.rom", 0x10000, 0x10000, CRC(5e1ba353) SHA1(1219cd11d5837c6680f6cbbf91cfece6564cacaa) ) |
| 2367 | 4442 | ROM_LOAD( "up01_j10.rom", 0x20000, 0x10000, CRC(9ff91a97) SHA1(064047800f3d7cb6eaf35988e0db0dc4dfa7e10f) ) |
| r3115 | r3116 | |
| 2379 | 4454 | ROM_END |
| 2380 | 4455 | |
| 2381 | 4456 | ROM_START( psychosj ) |
| 2382 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4457 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2383 | 4458 | ROM_LOAD( "up03_m4.rom", 0x0000, 0x10000, CRC(05dfb409) SHA1(e6c378c86689c7ab9190908c8e4aa2d4563c3774) ) |
| 2384 | 4459 | |
| 2385 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4460 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2386 | 4461 | ROM_LOAD( "up03_m8.rom", 0x00000, 0x10000, CRC(5f426ddb) SHA1(d4b2215122b23066ba2b231992f0f27057259ded) ) |
| 2387 | 4462 | |
| 2388 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4463 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2389 | 4464 | ROM_LOAD( "up03_j6.rom", 0x00000, 0x10000, CRC(bbd0a8e3) SHA1(ea8ca9de8f6042cf14ebfc83bc956751358f9521) ) |
| 2390 | 4465 | |
| 2391 | 4466 | ROM_REGION( 0x1400, "proms", 0 ) |
| 2392 | ROM_LOAD( "up03_k1.rom", 0x00000, 0x00400, CRC(27b8ca8c) SHA1(a2dbc22ca10c2c2c874bf766fe64981f9be75aba) ) /* red */ | |
| 2393 | ROM_LOAD( "up03_l1.rom", 0x00400, 0x00400, CRC(40e78c9e) SHA1(779c84e5a40365d36088a018d9d1a3524f53844a) ) /* green */ | |
| 2394 | ROM_LOAD( "up03_k2.rom", 0x00800, 0x00400, CRC(d845d5ac) SHA1(e1e0954c44264456a02aebe5e3b0bba6031b837b) ) /* blue */ | |
| 4467 | ROM_LOAD( "up03_k1.rom", 0x0000, 0x400, CRC(27b8ca8c) SHA1(a2dbc22ca10c2c2c874bf766fe64981f9be75aba) ) /* red */ | |
| 4468 | ROM_LOAD( "up03_l1.rom", 0x0400, 0x400, CRC(40e78c9e) SHA1(779c84e5a40365d36088a018d9d1a3524f53844a) ) /* green */ | |
| 4469 | ROM_LOAD( "up03_k2.rom", 0x0800, 0x400, CRC(d845d5ac) SHA1(e1e0954c44264456a02aebe5e3b0bba6031b837b) ) /* blue */ | |
| 2395 | 4470 | ROM_LOAD( "mb7122e.8j", 0x0c00, 0x400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* ? */ |
| 2396 | 4471 | ROM_LOAD( "mb7122e.8k", 0x1000, 0x400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* ? */ |
| 2397 | 4472 | |
| 2398 | ROM_REGION( 0x8000, " | |
| 4473 | ROM_REGION( 0x8000, " | |
| 2399 | 4474 | ROM_LOAD( "up02_a3.rom", 0x0000, 0x8000, CRC(11a71919) SHA1(ffb8c54ad5162ea5040508ccb9244b7cd087c047) ) |
| 2400 | 4475 | |
| 2401 | ROM_REGION( 0x40000, "g | |
| 4476 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2402 | 4477 | ROM_LOAD( "up01_f1.rom", 0x00000, 0x10000, CRC(167e5765) SHA1(5deb66255278e1891c344e0e9665c6f0fda59391) ) |
| 2403 | 4478 | ROM_LOAD( "up01_d1.rom", 0x10000, 0x10000, CRC(8b0fe8d0) SHA1(30b24878e0e333a635dae475b6527b03b9e0302c) ) |
| 2404 | 4479 | ROM_LOAD( "up01_c1.rom", 0x20000, 0x10000, CRC(f4361c50) SHA1(59d0915c4c4d07e26d205ffee95d7628f8eefb6d) ) |
| 2405 | 4480 | ROM_LOAD( "up01_a1.rom", 0x30000, 0x10000, CRC(e4b0b95e) SHA1(8e35138f9d1fc6c1d787cf09ec17a900710db375) ) |
| 2406 | 4481 | |
| 2407 | ROM_REGION( 0x20000, " | |
| 4482 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2408 | 4483 | ROM_LOAD( "up02_f3.rom", 0x00000, 0x8000, CRC(f96f82db) SHA1(8062721431762dfcf7cc499a1f050e4cbe0fc793) ) |
| 2409 | 4484 | ROM_LOAD( "up02_e3.rom", 0x08000, 0x8000, CRC(2b007733) SHA1(7b808a134a9aa70aef1cf2a503b7ea786fd05275) ) |
| 2410 | 4485 | ROM_LOAD( "up02_c3.rom", 0x10000, 0x8000, CRC(efa830e1) SHA1(0a41a764a751a6566b9bb58086a417cfb7925d50) ) |
| 2411 | 4486 | ROM_LOAD( "up02_b3.rom", 0x18000, 0x8000, CRC(24559ee1) SHA1(ca2166558a8dffba9042349db2f85f9111bd8d93) ) |
| 2412 | 4487 | |
| 2413 | ROM_REGION( 0x80000, " | |
| 4488 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 2414 | 4489 | ROM_LOAD( "up01_f10.rom", 0x00000, 0x10000, CRC(2bac250e) SHA1(aaf424fb9663e14c19d4063a402fb3c4c5c5b059) ) |
| 2415 | 4490 | ROM_LOAD( "up01_h10.rom", 0x10000, 0x10000, CRC(5e1ba353) SHA1(1219cd11d5837c6680f6cbbf91cfece6564cacaa) ) |
| 2416 | 4491 | ROM_LOAD( "up01_j10.rom", 0x20000, 0x10000, CRC(9ff91a97) SHA1(064047800f3d7cb6eaf35988e0db0dc4dfa7e10f) ) |
| r3115 | r3116 | |
| 2429 | 4504 | |
| 2430 | 4505 | /***********************************************************************/ |
| 2431 | 4506 | |
| 4507 | ROM_START( gwar ) | |
| 4508 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4509 | ROM_LOAD( "7g", 0x00000, 0x10000, CRC(5bcfa7dc) SHA1(1af2c36df287c9c84be8e7fc173b66f3dde5375e) ) | |
| 4510 | ||
| 4511 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4512 | ROM_LOAD( "g02", 0x00000, 0x10000, CRC(86d931bf) SHA1(8bf7c7a7c01561568973d01956e5398bbc9c3463) ) | |
| 4513 | ||
| 4514 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4515 | ROM_LOAD( "g03", 0x00000, 0x10000, CRC(eb544ab9) SHA1(433af63feb4c4ef0e3bd383f2f9bc19e436fb103) ) | |
| 4516 | ||
| 4517 | ROM_REGION( 0x2400, "proms", 0 ) | |
| 4518 | ROM_LOAD( "guprom.3", 0x0000, 0x0400, CRC(090236a3) SHA1(40d066e34291492c6baf8c120657e3d547274b59) ) /* red */ | |
| 4519 | ROM_LOAD( "guprom.2", 0x0400, 0x0400, CRC(9147de69) SHA1(e4b3b546e429c195e82f97322e2a295882e38a58) ) /* green */ | |
| 4520 | ROM_LOAD( "guprom.1", 0x0800, 0x0400, CRC(7f9c839e) SHA1(2fa60fa335f76891d961c9bd0066fa7f82f76779) ) /* blue */ | |
| 4521 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* h-decode */ | |
| 4522 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* v-decode */ | |
| 4523 | ROM_LOAD( "ls.bin", 0x1400, 0x1000, CRC(73df921d) SHA1(c0f765da3e0e80d104b0baaa7a83bdcc399254b3) ) /* ls-joystick encoder */ | |
| 4524 | ||
| 4525 | ROM_REGION( 0x8000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 4526 | ROM_LOAD( "g05", 0x0000, 0x08000, CRC(80f73e2e) SHA1(820824fb10f7dfec6247b46dde8ff7124bde3734) ) | |
| 4527 | ||
| 4528 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 4529 | ROM_LOAD( "g06", 0x00000, 0x10000, CRC(f1dcdaef) SHA1(d9b65e7f4025787037628528d3bef699be2eb874) ) | |
| 4530 | ROM_LOAD( "g07", 0x10000, 0x10000, CRC(326e4e5e) SHA1(6935429925d748bb43072429db0d3b08ffdbc95d) ) | |
| 4531 | ROM_LOAD( "g08", 0x20000, 0x10000, CRC(0aa70967) SHA1(a6cbadbb960280b5e79660c0bbd43089ced39a44) ) | |
| 4532 | ROM_LOAD( "g09", 0x30000, 0x10000, CRC(b7686336) SHA1(d654d282862ff00488be38fb9c1302c8bb6f7e7c) ) | |
| 4533 | ||
| 4534 | ROM_REGION( 0x40000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 4535 | ROM_LOAD( "g10", 0x00000, 0x10000, CRC(58600f7d) SHA1(3dcd25d1ed07e6f74f3316ebe41768eb155f4c45) ) | |
| 4536 | ROM_LOAD( "g11", 0x10000, 0x10000, CRC(a3f9b463) SHA1(ee83d18cf08972c792b05c277b1ca25d732e294d) ) | |
| 4537 | ROM_LOAD( "g12", 0x20000, 0x10000, CRC(092501be) SHA1(85d9a8922dde6824805a4b8e6c52b2a9ad092df9) ) | |
| 4538 | ROM_LOAD( "g13", 0x30000, 0x10000, CRC(25801ea6) SHA1(1aa61716d6be399a1eee2ee5079f13da0f1bd4e8) ) | |
| 4539 | ||
| 4540 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 4541 | ROM_LOAD( "g20", 0x00000, 0x10000, CRC(2b46edff) SHA1(db97e042621dcbedfeed71937ead6d715899d4f7) ) | |
| 4542 | ROM_LOAD( "g21", 0x10000, 0x10000, CRC(be19888d) SHA1(bc7b1b6236d41685faacc2008d51ae2da9a82909) ) | |
| 4543 | ROM_LOAD( "g18", 0x20000, 0x10000, CRC(2d653f0c) SHA1(99eb7883822b10f61b6e922c0d0519aacac83732) ) | |
| 4544 | ROM_LOAD( "g19", 0x30000, 0x10000, CRC(ebbf3ba2) SHA1(bc3631c43058faf1ec6b21ed8017b744afee6f5d) ) | |
| 4545 | ROM_LOAD( "g16", 0x40000, 0x10000, CRC(aeb3707f) SHA1(58d1a71cf83ab0f5f0dd67d441edbc8ece8c2ba5) ) | |
| 4546 | ROM_LOAD( "g17", 0x50000, 0x10000, CRC(0808f95f) SHA1(f67763cceb287a02e3b946ade52105a72161e540) ) | |
| 4547 | ROM_LOAD( "g14", 0x60000, 0x10000, CRC(8dfc7b87) SHA1(e3d75020aa1b90f12633f6515a0386f87441b225) ) | |
| 4548 | ROM_LOAD( "g15", 0x70000, 0x10000, CRC(06822aac) SHA1(630d438cbebe0b5af571948d0d3f4996f52aae1d) ) | |
| 4549 | ||
| 4550 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 4551 | ROM_LOAD( "g04", 0x00000, 0x10000, CRC(2255f8dd) SHA1(fac31b617762d0fa39cf82a658be250b91ab73ce) ) | |
| 4552 | ROM_END | |
| 4553 | ||
| 4554 | ROM_START( gwara ) | |
| 4555 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4556 | ROM_LOAD( "gv3", 0x00000, 0x10000, CRC(24936d83) SHA1(33842322ead66e426946c6cfaa04e56afea90d78) ) | |
| 4557 | ||
| 4558 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4559 | ROM_LOAD( "gv4", 0x00000, 0x10000, CRC(26335a55) SHA1(de3e7d9e204a969745367aa37326d7b3e28c7424) ) | |
| 4560 | ||
| 4561 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4562 | ROM_LOAD( "gv2", 0x00000, 0x10000, CRC(896682dd) SHA1(dc2125c2378a01291197b2798a5eef6459cf5b99) ) | |
| 4563 | ||
| 4564 | ROM_REGION( 0x2400, "proms", 0 ) | |
| 4565 | ROM_LOAD( "guprom.3", 0x0000, 0x0400, CRC(090236a3) SHA1(40d066e34291492c6baf8c120657e3d547274b59) ) /* red */ | |
| 4566 | ROM_LOAD( "guprom.2", 0x0400, 0x0400, CRC(9147de69) SHA1(e4b3b546e429c195e82f97322e2a295882e38a58) ) /* green */ | |
| 4567 | ROM_LOAD( "guprom.1", 0x0800, 0x0400, CRC(7f9c839e) SHA1(2fa60fa335f76891d961c9bd0066fa7f82f76779) ) /* blue */ | |
| 4568 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* h-decode */ | |
| 4569 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* v-decode */ | |
| 4570 | ROM_LOAD( "ls.bin", 0x1400, 0x1000, CRC(73df921d) SHA1(c0f765da3e0e80d104b0baaa7a83bdcc399254b3) ) /* ls-joystick encoder */ | |
| 4571 | ||
| 4572 | ROM_REGION( 0x8000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 4573 | ROM_LOAD( "g05", 0x0000, 0x08000, CRC(80f73e2e) SHA1(820824fb10f7dfec6247b46dde8ff7124bde3734) ) | |
| 4574 | ||
| 4575 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 4576 | ROM_LOAD( "g06", 0x00000, 0x10000, CRC(f1dcdaef) SHA1(d9b65e7f4025787037628528d3bef699be2eb874) ) | |
| 4577 | ROM_LOAD( "g07", 0x10000, 0x10000, CRC(326e4e5e) SHA1(6935429925d748bb43072429db0d3b08ffdbc95d) ) | |
| 4578 | ROM_LOAD( "g08", 0x20000, 0x10000, CRC(0aa70967) SHA1(a6cbadbb960280b5e79660c0bbd43089ced39a44) ) | |
| 4579 | ROM_LOAD( "g09", 0x30000, 0x10000, CRC(b7686336) SHA1(d654d282862ff00488be38fb9c1302c8bb6f7e7c) ) | |
| 4580 | ||
| 4581 | ROM_REGION( 0x40000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 4582 | ROM_LOAD( "g10", 0x00000, 0x10000, CRC(58600f7d) SHA1(3dcd25d1ed07e6f74f3316ebe41768eb155f4c45) ) | |
| 4583 | ROM_LOAD( "g11", 0x10000, 0x10000, CRC(a3f9b463) SHA1(ee83d18cf08972c792b05c277b1ca25d732e294d) ) | |
| 4584 | ROM_LOAD( "g12", 0x20000, 0x10000, CRC(092501be) SHA1(85d9a8922dde6824805a4b8e6c52b2a9ad092df9) ) | |
| 4585 | ROM_LOAD( "g13", 0x30000, 0x10000, CRC(25801ea6) SHA1(1aa61716d6be399a1eee2ee5079f13da0f1bd4e8) ) | |
| 4586 | ||
| 4587 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 4588 | ROM_LOAD( "g20", 0x00000, 0x10000, CRC(2b46edff) SHA1(db97e042621dcbedfeed71937ead6d715899d4f7) ) | |
| 4589 | ROM_LOAD( "g21", 0x10000, 0x10000, CRC(be19888d) SHA1(bc7b1b6236d41685faacc2008d51ae2da9a82909) ) | |
| 4590 | ROM_LOAD( "g18", 0x20000, 0x10000, CRC(2d653f0c) SHA1(99eb7883822b10f61b6e922c0d0519aacac83732) ) | |
| 4591 | ROM_LOAD( "g19", 0x30000, 0x10000, CRC(ebbf3ba2) SHA1(bc3631c43058faf1ec6b21ed8017b744afee6f5d) ) | |
| 4592 | ROM_LOAD( "g16", 0x40000, 0x10000, CRC(aeb3707f) SHA1(58d1a71cf83ab0f5f0dd67d441edbc8ece8c2ba5) ) | |
| 4593 | ROM_LOAD( "g17", 0x50000, 0x10000, CRC(0808f95f) SHA1(f67763cceb287a02e3b946ade52105a72161e540) ) | |
| 4594 | ROM_LOAD( "g14", 0x60000, 0x10000, CRC(8dfc7b87) SHA1(e3d75020aa1b90f12633f6515a0386f87441b225) ) | |
| 4595 | ROM_LOAD( "g15", 0x70000, 0x10000, CRC(06822aac) SHA1(630d438cbebe0b5af571948d0d3f4996f52aae1d) ) | |
| 4596 | ||
| 4597 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 4598 | ROM_LOAD( "g04", 0x00000, 0x10000, CRC(2255f8dd) SHA1(fac31b617762d0fa39cf82a658be250b91ab73ce) ) | |
| 4599 | ROM_END | |
| 4600 | ||
| 4601 | ROM_START( gwarj ) | |
| 4602 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4603 | ROM_LOAD( "7y3047", 0x00000, 0x10000, CRC(7f8a880c) SHA1(1eb1c3eb45aa933118e5bd116eb3f81f39063ae3) ) | |
| 4604 | ||
| 4605 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4606 | ROM_LOAD( "g02", 0x00000, 0x10000, CRC(86d931bf) SHA1(8bf7c7a7c01561568973d01956e5398bbc9c3463) ) | |
| 4607 | ||
| 4608 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4609 | ROM_LOAD( "g03", 0x00000, 0x10000, CRC(eb544ab9) SHA1(433af63feb4c4ef0e3bd383f2f9bc19e436fb103) ) | |
| 4610 | ||
| 4611 | ROM_REGION( 0x2400, "proms", 0 ) | |
| 4612 | ROM_LOAD( "guprom.3", 0x0000, 0x0400, CRC(090236a3) SHA1(40d066e34291492c6baf8c120657e3d547274b59) ) /* red */ | |
| 4613 | ROM_LOAD( "guprom.2", 0x0400, 0x0400, CRC(9147de69) SHA1(e4b3b546e429c195e82f97322e2a295882e38a58) ) /* green */ | |
| 4614 | ROM_LOAD( "guprom.1", 0x0800, 0x0400, CRC(7f9c839e) SHA1(2fa60fa335f76891d961c9bd0066fa7f82f76779) ) /* blue */ | |
| 4615 | ROM_LOAD( "btj_h.prm", 0x0c00, 0x0400, CRC(c20b197b) SHA1(504cb28d652029fe87a5411d6239e78d93c83e91) ) /* h-decode */ | |
| 4616 | ROM_LOAD( "btj_v.prm", 0x1000, 0x0400, CRC(5d0c617f) SHA1(845e52173c33500227cabe1e21b34919d2856215) ) /* v-decode */ | |
| 4617 | ROM_LOAD( "ls.bin", 0x1400, 0x1000, CRC(73df921d) SHA1(c0f765da3e0e80d104b0baaa7a83bdcc399254b3) ) /* ls-joystick encoder */ | |
| 4618 | ||
| 4619 | ROM_REGION( 0x8000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 4620 | ROM_LOAD( "792001", 0x0000, 0x08000, CRC(99d7ddf3) SHA1(4e4bc400d184e1fb9d0af3a33cc6f6d099bb3bee) ) | |
| 4621 | ||
| 4622 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 4623 | ROM_LOAD( "g06", 0x00000, 0x10000, CRC(f1dcdaef) SHA1(d9b65e7f4025787037628528d3bef699be2eb874) ) | |
| 4624 | ROM_LOAD( "g07", 0x10000, 0x10000, CRC(326e4e5e) SHA1(6935429925d748bb43072429db0d3b08ffdbc95d) ) | |
| 4625 | ROM_LOAD( "g08", 0x20000, 0x10000, CRC(0aa70967) SHA1(a6cbadbb960280b5e79660c0bbd43089ced39a44) ) | |
| 4626 | ROM_LOAD( "g09", 0x30000, 0x10000, CRC(b7686336) SHA1(d654d282862ff00488be38fb9c1302c8bb6f7e7c) ) | |
| 4627 | ||
| 4628 | ROM_REGION( 0x40000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 4629 | ROM_LOAD( "g10", 0x00000, 0x10000, CRC(58600f7d) SHA1(3dcd25d1ed07e6f74f3316ebe41768eb155f4c45) ) | |
| 4630 | ROM_LOAD( "g11", 0x10000, 0x10000, CRC(a3f9b463) SHA1(ee83d18cf08972c792b05c277b1ca25d732e294d) ) | |
| 4631 | ROM_LOAD( "g12", 0x20000, 0x10000, CRC(092501be) SHA1(85d9a8922dde6824805a4b8e6c52b2a9ad092df9) ) | |
| 4632 | ROM_LOAD( "g13", 0x30000, 0x10000, CRC(25801ea6) SHA1(1aa61716d6be399a1eee2ee5079f13da0f1bd4e8) ) | |
| 4633 | ||
| 4634 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 4635 | ROM_LOAD( "g20", 0x00000, 0x10000, CRC(2b46edff) SHA1(db97e042621dcbedfeed71937ead6d715899d4f7) ) | |
| 4636 | ROM_LOAD( "g21", 0x10000, 0x10000, CRC(be19888d) SHA1(bc7b1b6236d41685faacc2008d51ae2da9a82909) ) | |
| 4637 | ROM_LOAD( "g18", 0x20000, 0x10000, CRC(2d653f0c) SHA1(99eb7883822b10f61b6e922c0d0519aacac83732) ) | |
| 4638 | ROM_LOAD( "g19", 0x30000, 0x10000, CRC(ebbf3ba2) SHA1(bc3631c43058faf1ec6b21ed8017b744afee6f5d) ) | |
| 4639 | ROM_LOAD( "g16", 0x40000, 0x10000, CRC(aeb3707f) SHA1(58d1a71cf83ab0f5f0dd67d441edbc8ece8c2ba5) ) | |
| 4640 | ROM_LOAD( "g17", 0x50000, 0x10000, CRC(0808f95f) SHA1(f67763cceb287a02e3b946ade52105a72161e540) ) | |
| 4641 | ROM_LOAD( "g14", 0x60000, 0x10000, CRC(8dfc7b87) SHA1(e3d75020aa1b90f12633f6515a0386f87441b225) ) | |
| 4642 | ROM_LOAD( "g15", 0x70000, 0x10000, CRC(06822aac) SHA1(630d438cbebe0b5af571948d0d3f4996f52aae1d) ) | |
| 4643 | ||
| 4644 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 4645 | ROM_LOAD( "g04", 0x00000, 0x10000, CRC(2255f8dd) SHA1(fac31b617762d0fa39cf82a658be250b91ab73ce) ) | |
| 4646 | ROM_END | |
| 4647 | ||
| 4648 | ROM_START( gwarb ) | |
| 4649 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4650 | ROM_LOAD( "g01", 0x00000, 0x10000, CRC(ce1d3c80) SHA1(605ada3529d0b26425e6c573c31117249bb7a7db) ) | |
| 4651 | ||
| 4652 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4653 | ROM_LOAD( "g02", 0x00000, 0x10000, CRC(86d931bf) SHA1(8bf7c7a7c01561568973d01956e5398bbc9c3463) ) | |
| 4654 | ||
| 4655 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4656 | ROM_LOAD( "g03", 0x00000, 0x10000, CRC(eb544ab9) SHA1(433af63feb4c4ef0e3bd383f2f9bc19e436fb103) ) | |
| 4657 | ||
| 4658 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 4659 | ROM_LOAD( "guprom.3", 0x000, 0x400, CRC(090236a3) SHA1(40d066e34291492c6baf8c120657e3d547274b59) ) /* red */ // up03_k1.rom | |
| 4660 | ROM_LOAD( "guprom.2", 0x400, 0x400, CRC(9147de69) SHA1(e4b3b546e429c195e82f97322e2a295882e38a58) ) /* green */ // up03_l1.rom | |
| 4661 | ROM_LOAD( "guprom.1", 0x800, 0x400, CRC(7f9c839e) SHA1(2fa60fa335f76891d961c9bd0066fa7f82f76779) ) /* blue */ // up03_k2.rom | |
| 4662 | ||
| 4663 | ROM_REGION( 0x8000, "fg_tiles", ROMREGION_DISPOSE ) | |
| 4664 | ROM_LOAD( "g05", 0x0000, 0x08000, CRC(80f73e2e) SHA1(820824fb10f7dfec6247b46dde8ff7124bde3734) ) | |
| 4665 | ||
| 4666 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 4667 | ROM_LOAD( "g06", 0x00000, 0x10000, CRC(f1dcdaef) SHA1(d9b65e7f4025787037628528d3bef699be2eb874) ) | |
| 4668 | ROM_LOAD( "g07", 0x10000, 0x10000, CRC(326e4e5e) SHA1(6935429925d748bb43072429db0d3b08ffdbc95d) ) | |
| 4669 | ROM_LOAD( "g08", 0x20000, 0x10000, CRC(0aa70967) SHA1(a6cbadbb960280b5e79660c0bbd43089ced39a44) ) | |
| 4670 | ROM_LOAD( "g09", 0x30000, 0x10000, CRC(b7686336) SHA1(d654d282862ff00488be38fb9c1302c8bb6f7e7c) ) | |
| 4671 | ||
| 4672 | ROM_REGION( 0x40000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 4673 | ROM_LOAD( "g10", 0x00000, 0x10000, CRC(58600f7d) SHA1(3dcd25d1ed07e6f74f3316ebe41768eb155f4c45) ) | |
| 4674 | ROM_LOAD( "g11", 0x10000, 0x10000, CRC(a3f9b463) SHA1(ee83d18cf08972c792b05c277b1ca25d732e294d) ) | |
| 4675 | ROM_LOAD( "g12", 0x20000, 0x10000, CRC(092501be) SHA1(85d9a8922dde6824805a4b8e6c52b2a9ad092df9) ) | |
| 4676 | ROM_LOAD( "g13", 0x30000, 0x10000, CRC(25801ea6) SHA1(1aa61716d6be399a1eee2ee5079f13da0f1bd4e8) ) | |
| 4677 | ||
| 4678 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 4679 | ROM_LOAD( "g20", 0x00000, 0x10000, CRC(2b46edff) SHA1(db97e042621dcbedfeed71937ead6d715899d4f7) ) | |
| 4680 | ROM_LOAD( "g21", 0x10000, 0x10000, CRC(be19888d) SHA1(bc7b1b6236d41685faacc2008d51ae2da9a82909) ) | |
| 4681 | ROM_LOAD( "g18", 0x20000, 0x10000, CRC(2d653f0c) SHA1(99eb7883822b10f61b6e922c0d0519aacac83732) ) | |
| 4682 | ROM_LOAD( "g19", 0x30000, 0x10000, CRC(ebbf3ba2) SHA1(bc3631c43058faf1ec6b21ed8017b744afee6f5d) ) | |
| 4683 | ROM_LOAD( "g16", 0x40000, 0x10000, CRC(aeb3707f) SHA1(58d1a71cf83ab0f5f0dd67d441edbc8ece8c2ba5) ) | |
| 4684 | ROM_LOAD( "g17", 0x50000, 0x10000, CRC(0808f95f) SHA1(f67763cceb287a02e3b946ade52105a72161e540) ) | |
| 4685 | ROM_LOAD( "g14", 0x60000, 0x10000, CRC(8dfc7b87) SHA1(e3d75020aa1b90f12633f6515a0386f87441b225) ) | |
| 4686 | ROM_LOAD( "g15", 0x70000, 0x10000, CRC(06822aac) SHA1(630d438cbebe0b5af571948d0d3f4996f52aae1d) ) | |
| 4687 | ||
| 4688 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 4689 | ROM_LOAD( "g04", 0x00000, 0x10000, CRC(2255f8dd) SHA1(fac31b617762d0fa39cf82a658be250b91ab73ce) ) | |
| 4690 | ROM_END | |
| 4691 | ||
| 4692 | /***********************************************************************/ | |
| 4693 | ||
| 2432 | 4694 | ROM_START( chopper ) |
| 2433 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4695 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2434 | 4696 | ROM_LOAD( "kk_01.rom", 0x0000, 0x10000, CRC(8fa2f839) SHA1(13cfdbeb433aa3e1dc7e7927c00690e02ed08274) ) |
| 2435 | 4697 | |
| 2436 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4698 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2437 | 4699 | ROM_LOAD( "kk_04.rom", 0x00000, 0x10000, CRC(004f7d9a) SHA1(4d1c830f69dbf2f1523f9ad7da9b3275fd6b5dfb) ) |
| 2438 | 4700 | |
| 2439 | ROM_REGION( 0x10000, "audio", 0 ) /* 64k for sound code */ | |
| 2440 | ROM_LOAD( "kk_03.rom", 0x00000, 0x10000, CRC(dbaafb87) SHA1(e7d7f68250bda217230560481ba51da335fc05d7) ) /* YM3526 */ | |
| 4701 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4702 | ROM_LOAD( "kk_03.rom", 0x00000, 0x10000, CRC(dbaafb87) SHA1(e7d7f68250bda217230560481ba51da335fc05d7) ) | |
| 2441 | 4703 | |
| 2442 | 4704 | ROM_REGION( 0x0c00, "proms", 0 ) |
| 2443 | 4705 | ROM_LOAD( "up03_k1.rom", 0x0000, 0x0400, CRC(7f07a45c) SHA1(f751d01d9c25609195b19643395290dab8b8bc5c) ) /* red */ |
| 2444 | 4706 | ROM_LOAD( "up03_l1.rom", 0x0400, 0x0400, CRC(15359fc3) SHA1(4ced674fb18b80ebe5fd6459e0fb9542461dbc74) ) /* green */ |
| 2445 | 4707 | ROM_LOAD( "up03_k2.rom", 0x0800, 0x0400, CRC(79b50f7d) SHA1(41579e498046570a6a74309310b5341fcde9c7de) ) /* blue */ |
| 2446 | 4708 | |
| 2447 | ROM_REGION( 0x8000, " | |
| 4709 | ROM_REGION( 0x8000, " | |
| 2448 | 4710 | ROM_LOAD( "kk_05.rom", 0x0000, 0x8000, CRC(defc0987) SHA1(ea8eca852aadce90857eb8e65d78631409faac01) ) |
| 2449 | 4711 | |
| 2450 | ROM_REGION( 0x40000, "g | |
| 4712 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2451 | 4713 | ROM_LOAD( "kk_10.rom", 0x00000, 0x10000, CRC(5cf4d22b) SHA1(b66864740898478becb188d7dd34d61187926e4d) ) |
| 2452 | 4714 | ROM_LOAD( "kk_11.rom", 0x10000, 0x10000, CRC(9af4cad0) SHA1(dd8c1a76e6a90661c5442c0a096cb9ffe496d12a) ) |
| 2453 | 4715 | ROM_LOAD( "kk_12.rom", 0x20000, 0x10000, CRC(02fec778) SHA1(477a3e22f913cc7783d6cbfce86f98fea9eaf3ec) ) |
| 2454 | 4716 | ROM_LOAD( "kk_13.rom", 0x30000, 0x10000, CRC(2756817d) SHA1(acde21454ddf843425deff3357c9e3a7e7a2baec) ) |
| 2455 | 4717 | |
| 2456 | ROM_REGION( 0x20000, " | |
| 4718 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2457 | 4719 | ROM_LOAD( "kk_09.rom", 0x00000, 0x08000, CRC(653c4342) SHA1(aacb3a7772dcea4c88f0010b3654f4159cfb6a8b) ) |
| 2458 | 4720 | ROM_LOAD( "kk_08.rom", 0x08000, 0x08000, CRC(2da45894) SHA1(09f1ac544a119c9d3a9eeb0606f35585d35c2d1d) ) |
| 2459 | 4721 | ROM_LOAD( "kk_07.rom", 0x10000, 0x08000, CRC(a0ebebdf) SHA1(83d8a9ba7b7ffd42e50afb017e4d0d40fe3e2739) ) |
| 2460 | 4722 | ROM_LOAD( "kk_06.rom", 0x18000, 0x08000, CRC(284fad9e) SHA1(7bb572d7d5983a514e8381954ac89a720b86e9ba) ) |
| 2461 | 4723 | |
| 2462 | ROM_REGION( 0x80000, " | |
| 4724 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 2463 | 4725 | ROM_LOAD( "kk_18.rom", 0x00000, 0x10000, CRC(6abbff36) SHA1(8dde3163e454876a4b666b25c81c09b0740143b5) ) |
| 2464 | 4726 | ROM_LOAD( "kk_19.rom", 0x10000, 0x10000, CRC(5283b4d3) SHA1(980f74d3f468203cf9c1a5f3bc256139975035f3) ) |
| 2465 | 4727 | ROM_LOAD( "kk_20.rom", 0x20000, 0x10000, CRC(6403ddf2) SHA1(54a044d9a1ba89fec3bea0e771f75fcc532e7aad) ) |
| r3115 | r3116 | |
| 2477 | 4739 | ROM_END |
| 2478 | 4740 | |
| 2479 | 4741 | ROM_START( choppera ) |
| 2480 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4742 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2481 | 4743 | ROM_LOAD( "1a.rom", 0x0000, 0x10000, CRC(dc325860) SHA1(89391897e6f31d9c1d3b7f27618f63fe8018d42a) ) |
| 2482 | 4744 | |
| 2483 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4745 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2484 | 4746 | ROM_LOAD( "4a.rom", 0x00000, 0x10000, CRC(56d10ba3) SHA1(345a80239fd425c7fe1dfec9385c99a307511e00) ) |
| 2485 | 4747 | |
| 2486 | ROM_REGION( 0x10000, "audio", 0 ) /* 64k for sound code */ | |
| 2487 | ROM_LOAD( "kk_03.rom", 0x00000, 0x10000, CRC(dbaafb87) SHA1(e7d7f68250bda217230560481ba51da335fc05d7) ) /* YM3526 */ | |
| 4748 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4749 | ROM_LOAD( "kk_03.rom", 0x00000, 0x10000, CRC(dbaafb87) SHA1(e7d7f68250bda217230560481ba51da335fc05d7) ) | |
| 2488 | 4750 | |
| 2489 | 4751 | ROM_REGION( 0x0c00, "proms", 0 ) |
| 2490 | 4752 | ROM_LOAD( "up03_k1.rom", 0x0000, 0x0400, CRC(7f07a45c) SHA1(f751d01d9c25609195b19643395290dab8b8bc5c) ) /* red */ |
| 2491 | 4753 | ROM_LOAD( "up03_l1.rom", 0x0400, 0x0400, CRC(15359fc3) SHA1(4ced674fb18b80ebe5fd6459e0fb9542461dbc74) ) /* green */ |
| 2492 | 4754 | ROM_LOAD( "up03_k2.rom", 0x0800, 0x0400, CRC(79b50f7d) SHA1(41579e498046570a6a74309310b5341fcde9c7de) ) /* blue */ |
| 2493 | 4755 | |
| 2494 | ROM_REGION( 0x8000, " | |
| 4756 | ROM_REGION( 0x8000, " | |
| 2495 | 4757 | ROM_LOAD( "kk_05.rom", 0x0000, 0x8000, CRC(defc0987) SHA1(ea8eca852aadce90857eb8e65d78631409faac01) ) |
| 2496 | 4758 | |
| 2497 | ROM_REGION( 0x40000, "g | |
| 4759 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2498 | 4760 | ROM_LOAD( "kk_10.rom", 0x00000, 0x10000, CRC(5cf4d22b) SHA1(b66864740898478becb188d7dd34d61187926e4d) ) |
| 2499 | 4761 | ROM_LOAD( "11a.rom", 0x10000, 0x10000, CRC(881ac259) SHA1(6cce41878c9d9712996d4987a9a578f1301b8feb) ) |
| 2500 | 4762 | ROM_LOAD( "12a.rom", 0x20000, 0x10000, CRC(de96b331) SHA1(725cfe739f7ed0f37eb620d9566bfda1369f4d50) ) |
| 2501 | 4763 | ROM_LOAD( "kk_13.rom", 0x30000, 0x10000, CRC(2756817d) SHA1(acde21454ddf843425deff3357c9e3a7e7a2baec) ) |
| 2502 | 4764 | |
| 2503 | ROM_REGION( 0x20000, " | |
| 4765 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2504 | 4766 | ROM_LOAD( "9a.rom", 0x00000, 0x08000, CRC(106c2dcc) SHA1(919497757664c92e9955db50f5096ac81cec33c3) ) |
| 2505 | 4767 | ROM_LOAD( "8a.rom", 0x08000, 0x08000, CRC(d4f88f62) SHA1(ac89ffa83e0e207acce39711b93d94affc61c1cc) ) |
| 2506 | 4768 | ROM_LOAD( "7a.rom", 0x10000, 0x08000, CRC(28ae39f9) SHA1(7d51489b824b76710f6d4434a77f5f2833fcc532) ) |
| 2507 | 4769 | ROM_LOAD( "6a.rom", 0x18000, 0x08000, CRC(16774a36) SHA1(d1207513f790a30eef8802e63cfeeb10321d6ff7) ) |
| 2508 | 4770 | |
| 2509 | ROM_REGION( 0x80000, " | |
| 4771 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 2510 | 4772 | ROM_LOAD( "kk_18.rom", 0x00000, 0x10000, CRC(6abbff36) SHA1(8dde3163e454876a4b666b25c81c09b0740143b5) ) |
| 2511 | 4773 | ROM_LOAD( "kk_19.rom", 0x10000, 0x10000, CRC(5283b4d3) SHA1(980f74d3f468203cf9c1a5f3bc256139975035f3) ) |
| 2512 | 4774 | ROM_LOAD( "kk_20.rom", 0x20000, 0x10000, CRC(6403ddf2) SHA1(54a044d9a1ba89fec3bea0e771f75fcc532e7aad) ) |
| r3115 | r3116 | |
| 2524 | 4786 | ROM_END |
| 2525 | 4787 | |
| 2526 | 4788 | ROM_START( chopperb ) |
| 2527 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4789 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2528 | 4790 | ROM_LOAD( "chpri-1.bin", 0x0000, 0x10000, CRC(a4e6e978) SHA1(dafc2a3da3725344023a09f5bdaedd0e8e1dbbe2) ) |
| 2529 | 4791 | |
| 2530 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4792 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2531 | 4793 | ROM_LOAD( "chpri-4.bin", 0x00000, 0x10000, CRC(56d10ba3) SHA1(345a80239fd425c7fe1dfec9385c99a307511e00) ) |
| 2532 | 4794 | |
| 2533 | ROM_REGION( 0x10000, "audio", 0 ) /* 64k for sound code */ | |
| 2534 | ROM_LOAD( "kk_03.rom", 0x00000, 0x10000, CRC(dbaafb87) SHA1(e7d7f68250bda217230560481ba51da335fc05d7) ) /* YM3526 */ | |
| 4795 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4796 | ROM_LOAD( "kk_03.rom", 0x00000, 0x10000, CRC(dbaafb87) SHA1(e7d7f68250bda217230560481ba51da335fc05d7) ) | |
| 2535 | 4797 | |
| 2536 | 4798 | ROM_REGION( 0x0c00, "proms", 0 ) |
| 2537 | 4799 | ROM_LOAD( "up03_k1.rom", 0x0000, 0x0400, CRC(7f07a45c) SHA1(f751d01d9c25609195b19643395290dab8b8bc5c) ) /* red */ |
| 2538 | 4800 | ROM_LOAD( "up03_l1.rom", 0x0400, 0x0400, CRC(15359fc3) SHA1(4ced674fb18b80ebe5fd6459e0fb9542461dbc74) ) /* green */ |
| 2539 | 4801 | ROM_LOAD( "up03_k2.rom", 0x0800, 0x0400, CRC(79b50f7d) SHA1(41579e498046570a6a74309310b5341fcde9c7de) ) /* blue */ |
| 2540 | 4802 | |
| 2541 | ROM_REGION( 0x8000, " | |
| 4803 | ROM_REGION( 0x8000, " | |
| 2542 | 4804 | ROM_LOAD( "kk_05.rom", 0x0000, 0x8000, CRC(defc0987) SHA1(ea8eca852aadce90857eb8e65d78631409faac01) ) |
| 2543 | 4805 | |
| 2544 | ROM_REGION( 0x40000, "g | |
| 4806 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2545 | 4807 | ROM_LOAD( "kk_10.rom", 0x00000, 0x10000, CRC(5cf4d22b) SHA1(b66864740898478becb188d7dd34d61187926e4d) ) |
| 2546 | 4808 | ROM_LOAD( "chpri-11.bin", 0x10000, 0x10000, CRC(881ac259) SHA1(6cce41878c9d9712996d4987a9a578f1301b8feb) ) |
| 2547 | 4809 | ROM_LOAD( "chpri-12.bin", 0x20000, 0x10000, CRC(de96b331) SHA1(725cfe739f7ed0f37eb620d9566bfda1369f4d50) ) |
| 2548 | 4810 | ROM_LOAD( "kk_13.rom", 0x30000, 0x10000, CRC(2756817d) SHA1(acde21454ddf843425deff3357c9e3a7e7a2baec) ) |
| 2549 | 4811 | |
| 2550 | ROM_REGION( 0x20000, " | |
| 4812 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2551 | 4813 | ROM_LOAD( "chpri-9.bin", 0x00000, 0x08000, CRC(106c2dcc) SHA1(919497757664c92e9955db50f5096ac81cec33c3) ) |
| 2552 | 4814 | ROM_LOAD( "chpri-8.bin", 0x08000, 0x08000, CRC(d4f88f62) SHA1(ac89ffa83e0e207acce39711b93d94affc61c1cc) ) |
| 2553 | 4815 | ROM_LOAD( "chpri-7.bin", 0x10000, 0x08000, CRC(28ae39f9) SHA1(7d51489b824b76710f6d4434a77f5f2833fcc532) ) |
| 2554 | 4816 | ROM_LOAD( "chpri-6.bin", 0x18000, 0x08000, CRC(16774a36) SHA1(d1207513f790a30eef8802e63cfeeb10321d6ff7) ) |
| 2555 | 4817 | |
| 2556 | ROM_REGION( 0x80000, " | |
| 4818 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 2557 | 4819 | ROM_LOAD( "kk_18.rom", 0x00000, 0x10000, CRC(6abbff36) SHA1(8dde3163e454876a4b666b25c81c09b0740143b5) ) |
| 2558 | 4820 | ROM_LOAD( "kk_19.rom", 0x10000, 0x10000, CRC(5283b4d3) SHA1(980f74d3f468203cf9c1a5f3bc256139975035f3) ) |
| 2559 | 4821 | ROM_LOAD( "kk_20.rom", 0x20000, 0x10000, CRC(6403ddf2) SHA1(54a044d9a1ba89fec3bea0e771f75fcc532e7aad) ) |
| r3115 | r3116 | |
| 2570 | 4832 | ROM_LOAD( "pal16r6b.2c", 0x0000, 0x0104, CRC(311e5ae6) SHA1(8a3799e1611ac4086dda2755c5ad44c0dc16ff5b) ) |
| 2571 | 4833 | ROM_END |
| 2572 | 4834 | |
| 2573 | ROM_START( legofair ) /* ChopperI (Japan) */ | |
| 2574 | ROM_REGION( 0x10000, "main", 0 ) /* 64k for cpuA code */ | |
| 4835 | ROM_START( legofair ) | |
| 4836 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2575 | 4837 | ROM_LOAD( "up03_m4.rom", 0x0000, 0x10000, CRC(79a485c0) SHA1(bbf51e7321656b6a04223909d4958ceb4892193a) ) |
| 2576 | 4838 | |
| 2577 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4839 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2578 | 4840 | ROM_LOAD( "up03_m8.rom", 0x00000, 0x10000, CRC(96d3a4d9) SHA1(e23a06e6117eca14b24de2d6fd48f5aa2a26d3bb) ) |
| 2579 | 4841 | |
| 2580 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4842 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2581 | 4843 | ROM_LOAD( "kk_03.rom", 0x00000, 0x10000, CRC(dbaafb87) SHA1(e7d7f68250bda217230560481ba51da335fc05d7) ) |
| 2582 | 4844 | |
| 2583 | 4845 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 2585 | 4847 | ROM_LOAD( "up03_l1.rom", 0x0400, 0x0400, CRC(15359fc3) SHA1(4ced674fb18b80ebe5fd6459e0fb9542461dbc74) ) /* green */ |
| 2586 | 4848 | ROM_LOAD( "up03_k2.rom", 0x0800, 0x0400, CRC(79b50f7d) SHA1(41579e498046570a6a74309310b5341fcde9c7de) ) /* blue */ |
| 2587 | 4849 | |
| 2588 | ROM_REGION( 0x8000, " | |
| 4850 | ROM_REGION( 0x8000, " | |
| 2589 | 4851 | ROM_LOAD( "kk_05.rom", 0x0000, 0x8000, CRC(defc0987) SHA1(ea8eca852aadce90857eb8e65d78631409faac01) ) |
| 2590 | 4852 | |
| 2591 | ROM_REGION( 0x40000, "g | |
| 4853 | ROM_REGION( 0x40000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2592 | 4854 | ROM_LOAD( "kk_10.rom", 0x00000, 0x10000, CRC(5cf4d22b) SHA1(b66864740898478becb188d7dd34d61187926e4d) ) |
| 2593 | 4855 | ROM_LOAD( "kk_11.rom", 0x10000, 0x10000, CRC(9af4cad0) SHA1(dd8c1a76e6a90661c5442c0a096cb9ffe496d12a) ) |
| 2594 | 4856 | ROM_LOAD( "kk_12.rom", 0x20000, 0x10000, CRC(02fec778) SHA1(477a3e22f913cc7783d6cbfce86f98fea9eaf3ec) ) |
| 2595 | 4857 | ROM_LOAD( "kk_13.rom", 0x30000, 0x10000, CRC(2756817d) SHA1(acde21454ddf843425deff3357c9e3a7e7a2baec) ) |
| 2596 | 4858 | |
| 2597 | ROM_REGION( 0x20000, " | |
| 4859 | ROM_REGION( 0x20000, "sp16_tiles", ROMREGION_DISPOSE ) | |
| 2598 | 4860 | ROM_LOAD( "kk_09.rom", 0x00000, 0x08000, CRC(653c4342) SHA1(aacb3a7772dcea4c88f0010b3654f4159cfb6a8b) ) |
| 2599 | 4861 | ROM_LOAD( "kk_08.rom", 0x08000, 0x08000, CRC(2da45894) SHA1(09f1ac544a119c9d3a9eeb0606f35585d35c2d1d) ) |
| 2600 | 4862 | ROM_LOAD( "kk_07.rom", 0x10000, 0x08000, CRC(a0ebebdf) SHA1(83d8a9ba7b7ffd42e50afb017e4d0d40fe3e2739) ) |
| 2601 | 4863 | ROM_LOAD( "kk_06.rom", 0x18000, 0x08000, CRC(284fad9e) SHA1(7bb572d7d5983a514e8381954ac89a720b86e9ba) ) |
| 2602 | 4864 | |
| 2603 | ROM_REGION( 0x80000, " | |
| 4865 | ROM_REGION( 0x80000, "sp32_tiles", ROMREGION_DISPOSE ) | |
| 2604 | 4866 | ROM_LOAD( "kk_18.rom", 0x00000, 0x10000, CRC(6abbff36) SHA1(8dde3163e454876a4b666b25c81c09b0740143b5) ) |
| 2605 | 4867 | ROM_LOAD( "kk_19.rom", 0x10000, 0x10000, CRC(5283b4d3) SHA1(980f74d3f468203cf9c1a5f3bc256139975035f3) ) |
| 2606 | 4868 | ROM_LOAD( "kk_20.rom", 0x20000, 0x10000, CRC(6403ddf2) SHA1(54a044d9a1ba89fec3bea0e771f75fcc532e7aad) ) |
| r3115 | r3116 | |
| 2617 | 4879 | /***********************************************************************/ |
| 2618 | 4880 | |
| 2619 | 4881 | ROM_START( fsoccer ) |
| 2620 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4882 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2621 | 4883 | ROM_LOAD( "fs3_ver4.bin", 0x00000, 0x10000, CRC(94c3f918) SHA1(7c8343556d6c3897e72f8b41c6fbdc5c58e78b8c) ) |
| 2622 | 4884 | |
| 2623 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4885 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2624 | 4886 | ROM_LOAD( "fs1_ver4.bin", 0x00000, 0x10000, CRC(97830108) SHA1(dab241baf8d889c768e1fbe25f1e5059b3cbbab6) ) |
| 2625 | 4887 | |
| 2626 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4888 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2627 | 4889 | ROM_LOAD( "fs2.3j", 0x00000, 0x10000, CRC(9ee54ea1) SHA1(4e3bbacaa0e247eb8c4043f394e763817a4f9a28) ) |
| 2628 | 4890 | |
| 2629 | 4891 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 2631 | 4893 | ROM_LOAD( "1.8d", 0x400, 0x400, CRC(1bac8010) SHA1(16854b1b6f3d1be48a247796d65aeb90547099b6) ) /* green */ |
| 2632 | 4894 | ROM_LOAD( "3.9e", 0x800, 0x400, CRC(dbeddb14) SHA1(6053b587a3c8272aefe728a7198a15aa7fb9b2fa) ) /* blue */ |
| 2633 | 4895 | |
| 2634 | ROM_REGION( 0x8000, " | |
| 4896 | ROM_REGION( 0x8000, " | |
| 2635 | 4897 | ROM_LOAD( "fs13.4n", 0x0000, 0x08000, CRC(0de7b7ad) SHA1(4fa54b2acf83f03d09d16fc054ad6623cafe0f4a) ) |
| 2636 | 4898 | |
| 2637 | ROM_REGION( 0x50000, "g | |
| 4899 | ROM_REGION( 0x50000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2638 | 4900 | ROM_LOAD( "fs14.8d", 0x00000, 0x10000, CRC(38c38b40) SHA1(c4580add0946720441f5ef751d0d4a944cd92ad5) ) |
| 2639 | 4901 | ROM_LOAD( "fs15.8e", 0x10000, 0x10000, CRC(a614834f) SHA1(d73930e4bd780915e1b0d7f3fe7cbeaad19c233f) ) |
| 2640 | 4902 | |
| 2641 | ROM_REGION( 0x80000, " | |
| 4903 | ROM_REGION( 0x80000, "sp | |
| 2642 | 4904 | ROM_LOAD( "fs12.2t", 0x00000, 0x10000, CRC(b2442c30) SHA1(ba9331810659726389494ddc7c94c5a02ba80747) ) |
| 2643 | 4905 | ROM_LOAD( "fs11.2s", 0x10000, 0x10000, CRC(022f3e96) SHA1(57aa423b8f62015566bc3021300ac7e9682ed500) ) |
| 2644 | 4906 | ROM_LOAD( "fs10.2r", 0x20000, 0x10000, CRC(e42864d8) SHA1(fe18f58e5507676780fe181e2fb0e0e9d72e276e) ) |
| r3115 | r3116 | |
| 2648 | 4910 | ROM_LOAD( "fs6.2k", 0x60000, 0x10000, CRC(588d14b3) SHA1(c0489b061503677a38e4c5800ea8be17aabf4039) ) |
| 2649 | 4911 | ROM_LOAD( "fs5.2j", 0x70000, 0x10000, CRC(def2f1d8) SHA1(b72e4dec3306d8afe461ac812b2de67ee85f9dd9) ) |
| 2650 | 4912 | |
| 2651 | ROM_REGION( 0x10000, "ym", 0 ) | |
| 4913 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 2652 | 4914 | ROM_LOAD( "fs4.bin", 0x00000, 0x10000, CRC(435c3716) SHA1(42053741f60594e7ae8516b3ba600f5badb3620f) ) |
| 2653 | 4915 | ROM_END |
| 2654 | 4916 | |
| 2655 | 4917 | ROM_START( fsoccerj ) |
| 2656 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4918 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2657 | 4919 | ROM_LOAD( "fs3.6c", 0x00000, 0x10000, CRC(c5f505fa) SHA1(bc54a6482029735c7ec1d6dd819cad6bac32ac20) ) |
| 2658 | 4920 | |
| 2659 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4921 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2660 | 4922 | ROM_LOAD( "fs1.2c", 0x00000, 0x10000, CRC(2f68e38b) SHA1(0cbf2de24a5a5ae2134eb6f1e1404691554192bc) ) |
| 2661 | 4923 | |
| 2662 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4924 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2663 | 4925 | ROM_LOAD( "fs2.3j", 0x00000, 0x10000, CRC(9ee54ea1) SHA1(4e3bbacaa0e247eb8c4043f394e763817a4f9a28) ) |
| 2664 | 4926 | |
| 2665 | 4927 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 2667 | 4929 | ROM_LOAD( "1.8d", 0x400, 0x400, CRC(1bac8010) SHA1(16854b1b6f3d1be48a247796d65aeb90547099b6) ) /* green */ |
| 2668 | 4930 | ROM_LOAD( "3.9e", 0x800, 0x400, CRC(dbeddb14) SHA1(6053b587a3c8272aefe728a7198a15aa7fb9b2fa) ) /* blue */ |
| 2669 | 4931 | |
| 2670 | ROM_REGION( 0x8000, " | |
| 4932 | ROM_REGION( 0x8000, " | |
| 2671 | 4933 | ROM_LOAD( "fs13.4n", 0x0000, 0x08000, CRC(0de7b7ad) SHA1(4fa54b2acf83f03d09d16fc054ad6623cafe0f4a) ) |
| 2672 | 4934 | |
| 2673 | ROM_REGION( 0x50000, "g | |
| 4935 | ROM_REGION( 0x50000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2674 | 4936 | ROM_LOAD( "fs14.8d", 0x00000, 0x10000, CRC(38c38b40) SHA1(c4580add0946720441f5ef751d0d4a944cd92ad5) ) |
| 2675 | 4937 | ROM_LOAD( "fs15.8e", 0x10000, 0x10000, CRC(a614834f) SHA1(d73930e4bd780915e1b0d7f3fe7cbeaad19c233f) ) |
| 2676 | 4938 | |
| 2677 | ROM_REGION( 0x80000, " | |
| 4939 | ROM_REGION( 0x80000, "sp | |
| 2678 | 4940 | ROM_LOAD( "fs12.2t", 0x00000, 0x10000, CRC(b2442c30) SHA1(ba9331810659726389494ddc7c94c5a02ba80747) ) |
| 2679 | 4941 | ROM_LOAD( "fs11.2s", 0x10000, 0x10000, CRC(022f3e96) SHA1(57aa423b8f62015566bc3021300ac7e9682ed500) ) |
| 2680 | 4942 | ROM_LOAD( "fs10.2r", 0x20000, 0x10000, CRC(e42864d8) SHA1(fe18f58e5507676780fe181e2fb0e0e9d72e276e) ) |
| r3115 | r3116 | |
| 2684 | 4946 | ROM_LOAD( "fs6.2k", 0x60000, 0x10000, CRC(588d14b3) SHA1(c0489b061503677a38e4c5800ea8be17aabf4039) ) |
| 2685 | 4947 | ROM_LOAD( "fs5.2j", 0x70000, 0x10000, CRC(def2f1d8) SHA1(b72e4dec3306d8afe461ac812b2de67ee85f9dd9) ) |
| 2686 | 4948 | |
| 2687 | ROM_REGION( 0x10000, "ym", 0 ) | |
| 4949 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 2688 | 4950 | ROM_LOAD( "fs4.7p", 0x00000, 0x10000, CRC(435c3716) SHA1(42053741f60594e7ae8516b3ba600f5badb3620f) ) |
| 2689 | 4951 | ROM_END |
| 2690 | 4952 | |
| 2691 | 4953 | ROM_START( fsoccerb ) |
| 2692 | ROM_REGION( 0x10000, "main", 0 ) | |
| 4954 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2693 | 4955 | ROM_LOAD( "ft-003.bin", 0x00000, 0x10000, CRC(649d4448) SHA1(876a4cf3ce3211ee19390deb17a661ec52b419d2) ) |
| 2694 | 4956 | |
| 2695 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4957 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2696 | 4958 | ROM_LOAD( "ft-001.bin", 0x00000, 0x10000, CRC(2f68e38b) SHA1(0cbf2de24a5a5ae2134eb6f1e1404691554192bc) ) |
| 2697 | 4959 | |
| 2698 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4960 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2699 | 4961 | ROM_LOAD( "fs2.3j", 0x00000, 0x10000, CRC(9ee54ea1) SHA1(4e3bbacaa0e247eb8c4043f394e763817a4f9a28) ) |
| 2700 | 4962 | |
| 2701 | 4963 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 2703 | 4965 | ROM_LOAD( "1.8d", 0x400, 0x400, CRC(1bac8010) SHA1(16854b1b6f3d1be48a247796d65aeb90547099b6) ) /* green */ |
| 2704 | 4966 | ROM_LOAD( "3.9e", 0x800, 0x400, CRC(dbeddb14) SHA1(6053b587a3c8272aefe728a7198a15aa7fb9b2fa) ) /* blue */ |
| 2705 | 4967 | |
| 2706 | ROM_REGION( 0x8000, " | |
| 4968 | ROM_REGION( 0x8000, " | |
| 2707 | 4969 | ROM_LOAD( "fs13.4n", 0x0000, 0x08000, CRC(0de7b7ad) SHA1(4fa54b2acf83f03d09d16fc054ad6623cafe0f4a) ) |
| 2708 | 4970 | |
| 2709 | ROM_REGION( 0x50000, "g | |
| 4971 | ROM_REGION( 0x50000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2710 | 4972 | ROM_LOAD( "fs14.8d", 0x00000, 0x10000, CRC(38c38b40) SHA1(c4580add0946720441f5ef751d0d4a944cd92ad5) ) |
| 2711 | 4973 | ROM_LOAD( "fs15.8e", 0x10000, 0x10000, CRC(a614834f) SHA1(d73930e4bd780915e1b0d7f3fe7cbeaad19c233f) ) |
| 2712 | 4974 | |
| 2713 | ROM_REGION( 0x80000, " | |
| 4975 | ROM_REGION( 0x80000, "sp | |
| 2714 | 4976 | ROM_LOAD( "fs12.2t", 0x00000, 0x10000, CRC(b2442c30) SHA1(ba9331810659726389494ddc7c94c5a02ba80747) ) |
| 2715 | 4977 | ROM_LOAD( "fs11.2s", 0x10000, 0x10000, CRC(022f3e96) SHA1(57aa423b8f62015566bc3021300ac7e9682ed500) ) |
| 2716 | 4978 | ROM_LOAD( "fs10.2r", 0x20000, 0x10000, CRC(e42864d8) SHA1(fe18f58e5507676780fe181e2fb0e0e9d72e276e) ) |
| r3115 | r3116 | |
| 2720 | 4982 | ROM_LOAD( "fs6.2k", 0x60000, 0x10000, CRC(588d14b3) SHA1(c0489b061503677a38e4c5800ea8be17aabf4039) ) |
| 2721 | 4983 | ROM_LOAD( "fs5.2j", 0x70000, 0x10000, CRC(def2f1d8) SHA1(b72e4dec3306d8afe461ac812b2de67ee85f9dd9) ) |
| 2722 | 4984 | |
| 2723 | ROM_REGION( 0x10000, "ym", 0 ) | |
| 4985 | ROM_REGION( 0x10000, "ym2", 0 ) | |
| 2724 | 4986 | ROM_LOAD( "fs4.bin", 0x00000, 0x10000, CRC(435c3716) SHA1(42053741f60594e7ae8516b3ba600f5badb3620f) ) |
| 2725 | 4987 | ROM_END |
| 2726 | 4988 | |
| 2727 | 4989 | /***********************************************************************/ |
| 2728 | 4990 | |
| 2729 | ROM_START( tdfever ) /* USA set */ | |
| 2730 | ROM_REGION( 0x10000, "main", 0 ) /* 64k for cpuA code */ | |
| 4991 | ROM_START( tdfever ) | |
| 4992 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2731 | 4993 | ROM_LOAD( "td2-ver3.6c", 0x0000, 0x10000, CRC(92138fe4) SHA1(17a2bc12f516cdbea3cc5e283b0a8a2d101dfa47) ) |
| 2732 | 4994 | |
| 2733 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 4995 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2734 | 4996 | ROM_LOAD( "td1-ver3.2c", 0x00000, 0x10000, CRC(798711f5) SHA1(a67d6b71c08df00592cf1a18806ed1c2ee757066) ) |
| 2735 | 4997 | |
| 2736 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 4998 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2737 | 4999 | ROM_LOAD( "td3-ver3.3j", 0x00000, 0x10000, CRC(5d13e0b1) SHA1(a8d8d7cbc4f5be1c0bf10bceff54104d421758c2) ) |
| 2738 | 5000 | |
| 2739 | 5001 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 2741 | 5003 | ROM_LOAD( "up03_d8.rom", 0x400, 0x00400, CRC(9c4a9198) SHA1(2d9be23c6a622eba5d3fb0d9912bad03658e563b) ) |
| 2742 | 5004 | ROM_LOAD( "up03_e9.rom", 0x800, 0x00400, CRC(c93c18e8) SHA1(9d4ca20c44bd35aabccab5f94cb45057361ccd99) ) |
| 2743 | 5005 | |
| 2744 | ROM_REGION( 0x8000, " | |
| 5006 | ROM_REGION( 0x8000, " | |
| 2745 | 5007 | ROM_LOAD( "td14ver3.4n", 0x0000, 0x8000, CRC(e841bf1a) SHA1(ba93163b00e973eb5da9ddc64becce2bbe9ede05) ) |
| 2746 | 5008 | |
| 2747 | ROM_REGION( 0x50000, "g | |
| 5009 | ROM_REGION( 0x50000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2748 | 5010 | ROM_LOAD( "up01_d8.rom", 0x00000, 0x10000, CRC(ad6e0927) SHA1(dd1c346fbf908af7b3e314f416937f48ade6af4c) ) |
| 2749 | 5011 | ROM_LOAD( "up01_e8.rom", 0x10000, 0x10000, CRC(181db036) SHA1(2c5ed172950fce1467517490a8ab3b7ac6594121) ) |
| 2750 | 5012 | ROM_LOAD( "up01_f8.rom", 0x20000, 0x10000, CRC(c5decca3) SHA1(12aff8adc0ad2bf903122ad065d182692d32fb7a) ) |
| 2751 | 5013 | ROM_LOAD( "td18ver2.8gh", 0x30000, 0x10000, CRC(3924da37) SHA1(6100eb438fb090f74639739ddcc2844f5daa7180) ) |
| 2752 | 5014 | ROM_LOAD( "up01_j8.rom", 0x40000, 0x10000, CRC(bc17ea7f) SHA1(5c3fe43c7fc204d33b5b2a71f22da00e2ba7fbdf) ) |
| 2753 | 5015 | |
| 2754 | ROM_REGION( 0x80000, " | |
| 5016 | ROM_REGION( 0x80000, "sp | |
| 2755 | 5017 | ROM_LOAD( "up01_t2.rom", 0x00000, 0x10000, CRC(88e2e819) SHA1(6d5529792dbd2ba63a1bc470e9d3ea63b876cfd8) ) |
| 2756 | 5018 | ROM_LOAD( "up01_s2.rom", 0x10000, 0x10000, CRC(f6f83d63) SHA1(15780a2c1fc7c8456fe073c372f2f4828125e800) ) |
| 2757 | 5019 | ROM_LOAD( "up01_r2.rom", 0x20000, 0x10000, CRC(a0d53fbd) SHA1(a49f29b3f07ec833651aa0e37b0e87f3f72e0e3a) ) |
| r3115 | r3116 | |
| 2767 | 5029 | ROM_END |
| 2768 | 5030 | |
| 2769 | 5031 | ROM_START( tdfeverj ) |
| 2770 | ROM_REGION( 0x10000, "main", 0 ) | |
| 5032 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2771 | 5033 | ROM_LOAD( "up02_c6.rom", 0x0000, 0x10000, CRC(88d88ec4) SHA1(774de920290b5c787b0f3d0076883dda106364be) ) |
| 2772 | 5034 | |
| 2773 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 5035 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2774 | 5036 | ROM_LOAD( "up02_c2.rom", 0x00000, 0x10000, CRC(191e6442) SHA1(6a4d0d7efea734443eef538e99562ce4e2949a84) ) |
| 2775 | 5037 | |
| 2776 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 5038 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2777 | 5039 | ROM_LOAD( "up02_j3.rom", 0x00000, 0x10000, CRC(4e4d71c7) SHA1(93744c7d4822ab1750a50ab895a83f77dfcb4bb3) ) |
| 2778 | 5040 | |
| 2779 | 5041 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 2781 | 5043 | ROM_LOAD( "up03_d8.rom", 0x400, 0x00400, CRC(9c4a9198) SHA1(2d9be23c6a622eba5d3fb0d9912bad03658e563b) ) /* green */ |
| 2782 | 5044 | ROM_LOAD( "up03_e9.rom", 0x800, 0x00400, CRC(c93c18e8) SHA1(9d4ca20c44bd35aabccab5f94cb45057361ccd99) ) /* blue */ |
| 2783 | 5045 | |
| 2784 | ROM_REGION( 0x8000, " | |
| 5046 | ROM_REGION( 0x8000, " | |
| 2785 | 5047 | ROM_LOAD( "up01_n4.rom", 0x0000, 0x8000, CRC(af9bced5) SHA1(ec8b9c0649d33e4b0ed4f7d84530016581370278) ) |
| 2786 | 5048 | |
| 2787 | ROM_REGION( 0x50000, "g | |
| 5049 | ROM_REGION( 0x50000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2788 | 5050 | ROM_LOAD( "up01_d8.rom", 0x00000, 0x10000, CRC(ad6e0927) SHA1(dd1c346fbf908af7b3e314f416937f48ade6af4c) ) |
| 2789 | 5051 | ROM_LOAD( "up01_e8.rom", 0x10000, 0x10000, CRC(181db036) SHA1(2c5ed172950fce1467517490a8ab3b7ac6594121) ) |
| 2790 | 5052 | ROM_LOAD( "up01_f8.rom", 0x20000, 0x10000, CRC(c5decca3) SHA1(12aff8adc0ad2bf903122ad065d182692d32fb7a) ) |
| 2791 | 5053 | ROM_LOAD( "up01_g8.rom", 0x30000, 0x10000, CRC(4512cdfb) SHA1(f9e57804801962e85fdd3412e6e3774e75160535) ) |
| 2792 | 5054 | ROM_LOAD( "up01_j8.rom", 0x40000, 0x10000, CRC(bc17ea7f) SHA1(5c3fe43c7fc204d33b5b2a71f22da00e2ba7fbdf) ) |
| 2793 | 5055 | |
| 2794 | ROM_REGION( 0x80000, " | |
| 5056 | ROM_REGION( 0x80000, "sp | |
| 2795 | 5057 | ROM_LOAD( "up01_t2.rom", 0x00000, 0x10000, CRC(88e2e819) SHA1(6d5529792dbd2ba63a1bc470e9d3ea63b876cfd8) ) |
| 2796 | 5058 | ROM_LOAD( "up01_s2.rom", 0x10000, 0x10000, CRC(f6f83d63) SHA1(15780a2c1fc7c8456fe073c372f2f4828125e800) ) |
| 2797 | 5059 | ROM_LOAD( "up01_r2.rom", 0x20000, 0x10000, CRC(a0d53fbd) SHA1(a49f29b3f07ec833651aa0e37b0e87f3f72e0e3a) ) |
| r3115 | r3116 | |
| 2807 | 5069 | ROM_END |
| 2808 | 5070 | |
| 2809 | 5071 | ROM_START( tdfever2 ) |
| 2810 | ROM_REGION( 0x10000, "main", 0 ) | |
| 5072 | ROM_REGION( 0x10000, "main", 0 ) | |
| 2811 | 5073 | ROM_LOAD( "tdmain.6c", 0x0000, 0x10000, CRC(9e3eaed8) SHA1(4a591767b22a46605747740a1e1de9aada2893fe) ) |
| 2812 | 5074 | |
| 2813 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 5075 | ROM_REGION( 0x10000, "sub", 0 ) | |
| 2814 | 5076 | ROM_LOAD( "tdsub.1c", 0x00000, 0x10000, CRC(0ec294c0) SHA1(b16656e5fef1c78310f20633d25cda6d6018bf52) ) |
| 2815 | 5077 | |
| 2816 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 5078 | ROM_REGION( 0x10000, "audio", 0 ) | |
| 2817 | 5079 | ROM_LOAD( "td03.2j", 0x00000, 0x10000, CRC(4092f16c) SHA1(0821a8afc91862e95e742546367724a862fc6c9f) ) |
| 2818 | 5080 | |
| 2819 | 5081 | ROM_REGION( 0x0c00, "proms", 0 ) |
| r3115 | r3116 | |
| 2821 | 5083 | ROM_LOAD( "up03_d82.rom", 0x400, 0x00400, CRC(ac9df947) SHA1(214855e1015f7b519e336159c6ea62ab1f576353) ) |
| 2822 | 5084 | ROM_LOAD( "up03_e92.rom", 0x800, 0x00400, CRC(73cdf192) SHA1(63d1aa1b00035bbfe5bebd9bc9992a5d6f5abd10) ) |
| 2823 | 5085 | |
| 2824 | ROM_REGION( 0x8000, " | |
| 5086 | ROM_REGION( 0x8000, " | |
| 2825 | 5087 | ROM_LOAD( "td06.3n", 0x0000, 0x8000, CRC(d6521b0d) SHA1(79aba420b2f039d580892fa34de5d63be1a4f222) ) |
| 2826 | 5088 | |
| 2827 | ROM_REGION( 0x60000, "g | |
| 5089 | ROM_REGION( 0x60000, "bg_tiles", ROMREGION_DISPOSE ) | |
| 2828 | 5090 | ROM_LOAD( "up01_d8.rom", 0x00000, 0x10000, CRC(ad6e0927) SHA1(dd1c346fbf908af7b3e314f416937f48ade6af4c) ) |
| 2829 | 5091 | ROM_LOAD( "up01_e8.rom", 0x10000, 0x10000, CRC(181db036) SHA1(2c5ed172950fce1467517490a8ab3b7ac6594121) ) |
| 2830 | 5092 | ROM_LOAD( "up01_f8.rom", 0x20000, 0x10000, CRC(c5decca3) SHA1(12aff8adc0ad2bf903122ad065d182692d32fb7a) ) |
| r3115 | r3116 | |
| 2832 | 5094 | ROM_LOAD( "td19.8j", 0x40000, 0x10000, CRC(f1081329) SHA1(efcc210d50923a8c9125227c741ba4b71cd9f688) ) |
| 2833 | 5095 | ROM_LOAD( "td20.8k", 0x50000, 0x10000, CRC(86cbb2e6) SHA1(77ecd6eefc7bb1933374ecd21a5b46798bdbb94d) ) |
| 2834 | 5096 | |
| 2835 | ROM_REGION( 0x80000, " | |
| 5097 | ROM_REGION( 0x80000, "sp | |
| 2836 | 5098 | ROM_LOAD( "up01_t2.rom", 0x00000, 0x10000, CRC(88e2e819) SHA1(6d5529792dbd2ba63a1bc470e9d3ea63b876cfd8) ) |
| 2837 | 5099 | ROM_LOAD( "td14.2s", 0x10000, 0x10000, CRC(c9bb9138) SHA1(955101e343e643320b29a29116bea556a25d696f) ) |
| 2838 | 5100 | ROM_LOAD( "up01_r2.rom", 0x20000, 0x10000, CRC(a0d53fbd) SHA1(a49f29b3f07ec833651aa0e37b0e87f3f72e0e3a) ) |
| r3115 | r3116 | |
| 2851 | 5113 | |
| 2852 | 5114 | /***********************************************************************/ |
| 2853 | 5115 | |
| 2854 | #define SNK_JOY1_PORT \ | |
| 2855 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) \ | |
| 2856 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) \ | |
| 2857 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) \ | |
| 2858 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) \ | |
| 2859 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(5) PORT_KEYDELTA(5) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE PORT_FULL_TURN_COUNT(12) \ | |
| 2860 | ||
| 2861 | #define SNK_JOY2_PORT \ | |
| 2862 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) \ | |
| 2863 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) \ | |
| 2864 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) \ | |
| 2865 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) \ | |
| 2866 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(5) PORT_KEYDELTA(5) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) PORT_REVERSE PORT_FULL_TURN_COUNT(12) | |
| 2867 | ||
| 2868 | #define SNK_JOY1_NODIAL_PORT \ | |
| 2869 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) \ | |
| 2870 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) \ | |
| 2871 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) \ | |
| 2872 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) \ | |
| 2873 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 2874 | ||
| 2875 | #define SNK_JOY2_NODIAL_PORT \ | |
| 2876 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) \ | |
| 2877 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) \ | |
| 2878 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) \ | |
| 2879 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) \ | |
| 2880 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2881 | ||
| 2882 | #define SNK_BUTTON_PORT \ | |
| 2883 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) \ | |
| 2884 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) \ | |
| 2885 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 2886 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) \ | |
| 2887 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) \ | |
| 2888 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 2889 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 2890 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2891 | ||
| 2892 | #define SNK_COINAGE \ | |
| 2893 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \ | |
| 2894 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \ | |
| 2895 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ | |
| 2896 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ | |
| 2897 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ | |
| 2898 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) \ | |
| 2899 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) \ | |
| 2900 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) \ | |
| 2901 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) \ | |
| 2902 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 2903 | ||
| 2904 | static INPUT_PORTS_START( ikari ) | |
| 2905 | PORT_START("IN0") | |
| 2906 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ | |
| 2907 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2908 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2909 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2910 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2911 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2912 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2913 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2914 | ||
| 2915 | PORT_START("IN1") | |
| 2916 | SNK_JOY1_PORT | |
| 2917 | ||
| 2918 | ||
| 2919 | ||
| 2920 | PORT_START("IN2") | |
| 2921 | SNK_JOY2_PORT | |
| 2922 | ||
| 2923 | ||
| 2924 | PORT_START("IN3") | |
| 2925 | SNK_BUTTON_PORT | |
| 2926 | ||
| 2927 | ||
| 2928 | PORT_START("DSW1") | |
| 2929 | PORT_DIPNAME( 0x01, 0x01, "Allow killing each other" ) | |
| 2930 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 2931 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 2932 | PORT_DIPNAME( 0x02, 0x02, "P1 & P2 Fire Buttons" ) | |
| 2933 | PORT_DIPSETTING( 0x02, "Separate" ) | |
| 2934 | PORT_DIPSETTING( 0x00, "Common" ) | |
| 2935 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 2936 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 2937 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 2938 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 2939 | PORT_DIPSETTING( 0x08, "3" ) | |
| 2940 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2941 | SNK_COINAGE | |
| 2942 | ||
| 2943 | PORT_START("DSW2") | |
| 2944 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 2945 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 2946 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 2947 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 2948 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2949 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) | |
| 2950 | PORT_DIPSETTING( 0x0c, "Demo Sounds Off" ) | |
| 2951 | PORT_DIPSETTING( 0x08, "Demo Sounds On" ) | |
| 2952 | PORT_DIPSETTING( 0x04, "Freeze" ) | |
| 2953 | PORT_DIPSETTING( 0x00, "Infinite Lives (Cheat)") | |
| 2954 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 2955 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 2956 | PORT_DIPSETTING( 0x20, "60k 120k" ) | |
| 2957 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 2958 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 2959 | PORT_DIPNAME( 0x40 ,0x40, DEF_STR( Unused ) ) | |
| 2960 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2961 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2962 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Allow_Continue ) ) | |
| 2963 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) | |
| 2964 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 2965 | INPUT_PORTS_END | |
| 2966 | ||
| 2967 | static INPUT_PORTS_START( ikarijp ) | |
| 2968 | PORT_START("IN0") | |
| 2969 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2970 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2971 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 2972 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2973 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2974 | PORT_BIT( 0x20, IP_ACTIVE_LOW,IPT_UNKNOWN ) /* sound CPU status */ | |
| 2975 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2976 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* tilt? */ | |
| 2977 | ||
| 2978 | PORT_START("IN1") | |
| 2979 | SNK_JOY1_PORT | |
| 2980 | ||
| 2981 | ||
| 2982 | ||
| 2983 | PORT_START("IN2") | |
| 2984 | SNK_JOY2_PORT | |
| 2985 | ||
| 2986 | ||
| 2987 | PORT_START("IN3") | |
| 2988 | SNK_BUTTON_PORT | |
| 2989 | ||
| 2990 | ||
| 2991 | PORT_START("DSW1") | |
| 2992 | PORT_DIPNAME( 0x01, 0x01, "Allow killing each other" ) | |
| 2993 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 2994 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 2995 | PORT_DIPNAME( 0x02, 0x02, "P1 & P2 Fire Buttons" ) | |
| 2996 | PORT_DIPSETTING( 0x02, "Separate" ) | |
| 2997 | PORT_DIPSETTING( 0x00, "Common" ) | |
| 2998 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 2999 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 3000 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 3001 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 3002 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3003 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3004 | SNK_COINAGE | |
| 3005 | ||
| 3006 | PORT_START("DSW2") | |
| 3007 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 3008 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 3009 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 3010 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 3011 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3012 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) | |
| 3013 | PORT_DIPSETTING( 0x0c, "Demo Sounds Off" ) | |
| 3014 | PORT_DIPSETTING( 0x08, "Demo Sounds On" ) | |
| 3015 | PORT_DIPSETTING( 0x04, "Freeze" ) | |
| 3016 | PORT_DIPSETTING( 0x00, "Infinite Lives (Cheat)") | |
| 3017 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3018 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 3019 | PORT_DIPSETTING( 0x20, "60k 120k" ) | |
| 3020 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 3021 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3022 | PORT_DIPNAME( 0x40 ,0x40, DEF_STR( Unused ) ) | |
| 3023 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 3024 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3025 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 3026 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3027 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3028 | INPUT_PORTS_END | |
| 3029 | ||
| 3030 | ||
| 3031 | static INPUT_PORTS_START( ikarijpb ) | |
| 3032 | PORT_INCLUDE(ikarijp) | |
| 3033 | ||
| 3034 | PORT_MODIFY("IN1") | |
| 3035 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 3036 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 3037 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 3038 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 3039 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(8) PORT_WRAPS PORT_REMAP_TABLE(dial_8_gray) PORT_SENSITIVITY(5) PORT_KEYDELTA(5) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_FULL_TURN_COUNT(8) | |
| 3040 | ||
| 3041 | PORT_MODIFY("IN2") | |
| 3042 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 3043 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 3044 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 3045 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 3046 | PORT_BIT( 0xf0, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(8) PORT_WRAPS PORT_REMAP_TABLE(dial_8_gray) PORT_SENSITIVITY(5) PORT_KEYDELTA(5) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) PORT_FULL_TURN_COUNT(8) | |
| 3047 | INPUT_PORTS_END | |
| 3048 | ||
| 3049 | ||
| 3050 | static INPUT_PORTS_START( victroad ) | |
| 3051 | PORT_START("IN0") | |
| 3052 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related ??? */ | |
| 3053 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3054 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3055 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3056 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3057 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3058 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3059 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3060 | ||
| 3061 | PORT_START("IN1") | |
| 3062 | SNK_JOY1_PORT | |
| 3063 | ||
| 3064 | ||
| 3065 | ||
| 3066 | PORT_START("IN2") | |
| 3067 | SNK_JOY2_PORT | |
| 3068 | ||
| 3069 | ||
| 3070 | PORT_START("IN3") | |
| 3071 | SNK_BUTTON_PORT | |
| 3072 | ||
| 3073 | ||
| 3074 | PORT_START("DSW1") | |
| 3075 | PORT_DIPNAME( 0x01, 0x01, "Kill friend & walk everywhere (Cheat)") | |
| 3076 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 3077 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 3078 | PORT_DIPNAME( 0x02, 0x02, "P1 & P2 Fire Buttons" ) | |
| 3079 | PORT_DIPSETTING( 0x02, "Separate" ) | |
| 3080 | PORT_DIPSETTING( 0x00, "Common" ) | |
| 3081 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 3082 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 3083 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 3084 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 3085 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3086 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3087 | SNK_COINAGE | |
| 3088 | ||
| 3089 | PORT_START("DSW2") | |
| 3090 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 3091 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 3092 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 3093 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 3094 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3095 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) | |
| 3096 | PORT_DIPSETTING( 0x0c, "Demo Sounds Off" ) | |
| 3097 | PORT_DIPSETTING( 0x08, "Demo Sounds On" ) | |
| 3098 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 3099 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 3100 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3101 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 3102 | PORT_DIPSETTING( 0x20, "60k 120k" ) | |
| 3103 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 3104 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3105 | PORT_DIPNAME( 0x40 ,0x00, DEF_STR( Allow_Continue ) ) | |
| 3106 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 3107 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 3108 | PORT_DIPNAME( 0x80, 0x80, "Credits Buy Lives During Play" ) | |
| 3109 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 3110 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) | |
| 3111 | INPUT_PORTS_END | |
| 3112 | ||
| 3113 | ||
| 3114 | static INPUT_PORTS_START( dogosokj ) | |
| 3115 | PORT_START("IN0") | |
| 3116 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related ??? */ | |
| 3117 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3118 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3119 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3120 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3121 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3122 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3123 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3124 | ||
| 3125 | PORT_START("IN1") | |
| 3126 | SNK_JOY1_NODIAL_PORT | |
| 3127 | ||
| 3128 | ||
| 3129 | PORT_START("IN2") | |
| 3130 | SNK_JOY2_NODIAL_PORT | |
| 3131 | ||
| 3132 | ||
| 3133 | PORT_START("IN3") | |
| 3134 | SNK_BUTTON_PORT | |
| 3135 | ||
| 3136 | ||
| 3137 | PORT_START("DSW1") | |
| 3138 | PORT_DIPNAME( 0x01, 0x01, "Kill friend & walk everywhere (Cheat)") | |
| 3139 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 3140 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 3141 | PORT_DIPNAME( 0x02, 0x02, "P1 & P2 Fire Buttons" ) | |
| 3142 | PORT_DIPSETTING( 0x02, "Separate" ) | |
| 3143 | PORT_DIPSETTING( 0x00, "Common" ) | |
| 3144 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 3145 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 3146 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 3147 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 3148 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3149 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3150 | SNK_COINAGE | |
| 3151 | ||
| 3152 | PORT_START("DSW2") | |
| 3153 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 3154 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 3155 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 3156 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 3157 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3158 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) | |
| 3159 | PORT_DIPSETTING( 0x0c, "Demo Sounds Off" ) | |
| 3160 | PORT_DIPSETTING( 0x08, "Demo Sounds On" ) | |
| 3161 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 3162 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 3163 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3164 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 3165 | PORT_DIPSETTING( 0x20, "60k 120k" ) | |
| 3166 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 3167 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3168 | PORT_DIPNAME( 0x40 ,0x00, DEF_STR( Allow_Continue ) ) | |
| 3169 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 3170 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 3171 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 3172 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3173 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3174 | INPUT_PORTS_END | |
| 3175 | ||
| 3176 | ||
| 3177 | static INPUT_PORTS_START( gwar ) | |
| 3178 | PORT_START("IN0") | |
| 3179 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related ??? */ | |
| 3180 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3181 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* causes reset */ | |
| 3182 | PORT_SERVICE_NO_TOGGLE(0x08, IP_ACTIVE_LOW) | |
| 3183 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3184 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3185 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3186 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3187 | ||
| 3188 | PORT_START("IN1") | |
| 3189 | SNK_JOY1_PORT | |
| 3190 | ||
| 3191 | ||
| 3192 | ||
| 3193 | PORT_START("IN2") | |
| 3194 | SNK_JOY2_PORT | |
| 3195 | ||
| 3196 | ||
| 3197 | PORT_START("IN3") | |
| 3198 | SNK_BUTTON_PORT | |
| 3199 | ||
| 3200 | ||
| 3201 | PORT_START("DSW1") | |
| 3202 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) | |
| 3203 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 3204 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) | |
| 3205 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 3206 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 3207 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3208 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 3209 | PORT_DIPSETTING( 0x04, "1st & 2nd only" ) | |
| 3210 | PORT_DIPSETTING( 0x00, "1st & every 2nd" ) | |
| 3211 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 3212 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3213 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3214 | SNK_COINAGE | |
| 3215 | ||
| 3216 | PORT_START("DSW2") | |
| 3217 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 3218 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 3219 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 3220 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 3221 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3222 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 3223 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 3224 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3225 | PORT_DIPNAME( 0x08, 0x08, "Freeze" ) | |
| 3226 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 3227 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3228 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3229 | PORT_DIPSETTING( 0x30, "30k 60k" ) | |
| 3230 | PORT_DIPSETTING( 0x20, "40k 80k" ) | |
| 3231 | PORT_DIPSETTING( 0x10, "50k 100k" ) | |
| 3232 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3233 | PORT_DIPNAME( 0x40 ,0x40, DEF_STR( Unknown ) ) | |
| 3234 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 3235 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3236 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 3237 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3238 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3239 | INPUT_PORTS_END | |
| 3240 | ||
| 3241 | static INPUT_PORTS_START( athena ) | |
| 3242 | PORT_START("IN0") | |
| 3243 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ | |
| 3244 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3245 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3246 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3247 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3248 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3249 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3250 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3251 | ||
| 3252 | PORT_START("IN1") | |
| 3253 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3254 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 3255 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3256 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3257 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 3258 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 3259 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3260 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3261 | ||
| 3262 | PORT_START("IN2") | |
| 3263 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 3264 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 3265 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 3266 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 3267 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3268 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 3269 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3270 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3271 | ||
| 3272 | PORT_START("DSW1") | |
| 3273 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) /* Listed as "Unused" in the manual */ | |
| 3274 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 3275 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3276 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 3277 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3278 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 3279 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 3280 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 3281 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 3282 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 3283 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3284 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3285 | SNK_COINAGE | |
| 3286 | ||
| 3287 | PORT_START("DSW2") | |
| 3288 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 3289 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 3290 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 3291 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 3292 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3293 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 3294 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 3295 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3296 | PORT_DIPNAME( 0x08, 0x08, "Freeze" ) | |
| 3297 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 3298 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3299 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3300 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 3301 | PORT_DIPSETTING( 0x20, "80k 160k" ) | |
| 3302 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 3303 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3304 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) /* Listed as "Unused" in the manual */ | |
| 3305 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 3306 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3307 | PORT_DIPNAME( 0x80, 0x80, "Energy" ) | |
| 3308 | PORT_DIPSETTING( 0x80, "12" ) | |
| 3309 | PORT_DIPSETTING( 0x00, "14" ) | |
| 3310 | INPUT_PORTS_END | |
| 3311 | ||
| 3312 | static INPUT_PORTS_START( tnk3 ) | |
| 3313 | PORT_START("IN0") | |
| 3314 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3315 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3316 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3317 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3318 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3319 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ | |
| 3320 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3321 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3322 | ||
| 3323 | PORT_START("IN1") | |
| 3324 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3325 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 3326 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3327 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3328 | PORT_BIT( 0xf0, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) | |
| 3329 | ||
| 3330 | PORT_START("IN2") | |
| 3331 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 3332 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 3333 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 3334 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 3335 | PORT_BIT( 0xf0, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) | |
| 3336 | ||
| 3337 | PORT_START("IN3") | |
| 3338 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 3339 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 3340 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3341 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3342 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 3343 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3344 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3345 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3346 | ||
| 3347 | PORT_START("DSW1") | |
| 3348 | PORT_DIPNAME( 0x01, 0x01, "Walk everywhere (Cheat)") | |
| 3349 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 3350 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3351 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 3352 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3353 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 3354 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 3355 | PORT_DIPSETTING( 0x04, "3" ) | |
| 3356 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3357 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coinage ) ) | |
| 3358 | /* 0x08 and 0x10: 1 Coin/1 Credit */ | |
| 3359 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 3360 | PORT_DIPSETTING( 0x18, DEF_STR( 2C_1C ) ) | |
| 3361 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 3362 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 3363 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 3364 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 3365 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life ) ) | |
| 3366 | PORT_DIPSETTING( 0xc0, "20k 60k" ) | |
| 3367 | PORT_DIPSETTING( 0x80, "40k 90k" ) | |
| 3368 | PORT_DIPSETTING( 0x40, "50k 120k" ) | |
| 3369 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3370 | ||
| 3371 | PORT_START("DSW2") | |
| 3372 | PORT_DIPNAME( 0x01, 0x01, "Bonus Occurrence" ) | |
| 3373 | PORT_DIPSETTING( 0x01, "1st & every 2nd" ) | |
| 3374 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 3375 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) | |
| 3376 | PORT_DIPSETTING( 0x06, DEF_STR( Easy ) ) | |
| 3377 | PORT_DIPSETTING( 0x04, DEF_STR( Normal ) ) | |
| 3378 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 3379 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3380 | PORT_DIPNAME( 0x18, 0x10, "Game Mode" ) | |
| 3381 | PORT_DIPSETTING( 0x18, "Demo Sounds Off" ) | |
| 3382 | PORT_DIPSETTING( 0x10, "Demo Sounds On" ) | |
| 3383 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 3384 | PORT_DIPSETTING( 0x08, "Infinite Lives (Cheat)") | |
| 3385 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) | |
| 3386 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 3387 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3388 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) // unused in manual | |
| 3389 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 3390 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3391 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Allow_Continue ) ) | |
| 3392 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) | |
| 3393 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 3394 | INPUT_PORTS_END | |
| 3395 | ||
| 3396 | static INPUT_PORTS_START( bermudat ) | |
| 3397 | PORT_START("IN0") | |
| 3398 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ | |
| 3399 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3400 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* tile? */ | |
| 3401 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3402 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3403 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3404 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3405 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3406 | ||
| 3407 | PORT_START("IN1") | |
| 3408 | SNK_JOY1_PORT | |
| 3409 | ||
| 3410 | ||
| 3411 | ||
| 3412 | PORT_START("IN2") | |
| 3413 | SNK_JOY2_PORT | |
| 3414 | ||
| 3415 | ||
| 3416 | PORT_START("IN3") | |
| 3417 | SNK_BUTTON_PORT | |
| 3418 | ||
| 3419 | ||
| 3420 | PORT_START("DSW1") | |
| 3421 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) | |
| 3422 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 3423 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3424 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 3425 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 3426 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3427 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 3428 | PORT_DIPSETTING( 0x04, "1st & every 2nd" ) | |
| 3429 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 3430 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 3431 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3432 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3433 | SNK_COINAGE | |
| 3434 | ||
| 3435 | PORT_START("DSW2") | |
| 3436 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 3437 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 3438 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 3439 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 3440 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3441 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) | |
| 3442 | PORT_DIPSETTING( 0x0c, "Demo Sounds Off" ) | |
| 3443 | PORT_DIPSETTING( 0x08, "Demo Sounds On" ) | |
| 3444 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 3445 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 3446 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3447 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 3448 | PORT_DIPSETTING( 0x20, "60k 120k" ) | |
| 3449 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 3450 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3451 | PORT_DIPNAME( 0xc0, 0xc0, "Game Style" ) | |
| 3452 | PORT_DIPSETTING( 0xc0, "Normal without continue" ) | |
| 3453 | PORT_DIPSETTING( 0x80, "Normal with continue" ) | |
| 3454 | PORT_DIPSETTING( 0x40, "Time attack 3 minutes" ) | |
| 3455 | PORT_DIPSETTING( 0x00, "Time attack 5 minutes" ) | |
| 3456 | INPUT_PORTS_END | |
| 3457 | ||
| 3458 | static INPUT_PORTS_START( bermudaa ) | |
| 3459 | PORT_INCLUDE( bermudat ) | |
| 3460 | ||
| 3461 | PORT_MODIFY("IN0") | |
| 3462 | PORT_SERVICE_NO_TOGGLE(0x08, IP_ACTIVE_LOW) | |
| 3463 | ||
| 3464 | PORT_MODIFY("DSW1") | |
| 3465 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) | |
| 3466 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 3467 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 3468 | ||
| 3469 | PORT_MODIFY("DSW2") | |
| 3470 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3471 | PORT_DIPSETTING( 0x30, "25k 50k" ) | |
| 3472 | PORT_DIPSETTING( 0x20, "35k 70k" ) | |
| 3473 | PORT_DIPSETTING( 0x10, "50K 100k" ) | |
| 3474 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3475 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) | |
| 3476 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 3477 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3478 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 3479 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3480 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3481 | INPUT_PORTS_END | |
| 3482 | ||
| 3483 | /* Same as Bermudaa, but has different Bonus Life */ | |
| 3484 | static INPUT_PORTS_START( worldwar ) | |
| 3485 | PORT_INCLUDE( bermudaa ) | |
| 3486 | ||
| 3487 | PORT_MODIFY("DSW2") | |
| 3488 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3489 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 3490 | PORT_DIPSETTING( 0x20, "80k 160k" ) | |
| 3491 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 3492 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3493 | INPUT_PORTS_END | |
| 3494 | ||
| 3495 | static INPUT_PORTS_START( psychos ) | |
| 3496 | PORT_START("IN0") | |
| 3497 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related */ | |
| 3498 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3499 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* reset */ | |
| 3500 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3501 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3502 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3503 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3504 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3505 | ||
| 3506 | PORT_START("IN1") | |
| 3507 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 3508 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 3509 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 3510 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 3511 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3512 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 3513 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3514 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3515 | ||
| 3516 | PORT_START("IN2") | |
| 3517 | SNK_BUTTON_PORT | |
| 3518 | ||
| 3519 | ||
| 3520 | PORT_START("DSW1") | |
| 3521 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) | |
| 3522 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 3523 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 3524 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3525 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 3526 | PORT_DIPSETTING( 0x00, "1st & every 2nd" ) | |
| 3527 | PORT_DIPSETTING( 0x04, "1st & 2nd only" ) | |
| 3528 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 3529 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3530 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3531 | SNK_COINAGE | |
| 3532 | ||
| 3533 | PORT_START("DSW2") | |
| 3534 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 3535 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 3536 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 3537 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 3538 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3539 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) | |
| 3540 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3541 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3542 | PORT_DIPNAME( 0x08, 0x08, "Freeze" ) | |
| 3543 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 3544 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3545 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3546 | PORT_DIPSETTING( 0x30, "50K 100K" ) | |
| 3547 | PORT_DIPSETTING( 0x20, "60K 120K" ) | |
| 3548 | PORT_DIPSETTING( 0x10, "100K 200K" ) | |
| 3549 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3550 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) ) | |
| 3551 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 3552 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 3553 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 3554 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3555 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3556 | INPUT_PORTS_END | |
| 3557 | ||
| 3558 | static INPUT_PORTS_START( legofair ) | |
| 3559 | PORT_START("IN0") | |
| 3560 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ | |
| 3561 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3562 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) /* Reset */ | |
| 3563 | PORT_SERVICE_NO_TOGGLE(0x08, 0x08 ) | |
| 3564 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3565 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3566 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3567 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3568 | ||
| 3569 | PORT_START("IN1") | |
| 3570 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 3571 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 3572 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 3573 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 3574 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3575 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 3576 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3577 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3578 | ||
| 3579 | PORT_START("IN2") | |
| 3580 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 3581 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 3582 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3583 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3584 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 3585 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3586 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3587 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3588 | ||
| 3589 | PORT_START("DSW1") | |
| 3590 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 3591 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 3592 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3593 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) | |
| 3594 | PORT_DIPSETTING( 0x02, DEF_STR( Upright ) ) | |
| 3595 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 3596 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 3597 | PORT_DIPSETTING( 0x00, "1st & every 2nd" ) | |
| 3598 | PORT_DIPSETTING( 0x04, "1st & 2nd only" ) | |
| 3599 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 3600 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3601 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3602 | SNK_COINAGE | |
| 3603 | ||
| 3604 | PORT_START("DSW2") | |
| 3605 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 3606 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 3607 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 3608 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 3609 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3610 | PORT_DIPNAME( 0x0c, 0x0c, "Game Mode" ) | |
| 3611 | PORT_DIPSETTING( 0x08, "Demo Sounds Off" ) | |
| 3612 | PORT_DIPSETTING( 0x0c, "Demo Sounds On" ) | |
| 3613 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 3614 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 3615 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3616 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 3617 | PORT_DIPSETTING( 0x20, "75k 150k" ) | |
| 3618 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 3619 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3620 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) | |
| 3621 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 3622 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 3623 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") | |
| 3624 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3625 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3626 | INPUT_PORTS_END | |
| 3627 | ||
| 3628 | static INPUT_PORTS_START( choppera ) | |
| 3629 | PORT_START("IN0") | |
| 3630 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ | |
| 3631 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3632 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) /* Reset */ | |
| 3633 | PORT_SERVICE_NO_TOGGLE(0x08, 0x08) | |
| 3634 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3635 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3636 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3637 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3638 | ||
| 3639 | PORT_START("IN1") | |
| 3640 | SNK_JOY1_NODIAL_PORT | |
| 3641 | ||
| 3642 | ||
| 3643 | PORT_START("IN2") | |
| 3644 | SNK_JOY2_NODIAL_PORT | |
| 3645 | ||
| 3646 | ||
| 3647 | PORT_START("IN3") | |
| 3648 | SNK_BUTTON_PORT | |
| 3649 | ||
| 3650 | ||
| 3651 | PORT_START("DSW1") | |
| 3652 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 3653 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 3654 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3655 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) | |
| 3656 | PORT_DIPSETTING( 0x02, DEF_STR( Upright ) ) | |
| 3657 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 3658 | PORT_DIPNAME( 0x04, 0x04, "Bonus Occurrence" ) | |
| 3659 | PORT_DIPSETTING( 0x00, "1st & every 2nd" ) | |
| 3660 | PORT_DIPSETTING( 0x04, "1st & 2nd only" ) | |
| 3661 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 3662 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3663 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3664 | SNK_COINAGE | |
| 3665 | ||
| 3666 | PORT_START("DSW2") | |
| 3667 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 3668 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 3669 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 3670 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 3671 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3672 | PORT_DIPNAME( 0x0c, 0x0c, "Game Mode" ) | |
| 3673 | PORT_DIPSETTING( 0x08, "Demo Sounds Off" ) | |
| 3674 | PORT_DIPSETTING( 0x0c, "Demo Sounds On" ) | |
| 3675 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 3676 | PORT_DIPSETTING( 0x04, "Infinite Lives (Cheat)") | |
| 3677 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 3678 | PORT_DIPSETTING( 0x30, "50k 100k" ) | |
| 3679 | PORT_DIPSETTING( 0x20, "75k 150k" ) | |
| 3680 | PORT_DIPSETTING( 0x10, "100k 200k" ) | |
| 3681 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3682 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) | |
| 3683 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 3684 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 3685 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") | |
| 3686 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3687 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3688 | INPUT_PORTS_END | |
| 3689 | ||
| 3690 | static INPUT_PORTS_START( fitegolf ) | |
| 3691 | PORT_START("IN0") | |
| 3692 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related? */ | |
| 3693 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3694 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3695 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3696 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3697 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3698 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3699 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3700 | ||
| 3701 | PORT_START("IN1") | |
| 3702 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3703 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 3704 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3705 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3706 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 3707 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 3708 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3709 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3710 | ||
| 3711 | PORT_START("IN2") | |
| 3712 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 3713 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 3714 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 3715 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 3716 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3717 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3718 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3719 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3720 | ||
| 3721 | PORT_START("DSW1") | |
| 3722 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Language ) ) /* Version */ | |
| 3723 | PORT_DIPSETTING( 0x01, DEF_STR( English ) ) /* Over Sea */ | |
| 3724 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) /* Domestic */ | |
| 3725 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 3726 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 3727 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3728 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) ) | |
| 3729 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3730 | PORT_DIPSETTING( 0x04, DEF_STR( Cocktail ) ) | |
| 3731 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) | |
| 3732 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 3733 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 3734 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 3735 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 3736 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) | |
| 3737 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 3738 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 3739 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 3740 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) | |
| 3741 | ||
| 3742 | PORT_START("DSW2") | |
| 3743 | PORT_DIPNAME( 0x01, 0x01, "Shot Time" ) | |
| 3744 | PORT_DIPSETTING( 0x00, "Short (10 sec)" ) | |
| 3745 | PORT_DIPSETTING( 0x01, "Long (12 sec)" ) | |
| 3746 | PORT_DIPNAME( 0x02, 0x02, "Bonus Holes" ) | |
| 3747 | PORT_DIPSETTING( 0x02, "5 (Par 1,Birdie 2,Eagle 3)" ) | |
| 3748 | PORT_DIPSETTING( 0x00, "3 (Par 0,Birdie 1,Eagle 2)" ) | |
| 3749 | PORT_DIPNAME( 0x0c, 0x0c, "Game Mode" ) | |
| 3750 | PORT_DIPSETTING( 0x08, "Endless Game (Cheat)") | |
| 3751 | PORT_DIPSETTING( 0x0c, "Demo Sound On" ) | |
| 3752 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 3753 | PORT_DIPSETTING( 0x04, "Demo Sound Off" ) | |
| 3754 | PORT_DIPNAME( 0x30, 0x30, "Play Holes" ) | |
| 3755 | PORT_DIPSETTING( 0x30, "2" ) | |
| 3756 | PORT_DIPSETTING( 0x20, "3" ) | |
| 3757 | PORT_DIPSETTING( 0x10, "4" ) | |
| 3758 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3759 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) | |
| 3760 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3761 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3762 | PORT_DIPNAME( 0x80, 0x80, "Test Mode" ) | |
| 3763 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3764 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3765 | INPUT_PORTS_END | |
| 3766 | ||
| 3767 | static INPUT_PORTS_START( countryc ) | |
| 3768 | PORT_START("IN0") | |
| 3769 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound related? */ | |
| 3770 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3771 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3772 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3773 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3774 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3775 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3776 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 3777 | ||
| 3778 | PORT_START("IN1") | |
| 3779 | PORT_BIT( 0x7f, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) PORT_REVERSE | |
| 3780 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 3781 | ||
| 3782 | PORT_START("IN2") | |
| 3783 | PORT_BIT( 0x7f, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) | |
| 3784 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 3785 | ||
| 3786 | PORT_START("DSW1") | |
| 3787 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Language ) ) /* NOT showed in Test Mode/Manual */ | |
| 3788 | PORT_DIPSETTING( 0x01, DEF_STR( English ) ) | |
| 3789 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 3790 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 3791 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 3792 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3793 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) ) /* Trackball */ | |
| 3794 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) /* 1 System */ | |
| 3795 | PORT_DIPSETTING( 0x04, DEF_STR( Cocktail ) ) /* 2 Systems */ | |
| 3796 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) | |
| 3797 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 3798 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 3799 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 3800 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 3801 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) | |
| 3802 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) | |
| 3803 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 3804 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 3805 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_4C ) ) | |
| 3806 | ||
| 3807 | PORT_START("DSW2") | |
| 3808 | PORT_DIPNAME( 0x01, 0x01, "Shot Time" ) | |
| 3809 | PORT_DIPSETTING( 0x00, "Short (10 sec)" ) | |
| 3810 | PORT_DIPSETTING( 0x01, "Long (12 sec)" ) | |
| 3811 | PORT_DIPNAME( 0x02, 0x02, "Bonus Holes" ) | |
| 3812 | PORT_DIPSETTING( 0x02, "5 (Par 1,Birdie 2,Eagle 3)" ) | |
| 3813 | PORT_DIPSETTING( 0x00, "3 (Par 0,Birdie 1,Eagle 2)" ) | |
| 3814 | PORT_DIPNAME( 0x0c, 0x0c, "Game Mode" ) | |
| 3815 | PORT_DIPSETTING( 0x08, "Endless Game (Cheat)") | |
| 3816 | PORT_DIPSETTING( 0x0c, "Demo Sound On" ) | |
| 3817 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 3818 | PORT_DIPSETTING( 0x04, "Demo Sound Off" ) | |
| 3819 | PORT_DIPNAME( 0x30, 0x30, "Play Holes" ) | |
| 3820 | PORT_DIPSETTING( 0x30, "2" ) | |
| 3821 | PORT_DIPSETTING( 0x20, "3" ) | |
| 3822 | PORT_DIPSETTING( 0x10, "4" ) | |
| 3823 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3824 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) | |
| 3825 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3826 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3827 | PORT_DIPNAME( 0x80, 0x80, "Test Mode" ) | |
| 3828 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3829 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3830 | INPUT_PORTS_END | |
| 3831 | ||
| 3832 | static INPUT_PORTS_START( fsoccer ) | |
| 3833 | PORT_START("IN0") | |
| 3834 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3835 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3836 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3837 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ | |
| 3838 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3839 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3840 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start Game A") | |
| 3841 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Start Game B") | |
| 3842 | ||
| 3843 | PORT_START("IN1") | |
| 3844 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3845 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 3846 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3847 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3848 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 3849 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 3850 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 3851 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 3852 | ||
| 3853 | PORT_START("IN2") | |
| 3854 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3855 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3856 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3857 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3858 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 3859 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 3860 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 3861 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 3862 | ||
| 3863 | PORT_START("IN3") | |
| 3864 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 3865 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 3866 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3867 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Start Game E") | |
| 3868 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 3869 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 3870 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 3871 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 3872 | ||
| 3873 | PORT_START("IN4") | |
| 3874 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 3875 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 3876 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3877 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3878 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) | |
| 3879 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) | |
| 3880 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) | |
| 3881 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) | |
| 3882 | ||
| 3883 | PORT_START("IN5") /* Only used in the "test mode" in this version */ | |
| 3884 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_PLAYER(1) | |
| 3885 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 3886 | ||
| 3887 | PORT_START("IN6") /* Only used in the "test mode" in this version */ | |
| 3888 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) | |
| 3889 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 3890 | ||
| 3891 | PORT_START("IN7") /* Only used in the "test mode" in this version */ | |
| 3892 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(3) | |
| 3893 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 3894 | ||
| 3895 | PORT_START("IN8") /* Only used in the "test mode" in this version */ | |
| 3896 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(4) | |
| 3897 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 3898 | ||
| 3899 | PORT_START("DSW1") | |
| 3900 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) | |
| 3901 | PORT_DIPSETTING( 0x03, "Upright (With VS)" ) | |
| 3902 | PORT_DIPSETTING( 0x02, "Upright (Without VS)" ) | |
| 3903 | PORT_DIPSETTING( 0x00, "Cocktail (2 Players)" ) | |
| 3904 | PORT_DIPSETTING( 0x01, "Cocktail (4 Players)" ) | |
| 3905 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Version ) ) | |
| 3906 | PORT_DIPSETTING( 0x04, DEF_STR( Europe ) ) | |
| 3907 | PORT_DIPSETTING( 0x00, DEF_STR( USA ) ) | |
| 3908 | PORT_DIPSETTING( 0x08, DEF_STR( Japan ) ) | |
| 3909 | /* PORT_DIPSETTING( 0x0c, DEF_STR( Europe ) ) */ | |
| 3910 | SNK_COINAGE | |
| 3911 | ||
| 3912 | PORT_START("DSW2") | |
| 3913 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) | |
| 3914 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 3915 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) | |
| 3916 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 3917 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 3918 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3919 | PORT_DIPNAME( 0x0c, 0x0c, "Game Mode" ) | |
| 3920 | PORT_DIPSETTING( 0x08, "Demo Sound Off" ) | |
| 3921 | PORT_DIPSETTING( 0x0c, "Demo Sound On" ) | |
| 3922 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 3923 | PORT_DIPSETTING( 0x04, "Win Match Against CPU (Cheat)") | |
| 3924 | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Game_Time ) ) /* See notes */ | |
| 3925 | PORT_DIPSETTING( 0x10, "1:00" ) | |
| 3926 | PORT_DIPSETTING( 0x60, "1:10" ) | |
| 3927 | PORT_DIPSETTING( 0x50, "1:20" ) | |
| 3928 | PORT_DIPSETTING( 0x40, "1:30" ) | |
| 3929 | PORT_DIPSETTING( 0x30, "1:40" ) | |
| 3930 | PORT_DIPSETTING( 0x20, "1:50" ) | |
| 3931 | PORT_DIPSETTING( 0x70, "2:00" ) | |
| 3932 | PORT_DIPSETTING( 0x00, "2:10" ) | |
| 3933 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 3934 | ||
| 3935 | PORT_START("IN9") | |
| 3936 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3937 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3938 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3939 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3940 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3941 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3942 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START3 ) PORT_NAME("Start Game C") | |
| 3943 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Start Game D") | |
| 3944 | INPUT_PORTS_END | |
| 3945 | ||
| 3946 | static INPUT_PORTS_START( tdfever ) | |
| 3947 | PORT_START("IN0") | |
| 3948 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3949 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3950 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 3951 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ | |
| 3952 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3953 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3954 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start Game A") | |
| 3955 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Start Game B") | |
| 3956 | ||
| 3957 | PORT_START("IN1") | |
| 3958 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 3959 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 3960 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 3961 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 3962 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3963 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3964 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 3965 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3966 | ||
| 3967 | PORT_START("IN2") | |
| 3968 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3969 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 3970 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 3971 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 3972 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 3973 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 3974 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 3975 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 3976 | ||
| 3977 | PORT_START("IN3") | |
| 3978 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 3979 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 3980 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3981 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Start Game E") | |
| 3982 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 3983 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 3984 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 3985 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 3986 | ||
| 3987 | PORT_START("IN4") | |
| 3988 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 3989 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 3990 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3991 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3992 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) | |
| 3993 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) | |
| 3994 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) | |
| 3995 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) | |
| 3996 | ||
| 3997 | PORT_START("IN5") | |
| 3998 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) | |
| 3999 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4000 | ||
| 4001 | PORT_START("IN6") | |
| 4002 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) | |
| 4003 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4004 | ||
| 4005 | PORT_START("IN7") | |
| 4006 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(3) | |
| 4007 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4008 | ||
| 4009 | PORT_START("IN8") | |
| 4010 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(4) | |
| 4011 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4012 | ||
| 4013 | PORT_START("DSW1") | |
| 4014 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) | |
| 4015 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 4016 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 4017 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) | |
| 4018 | PORT_DIPSETTING( 0x02, "2 Player Upright" ) | |
| 4019 | PORT_DIPSETTING( 0x00, "4 Player Cocktail" ) | |
| 4020 | PORT_DIPNAME( 0x0c, 0x00, "1st Down Bonus Time" ) | |
| 4021 | PORT_DIPSETTING( 0x00, "Every 1st Down" ) | |
| 4022 | PORT_DIPSETTING( 0x04, "Every 4 1st Downs" ) | |
| 4023 | PORT_DIPSETTING( 0x08, "Every 6 1st Downs" ) | |
| 4024 | PORT_DIPSETTING( 0x0c, "Every 8 1st Downs" ) | |
| 4025 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) | |
| 4026 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 4027 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 4028 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 4029 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 4030 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) /* Manual shows these two as blank */ | |
| 4031 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 4032 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4033 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 4034 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 4035 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4036 | ||
| 4037 | PORT_START("DSW2") | |
| 4038 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 4039 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 4040 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 4041 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 4042 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 4043 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) | |
| 4044 | PORT_DIPSETTING( 0x0c, "Demo Sound Off" ) | |
| 4045 | PORT_DIPSETTING( 0x08, "Demo Sound On" ) | |
| 4046 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 4047 | PORT_DIPSETTING( 0x04, "Never Finish (Cheat)") | |
| 4048 | PORT_DIPNAME( 0x70, 0x70, "Play Time" ) | |
| 4049 | PORT_DIPSETTING( 0x70, "1:00" ) | |
| 4050 | PORT_DIPSETTING( 0x60, "1:10" ) | |
| 4051 | PORT_DIPSETTING( 0x50, "1:20" ) | |
| 4052 | PORT_DIPSETTING( 0x40, "1:30" ) | |
| 4053 | PORT_DIPSETTING( 0x30, "1:40" ) | |
| 4054 | PORT_DIPSETTING( 0x20, "1:50" ) | |
| 4055 | PORT_DIPSETTING( 0x10, "2:00" ) | |
| 4056 | PORT_DIPSETTING( 0x00, "2:10" ) | |
| 4057 | /* | |
| 4058 | Actual Play Times listed in manual based on Players & cabinet type: | |
| 4059 | ||
| 4060 | Upright/Cocktail Cocktail Only | |
| 4061 | Dip Switch A B C D E <-- Start button "MODE" | |
| 4062 | SW6 SW7 SW8 1PvsCPU 2PvsCPU 1Pvs2P 2Pvs1P 2Pvs2P | |
| 4063 | OFF OFF OFF 1:00 1:10 2:00 2:10 3:00 | |
| 4064 | ON OFF OFF 1:10 1:20 2:10 2:20 3:10 | |
| 4065 | OFF ON OFF 1:20 1:30 2:20 2:30 3:20 | |
| 4066 | ON ON OFF 1:30 1:40 2:30 2:40 3:30 | |
| 4067 | OFF OFF ON 1:40 1:50 2:40 2:50 3:40 | |
| 4068 | ON OFF ON 1:50 2:00 2:50 3:00 3:50 | |
| 4069 | OFF ON ON 2:00 2:10 3:00 3:10 4:00 | |
| 4070 | ON ON ON 2:10 2:20 3:10 3:20 4:10 | |
| 4071 | */ | |
| 4072 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 4073 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 4074 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4075 | ||
| 4076 | PORT_START("IN9") | |
| 4077 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4078 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4079 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4080 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4081 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4082 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4083 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START3 ) PORT_NAME("Start Game C") | |
| 4084 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Start Game D") | |
| 4085 | INPUT_PORTS_END | |
| 4086 | ||
| 4087 | static INPUT_PORTS_START( tdfeverj ) | |
| 4088 | PORT_START("IN0") | |
| 4089 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4090 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4091 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 4092 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* sound CPU status */ | |
| 4093 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 4094 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 4095 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start Game A") | |
| 4096 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Start Game B") | |
| 4097 | ||
| 4098 | PORT_START("IN1") | |
| 4099 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 4100 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 4101 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4102 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4103 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 4104 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 4105 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 4106 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 4107 | ||
| 4108 | PORT_START("IN2") | |
| 4109 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 4110 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 4111 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4112 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4113 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 4114 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 4115 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 4116 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 4117 | ||
| 4118 | PORT_START("IN3") | |
| 4119 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 4120 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 4121 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4122 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Start Game E") | |
| 4123 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 4124 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 4125 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 4126 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 4127 | ||
| 4128 | PORT_START("IN4") | |
| 4129 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 4130 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 4131 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4132 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4133 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) | |
| 4134 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) | |
| 4135 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) | |
| 4136 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) | |
| 4137 | ||
| 4138 | PORT_START("IN5") | |
| 4139 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) | |
| 4140 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4141 | ||
| 4142 | PORT_START("IN6") | |
| 4143 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M) PORT_PLAYER(2) | |
| 4144 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4145 | ||
| 4146 | PORT_START("IN7") | |
| 4147 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(3) | |
| 4148 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4149 | ||
| 4150 | PORT_START("IN8") | |
| 4151 | PORT_BIT( 0x7f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_PLAYER(4) | |
| 4152 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 4153 | ||
| 4154 | PORT_START("DSW1") | |
| 4155 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) | |
| 4156 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 4157 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 4158 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 4159 | PORT_DIPSETTING( 0x00, "2 Player Upright" ) | |
| 4160 | PORT_DIPSETTING( 0x02, "4 Player Cocktail" ) | |
| 4161 | PORT_DIPNAME( 0x0c, 0x00, "1st Down Bonus Time" ) | |
| 4162 | PORT_DIPSETTING( 0x00, "Every 1st Down" ) | |
| 4163 | PORT_DIPSETTING( 0x04, "Every 4 1st Downs" ) | |
| 4164 | PORT_DIPSETTING( 0x08, "Every 6 1st Downs" ) | |
| 4165 | PORT_DIPSETTING( 0x0c, "Every 8 1st Downs" ) | |
| 4166 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) | |
| 4167 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 4168 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 4169 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 4170 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 4171 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) /* Manual shows these two as blank */ | |
| 4172 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 4173 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4174 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 4175 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 4176 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4177 | ||
| 4178 | PORT_START("DSW2") | |
| 4179 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 4180 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 4181 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) | |
| 4182 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 4183 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 4184 | PORT_DIPNAME( 0x0c, 0x08, "Game Mode" ) | |
| 4185 | PORT_DIPSETTING( 0x0c, "Demo Sound Off" ) | |
| 4186 | PORT_DIPSETTING( 0x08, "Demo Sound On" ) | |
| 4187 | PORT_DIPSETTING( 0x00, "Freeze" ) | |
| 4188 | PORT_DIPSETTING( 0x04, "Never Finish (Cheat)") | |
| 4189 | PORT_DIPNAME( 0x70, 0x70, "Play Time" ) | |
| 4190 | PORT_DIPSETTING( 0x70, "1:00" ) | |
| 4191 | PORT_DIPSETTING( 0x60, "1:10" ) | |
| 4192 | PORT_DIPSETTING( 0x50, "1:20" ) | |
| 4193 | PORT_DIPSETTING( 0x40, "1:30" ) | |
| 4194 | PORT_DIPSETTING( 0x30, "1:40" ) | |
| 4195 | PORT_DIPSETTING( 0x20, "1:50" ) | |
| 4196 | PORT_DIPSETTING( 0x10, "2:00" ) | |
| 4197 | PORT_DIPSETTING( 0x00, "2:10" ) | |
| 4198 | /* | |
| 4199 | Actual Play Times listed in manual based on Players & cabinet type: | |
| 4200 | ||
| 4201 | Upright/Cocktail Cocktail Only | |
| 4202 | Dip Switch A B C D E <-- Start button "MODE" | |
| 4203 | SW6 SW7 SW8 1PvsCPU 2PvsCPU 1Pvs2P 2Pvs1P 2Pvs2P | |
| 4204 | OFF OFF OFF 1:00 1:10 2:00 2:10 3:00 | |
| 4205 | ON OFF OFF 1:10 1:20 2:10 2:20 3:10 | |
| 4206 | OFF ON OFF 1:20 1:30 2:20 2:30 3:20 | |
| 4207 | ON ON OFF 1:30 1:40 2:30 2:40 3:30 | |
| 4208 | OFF OFF ON 1:40 1:50 2:40 2:50 3:40 | |
| 4209 | ON OFF ON 1:50 2:00 2:50 3:00 3:50 | |
| 4210 | OFF ON ON 2:00 2:10 3:00 3:10 4:00 | |
| 4211 | ON ON ON 2:10 2:20 3:10 3:20 4:10 | |
| 4212 | */ | |
| 4213 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 4214 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 4215 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4216 | ||
| 4217 | PORT_START("IN9") | |
| 4218 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4219 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4220 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4221 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4222 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4223 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 4224 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START3 ) PORT_NAME("Start Game C") | |
| 4225 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Start Game D") | |
| 4226 | INPUT_PORTS_END | |
| 4227 | ||
| 4228 | /***********************************************************************/ | |
| 4229 | ||
| 4230 | /* input port configuration */ | |
| 4231 | ||
| 4232 | static const SNK_INPUT_PORT_TYPE athena_io[SNK_MAX_INPUT_PORTS] = { | |
| 4233 | /* c000 */ SNK_INP0, | |
| 4234 | /* c100 */ SNK_INP1, SNK_UNUSED, | |
| 4235 | /* c200 */ SNK_INP2, SNK_UNUSED, | |
| 4236 | /* c300 */ SNK_UNUSED, SNK_UNUSED, | |
| 4237 | /* c400 */ SNK_UNUSED, SNK_UNUSED, | |
| 4238 | /* c500 */ SNK_DSW1, SNK_UNUSED, | |
| 4239 | /* c600 */ SNK_DSW2, | |
| 4240 | /* c080 */ SNK_UNUSED | |
| 4241 | }; | |
| 4242 | ||
| 4243 | static const SNK_INPUT_PORT_TYPE ikari_io[SNK_MAX_INPUT_PORTS] = { | |
| 4244 | /* c000 */ SNK_INP0, | |
| 4245 | /* c100 */ SNK_ROT_PLAYER1, SNK_UNUSED, | |
| 4246 | /* c200 */ SNK_ROT_PLAYER2, SNK_UNUSED, | |
| 4247 | /* c300 */ SNK_INP3, SNK_UNUSED, | |
| 4248 | /* c400 */ SNK_UNUSED, SNK_UNUSED, | |
| 4249 | /* c500 */ SNK_DSW1, SNK_UNUSED, | |
| 4250 | /* c600 */ SNK_DSW2, | |
| 4251 | /* c080 */ SNK_UNUSED | |
| 4252 | }; | |
| 4253 | ||
| 4254 | static const SNK_INPUT_PORT_TYPE choppera_io[SNK_MAX_INPUT_PORTS] = { | |
| 4255 | /* c000 */ SNK_INP0, | |
| 4256 | /* c100 */ SNK_INP1, SNK_UNUSED, | |
| 4257 | /* c200 */ SNK_INP2, SNK_UNUSED, | |
| 4258 | /* c300 */ SNK_INP3, SNK_UNUSED, | |
| 4259 | /* c400 */ SNK_UNUSED, SNK_UNUSED, | |
| 4260 | /* c500 */ SNK_DSW1, SNK_UNUSED, | |
| 4261 | /* c600 */ SNK_DSW2, | |
| 4262 | /* c080 */ SNK_UNUSED | |
| 4263 | }; | |
| 4264 | ||
| 4265 | static const SNK_INPUT_PORT_TYPE fsoccer_io[SNK_MAX_INPUT_PORTS] = { | |
| 4266 | /* c000 */ SNK_INP0, | |
| 4267 | /* c100 */ SNK_INP1, SNK_INP2, SNK_INP3, SNK_INP4, /* joy1..joy4 */ | |
| 4268 | /* c300 */ SNK_INP5, SNK_INP6, SNK_INP7, SNK_INP8, /* aim1..aim4 */ | |
| 4269 | /* c500 */ SNK_UNUSED, | |
| 4270 | /* c580 */ SNK_DSW1, /* DSW1 */ | |
| 4271 | /* c600 */ SNK_DSW2, /* DSW2 */ | |
| 4272 | /* c080 */ SNK_INP9 /* Start games type C & D */ | |
| 4273 | }; | |
| 4274 | ||
| 4275 | static const SNK_INPUT_PORT_TYPE tdfever_io[SNK_MAX_INPUT_PORTS] = { | |
| 4276 | /* c000 */ SNK_INP0, | |
| 4277 | /* c100 */ SNK_INP1, SNK_INP2, SNK_INP3, SNK_INP4, /* joy1..joy4 */ | |
| 4278 | /* c300 */ SNK_INP5, SNK_INP6, SNK_INP7, SNK_INP8, /* aim1..aim4 */ | |
| 4279 | /* c500 */ SNK_UNUSED, | |
| 4280 | /* c580 */ SNK_DSW1, /* DSW1 */ | |
| 4281 | /* c600 */ SNK_DSW2, /* DSW2 */ | |
| 4282 | /* c080 */ SNK_INP9 /* Start games type C & D */ | |
| 4283 | }; | |
| 4284 | ||
| 4285 | static DRIVER_INIT( ikari ){ | |
| 4286 | UINT8 *RAM = memory_region(machine, "main"); | |
| 4287 | /* Hack ROM test */ | |
| 4288 | RAM[0x11a6] = 0x00; | |
| 4289 | RAM[0x11a7] = 0x00; | |
| 4290 | RAM[0x11a8] = 0x00; | |
| 4291 | ||
| 4292 | /* Hack Incorrect port value */ | |
| 4293 | RAM[0x1003] = 0xc3; | |
| 4294 | RAM[0x1004] = 0x02; | |
| 4295 | RAM[0x1005] = 0x10; | |
| 4296 | ||
| 4297 | snk_sound_busy_bit = 0x01; | |
| 4298 | snk_io = ikari_io; | |
| 4299 | hard_flags = 1; | |
| 4300 | videoram = snk_rambase + 0x800; | |
| 4301 | snk_gamegroup = 1; | |
| 5116 | static DRIVER_INIT( countryc ) | |
| 5117 | { | |
| 5118 | // replace coin counter with trackball select | |
| 5119 | memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xc300, 0xc300, 0, 0, countryc_trackball_w); | |
| 4302 | 5120 | } |
| 4303 | 5121 | |
| 4304 | static DRIVER_INIT( ikarijp ){ | |
| 4305 | UINT8 *RAM = memory_region(machine, "main"); | |
| 4306 | RAM[0x190b] = 0xc9; /* faster test */ | |
| 4307 | 5122 | |
| 4308 | snk_sound_busy_bit = 0x20; | |
| 4309 | snk_io = ikari_io; | |
| 4310 | hard_flags = 1; | |
| 4311 | videoram = snk_rambase + 0x000; | |
| 4312 | snk_gamegroup = 1; | |
| 4313 | } | |
| 4314 | 5123 | |
| 4315 | static DRIVER_INIT( ikarijpb ){ | |
| 4316 | UINT8 *RAM = memory_region(machine, "main"); | |
| 4317 | RAM[0x190b] = 0xc9; /* faster test */ | |
| 5124 | GAME( 1984, jcross, 0, jcross, jcross, 0, ROT270, "SNK", "Jumping Cross", 0 ) | |
| 5125 | GAME( 1984, sgladiat, 0, sgladiat, sgladiat, 0, ROT0, "SNK", "Gladiator 1984", 0 ) | |
| 4318 | 5126 | |
| 4319 | snk_sound_busy_bit = 0x20; | |
| 4320 | snk_io = ikari_io; | |
| 4321 | hard_flags = 1; | |
| 4322 | videoram = snk_rambase + 0x000; | |
| 4323 | snk_gamegroup = 1; | |
| 4324 | } | |
| 5127 | GAME( 1985, aso, 0, aso, aso, 0, ROT270, "SNK", "ASO - Armored Scrum Object", 0 ) | |
| 5128 | GAME( 1985, alphamis, aso, aso, aso, 0, ROT270, "SNK", "Alpha Mission", 0 ) | |
| 5129 | GAME( 1985, arian, aso, aso, aso, 0, ROT270, "SNK", "Arian Mission", 0 ) | |
| 5130 | GAME( 1985, tnk3, 0, tnk3, tnk3, 0, ROT270, "SNK", "T.N.K III (US)", 0 ) | |
| 5131 | GAME( 1985, tnk3j, tnk3, tnk3, tnk3, 0, ROT270, "SNK", "T.A.N.K (Japan)", 0 ) | |
| 5132 | GAME( 1986, athena, 0, athena, athena, 0, ROT0, "SNK", "Athena", 0 ) | |
| 5133 | GAME( 1988, fitegolf, 0, fitegolf, fitegolf, 0, ROT0, "SNK", "Fighting Golf (World?)", 0 ) | |
| 5134 | GAME( 1988, fitegol2, fitegolf, fitegolf, fitegolf, 0, ROT0, "SNK", "Fighting Golf (US)", 0 ) | |
| 5135 | GAME( 1988, countryc, 0, fitegolf, countryc, countryc, ROT0, "SNK", "Country Club", 0 ) | |
| 4325 | 5136 | |
| 4326 | static DRIVER_INIT( victroad ){ | |
| 4327 | UINT8 *RAM = memory_region(machine, "main"); | |
| 4328 | /* Hack ROM test */ | |
| 4329 | RAM[0x17bd] = 0x00; | |
| 4330 | RAM[0x17be] = 0x00; | |
| 4331 | RAM[0x17bf] = 0x00; | |
| 5137 | GAME( 1986, ikari, 0, ikari, ikari, 0, ROT270, "SNK", "Ikari Warriors (US JAMMA)", 0 ) | |
| 5138 | GAME( 1986, ikaria, ikari, ikari, ikarijp, 0, ROT270, "SNK", "Ikari Warriors (US)", 0 ) | |
| 5139 | GAME( 1986, ikarijp, ikari, ikari, ikarijp, 0, ROT270, "SNK", "Ikari (Japan)", 0 ) | |
| 5140 | GAME( 1986, ikarijpb, ikari, ikari, ikarijpb, 0, ROT270, "bootleg", "Ikari (Joystick hack bootleg)", 0 ) | |
| 5141 | GAME( 1986, victroad, 0, victroad, victroad, 0, ROT270, "SNK", "Victory Road", 0 ) | |
| 5142 | GAME( 1986, dogosoke, victroad, victroad, victroad, 0, ROT270, "SNK", "Dogou Souken", 0 ) | |
| 5143 | GAME( 1986, dogosokb, victroad, victroad, dogosokb, 0, ROT270, "bootleg", "Dogou Souken (Joystick hack bootleg)", 0 ) | |
| 4332 | 5144 | |
| 4333 | /* Hack Incorrect port value */ | |
| 4334 | RAM[0x161a] = 0xc3; | |
| 4335 | RAM[0x161b] = 0x19; | |
| 4336 | RAM[0x161c] = 0x16; | |
| 5145 | GAME( 1987, bermudat, 0, bermudat, bermudat, 0, ROT270, "SNK", "Bermuda Triangle (World?)", 0 ) | |
| 5146 | GAME( 1987, bermudaj, bermudat, bermudat, bermudat, 0, ROT270, "SNK", "Bermuda Triangle (Japan)", 0 ) | |
| 5147 | GAME( 1987, worldwar, 0, bermudat, worldwar, 0, ROT270, "SNK", "World Wars (World?)", 0 ) | |
| 5148 | GAME( 1987, bermudaa, worldwar, bermudat, bermudaa, 0, ROT270, "SNK", "Bermuda Triangle (World Wars) (US)", 0 ) | |
| 5149 | GAME( 1987, psychos, 0, bermudat, psychos, 0, ROT0, "SNK", "Psycho Soldier (US)", 0 ) | |
| 5150 | GAME( 1987, psychosj, psychos, bermudat, psychos, 0, ROT0, "SNK", "Psycho Soldier (Japan)", 0 ) | |
| 5151 | GAME( 1987, gwar, 0, gwar, gwar, 0, ROT270, "SNK", "Guerrilla War (US)", 0 ) | |
| 5152 | GAME( 1987, gwarj, gwar, gwar, gwar, 0, ROT270, "SNK", "Guevara (Japan)", 0 ) | |
| 5153 | GAME( 1987, gwara, gwar, gwara, gwar, 0, ROT270, "SNK", "Guerrilla War (Version 1)", 0 ) | |
| 5154 | GAME( 1987, gwarb, gwar, gwar, gwar, 0, ROT270, "bootleg", "Guerrilla War (bootleg)", 0 ) | |
| 5155 | GAME( 1988, chopper, 0, chopper1, chopper, 0, ROT270, "SNK", "Chopper I (US set 1)", 0 ) | |
| 5156 | GAME( 1988, choppera, chopper, choppera, choppera, 0, ROT270, "SNK", "Chopper I (US set 2)", 0 ) | |
| 5157 | GAME( 1988, chopperb, chopper, chopper1, chopper, 0, ROT270, "SNK", "Chopper I (US set 3)", 0 ) | |
| 5158 | GAME( 1988, legofair, chopper, chopper1, chopper, 0, ROT270, "SNK", "Koukuu Kihei Monogatari - The Legend of Air Cavalry (Japan)", 0 ) | |
| 4337 | 5159 | |
| 4338 | snk_sound_busy_bit = 0x01; | |
| 4339 | snk_io = ikari_io; | |
| 4340 | hard_flags = 1; | |
| 4341 | videoram = snk_rambase + 0x800; | |
| 4342 | snk_gamegroup = 1; | |
| 4343 | } | |
| 4344 | ||
| 4345 | static DRIVER_INIT( dogosoke ){ | |
| 4346 | UINT8 *RAM = memory_region(machine, "main"); | |
| 4347 | /* Hack ROM test */ | |
| 4348 | RAM[0x179f] = 0x00; | |
| 4349 | RAM[0x17a0] = 0x00; | |
| 4350 | RAM[0x17a1] = 0x00; | |
| 4351 | ||
| 4352 | /* Hack Incorrect port value */ | |
| 4353 | RAM[0x15fc] = 0xc3; | |
| 4354 | RAM[0x15fd] = 0xfb; | |
| 4355 | RAM[0x15fe] = 0x15; | |
| 4356 | ||
| 4357 | snk_sound_busy_bit = 0x01; | |
| 4358 | snk_io = ikari_io; | |
| 4359 | hard_flags = 1; | |
| 4360 | videoram = snk_rambase + 0x800; | |
| 4361 | snk_gamegroup = 1; | |
| 4362 | } | |
| 4363 | ||
| 4364 | static DRIVER_INIT( gwar ){ | |
| 4365 | snk_sound_busy_bit = 0x01; | |
| 4366 | snk_io = ikari_io; | |
| 4367 | hard_flags = 0; | |
| 4368 | videoram = snk_rambase + 0x800; | |
| 4369 | snk_gamegroup = 2; | |
| 4370 | use_input_cp_hack = 1; | |
| 4371 | } | |
| 4372 | ||
| 4373 | static DRIVER_INIT( gwara ){ | |
| 4374 | snk_sound_busy_bit = 0x01; | |
| 4375 | snk_io = ikari_io; | |
| 4376 | hard_flags = 0; | |
| 4377 | videoram = snk_rambase + 0x800; | |
| 4378 | snk_gamegroup = 4; | |
| 4379 | use_input_cp_hack = 1; | |
| 4380 | } | |
| 4381 | ||
| 4382 | static DRIVER_INIT( chopper ){ | |
| 4383 | snk_sound_busy_bit = 0x01; | |
| 4384 | snk_io = athena_io; | |
| 4385 | hard_flags = 0; | |
| 4386 | videoram = snk_rambase + 0x800; | |
| 4387 | snk_gamegroup = 0; | |
| 4388 | } | |
| 4389 | ||
| 4390 | static DRIVER_INIT( choppera ){ | |
| 4391 | snk_sound_busy_bit = 0x01; | |
| 4392 | snk_io = choppera_io; | |
| 4393 | hard_flags = 0; | |
| 4394 | videoram = snk_rambase + 0x800; | |
| 4395 | snk_gamegroup = 2; | |
| 4396 | } | |
| 4397 | ||
| 4398 | static DRIVER_INIT( bermudat ){ | |
| 4399 | UINT8 *RAM = memory_region(machine, "main"); | |
| 4400 | ||
| 4401 | // Patch "Turbo Error" | |
| 4402 | RAM[0x127e] = 0xc9; | |
| 4403 | RAM[0x118d] = 0x00; | |
| 4404 | RAM[0x118e] = 0x00; | |
| 4405 | ||
| 4406 | snk_sound_busy_bit = 0x01; | |
| 4407 | snk_io = ikari_io; | |
| 4408 | hard_flags = 0; | |
| 4409 | videoram = snk_rambase + 0x800; | |
| 4410 | snk_gamegroup = 0; | |
| 4411 | } | |
| 4412 | ||
| 4413 | static DRIVER_INIT( worldwar ){ | |
| 4414 | snk_sound_busy_bit = 0x01; | |
| 4415 | snk_io = ikari_io; | |
| 4416 | hard_flags = 0; | |
| 4417 | videoram = snk_rambase + 0x800; | |
| 4418 | snk_gamegroup = 0; | |
| 4419 | } | |
| 4420 | ||
| 4421 | static DRIVER_INIT( tdfever ){ | |
| 4422 | snk_sound_busy_bit = 0x08; | |
| 4423 | snk_io = tdfever_io; | |
| 4424 | hard_flags = 0; | |
| 4425 | videoram = snk_rambase + 0x800; | |
| 4426 | snk_gamegroup = (!strcmp(machine->gamedrv->name,"tdfeverj")) ? 5 : 3; | |
| 4427 | snk_irq_delay = 1000; | |
| 4428 | } | |
| 4429 | ||
| 4430 | static DRIVER_INIT( tdfever2 ){ | |
| 4431 | snk_sound_busy_bit = 0x08; | |
| 4432 | snk_io = tdfever_io; | |
| 4433 | hard_flags = 0; | |
| 4434 | videoram = snk_rambase + 0x800; | |
| 4435 | snk_gamegroup = (!strcmp(machine->gamedrv->name,"tdfeverj")) ? 5 : 3; | |
| 4436 | snk_irq_delay = 1000; | |
| 4437 | } | |
| 4438 | ||
| 4439 | static DRIVER_INIT( fsoccer ){ | |
| 4440 | snk_sound_busy_bit = 0x08; | |
| 4441 | snk_io = fsoccer_io; | |
| 4442 | hard_flags = 0; | |
| 4443 | videoram = snk_rambase + 0x800; | |
| 4444 | snk_gamegroup = 7; | |
| 4445 | } | |
| 4446 | ||
| 4447 | static DRIVER_INIT( tnk3 ){ | |
| 4448 | snk_sound_busy_bit = 0x20; | |
| 4449 | snk_io = ikari_io; | |
| 4450 | hard_flags = 0; | |
| 4451 | videoram = snk_rambase + 0x800; | |
| 4452 | snk_gamegroup = 1; | |
| 4453 | } | |
| 4454 | ||
| 4455 | static DRIVER_INIT( athena ){ | |
| 4456 | snk_sound_busy_bit = 0x01; | |
| 4457 | snk_io = athena_io; | |
| 4458 | hard_flags = 0; | |
| 4459 | videoram = snk_rambase + 0x800; | |
| 4460 | snk_gamegroup = 1; | |
| 4461 | } | |
| 4462 | ||
| 4463 | static DRIVER_INIT( fitegolf ){ | |
| 4464 | snk_sound_busy_bit = 0x01; | |
| 4465 | snk_io = athena_io; | |
| 4466 | hard_flags = 0; | |
| 4467 | videoram = snk_rambase + 0x800; | |
| 4468 | snk_gamegroup = 1; | |
| 4469 | } | |
| 4470 | ||
| 4471 | static DRIVER_INIT( psychos ){ | |
| 4472 | snk_sound_busy_bit = 0x01; | |
| 4473 | snk_io = athena_io; | |
| 4474 | hard_flags = 0; | |
| 4475 | videoram = snk_rambase + 0x800; | |
| 4476 | snk_gamegroup = 0; | |
| 4477 | } | |
| 4478 | ||
| 4479 | /* rom parent machine inp init */ | |
| 4480 | GAME( 1985, tnk3, 0, tnk3, tnk3, tnk3, ROT270, "SNK", "T.N.K. III (US)", GAME_NO_COCKTAIL ) | |
| 4481 | GAME( 1985, tnk3j, tnk3, tnk3, tnk3, tnk3, ROT270, "SNK", "T.A.N.K. (Japan)", GAME_NO_COCKTAIL ) | |
| 4482 | GAME( 1986, athena, 0, athena, athena, athena, ROT0, "SNK", "Athena", GAME_NO_COCKTAIL ) | |
| 4483 | GAME( 1988, fitegolf, 0, athena, fitegolf, fitegolf, ROT0, "SNK", "Fighting Golf (World?)", GAME_NO_COCKTAIL ) | |
| 4484 | GAME( 1988, fitegol2, fitegolf, athena, fitegolf, fitegolf, ROT0, "SNK", "Fighting Golf (US)", GAME_NO_COCKTAIL ) | |
| 4485 | GAME( 1988, countryc, fitegolf, athena, countryc, fitegolf, ROT0, "SNK", "Country Club", GAME_NO_COCKTAIL ) | |
| 4486 | GAME( 1986, ikari, 0, ikari, ikari, ikari, ROT270, "SNK", "Ikari Warriors (US)", GAME_NO_COCKTAIL ) | |
| 4487 | GAME( 1986, ikarijp, ikari, ikari, ikarijp, ikarijp, ROT270, "SNK", "Ikari (Japan)", GAME_NO_COCKTAIL ) | |
| 4488 | GAME( 1986, ikarijpb, ikari, ikari, ikarijpb, ikarijpb, ROT270, "bootleg", "Ikari (Japan bootleg)", GAME_NO_COCKTAIL ) | |
| 4489 | GAME( 1986, victroad, 0, victroad, victroad, victroad, ROT270, "SNK", "Victory Road", GAME_NO_COCKTAIL ) | |
| 4490 | GAME( 1986, dogosoke, victroad, victroad, victroad, dogosoke, ROT270, "SNK", "Dogou Souken", GAME_NO_COCKTAIL ) | |
| 4491 | GAME( 1986, dogosokj, victroad, victroad, dogosokj, dogosoke, ROT270, "bootleg", "Dogou Souken (Joystick hack bootleg)", GAME_NO_COCKTAIL ) | |
| 4492 | GAME( 1987, gwar, 0, gwar, gwar, gwar, ROT270, "SNK", "Guerrilla War (US)", GAME_NO_COCKTAIL ) | |
| 4493 | GAME( 1987, gwarj, gwar, gwar, gwar, gwar, ROT270, "SNK", "Guevara (Japan)", GAME_NO_COCKTAIL ) | |
| 4494 | GAME( 1987, gwara, gwar, gwar, gwar, gwara, ROT270, "SNK", "Guerrilla War (Version 1)", GAME_NO_COCKTAIL ) | |
| 4495 | GAME( 1987, gwarb, gwar, gwar, gwar, gwar, ROT270, "bootleg", "Guerrilla War (bootleg)", GAME_NO_COCKTAIL ) | |
| 4496 | GAME( 1987, bermudat, 0, bermudat, bermudat, bermudat, ROT270, "SNK", "Bermuda Triangle (Japan)", GAME_NO_COCKTAIL ) | |
| 4497 | GAME( 1987, bermudao, bermudat, bermudat, bermudat, bermudat, ROT270, "SNK", "Bermuda Triangle (Japan old version)", GAME_NO_COCKTAIL ) | |
| 4498 | GAME( 1987, bermudaa, bermudat, bermudat, bermudaa, worldwar, ROT270, "SNK", "Bermuda Triangle (US older version)", GAME_NO_COCKTAIL ) | |
| 4499 | GAME( 1987, worldwar, bermudat, bermudat, worldwar, worldwar, ROT270, "SNK", "World Wars (World)", GAME_NO_COCKTAIL ) | |
| 4500 | GAME( 1987, psychos, 0, psychos, psychos, psychos, ROT0, "SNK", "Psycho Soldier (US)", GAME_NO_COCKTAIL ) | |
| 4501 | GAME( 1987, psychosj, psychos, psychos, psychos, psychos, ROT0, "SNK", "Psycho Soldier (Japan)", GAME_NO_COCKTAIL ) | |
| 4502 | GAME( 1988, chopper, 0, chopper1, legofair, chopper, ROT270, "SNK", "Chopper I (US set 1)", GAME_NO_COCKTAIL ) | |
| 4503 | GAME( 1988, choppera, chopper, chopper1, choppera, choppera, ROT270, "SNK", "Chopper I (US set 2)", GAME_NO_COCKTAIL ) | |
| 4504 | GAME( 1988, chopperb, chopper, chopper1, legofair, chopper, ROT270, "SNK", "Chopper I (US set 3)", GAME_NO_COCKTAIL ) | |
| 4505 | GAME( 1988, legofair, chopper, chopper1, legofair, chopper, ROT270, "SNK", "Koukuu Kihei Monogatari - The Legend of Air Cavalry (Japan)", GAME_NO_COCKTAIL ) | |
| 4506 | GAME( 1987, tdfever, 0, tdfever, tdfever, tdfever, ROT270, "SNK", "TouchDown Fever", GAME_NO_COCKTAIL ) | |
| 4507 | GAME( 1987, tdfeverj, tdfever, tdfever, tdfeverj, tdfever, ROT270, "SNK", "TouchDown Fever (Japan)", GAME_NO_COCKTAIL ) | |
| 4508 | GAME( 1988, tdfever2, tdfever, tdfever2, tdfever, tdfever2, ROT270, "SNK", "TouchDown Fever 2", GAME_NO_COCKTAIL ) /* upgrade kit for Touchdown Fever */ | |
| 4509 | GAME( 1988, fsoccer, 0, fsoccer, fsoccer, fsoccer, ROT0, "SNK", "Fighting Soccer (version 4)", GAME_NO_COCKTAIL ) | |
| 4510 | GAME( 1988, fsoccerj, fsoccer, fsoccer, fsoccer, fsoccer, ROT0, "SNK", "Fighting Soccer (Japan)", GAME_NO_COCKTAIL ) | |
| 4511 | GAME( 1988, fsoccerb, fsoccer, fsoccer, fsoccer, fsoccer, ROT0, "bootleg", "Fighting Soccer (joystick hack bootleg)", GAME_NO_COCKTAIL ) | |
| 4512 | ||
| 5160 | GAME( 1987, tdfever, 0, tdfever, tdfever, 0, ROT90, "SNK", "TouchDown Fever (US?)", 0 ) | |
| 5161 | GAME( 1987, tdfeverj, tdfever, tdfever, tdfever, 0, ROT90, "SNK", "TouchDown Fever (Japan)", 0 ) | |
| 5162 | GAME( 1988, tdfever2, tdfever, tdfever2, tdfever, 0, ROT90, "SNK", "TouchDown Fever 2", 0 ) /* upgrade kit for Touchdown Fever */ | |
| 5163 | GAME( 1988, fsoccer, 0, tdfever2, fsoccer, 0, ROT0, "SNK", "Fighting Soccer (version 4)", 0 ) | |
| 5164 | GAME( 1988, fsoccerj, fsoccer, tdfever2, fsoccer, 0, ROT0, "SNK", "Fighting Soccer (Japan)", 0 ) | |
| 5165 | GAME( 1988, fsoccerb, fsoccer, tdfever2, fsoccerb, 0, ROT0, "bootleg", "Fighting Soccer (joystick hack bootleg)", 0 ) |
| r3115 | r3116 | |
|---|---|---|
| 83 | 83 | |
| 84 | 84 | static void update_interrupts(running_machine *machine) |
| 85 | 85 | { |
| 86 | int newstate = 0; | |
| 87 | ||
| 88 | if (atarigen_scanline_int_state) | |
| 89 | newstate = 4; | |
| 90 | ||
| 91 | if (newstate) | |
| 92 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 93 | else | |
| 94 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 86 | cpunum_set_input_line(machine, 0, 4, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 95 | 87 | } |
| 96 | 88 | |
| 97 | 89 |
| r3115 | r3116 | |
|---|---|---|
| 12 | 12 | Main CPU : Motorola 68020 32-bit processor @ 25MHz |
| 13 | 13 | Secondary CPUs : C329 + 137 (both custom) |
| 14 | 14 | Custom Graphics Chips : GFX:123,145,156,C116 - Motion Objects:C355,187,C347 |
| 15 | Sound CPU : C | |
| 15 | Sound CPU : C75 | |
| 16 | 16 | PCM Sound chip : C352 (custom) |
| 17 | 17 | I/O Chip : 160 (custom) |
| 18 | 18 | Board composition : Single board |
| r3115 | r3116 | |
| 52 | 52 | - 137 custom PLD (28 pin NDIP) |
| 53 | 53 | - C366 Key Custom |
| 54 | 54 | |
| 55 | Sound processor - C | |
| 55 | Sound processor - C75 | |
| 56 | 56 | (PCM) - C352 custom (100 pin PQFP) |
| 57 | 57 | (control inputs) - 160 custom (80 pin PQFP) |
| 58 | 58 | |
| r3115 | r3116 | |
| 161 | 161 | - 137 custom PLD (28 pin NDIP) |
| 162 | 162 | - C366 Key Custom |
| 163 | 163 | |
| 164 | Sound processor - C | |
| 164 | Sound processor - C75 | |
| 165 | 165 | (PCM) - C352 custom (100 pin PQFP) |
| 166 | 166 | (control inputs) - 160 custom (80 pin PQFP) |
| 167 | 167 | |
| r3115 | r3116 | |
| 285 | 285 | |
| 286 | 286 | /****************************************************************************/ |
| 287 | 287 | |
| 288 | static UINT32 *namconb_cpureg32; | |
| 288 | static UINT8 namconb_cpureg[32]; | |
| 289 | static int vblank_irq_active, pos_irq_active; | |
| 289 | 290 | |
| 290 | static int | |
| 291 | GetCPURegister(int which) | |
| 291 | static TIMER_CALLBACK( namconb1_TriggerPOSIRQ ) | |
| 292 | 292 | { |
| 293 | return (namconb_cpureg32[which/4]<<((which&3)*8))>>24; | |
| 294 | } | |
| 293 | if(pos_irq_active || !(namconb_cpureg[0x02] & 0xf0)) | |
| 294 | return; | |
| 295 | 295 | |
| 296 | static TIMER_CALLBACK( namconb1_TriggerPOSIRQ ) | |
| 297 | { | |
| 298 | int irqlevel = GetCPURegister(0x04)>>4; | |
| 299 | 296 | video_screen_update_partial(machine->primary_screen, param); |
| 300 | cpunum_set_input_line(machine, 0, irqlevel, PULSE_LINE); | |
| 297 | pos_irq_active = 1; | |
| 298 | cpunum_set_input_line(machine, 0, namconb_cpureg[0x02] & 0xf, ASSERT_LINE); | |
| 301 | 299 | } |
| 302 | 300 | |
| 303 | static TIMER_CALLBACK( namconb2_TriggerPOSIRQ ) | |
| 304 | { | |
| 305 | int irqlevel = GetCPURegister(0x02); | |
| 306 | video_screen_update_partial(machine->primary_screen, param); | |
| 307 | cpunum_set_input_line(machine, 0, irqlevel, PULSE_LINE); | |
| 308 | } /* namconb2_TriggerPOSIRQ */ | |
| 309 | ||
| 310 | static INTERRUPT_GEN( namconb2_interrupt ) | |
| 311 | { | |
| 312 | /** | |
| 313 | * f00000 0x01 // VBLANK irq level | |
| 314 | * f00001 0x00 | |
| 315 | * f00002 0x05 // POSIRQ level | |
| 316 | * f00003 0x00 | |
| 317 | * | |
| 318 | * f00004 VBLANK ack | |
| 319 | * f00005 | |
| 320 | * f00006 POSIRQ ack | |
| 321 | * f00007 | |
| 322 | * | |
| 323 | * f00008 | |
| 324 | * | |
| 325 | * f00009 0x62 | |
| 326 | * f0000a 0x0f | |
| 327 | * f0000b 0x41 | |
| 328 | * f0000c 0x70 | |
| 329 | * f0000d 0x70 | |
| 330 | * f0000e 0x23 | |
| 331 | * f0000f 0x50 | |
| 332 | * f00010 0x00 | |
| 333 | * f00011 0x64 | |
| 334 | * f00012 0x18 | |
| 335 | * f00013 0xe7 | |
| 336 | * f00014 (watchdog) | |
| 337 | * f00016 0x00 | |
| 338 | * f0001e 0x00 | |
| 339 | * f0001f 0x01 | |
| 340 | */ | |
| 341 | int scanline = (paletteram32[0x1808/4]&0xffff)-32; | |
| 342 | int irqlevel = GetCPURegister(0x00); | |
| 343 | cpunum_set_input_line(machine, 0, irqlevel, HOLD_LINE); | |
| 344 | ||
| 345 | if( scanline<0 ) | |
| 346 | scanline = 0; | |
| 347 | ||
| 348 | if( scanline < NAMCONB1_VBSTART ) | |
| 349 | timer_set( video_screen_get_time_until_pos(machine->primary_screen, scanline, 0), NULL, scanline, namconb2_TriggerPOSIRQ ); | |
| 350 | } /* namconb2_interrupt */ | |
| 351 | 301 | static INTERRUPT_GEN( namconb1_interrupt ) |
| 352 | 302 | { |
| 353 | 303 | /** |
| r3115 | r3116 | |
| 385 | 335 | * 40001f 0x00 |
| 386 | 336 | */ |
| 387 | 337 | int scanline = (paletteram32[0x1808/4]&0xffff)-32; |
| 388 | int irqlevel = GetCPURegister(0x04)&0xf; | |
| 389 | cpunum_set_input_line(machine, 0, irqlevel, HOLD_LINE); | |
| 338 | ||
| 339 | if((!vblank_irq_active) && (namconb_cpureg[0x04] & 0xf0)) { | |
| 340 | cpunum_set_input_line(machine, 0, namconb_cpureg[0x04] & 0xf, ASSERT_LINE); | |
| 341 | vblank_irq_active = 1; | |
| 342 | } | |
| 343 | ||
| 390 | 344 | if( scanline<0 ) |
| 391 | 345 | { |
| 392 | 346 | scanline = 0; |
| r3115 | r3116 | |
| 397 | 351 | } |
| 398 | 352 | } /* namconb1_interrupt */ |
| 399 | 353 | |
| 400 | static WRITE32_HANDLER( namconb_cpureg_w ) | |
| 354 | ||
| 355 | static TIMER_CALLBACK( namconb2_TriggerPOSIRQ ) | |
| 401 | 356 | { |
| 402 | COMBINE_DATA( &namconb_cpureg32[offset] ); | |
| 403 | } /* namconb_cpureg_w */ | |
| 357 | video_screen_update_partial(machine->primary_screen, param); | |
| 358 | pos_irq_active = 1; | |
| 359 | cpunum_set_input_line(machine, 0, namconb_cpureg[0x02], ASSERT_LINE); | |
| 360 | } | |
| 404 | 361 | |
| 362 | static INTERRUPT_GEN( namconb2_interrupt ) | |
| 363 | { | |
| 364 | /** | |
| 365 | * f00000 0x01 // VBLANK irq level | |
| 366 | * f00001 0x00 | |
| 367 | * f00002 0x05 // POSIRQ level | |
| 368 | * f00003 0x00 | |
| 369 | * | |
| 370 | * f00004 VBLANK ack | |
| 371 | * f00005 | |
| 372 | * f00006 POSIRQ ack | |
| 373 | * f00007 | |
| 374 | * | |
| 375 | * f00008 | |
| 376 | * | |
| 377 | * f00009 0x62 | |
| 378 | * f0000a 0x0f | |
| 379 | * f0000b 0x41 | |
| 380 | * f0000c 0x70 | |
| 381 | * f0000d 0x70 | |
| 382 | * f0000e 0x23 | |
| 383 | * f0000f 0x50 | |
| 384 | * f00010 0x00 | |
| 385 | * f00011 0x64 | |
| 386 | * f00012 0x18 | |
| 387 | * f00013 0xe7 | |
| 388 | * f00014 (watchdog) | |
| 389 | * f00016 0x00 | |
| 390 | * f0001e 0x00 | |
| 391 | * f0001f 0x01 | |
| 392 | */ | |
| 393 | int scanline = (paletteram32[0x1808/4]&0xffff)-32; | |
| 394 | ||
| 395 | if((!vblank_irq_active) && namconb_cpureg[0x00]) { | |
| 396 | cpunum_set_input_line(machine, 0, namconb_cpureg[0x00], ASSERT_LINE); | |
| 397 | vblank_irq_active = 1; | |
| 398 | } | |
| 399 | ||
| 400 | if( scanline<0 ) | |
| 401 | scanline = 0; | |
| 402 | ||
| 403 | if( scanline < NAMCONB1_VBSTART ) | |
| 404 | timer_set( video_screen_get_time_until_pos(machine->primary_screen, scanline, 0), NULL, scanline, namconb2_TriggerPOSIRQ ); | |
| 405 | } /* namconb2_interrupt */ | |
| 406 | ||
| 407 | static void namconb1_cpureg8_w(running_machine *machine, int reg, UINT8 data) | |
| 408 | { | |
| 409 | UINT8 prev = namconb_cpureg[reg]; | |
| 410 | namconb_cpureg[reg] = data; | |
| 411 | switch(reg) { | |
| 412 | case 0x02: // POS IRQ level/enable | |
| 413 | if(pos_irq_active && (((prev & 0xf) != (data & 0xf)) || !(data & 0xf0))) { | |
| 414 | cpunum_set_input_line(machine, 0, prev & 0xf, CLEAR_LINE); | |
| 415 | if(data & 0xf0) | |
| 416 | cpunum_set_input_line(machine, 0, data & 0xf, ASSERT_LINE); | |
| 417 | else | |
| 418 | pos_irq_active = 0; | |
| 419 | } | |
| 420 | break; | |
| 421 | ||
| 422 | case 0x04: // VBLANK IRQ level/enable | |
| 423 | if(vblank_irq_active && (((prev & 0xf) != (data & 0xf)) || !(data & 0xf0))) { | |
| 424 | cpunum_set_input_line(machine, 0, prev & 0xf, CLEAR_LINE); | |
| 425 | if(data & 0xf0) | |
| 426 | cpunum_set_input_line(machine, 0, data & 0xf, ASSERT_LINE); | |
| 427 | else | |
| 428 | vblank_irq_active = 0; | |
| 429 | } | |
| 430 | break; | |
| 431 | ||
| 432 | case 0x07: // POS ack | |
| 433 | if(pos_irq_active) { | |
| 434 | cpunum_set_input_line(machine, 0, namconb_cpureg[0x02] & 0xf, CLEAR_LINE); | |
| 435 | pos_irq_active = 0; | |
| 436 | } | |
| 437 | break; | |
| 438 | ||
| 439 | case 0x09: // VBLANK ack | |
| 440 | if(vblank_irq_active) { | |
| 441 | cpunum_set_input_line(machine, 0, namconb_cpureg[0x04] & 0xf, CLEAR_LINE); | |
| 442 | vblank_irq_active = 0; | |
| 443 | } | |
| 444 | break; | |
| 445 | ||
| 446 | case 0x16: // Watchdog | |
| 447 | break; | |
| 448 | ||
| 449 | case 0x18: // C75 Control | |
| 450 | if(data & 1) { | |
| 451 | cpunum_set_input_line(machine, 1, INPUT_LINE_HALT, CLEAR_LINE); | |
| 452 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, ASSERT_LINE); | |
| 453 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, CLEAR_LINE); | |
| 454 | } else | |
| 455 | cpunum_set_input_line(machine, 1, INPUT_LINE_HALT, ASSERT_LINE); | |
| 456 | break; | |
| 457 | } | |
| 458 | } | |
| 459 | ||
| 460 | static WRITE32_HANDLER( namconb1_cpureg_w ) | |
| 461 | { | |
| 462 | if(mem_mask & 0xff000000) | |
| 463 | namconb1_cpureg8_w(machine, offset*4, data >> 24); | |
| 464 | if(mem_mask & 0x00ff0000) | |
| 465 | namconb1_cpureg8_w(machine, offset*4+1, data >> 16); | |
| 466 | if(mem_mask & 0x0000ff00) | |
| 467 | namconb1_cpureg8_w(machine, offset*4+2, data >> 8); | |
| 468 | if(mem_mask & 0x000000ff) | |
| 469 | namconb1_cpureg8_w(machine, offset*4+3, data); | |
| 470 | } | |
| 471 | ||
| 472 | ||
| 473 | static void namconb2_cpureg8_w(running_machine *machine, int reg, UINT8 data) | |
| 474 | { | |
| 475 | UINT8 prev = namconb_cpureg[reg]; | |
| 476 | namconb_cpureg[reg] = data; | |
| 477 | switch(reg) { | |
| 478 | case 0x00: // VBLANK IRQ level | |
| 479 | if(vblank_irq_active && (prev != data)) { | |
| 480 | cpunum_set_input_line(machine, 0, prev, CLEAR_LINE); | |
| 481 | if(data) | |
| 482 | cpunum_set_input_line(machine, 0, data, ASSERT_LINE); | |
| 483 | else | |
| 484 | vblank_irq_active = 0; | |
| 485 | } | |
| 486 | break; | |
| 487 | ||
| 488 | case 0x02: // POS IRQ level | |
| 489 | if(pos_irq_active && (prev != data)) { | |
| 490 | cpunum_set_input_line(machine, 0, prev, CLEAR_LINE); | |
| 491 | if(data) | |
| 492 | cpunum_set_input_line(machine, 0, data, ASSERT_LINE); | |
| 493 | else | |
| 494 | pos_irq_active = 0; | |
| 495 | } | |
| 496 | break; | |
| 497 | ||
| 498 | case 0x04: // VBLANK ack | |
| 499 | if(vblank_irq_active) { | |
| 500 | cpunum_set_input_line(machine, 0, namconb_cpureg[0x00], CLEAR_LINE); | |
| 501 | vblank_irq_active = 0; | |
| 502 | } | |
| 503 | break; | |
| 504 | ||
| 505 | case 0x06: // POS ack | |
| 506 | if(pos_irq_active) { | |
| 507 | cpunum_set_input_line(machine, 0, namconb_cpureg[0x02], CLEAR_LINE); | |
| 508 | pos_irq_active = 0; | |
| 509 | } | |
| 510 | break; | |
| 511 | ||
| 512 | case 0x14: // Watchdog | |
| 513 | break; | |
| 514 | ||
| 515 | case 0x16: // C75 Control | |
| 516 | if(data & 1) { | |
| 517 | cpunum_set_input_line(machine, 1, INPUT_LINE_HALT, CLEAR_LINE); | |
| 518 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, ASSERT_LINE); | |
| 519 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, CLEAR_LINE); | |
| 520 | } else { | |
| 521 | cpunum_set_input_line(machine, 1, INPUT_LINE_HALT, ASSERT_LINE); | |
| 522 | } | |
| 523 | break; | |
| 524 | } | |
| 525 | } | |
| 526 | ||
| 527 | static WRITE32_HANDLER( namconb2_cpureg_w ) | |
| 528 | { | |
| 529 | if(mem_mask & 0xff000000) | |
| 530 | namconb2_cpureg8_w(machine, offset*4, data >> 24); | |
| 531 | if(mem_mask & 0x00ff0000) | |
| 532 | namconb2_cpureg8_w(machine, offset*4+1, data >> 16); | |
| 533 | if(mem_mask & 0x0000ff00) | |
| 534 | namconb2_cpureg8_w(machine, offset*4+2, data >> 8); | |
| 535 | if(mem_mask & 0x000000ff) | |
| 536 | namconb2_cpureg8_w(machine, offset*4+3, data); | |
| 537 | } | |
| 538 | ||
| 539 | static READ32_HANDLER(namconb_cpureg_r) | |
| 540 | { | |
| 541 | return (namconb_cpureg[offset*4] << 24) | (namconb_cpureg[offset*4+1] << 16) | |
| 542 | | (namconb_cpureg[offset*4+2] << 8) | namconb_cpureg[offset*4+3]; | |
| 543 | } | |
| 544 | ||
| 545 | ||
| 405 | 546 | /****************************************************************************/ |
| 406 | 547 | |
| 407 | 548 | static NVRAM_HANDLER( namconb1 ) |
| r3115 | r3116 | |
| 441 | 582 | } |
| 442 | 583 | } /* namconb1 */ |
| 443 | 584 | |
| 585 | static MACHINE_START(namconb) | |
| 586 | { | |
| 587 | vblank_irq_active = 0; | |
| 588 | pos_irq_active = 0; | |
| 589 | memset(namconb_cpureg, 0, sizeof(namconb_cpureg)); | |
| 590 | } | |
| 591 | ||
| 444 | 592 | static DRIVER_INIT( nebulray ) |
| 445 | 593 | { |
| 446 | 594 | UINT8 *pMem = (UINT8 *)memory_region(machine, NAMCONB1_TILEMASKREGION); |
| r3115 | r3116 | |
| 669 | 817 | */ |
| 670 | 818 | } /* srand_w */ |
| 671 | 819 | |
| 672 | static WRITE32_HANDLER( sharedram_w ) | |
| 673 | { | |
| 674 | if (offset < 0xb0) | |
| 675 | { | |
| 676 | if (mem_mask == 0xffff0000) | |
| 677 | { | |
| 678 | namcoc7x_sound_write16((data>>16), offset*2); | |
| 679 | } | |
| 680 | else if (mem_mask == 0x0000ffff) | |
| 681 | { | |
| 682 | namcoc7x_sound_write16((data&0xffff), (offset*2)+1); | |
| 683 | } | |
| 684 | } | |
| 685 | ||
| 686 | COMBINE_DATA(&namconb1_workram32[offset]); | |
| 687 | } | |
| 688 | ||
| 689 | 820 | static ADDRESS_MAP_START( namconb1_am, ADDRESS_SPACE_PROGRAM, 32 ) |
| 690 | 821 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) AM_WRITE(SMH_ROM) |
| 691 | 822 | AM_RANGE(0x100000, 0x10001f) AM_READ(gunbulet_gun_r) |
| 692 | 823 | AM_RANGE(0x1c0000, 0x1cffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) |
| 693 | 824 | AM_RANGE(0x1e4000, 0x1e4003) AM_READWRITE(randgen_r,srand_w) |
| 694 | AM_RANGE(0x200000, 0x2fffff) AM_READ(SMH_RAM) AM_WRITE(sharedram_w) AM_BASE(&namconb1_workram32) /* shared with MCU) */ | |
| 695 | AM_RANGE(0x400000, 0x40001f) AM_READ(SMH_RAM) AM_WRITE(namconb_cpureg_w) AM_BASE(&namconb_cpureg32) | |
| 825 | AM_RANGE(0x200000, 0x207fff) AM_READWRITE(namcoc7x_soundram32_r, namcoc7x_soundram32_w) | |
| 826 | AM_RANGE(0x208000, 0x2fffff) AM_RAM | |
| 827 | AM_RANGE(0x400000, 0x40001f) AM_READWRITE(namconb_cpureg_r, namconb1_cpureg_w) | |
| 696 | 828 | AM_RANGE(0x580000, 0x5807ff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_BASE(&nvmem32) |
| 697 | 829 | AM_RANGE(0x600000, 0x61ffff) AM_READWRITE(namco_obj32_r,namco_obj32_w) |
| 698 | 830 | AM_RANGE(0x620000, 0x620007) AM_READWRITE(namco_spritepos32_r,namco_spritepos32_w) |
| r3115 | r3116 | |
| 707 | 839 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) AM_WRITE(SMH_ROM) |
| 708 | 840 | AM_RANGE(0x1c0000, 0x1cffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) |
| 709 | 841 | AM_RANGE(0x1e4000, 0x1e4003) AM_READWRITE(randgen_r,srand_w) |
| 710 | AM_RANGE(0x200000, 0x2fffff) AM_READ(SMH_RAM) AM_WRITE(sharedram_w) AM_BASE(&namconb1_workram32) /* shared with MCU */ | |
| 711 | AM_RANGE(0x400000, 0x4fffff) AM_ROM AM_REGION("user1", 0) | |
| 842 | AM_RANGE(0x200000, 0x207fff) AM_READWRITE(namcoc7x_soundram32_r, namcoc7x_soundram32_w) | |
| 843 | AM_RANGE(0x208000, 0x2fffff) AM_RAM | |
| 844 | AM_RANGE(0x400000, 0x4fffff) AM_ROM AM_REGION("data", 0) | |
| 712 | 845 | AM_RANGE(0x600000, 0x61ffff) AM_READWRITE(namco_obj32_r,namco_obj32_w) |
| 713 | 846 | AM_RANGE(0x620000, 0x620007) AM_READWRITE(namco_spritepos32_r,namco_spritepos32_w) |
| 714 | 847 | AM_RANGE(0x640000, 0x64000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) /* unknown xy offset */ |
| r3115 | r3116 | |
| 722 | 855 | AM_RANGE(0x980000, 0x98000f) AM_READ(namco_rozbank32_r) AM_WRITE(namco_rozbank32_w) |
| 723 | 856 | AM_RANGE(0xa00000, 0xa007ff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_BASE(&nvmem32) |
| 724 | 857 | AM_RANGE(0xc00000, 0xc0001f) AM_READ(custom_key_r) AM_WRITE(SMH_NOP) |
| 725 | AM_RANGE(0xf00000, 0xf0001f) AM_READ | |
| 858 | AM_RANGE(0xf00000, 0xf0001f) AM_READ | |
| 726 | 859 | ADDRESS_MAP_END /* namconb2_readmem */ |
| 727 | 860 | |
| 728 | 861 | #define MASTER_CLOCK_HZ 48384000 |
| r3115 | r3116 | |
| 735 | 868 | NAMCO_C7X_MCU(MASTER_CLOCK_HZ/3) |
| 736 | 869 | |
| 737 | 870 | MDRV_NVRAM_HANDLER(namconb1) |
| 871 | MDRV_MACHINE_START(namconb) | |
| 738 | 872 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) |
| 739 | 873 | |
| 740 | 874 | MDRV_SCREEN_ADD("main", RASTER) |
| r3115 | r3116 | |
| 759 | 893 | NAMCO_C7X_MCU(MASTER_CLOCK_HZ/3) |
| 760 | 894 | |
| 761 | 895 | MDRV_NVRAM_HANDLER(namconb1) |
| 896 | MDRV_MACHINE_START(namconb) | |
| 762 | 897 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) |
| 763 | 898 | |
| 764 | 899 | MDRV_SCREEN_ADD("main", RASTER) |
| r3115 | r3116 | |
| 782 | 917 | ROM_LOAD32_WORD( "gn2mprlb.15b", 0x00002, 0x80000, CRC(fe2d9425) SHA1(51b166a629cbb522720d63720558816b496b6b76) ) |
| 783 | 918 | ROM_LOAD32_WORD( "gn2mprub.13b", 0x00000, 0x80000, CRC(3bf4985a) SHA1(f559e0d5f55d23d886fe61bd7d5ca556acc7f87c) ) |
| 784 | 919 | |
| 785 | ROM_REGION16_LE( 0x100000, " | |
| 920 | ROM_REGION16_LE( 0x100000, "c7x | |
| 786 | 921 | ROM_LOAD( "gn1-spr0.bin", 0, 0x20000, CRC(6836ba38) SHA1(6ea17ea4bbb59be108e8887acd7871409580732f) ) |
| 787 | 922 | NAMCO_C7X_BIOS |
| 788 | 923 | |
| r3115 | r3116 | |
| 810 | 945 | ROM_LOAD32_WORD( "gn1-mprl.bin", 0x00002, 0x80000, CRC(f99e309e) SHA1(3fe0ddf756e6849f8effc7672456cbe32f65c98a) ) |
| 811 | 946 | ROM_LOAD32_WORD( "gn1-mpru.bin", 0x00000, 0x80000, CRC(72a4db07) SHA1(8c5e1e51cd961b311d03f7b21f36a5bd5e8e9104) ) |
| 812 | 947 | |
| 813 | ROM_REGION16_LE( 0x100000, " | |
| 948 | ROM_REGION16_LE( 0x100000, "c7x | |
| 814 | 949 | ROM_LOAD( "gn1-spr0.bin", 0, 0x20000, CRC(6836ba38) SHA1(6ea17ea4bbb59be108e8887acd7871409580732f) ) |
| 815 | 950 | NAMCO_C7X_BIOS |
| 816 | 951 | |
| r3115 | r3116 | |
| 838 | 973 | ROM_LOAD32_WORD( "nr2-mpru.13b", 0x00000, 0x80000, CRC(049b97cb) SHA1(0e344b29a4d4bdc854fa9849589772df2eeb0a05) ) |
| 839 | 974 | ROM_LOAD32_WORD( "nr2-mprl.15b", 0x00002, 0x80000, CRC(0431b6d4) SHA1(54c96e8ac9e753956c31bdef79d390f1c20e10ff) ) |
| 840 | 975 | |
| 841 | ROM_REGION16_LE( 0x100000, " | |
| 976 | ROM_REGION16_LE( 0x100000, "c7x | |
| 842 | 977 | ROM_LOAD( "nr1-spr0", 0, 0x20000, CRC(1cc2b44b) SHA1(161f4ed39fabe89d7ee1d539f8b9f08cd0ff3111) ) |
| 843 | 978 | NAMCO_C7X_BIOS |
| 844 | 979 | |
| r3115 | r3116 | |
| 873 | 1008 | ROM_LOAD32_WORD( "nr1-mpru", 0x00000, 0x80000, CRC(42ef71f9) SHA1(20e3cb63e1fde293c60c404b378d901d635c4b79) ) |
| 874 | 1009 | ROM_LOAD32_WORD( "nr1-mprl", 0x00002, 0x80000, CRC(fae5f62c) SHA1(143d716abbc834aac6270db3bbb89ec71ea3804d) ) |
| 875 | 1010 | |
| 876 | ROM_REGION16_LE( 0x100000, " | |
| 1011 | ROM_REGION16_LE( 0x100000, "c7x | |
| 877 | 1012 | ROM_LOAD( "nr1-spr0", 0, 0x20000, CRC(1cc2b44b) SHA1(161f4ed39fabe89d7ee1d539f8b9f08cd0ff3111) ) |
| 878 | 1013 | NAMCO_C7X_BIOS |
| 879 | 1014 | |
| r3115 | r3116 | |
| 908 | 1043 | ROM_LOAD32_WORD( "gse2mprl.bin", 0x00002, 0x80000, CRC(a514349c) SHA1(1f7ec81cd6193410d2f01e6f0f84878561fc8035) ) |
| 909 | 1044 | ROM_LOAD32_WORD( "gse2mpru.bin", 0x00000, 0x80000, CRC(b6afd238) SHA1(438a3411ac8ce3d22d5da8c0800738cb8d2994a9) ) |
| 910 | 1045 | |
| 911 | ROM_REGION16_LE( 0x100000, " | |
| 1046 | ROM_REGION16_LE( 0x100000, "c7x | |
| 912 | 1047 | ROM_LOAD( "gse2spr0.bin", 0, 0x20000, CRC(17e87cfc) SHA1(9cbeadb6dfcb736e8c80eab344f70fc2f58469d6) ) |
| 913 | 1048 | NAMCO_C7X_BIOS |
| 914 | 1049 | |
| r3115 | r3116 | |
| 1060 | 1195 | ROM_LOAD32_WORD( "gs1mprl.15b", 0x00002, 0x80000, CRC(1e6c3626) SHA1(56abe21884fd87df10996db19c49ce14214d4b73) ) |
| 1061 | 1196 | ROM_LOAD32_WORD( "gs1mpru.13b", 0x00000, 0x80000, CRC(ef355179) SHA1(0ab0ef4301a318681bb5827d35734a0732b35484) ) |
| 1062 | 1197 | |
| 1063 | ROM_REGION16_LE( 0x100000, " | |
| 1198 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1064 | 1199 | ROM_LOAD( "gs1spr0.5b", 0, 0x80000, CRC(561ea20f) SHA1(adac6b77effc3a82079a9b228bafca0fcef72ba5) ) |
| 1065 | 1200 | NAMCO_C7X_BIOS |
| 1066 | 1201 | |
| r3115 | r3116 | |
| 1086 | 1221 | ROM_LOAD32_WORD( "ss51mprl.bin", 0x00002, 0x80000, CRC(c9e0107d) SHA1(0f10582416023a86ea1ef2679f3f06016c086e08) ) |
| 1087 | 1222 | ROM_LOAD32_WORD( "ss51mpru.bin", 0x00000, 0x80000, CRC(0d93d261) SHA1(5edef26e2c86dbc09727d910af92747d022e4fed) ) |
| 1088 | 1223 | |
| 1089 | ROM_REGION16_LE( 0x100000, " | |
| 1224 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1090 | 1225 | ROM_LOAD( "ss51spr0.bin", 0, 0x80000, CRC(71cb12f5) SHA1(6e13bd16a5ba14d6e47a21875db3663ada3c06a5) ) |
| 1091 | 1226 | NAMCO_C7X_BIOS |
| 1092 | 1227 | |
| r3115 | r3116 | |
| 1113 | 1248 | ROM_LOAD32_WORD( "ss61mprl.bin", 0x00002, 0x80000, CRC(06f55e73) SHA1(6be26f8a2ef600bf07c580f210d7b265ac464002) ) |
| 1114 | 1249 | ROM_LOAD32_WORD( "ss61mpru.bin", 0x00000, 0x80000, CRC(0abdbb83) SHA1(67e8b712291f9bcf2c3a52fbc451fad54679cab8) ) |
| 1115 | 1250 | |
| 1116 | ROM_REGION16_LE( 0x100000, " | |
| 1251 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1117 | 1252 | ROM_LOAD( "ss61spr0.bin", 0, 0x80000, CRC(71cb12f5) SHA1(6e13bd16a5ba14d6e47a21875db3663ada3c06a5) ) |
| 1118 | 1253 | NAMCO_C7X_BIOS |
| 1119 | 1254 | |
| r3115 | r3116 | |
| 1139 | 1274 | ROM_LOAD32_WORD( "ss71mprl.bin", 0x00002, 0x80000, CRC(bd60b50e) SHA1(9e00bacd506182ab2af2c0efdd5cc401b3e46485) ) |
| 1140 | 1275 | ROM_LOAD32_WORD( "ss71mpru.bin", 0x00000, 0x80000, CRC(3444f5a8) SHA1(8d0f35b3ba8f65dbc67c3b2d273833227a8b8b2a) ) |
| 1141 | 1276 | |
| 1142 | ROM_REGION16_LE( 0x100000, " | |
| 1277 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1143 | 1278 | ROM_LOAD( "ss71spr0.bin", 0, 0x80000, CRC(71cb12f5) SHA1(6e13bd16a5ba14d6e47a21875db3663ada3c06a5) ) |
| 1144 | 1279 | NAMCO_C7X_BIOS |
| 1145 | 1280 | |
| r3115 | r3116 | |
| 1165 | 1300 | ROM_LOAD32_WORD( "vsj1mprl.15b", 0x00002, 0x80000, CRC(83a60d92) SHA1(c3db0c79f772a79418914353a3d6ecc4883ea54e) ) |
| 1166 | 1301 | ROM_LOAD32_WORD( "vsj1mpru.13b", 0x00000, 0x80000, CRC(c63eb92d) SHA1(f93bd4b91daee645677955020dc8df14dc9bfd27) ) |
| 1167 | 1302 | |
| 1168 | ROM_REGION16_LE( 0x100000, " | |
| 1303 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1169 | 1304 | ROM_LOAD( "vsj1spr0.5b", 0, 0x80000, CRC(b0c71aa6) SHA1(a94fae02b46a645ff728d2f98827c85ff155892b) ) |
| 1170 | 1305 | NAMCO_C7X_BIOS |
| 1171 | 1306 | |
| r3115 | r3116 | |
| 1351 | 1486 | ROM_LOAD32_WORD( "ou2mprl.11c", 0x00002, 0x80000, CRC(f414a32e) SHA1(9733ab087cfde1b8fb5b676d8a2eb5325ebdbb56) ) |
| 1352 | 1487 | ROM_LOAD32_WORD( "ou2mpru.11d", 0x00000, 0x80000, CRC(ab5083fb) SHA1(cb2e7a4838c2b80057edb83ea63116bccb1394d3) ) |
| 1353 | 1488 | |
| 1354 | ROM_REGION16_LE( 0x100000, " | |
| 1489 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1355 | 1490 | ROM_LOAD( "ou1spr0.5b", 0, 0x80000, CRC(60cee566) SHA1(2f3b96793816d90011586e0f9f71c58b636b6d4c) ) |
| 1356 | 1491 | NAMCO_C7X_BIOS |
| 1357 | 1492 | |
| r3115 | r3116 | |
| 1384 | 1519 | ROM_REGION( 0x200000, NAMCONB1_TILEGFXREGION, ROMREGION_DISPOSE ) |
| 1385 | 1520 | ROM_LOAD( "ou1-scr0", 0x000000, 0x200000, CRC(b3b3f2e9) SHA1(541bd7e9ba12aff4ec4033bd9c6bb19476acb3c4) ) |
| 1386 | 1521 | |
| 1387 | ROM_REGION32_BE( 0x100000, " | |
| 1522 | ROM_REGION32_BE( 0x100000, "data | |
| 1388 | 1523 | ROM_LOAD16_WORD_SWAP( "ou1dat0.20a", 0x00000, 0x80000, CRC(1a49aead) SHA1(df243aff1a6fb5bcf4d5d883c5af2374a4aff477) ) |
| 1389 | 1524 | ROM_LOAD16_WORD_SWAP( "ou1dat1.20b", 0x80000, 0x80000, CRC(63bb119d) SHA1(d4c2820243b84c3f5cdf7f9e66bb50f53d0efed2) ) |
| 1390 | 1525 | ROM_END |
| r3115 | r3116 | |
| 1394 | 1529 | ROM_LOAD32_WORD( "ou1-mprl.11c", 0x00002, 0x80000, CRC(d3b9e530) SHA1(3f5fe5eea817a23dfe42e76f32912ce94d4c49c9) ) |
| 1395 | 1530 | ROM_LOAD32_WORD( "ou1-mpru.11d", 0x00000, 0x80000, CRC(d98308fb) SHA1(fdefeebf56464a20e3aaefd88df4eee9f7b5c4f3) ) |
| 1396 | 1531 | |
| 1397 | ROM_REGION16_LE( 0x100000, " | |
| 1532 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1398 | 1533 | ROM_LOAD( "ou1spr0.5b", 0, 0x80000, CRC(60cee566) SHA1(2f3b96793816d90011586e0f9f71c58b636b6d4c) ) |
| 1399 | 1534 | NAMCO_C7X_BIOS |
| 1400 | 1535 | |
| r3115 | r3116 | |
| 1427 | 1562 | ROM_REGION( 0x200000, NAMCONB1_TILEGFXREGION, ROMREGION_DISPOSE ) |
| 1428 | 1563 | ROM_LOAD( "ou1-scr0", 0x000000, 0x200000, CRC(b3b3f2e9) SHA1(541bd7e9ba12aff4ec4033bd9c6bb19476acb3c4) ) |
| 1429 | 1564 | |
| 1430 | ROM_REGION32_BE( 0x100000, " | |
| 1565 | ROM_REGION32_BE( 0x100000, "data | |
| 1431 | 1566 | ROM_LOAD16_WORD_SWAP( "ou1dat0.20a", 0x00000, 0x80000, CRC(1a49aead) SHA1(df243aff1a6fb5bcf4d5d883c5af2374a4aff477) ) |
| 1432 | 1567 | ROM_LOAD16_WORD_SWAP( "ou1dat1.20b", 0x80000, 0x80000, CRC(63bb119d) SHA1(d4c2820243b84c3f5cdf7f9e66bb50f53d0efed2) ) |
| 1433 | 1568 | ROM_END |
| r3115 | r3116 | |
| 1438 | 1573 | ROM_LOAD32_WORD( "mb1_mprl.11c", 0x00002, 0x80000, CRC(86cf0644) SHA1(07eeadda1d94c9be2f882edb6f2eb0b98292e500) ) |
| 1439 | 1574 | ROM_LOAD32_WORD( "mb1_mpru.11d", 0x00000, 0x80000, CRC(fb1ff916) SHA1(e0ba96c1f26a60f87d8050e582e164d91e132183) ) |
| 1440 | 1575 | |
| 1441 | ROM_REGION16_LE( 0x100000, " | |
| 1576 | ROM_REGION16_LE( 0x100000, "c7x | |
| 1442 | 1577 | ROM_LOAD( "mb1_spr0.5b", 0, 0x80000, CRC(d10f6272) SHA1(cb99e06e050dbf86998ea51ef2ca130b2acfb2f6) ) |
| 1443 | 1578 | NAMCO_C7X_BIOS |
| 1444 | 1579 | |
| r3115 | r3116 | |
| 1475 | 1610 | ROM_LOAD( "mb1_scr1.1c", 0x200000, 0x200000, CRC(fb2b1939) SHA1(bf9d7b93205e7012aa86693f3d2ba8f4d729bc97) ) |
| 1476 | 1611 | ROM_LOAD( "mb1_scr2.1b", 0x400000, 0x200000, CRC(0e6097a5) SHA1(b6c64b3e34ba913138b6b7c3d99d2be4f3ceda08) ) |
| 1477 | 1612 | |
| 1478 | ROM_REGION32_BE( 0x100000, " | |
| 1613 | ROM_REGION32_BE( 0x100000, "data | |
| 1479 | 1614 | ROM_LOAD16_WORD_SWAP( "mb1_dat0.20a", 0x00000, 0x80000, CRC(fb2e3cd1) SHA1(019b1d645a07619036522f42e0b9a537f39b6b93) ) |
| 1480 | 1615 | ROM_END |
| 1481 | 1616 |
| r3115 | r3116 | |
|---|---|---|
| 142 | 142 | AM_RANGE(0xff0000, 0xff1fff) AM_READ(SMH_RAM) |
| 143 | 143 | AM_RANGE(0xff8000, 0xff8fff) AM_READ(SMH_RAM) |
| 144 | 144 | AM_RANGE(0xffa000, 0xffafff) AM_READ(SMH_RAM) |
| 145 | AM_RANGE(0xfff000, 0xfff001) AM_READ(input_port_0_word_r) | |
| 146 | AM_RANGE(0xfff002, 0xfff003) AM_READ(input_port_1_word_r) | |
| 147 | AM_RANGE(0xfff004, 0xfff005) AM_READ(input_port_2_word_r) | |
| 148 | AM_RANGE(0xfff006, 0xfff007) AM_READ(input_port_3_word_r) | |
| 149 | AM_RANGE(0xfff008, 0xfff009) AM_READ(input_port_4_word_r) | |
| 145 | AM_RANGE(0xfff000, 0xfff001) AM_READ_PORT("P1") | |
| 146 | AM_RANGE(0xfff002, 0xfff003) AM_READ_PORT("P2") | |
| 147 | AM_RANGE(0xfff004, 0xfff005) AM_READ_PORT("SYSTEM") | |
| 148 | AM_RANGE(0xfff006, 0xfff007) AM_READ_PORT("DSW1") | |
| 149 | AM_RANGE(0xfff008, 0xfff009) AM_READ_PORT("DSW2") | |
| 150 | 150 | ADDRESS_MAP_END |
| 151 | 151 | |
| 152 | 152 | static ADDRESS_MAP_START( suprslam_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r3115 | r3116 | |
| 196 | 196 | /*** INPUT PORTS *************************************************************/ |
| 197 | 197 | |
| 198 | 198 | static INPUT_PORTS_START( suprslam ) |
| 199 | ||
| 200 | PORT_START("P1") /* IN1 */ | |
| 199 | PORT_START("P1") | |
| 201 | 200 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 202 | 201 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 203 | 202 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 207 | 206 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 208 | 207 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| 209 | 208 | |
| 210 | PORT_START("P2") | |
| 209 | PORT_START("P2") | |
| 211 | 210 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 212 | 211 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 213 | 212 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 217 | 216 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 218 | 217 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 219 | 218 | |
| 220 | PORT_START("SYSTEM") | |
| 219 | PORT_START("SYSTEM") | |
| 221 | 220 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 222 | 221 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 223 | 222 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) // Only in "test mode" |
| r3115 | r3116 | |
| 227 | 226 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_TILT ) |
| 228 | 227 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 229 | 228 | |
| 230 | PORT_START("DSW1") | |
| 229 | PORT_START("DSW1") | |
| 231 | 230 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Slots" ) |
| 232 | 231 | PORT_DIPSETTING( 0x0001, "Common" ) |
| 233 | 232 | PORT_DIPSETTING( 0x0000, "Separate" ) |
| r3115 | r3116 | |
| 253 | 252 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 254 | 253 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 255 | 254 | |
| 256 | PORT_START("DSW2") | |
| 255 | PORT_START("DSW2") | |
| 257 | 256 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) |
| 258 | 257 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) |
| 259 | 258 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
|---|---|---|
| 95 | 95 | AM_RANGE(0xd000, 0xd7ff) AM_READ(SMH_RAM) /* videoram */ |
| 96 | 96 | |
| 97 | 97 | AM_RANGE(0xd800, 0xd800) AM_READ(strnskil_d800_r) |
| 98 | AM_RANGE(0xd801, 0xd801) AM_READ(input_port_0_r) /* dsw 1 */ | |
| 99 | AM_RANGE(0xd802, 0xd802) AM_READ(input_port_1_r) /* dsw 2 */ | |
| 100 | AM_RANGE(0xd803, 0xd803) AM_READ(input_port_4_r) /* other inputs */ | |
| 101 | AM_RANGE(0xd804, 0xd804) AM_READ(input_port_2_r) /* player1 */ | |
| 102 | AM_RANGE(0xd805, 0xd805) AM_READ(input_port_3_r) /* player2 */ | |
| 98 | AM_RANGE(0xd801, 0xd801) AM_READ_PORT("DSW1") | |
| 99 | AM_RANGE(0xd802, 0xd802) AM_READ_PORT("DSW2") | |
| 100 | AM_RANGE(0xd803, 0xd803) AM_READ_PORT("SYSTEM") | |
| 101 | AM_RANGE(0xd804, 0xd804) AM_READ_PORT("P1") | |
| 102 | AM_RANGE(0xd805, 0xd805) AM_READ_PORT("P2") | |
| 103 | 103 | ADDRESS_MAP_END |
| 104 | 104 | |
| 105 | 105 | static ADDRESS_MAP_START( strnskil_writemem1, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 133 | 133 | /****************************************************************************/ |
| 134 | 134 | |
| 135 | 135 | static INPUT_PORTS_START( strnskil ) |
| 136 | PORT_START("DSW1") | |
| 136 | PORT_START("DSW1") | |
| 137 | 137 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 138 | 138 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 139 | 139 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 164 | 164 | PORT_DIPSETTING( 0xe0, "1C 2C / 1C 6C" ) |
| 165 | 165 | PORT_DIPSETTING( 0xf0, DEF_STR( Free_Play ) ) |
| 166 | 166 | |
| 167 | PORT_START("DSW2") | |
| 167 | PORT_START("DSW2") | |
| 168 | 168 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Difficulty ) ) |
| 169 | 169 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) |
| 170 | 170 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| r3115 | r3116 | |
| 190 | 190 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 191 | 191 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 192 | 192 | |
| 193 | PORT_START("P1") | |
| 193 | PORT_START("P1") /* d804 */ | |
| 194 | 194 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 195 | 195 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 196 | 196 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| r3115 | r3116 | |
| 200 | 200 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 201 | 201 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 202 | 202 | |
| 203 | PORT_START("P2") | |
| 203 | PORT_START("P2") /* d805 */ | |
| 204 | 204 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 205 | 205 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 206 | 206 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| r3115 | r3116 | |
| 210 | 210 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 211 | 211 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 212 | 212 | |
| 213 | PORT_START("SYSTEM") | |
| 213 | PORT_START("SYSTEM") /* d803 */ | |
| 214 | 214 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 215 | 215 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 216 | 216 | PORT_SERVICE( 0x20, IP_ACTIVE_HIGH ) |
| r3115 | r3116 | |
| 222 | 222 | INPUT_PORTS_END |
| 223 | 223 | |
| 224 | 224 | static INPUT_PORTS_START( banbam ) |
| 225 | PORT_START("DSW1") | |
| 225 | PORT_START("DSW1") | |
| 226 | 226 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 227 | 227 | PORT_DIPSETTING( 0x00, "3" ) |
| 228 | 228 | PORT_DIPSETTING( 0x01, "5" ) |
| r3115 | r3116 | |
| 251 | 251 | PORT_DIPSETTING( 0xe0, "1C 2C / 1C 6C" ) |
| 252 | 252 | PORT_DIPSETTING( 0xf0, DEF_STR( Free_Play ) ) |
| 253 | 253 | |
| 254 | PORT_START("DSW2") | |
| 254 | PORT_START("DSW2") | |
| 255 | 255 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") |
| 256 | 256 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 257 | 257 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 268 | 268 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" ) |
| 269 | 269 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) |
| 270 | 270 | |
| 271 | PORT_START("P1") | |
| 271 | PORT_START("P1") /* d804 */ | |
| 272 | 272 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 273 | 273 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 274 | 274 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 278 | 278 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 279 | 279 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 280 | 280 | |
| 281 | PORT_START("P2") | |
| 281 | PORT_START("P2") /* d805 */ | |
| 282 | 282 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 283 | 283 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 284 | 284 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 288 | 288 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| 289 | 289 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 290 | 290 | |
| 291 | PORT_START("SYSTEM") | |
| 291 | PORT_START("SYSTEM") /* d803 */ | |
| 292 | 292 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 293 | 293 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 294 | 294 | PORT_SERVICE( 0x20, IP_ACTIVE_HIGH ) |
| r3115 | r3116 | |
|---|---|---|
| 80 | 80 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 81 | 81 | AM_RANGE( 0x98, 0x98) AM_READ( v9938_0_vram_r ) |
| 82 | 82 | AM_RANGE( 0x99, 0x99) AM_READ( v9938_0_status_r ) |
| 83 | AM_RANGE( 0xa0, 0xa0) AM_READ( input_port_0_r ) | |
| 84 | AM_RANGE( 0xa1, 0xa1) AM_READ( input_port_1_r ) | |
| 85 | AM_RANGE( 0xf7, 0xf7) AM_READ( input_port_2_r ) | |
| 83 | AM_RANGE( 0xa0, 0xa0) AM_READ_PORT("P1") | |
| 84 | AM_RANGE( 0xa1, 0xa1) AM_READ_PORT("P2") | |
| 85 | AM_RANGE( 0xf7, 0xf7) AM_READ_PORT("DSW") | |
| 86 | 86 | ADDRESS_MAP_END |
| 87 | 87 | |
| 88 | 88 | static ADDRESS_MAP_START (writeport_pzlestar, ADDRESS_SPACE_IO, 8) |
| r3115 | r3116 | |
| 100 | 100 | |
| 101 | 101 | static ADDRESS_MAP_START (readport_sexyboom, ADDRESS_SPACE_IO, 8) |
| 102 | 102 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 103 | AM_RANGE( 0xa0, 0xa0) AM_READ( input_port_0_r ) | |
| 104 | AM_RANGE( 0xa1, 0xa1) AM_READ( input_port_1_r ) | |
| 105 | AM_RANGE( 0xf7, 0xf7) AM_READ( input_port_2_r ) | |
| 103 | AM_RANGE( 0xa0, 0xa0) AM_READ_PORT("P1") | |
| 104 | AM_RANGE( 0xa1, 0xa1) AM_READ_PORT("P2") | |
| 105 | AM_RANGE( 0xf7, 0xf7) AM_READ_PORT("DSW") | |
| 106 | 106 | AM_RANGE( 0xf0, 0xf0) AM_READ( v9938_0_vram_r ) |
| 107 | 107 | AM_RANGE( 0xf1, 0xf1) AM_READ( v9938_0_status_r ) |
| 108 | 108 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 123 | 123 | static INPUT_PORTS_START( sangho ) |
| 124 | 124 | PORT_START("P1") |
| 125 | 125 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 126 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 127 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 128 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 129 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 130 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 131 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 132 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 133 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 134 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 126 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 127 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 128 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 129 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 130 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 131 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 132 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 133 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 134 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 135 | 135 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 136 | 136 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 137 | 137 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 139 | 139 | |
| 140 | 140 | PORT_START("P2") |
| 141 | 141 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 ) |
| 142 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 143 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 144 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 145 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 146 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 147 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 148 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 149 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 150 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 142 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 143 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 144 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 145 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 146 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 147 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 148 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 149 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 150 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 151 | 151 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 152 | 152 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 153 | 153 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 154 | 154 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 155 | 155 | |
| 156 | 156 | PORT_START("DSW") |
| 157 | PORT_DIPNAME( 0x01, 0x01, "DIPS" ) /* coinage etc. */ | |
| 158 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 159 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 160 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 161 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 162 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 163 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 164 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 165 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 166 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 167 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 168 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 169 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 170 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 171 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 172 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 173 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 174 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 175 | PORT_DIPNAME( 0x40, 0x40, "Display Numbers on Tiles" ) | |
| 176 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 177 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 157 | PORT_DIPNAME( 0x01, 0x01, "DIPS" ) /* coinage etc. */ | |
| 158 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 159 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 160 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 161 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 162 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 163 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 164 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 165 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 166 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 167 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 168 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 169 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 170 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 171 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 172 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 173 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 174 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 175 | PORT_DIPNAME( 0x40, 0x40, "Display Numbers on Tiles" ) | |
| 176 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 177 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 178 | 178 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 179 | 179 | INPUT_PORTS_END |
| 180 | 180 |
| r3115 | r3116 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 39 | AM_RANGE(0x0500, 0x0500) AM_READ(input_port_3_r) /* Dipswitch settings */ | |
| 40 | AM_RANGE(0x0600, 0x0600) AM_READ(input_port_4_r) /* Dipswitch settings */ | |
| 41 | AM_RANGE(0x0700, 0x0700) AM_READ(input_port_0_r) /* coins + service */ | |
| 42 | AM_RANGE(0x0701, 0x0701) AM_READ(input_port_1_r) /* player 1 controls */ | |
| 43 | AM_RANGE(0x0702, 0x0702) AM_READ(input_port_2_r) /* player 2 controls */ | |
| 44 | AM_RANGE(0x0703, 0x0703) AM_READ(input_port_5_r) /* selftest */ | |
| 39 | AM_RANGE(0x0500, 0x0500) AM_READ_PORT("DSW1") | |
| 40 | AM_RANGE(0x0600, 0x0600) AM_READ_PORT("DSW2") | |
| 41 | AM_RANGE(0x0700, 0x0700) AM_READ_PORT("SYSTEM") | |
| 42 | AM_RANGE(0x0701, 0x0701) AM_READ_PORT("P1") | |
| 43 | AM_RANGE(0x0702, 0x0702) AM_READ_PORT("P2") | |
| 44 | AM_RANGE(0x0703, 0x0703) AM_READ_PORT("DSW3") | |
| 45 | 45 | AM_RANGE(0x2800, 0x2bff) AM_READ(SMH_RAM) /* RAM BANK 2 */ |
| 46 | 46 | AM_RANGE(0x3000, 0x33ff) AM_READ(SMH_RAM) /* RAM BANK 1 */ |
| 47 | 47 | AM_RANGE(0x3800, 0x3fff) AM_READ(SMH_RAM) /* video RAM */ |
| r3115 | r3116 | |
| 71 | 71 | |
| 72 | 72 | |
| 73 | 73 | static INPUT_PORTS_START( shaolins ) |
| 74 | PORT_START("SYSTEM") | |
| 74 | PORT_START("SYSTEM") | |
| 75 | 75 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 76 | 76 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 77 | 77 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 81 | 81 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 82 | 82 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 83 | 83 | |
| 84 | PORT_START("P1") | |
| 84 | PORT_START("P1") | |
| 85 | 85 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 86 | 86 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 87 | 87 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| r3115 | r3116 | |
| 91 | 91 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 92 | 92 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 93 | 93 | |
| 94 | PORT_START("P2") | |
| 94 | PORT_START("P2") | |
| 95 | 95 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| 96 | 96 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 97 | 97 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 101 | 101 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 102 | 102 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 103 | 103 | |
| 104 | PORT_START("DSW1") | |
| 104 | PORT_START("DSW1") | |
| 105 | 105 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 106 | 106 | PORT_DIPSETTING( 0x03, "2" ) |
| 107 | 107 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 124 | 124 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 125 | 125 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 126 | 126 | |
| 127 | PORT_START("DSW2") | |
| 127 | PORT_START("DSW2") | |
| 128 | 128 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 129 | 129 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 130 | 130 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 146 | 146 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 147 | 147 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 148 | 148 | |
| 149 | PORT_START("DSW3") | |
| 149 | PORT_START("DSW3") | |
| 150 | 150 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 151 | 151 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 152 | 152 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 2015 | 2015 | |
| 2016 | 2016 | |
| 2017 | 2017 | |
| 2018 | ROM_START( zeroguna ) | |
| 2018 | ROM_START( zeroguna ) /* Zero Gunner (Export), Model 2A */ | |
| 2019 | 2019 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2020 | 2020 | ROM_LOAD32_WORD("epr-20437", 0x000000, 0x080000, CRC(fad30cc0) SHA1(5c6222e07594b4be59b5095f7cc0a164d5895306) ) |
| 2021 | 2021 | ROM_LOAD32_WORD("epr-20438", 0x000002, 0x080000, CRC(ca364408) SHA1(4672ebdd7d9ccab5e107fda9d322b70583246c7a) ) |
| r3115 | r3116 | |
| 2047 | 2047 | MODEL2A_VID_BOARD |
| 2048 | 2048 | ROM_END |
| 2049 | 2049 | |
| 2050 | ROM_START( zerogun ) | |
| 2050 | ROM_START( zerogun ) /* Zero Gunner (Export), Model 2B */ | |
| 2051 | 2051 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2052 | 2052 | ROM_LOAD32_WORD("epr-20439.15", 0x000000, 0x080000, CRC(10125381) SHA1(1e178e6bd2b1312cd6290f1be4b386f520465836) ) |
| 2053 | 2053 | ROM_LOAD32_WORD("epr-20440.16", 0x000002, 0x080000, CRC(ce872747) SHA1(82bf138a42c659b675b14e41d526b1628fb46ae3) ) |
| r3115 | r3116 | |
| 2076 | 2076 | ROM_LOAD("mpr-20304.33", 0x200000, 0x200000, CRC(6decfe83) SHA1(d73adafceff2f1776c93e53bd5677d67f1c2c08f) ) |
| 2077 | 2077 | ROM_END |
| 2078 | 2078 | |
| 2079 | ROM_START( zerogunj ) | |
| 2079 | ROM_START( zerogunj ) /* Zero Gunner (Japan), Model 2B */ | |
| 2080 | 2080 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2081 | 2081 | ROM_LOAD32_WORD("epr-20290.15", 0x000000, 0x080000, CRC(9ce3ad21) SHA1(812ab45cc9e2920e74e58937d1826774f3f54183) ) |
| 2082 | 2082 | ROM_LOAD32_WORD("epr-20291.16", 0x000002, 0x080000, CRC(7267a03d) SHA1(a7216914ee7535fa1856cb19bc05c89948a93c89) ) |
| r3115 | r3116 | |
| 2105 | 2105 | ROM_LOAD("mpr-20304.33", 0x200000, 0x200000, CRC(6decfe83) SHA1(d73adafceff2f1776c93e53bd5677d67f1c2c08f) ) |
| 2106 | 2106 | ROM_END |
| 2107 | 2107 | |
| 2108 | ROM_START( gunblade ) | |
| 2108 | ROM_START( gunblade ) /* Gunblade NY Revision A, Model 2A */ | |
| 2109 | 2109 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2110 | 2110 | ROM_LOAD32_WORD("epr-18988a.15", 0x000000, 0x080000, CRC(f63f1ad2) SHA1(fcfb0a4691cd7d66168c421e4e1694ecaea56ab2) ) |
| 2111 | 2111 | ROM_LOAD32_WORD("epr-18989a.16", 0x000002, 0x080000, CRC(c1c84d65) SHA1(92bffbf1250c53499c37a53f9e2a054fc7bf256f) ) |
| r3115 | r3116 | |
| 2138 | 2138 | ROM_LOAD("mpr-18979.34", 0x400000, 0x400000, CRC(f13ea36f) SHA1(a8165116b5e07e031ff960201dd8c9a441544961) ) |
| 2139 | 2139 | ROM_END |
| 2140 | 2140 | |
| 2141 | ROM_START( vf2 ) | |
| 2141 | ROM_START( vf2 ) /* Virtua Fighter 2 Version 2.1, Model 2A */ | |
| 2142 | 2142 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2143 | 2143 | ROM_LOAD32_WORD( "epr-18385.12", 0x000000, 0x020000, CRC(78ed2d41) SHA1(471c19389ceeec6138107dd81863320bd4825327) ) |
| 2144 | 2144 | ROM_LOAD32_WORD( "epr-18386.13", 0x000002, 0x020000, CRC(3418f428) SHA1(0f51e389e13efc172a26471331a60c459ad43c38) ) |
| r3115 | r3116 | |
| 2184 | 2184 | MODEL2A_VID_BOARD |
| 2185 | 2185 | ROM_END |
| 2186 | 2186 | |
| 2187 | ROM_START( vf2b ) | |
| 2187 | ROM_START( vf2b ) /* Virtua Fighter 2 Revision B, Model 2A */ | |
| 2188 | 2188 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2189 | 2189 | ROM_LOAD32_WORD( "epr-17568b.12", 0x000000, 0x020000, CRC(5d966bbf) SHA1(01d46313148ce509fa5641fb07a3f840c00886ac) ) |
| 2190 | 2190 | ROM_LOAD32_WORD( "epr-17569b.13", 0x000002, 0x020000, CRC(0b8c1ccc) SHA1(ba2e0ac8b31955fed237ba9a5eda9fa14d1db11f) ) |
| r3115 | r3116 | |
| 2230 | 2230 | MODEL2A_VID_BOARD |
| 2231 | 2231 | ROM_END |
| 2232 | 2232 | |
| 2233 | ROM_START( vf2a ) | |
| 2233 | ROM_START( vf2a ) /* Virtua Fighter 2 Revision A, Model 2A */ | |
| 2234 | 2234 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2235 | 2235 | ROM_LOAD32_WORD( "epr-17568a.12", 0x000000, 0x020000, CRC(5b10f232) SHA1(04df1eb9cf094d8dc5118b95028b544b47d5d328) ) |
| 2236 | 2236 | ROM_LOAD32_WORD( "epr-17569a.13", 0x000002, 0x020000, CRC(17c208e0) SHA1(260c762d7853fb1d6f894d4dd954d82dfbc92d2d) ) |
| r3115 | r3116 | |
| 2276 | 2276 | MODEL2A_VID_BOARD |
| 2277 | 2277 | ROM_END |
| 2278 | 2278 | |
| 2279 | ROM_START( vf2o ) | |
| 2279 | ROM_START( vf2o ) /* Virtua Fighter 2, Model 2A */ | |
| 2280 | 2280 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2281 | 2281 | ROM_LOAD32_WORD( "epr-17568.12", 0x000000, 0x020000, CRC(cf5d53d1) SHA1(4ed907bbfc1a47e51c9cc11f55645752574adaef) ) |
| 2282 | 2282 | ROM_LOAD32_WORD( "epr-17569.13", 0x000002, 0x020000, CRC(0fb32808) SHA1(95efb3eeaf95fb5f79ddae4ef20e2211b07f8d30) ) |
| r3115 | r3116 | |
| 2322 | 2322 | MODEL2A_VID_BOARD |
| 2323 | 2323 | ROM_END |
| 2324 | 2324 | |
| 2325 | ROM_START( srallyc ) | |
| 2325 | ROM_START( srallyc ) /* Sega Rally Championship, Model 2A */ | |
| 2326 | 2326 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2327 | 2327 | ROM_LOAD32_WORD( "epr-17888.12", 0x000000, 0x080000, CRC(3d6808aa) SHA1(33abf9cdcee9583dc600c94e1e29ce260e8c5d32) ) |
| 2328 | 2328 | ROM_LOAD32_WORD( "epr-17889.13", 0x000002, 0x080000, CRC(f43c7802) SHA1(4b1efb3d5644fed1753da1750bf5c300d3a15d2c) ) |
| r3115 | r3116 | |
| 2369 | 2369 | MODEL2A_VID_BOARD |
| 2370 | 2370 | ROM_END |
| 2371 | 2371 | |
| 2372 | ROM_START( manxtt ) | |
| 2372 | ROM_START( manxtt ) /* Manx TT Superbike Revision C, Model 2A */ | |
| 2373 | 2373 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2374 | 2374 | ROM_LOAD32_WORD( "epr-18822c.12", 0x000000, 0x020000, CRC(c7b3e45a) SHA1(d3a6910bf6efc138e0e40332219b90dea7d6ea56) ) |
| 2375 | 2375 | ROM_LOAD32_WORD( "epr-18823c.13", 0x000002, 0x020000, CRC(6b0c1dfb) SHA1(6da5c071e3ce842a99f928f473d4ccf7165785ac) ) |
| r3115 | r3116 | |
| 2420 | 2420 | MODEL2A_VID_BOARD |
| 2421 | 2421 | ROM_END |
| 2422 | 2422 | |
| 2423 | ROM_START( motoraid ) | |
| 2423 | ROM_START( motoraid ) /* Motoraid, Model 2A */ | |
| 2424 | 2424 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2425 | 2425 | ROM_LOAD32_WORD( "epr-20007.12", 0x000000, 0x080000, CRC(f040c108) SHA1(a6a0fa8fb9d62d0cc2ac84ea3ad457953952d980) ) |
| 2426 | 2426 | ROM_LOAD32_WORD( "epr-20008.13", 0x000002, 0x080000, CRC(78976e1a) SHA1(fd15e8c81b3b2f3bdf3bb8d9414b9b8a6f1f000f) ) |
| r3115 | r3116 | |
| 2471 | 2471 | MODEL2A_VID_BOARD |
| 2472 | 2472 | ROM_END |
| 2473 | 2473 | |
| 2474 | ROM_START( skytargt ) | |
| 2474 | ROM_START( skytargt ) /* Sky Target, Model 2A */ | |
| 2475 | 2475 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2476 | 2476 | ROM_LOAD32_WORD( "epr-18406.12", 0x000000, 0x080000, CRC(fde9c00a) SHA1(01cd519daaf6138d9df4940bf8bb5923a1f163df) ) |
| 2477 | 2477 | ROM_LOAD32_WORD( "epr-18407.13", 0x000002, 0x080000, CRC(35f8b529) SHA1(faf6dcf8f345c1e7968823f2dba60afcd88f37c2) ) |
| r3115 | r3116 | |
| 2525 | 2525 | ROM_LOAD( "mpr-18421.37", 0x600000, 0x200000, CRC(00522390) SHA1(5dbbf2ba008adad36929fcecb7c2c1e5ffd12618) ) |
| 2526 | 2526 | ROM_END |
| 2527 | 2527 | |
| 2528 | ROM_START( vcop2 ) | |
| 2528 | ROM_START( vcop2 ) /* Virtua Cop 2, Model 2A */ | |
| 2529 | 2529 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2530 | 2530 | ROM_LOAD32_WORD( "epr-18524.12", 0x000000, 0x080000, CRC(1858988b) SHA1(2979f8470cc31e6c5c32c6fec1a87dbd29b52309) ) |
| 2531 | 2531 | ROM_LOAD32_WORD( "epr-18525.13", 0x000002, 0x080000, CRC(0c13df3f) SHA1(6b4188f04aad80b89f1826e8ca47cff763980410) ) |
| r3115 | r3116 | |
| 2595 | 2595 | |
| 2596 | 2596 | */ |
| 2597 | 2597 | |
| 2598 | ROM_START( dynamcop ) | |
| 2598 | ROM_START( dynamcop ) /* Dynamite Cop (Export), Model 2A */ | |
| 2599 | 2599 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2600 | ROM_LOAD32_WORD("epr-20930.12", 0x000000, 0x080000, CRC(b8fc8ff7) SHA1(53b0f9dc8494effa077170ddced2d95f43a5f134) ) | |
| 2600 | ROM_LOAD32_WORD("epr-20930.12", 0x000000, 0x080000, CRC(b8fc8ff7) SHA1(53b0f9dc8494effa077170ddced2d95f43a5f134) ) | |
| 2601 | 2601 | ROM_LOAD32_WORD("epr-20931.13", 0x000002, 0x080000, CRC(89d13f88) SHA1(5e266b5e153a0d9a57360cfd1af81e3a58a2fb7d) ) |
| 2602 | 2602 | ROM_LOAD32_WORD("epr-20932.14", 0x100000, 0x080000, CRC(618a68bf) SHA1(3022283dded4d08d790d034b6d543c0397b5bf5a) ) |
| 2603 | 2603 | ROM_LOAD32_WORD("epr-20933.15", 0x100002, 0x080000, CRC(13abe49c) SHA1(a741a0205c1b3664ab4d09d6d991a768269a79ea) ) |
| r3115 | r3116 | |
| 2643 | 2643 | MODEL2A_VID_BOARD |
| 2644 | 2644 | ROM_END |
| 2645 | 2645 | |
| 2646 | ROM_START( dyndeka2 ) | |
| 2646 | ROM_START( dyndeka2 ) /* Dynamite Deka 2 (Japan), Model 2A */ | |
| 2647 | 2647 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2648 | ROM_LOAD32_WORD("epr-20922.12", 0x000000, 0x080000, CRC(0a8b5604) SHA1(4076998fc600c1df3bb5ef48d42681c01e651495) ) | |
| 2648 | ROM_LOAD32_WORD("epr-20922.12", 0x000000, 0x080000, CRC(0a8b5604) SHA1(4076998fc600c1df3bb5ef48d42681c01e651495) ) | |
| 2649 | 2649 | ROM_LOAD32_WORD("epr-20923.13", 0x000002, 0x080000, CRC(83be73d4) SHA1(1404a9c79cd2bae13f60e5e008307417324c3666) ) |
| 2650 | 2650 | ROM_LOAD32_WORD("epr-20924.14", 0x100000, 0x080000, CRC(618a68bf) SHA1(3022283dded4d08d790d034b6d543c0397b5bf5a) ) /* same as epr-20932.14 listed above */ |
| 2651 | 2651 | ROM_LOAD32_WORD("epr-20925.15", 0x100002, 0x080000, CRC(13abe49c) SHA1(a741a0205c1b3664ab4d09d6d991a768269a79ea) ) /* same as epr-20933.15 listed above */ |
| r3115 | r3116 | |
| 2691 | 2691 | MODEL2A_VID_BOARD |
| 2692 | 2692 | ROM_END |
| 2693 | 2693 | |
| 2694 | ROM_START( dynmcopb ) | |
| 2694 | ROM_START( dynmcopb ) /* Dynamite Cop (Export), Model 2B */ | |
| 2695 | 2695 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2696 | ROM_LOAD32_WORD("epr-20944.15", 0x000000, 0x080000, CRC(29b142f2) SHA1(b81d1ee7203b2f5fb6db4ff4185f4071e99aaedf) ) | |
| 2696 | ROM_LOAD32_WORD("epr-20944.15", 0x000000, 0x080000, CRC(29b142f2) SHA1(b81d1ee7203b2f5fb6db4ff4185f4071e99aaedf) ) | |
| 2697 | 2697 | ROM_LOAD32_WORD("epr-20945.16", 0x000002, 0x080000, CRC(c495912e) SHA1(1a45296a5554923cb52b38586e40ceda2517f1bf) ) |
| 2698 | 2698 | ROM_LOAD32_WORD("epr-20942.13", 0x100000, 0x080000, CRC(618a68bf) SHA1(3022283dded4d08d790d034b6d543c0397b5bf5a) ) /* same as epr-20932.14 listed above */ |
| 2699 | 2699 | ROM_LOAD32_WORD("epr-20943.14", 0x100002, 0x080000, CRC(13abe49c) SHA1(a741a0205c1b3664ab4d09d6d991a768269a79ea) ) /* same as epr-20933.15 listed above */ |
| r3115 | r3116 | |
| 2736 | 2736 | ROM_LOAD("mpr-20815.37", 0x600000, 0x200000, CRC(1b5aaae4) SHA1(32b4bf6c096fdccdd5d8f1ddb6c27d3389a52234) ) |
| 2737 | 2737 | ROM_END |
| 2738 | 2738 | |
| 2739 | ROM_START( dyndek2b ) | |
| 2739 | ROM_START( dyndek2b ) /* Dynamite Deka 2 (Japan), Model 2B */ | |
| 2740 | 2740 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2741 | ROM_LOAD32_WORD("epr-20936.15", 0x000000, 0x080000, CRC(23ef98f2) SHA1(0a106125ed4a2569b54924130ca2ffa05acf2322) ) | |
| 2741 | ROM_LOAD32_WORD("epr-20936.15", 0x000000, 0x080000, CRC(23ef98f2) SHA1(0a106125ed4a2569b54924130ca2ffa05acf2322) ) | |
| 2742 | 2742 | ROM_LOAD32_WORD("epr-20937.16", 0x000002, 0x080000, CRC(25a14e00) SHA1(ebdd21f269fd8a0798306e349d2985eead7e989f) ) |
| 2743 | 2743 | ROM_LOAD32_WORD("epr-20934.13", 0x100000, 0x080000, CRC(618a68bf) SHA1(3022283dded4d08d790d034b6d543c0397b5bf5a) ) /* same as epr-20932.14 listed above */ |
| 2744 | 2744 | ROM_LOAD32_WORD("epr-20935.14", 0x100002, 0x080000, CRC(13abe49c) SHA1(a741a0205c1b3664ab4d09d6d991a768269a79ea) ) /* same as epr-20933.15 listed above */ |
| r3115 | r3116 | |
| 2781 | 2781 | ROM_LOAD("mpr-20815.37", 0x600000, 0x200000, CRC(1b5aaae4) SHA1(32b4bf6c096fdccdd5d8f1ddb6c27d3389a52234) ) |
| 2782 | 2782 | ROM_END |
| 2783 | 2783 | |
| 2784 | ROM_START( dynmcopc ) | |
| 2784 | ROM_START( dynmcopc ) /* Dynamite Cop (USA), Model 2C */ | |
| 2785 | 2785 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2786 | ROM_LOAD32_WORD("epr-20952.15", 0x000000, 0x080000, CRC(ec8bc896) SHA1(85deb1dc1348730a0c9b6ce3679582e7894ff2ed) ) | |
| 2786 | ROM_LOAD32_WORD("epr-20952.15", 0x000000, 0x080000, CRC(ec8bc896) SHA1(85deb1dc1348730a0c9b6ce3679582e7894ff2ed) ) | |
| 2787 | 2787 | ROM_LOAD32_WORD("epr-20953.16", 0x000002, 0x080000, CRC(a8276ffd) SHA1(9bea99c043775c00742c20e2f917d211dca09cc5) ) |
| 2788 | 2788 | ROM_LOAD32_WORD("epr-20950.13", 0x100000, 0x080000, CRC(618a68bf) SHA1(3022283dded4d08d790d034b6d543c0397b5bf5a) ) /* same as epr-20932.14 listed above */ |
| 2789 | 2789 | ROM_LOAD32_WORD("epr-20951.14", 0x100002, 0x080000, CRC(13abe49c) SHA1(a741a0205c1b3664ab4d09d6d991a768269a79ea) ) /* same as epr-20933.15 listed above */ |
| r3115 | r3116 | |
| 2826 | 2826 | ROM_LOAD("mpr-20815.37", 0x600000, 0x200000, CRC(1b5aaae4) SHA1(32b4bf6c096fdccdd5d8f1ddb6c27d3389a52234) ) /* Located at position 35 on 2C-CRX rom board */ |
| 2827 | 2827 | ROM_END |
| 2828 | 2828 | |
| 2829 | ROM_START( schamp ) | |
| 2829 | ROM_START( schamp ) /* Sonic The Fighters, Model 2B */ | |
| 2830 | 2830 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2831 | 2831 | ROM_LOAD32_WORD("epr-19001.15", 0x000000, 0x080000, CRC(9b088511) SHA1(20718d985d14f4d2b1b8e982bfbebddd73cdb972) ) |
| 2832 | 2832 | ROM_LOAD32_WORD("epr-19002.16", 0x000002, 0x080000, CRC(46f510da) SHA1(edcbf61122db568ccaa4c3106f507087c1740c9b) ) |
| r3115 | r3116 | |
| 2880 | 2880 | ROM_LOAD("mpr-19025.35", 0x600000, 0x200000, CRC(6ad8fb70) SHA1(b666d31f9be26eb0cdcb71041a3c3c08d5aa41e1) ) |
| 2881 | 2881 | ROM_END |
| 2882 | 2882 | |
| 2883 | ROM_START( stcc ) | |
| 2883 | ROM_START( stcc ) /* Sega Touring Car Championship Revision A, Model 2C */ | |
| 2884 | 2884 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2885 | 2885 | ROM_LOAD32_WORD("epr-19272a.15", 0x000000, 0x080000, CRC(20cedd05) SHA1(e465967c784de18caaaac77e164796e9779f576a) ) |
| 2886 | 2886 | ROM_LOAD32_WORD("epr-19273a.16", 0x000002, 0x080000, CRC(1b0ab4d6) SHA1(142bcd53fa6632fcc866bbda817aa83470111ef1) ) |
| r3115 | r3116 | |
| 2936 | 2936 | ROM_LOAD("mpr-19265.60s", 0x600000, 0x200000, CRC(7d98700a) SHA1(bedd37314ecab424b5b27030e1e7dc1b596303f3)) |
| 2937 | 2937 | ROM_END |
| 2938 | 2938 | |
| 2939 | ROM_START( skisuprg ) | |
| 2939 | ROM_START( skisuprg ) /* Sega Ski Super G, Model 2C */ | |
| 2940 | 2940 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2941 | 2941 | ROM_LOAD32_WORD( "epr-19489.15", 0x000000, 0x080000, CRC(1df948a7) SHA1(a38faeb97c65b379ad05f7311b55217118c8d2be) ) |
| 2942 | 2942 | ROM_LOAD32_WORD( "epr-19490.16", 0x000002, 0x080000, CRC(e6fc24d3) SHA1(1ac9172cf0b4d6a3488483ffa490a4ca5d410927) ) |
| r3115 | r3116 | |
| 2971 | 2971 | ROM_LOAD( "mpr-19505.34", 0x400000, 0x400000, CRC(eba7f41d) SHA1(f6e521bedf298808a768f6fdcb0b60b320a66d04) ) |
| 2972 | 2972 | ROM_END |
| 2973 | 2973 | |
| 2974 | ROM_START( hotd ) | |
| 2974 | ROM_START( hotd ) /* House of the Dead, Model 2C */ | |
| 2975 | 2975 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 2976 | 2976 | ROM_LOAD32_WORD("epr-19696.15", 0x000000, 0x080000, CRC(03da5623) SHA1(be0bd34a9216375c7204445f084f6c74c4d3b0c8) ) |
| 2977 | 2977 | ROM_LOAD32_WORD("epr-19697.16", 0x000002, 0x080000, CRC(a9722d87) SHA1(0b14f9a81272f79a5b294bc024711042c5fb2637) ) |
| r3115 | r3116 | |
| 3024 | 3024 | ROM_LOAD("mpr-19722.34", 0x400000, 0x400000, CRC(a56fa539) SHA1(405a892bc368ba862ba71bda7525b421d6973c0e) ) |
| 3025 | 3025 | ROM_END |
| 3026 | 3026 | |
| 3027 | ROM_START( lastbrn | |
| 3027 | ROM_START( lastbrnx ) /* Last Bronx Revision A (Export), Model 2B */ | |
| 3028 | 3028 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3029 | ROM_LOAD32_WORD("epr-19046a.15", 0x000000, 0x080000, CRC(75be7b7a) SHA1(e57320ac3abac54b7b5278596979746ed1856188) ) | |
| 3030 | ROM_LOAD32_WORD("epr-19047a.16", 0x000002, 0x080000, CRC(1f5541e2) SHA1(87214f285a7bf67fbd824f2190cb9b2daf408193) ) | |
| 3029 | ROM_LOAD32_WORD("epr-19061a.15", 0x000000, 0x080000, CRC(c0aebab2) SHA1(fa63081b0aa6f02c3d197485865ee38e9c78b43d) ) | |
| 3030 | ROM_LOAD32_WORD("epr-19062a.16", 0x000002, 0x080000, CRC(cdf597e8) SHA1(a85ca36a537ba21d11ef3cfdf914c2c93ac5e68f) ) | |
| 3031 | 3031 | |
| 3032 | 3032 | ROM_REGION32_LE( 0x2000000, "user1", 0 ) // Data |
| 3033 | 3033 | ROM_LOAD32_WORD("mpr-19050.11", 0x000000, 0x400000, CRC(e6af2b61) SHA1(abdf7aa4c594f0916d4335c70fdd67dc6b1f4630) ) |
| r3115 | r3116 | |
| 3053 | 3053 | ROM_LOAD("mpr-19058.34", 0x0400000, 0x400000, CRC(e237c11c) SHA1(7c89cba757bd58747ed0d633b2fe7ef559fcd15e) ) |
| 3054 | 3054 | ROM_END |
| 3055 | 3055 | |
| 3056 | ROM_START( lastbrnx ) | |
| 3056 | ROM_START( lastbrnj ) /* Last Bronx Revision A (Japan), Model 2B */ | |
| 3057 | 3057 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3058 | ROM_LOAD32_WORD("epr-19061a.15", 0x000000, 0x080000, CRC(c0aebab2) SHA1(fa63081b0aa6f02c3d197485865ee38e9c78b43d) ) | |
| 3059 | ROM_LOAD32_WORD("epr-19062a.16", 0x000002, 0x080000, CRC(cdf597e8) SHA1(a85ca36a537ba21d11ef3cfdf914c2c93ac5e68f) ) | |
| 3058 | ROM_LOAD32_WORD("epr-19046a.15", 0x000000, 0x080000, CRC(75be7b7a) SHA1(e57320ac3abac54b7b5278596979746ed1856188) ) | |
| 3059 | ROM_LOAD32_WORD("epr-19047a.16", 0x000002, 0x080000, CRC(1f5541e2) SHA1(87214f285a7bf67fbd824f2190cb9b2daf408193) ) | |
| 3060 | 3060 | |
| 3061 | 3061 | ROM_REGION32_LE( 0x2000000, "user1", 0 ) // Data |
| 3062 | 3062 | ROM_LOAD32_WORD("mpr-19050.11", 0x000000, 0x400000, CRC(e6af2b61) SHA1(abdf7aa4c594f0916d4335c70fdd67dc6b1f4630) ) |
| r3115 | r3116 | |
| 3082 | 3082 | ROM_LOAD("mpr-19058.34", 0x0400000, 0x400000, CRC(e237c11c) SHA1(7c89cba757bd58747ed0d633b2fe7ef559fcd15e) ) |
| 3083 | 3083 | ROM_END |
| 3084 | 3084 | |
| 3085 | ROM_START( pltkidsa ) | |
| 3085 | ROM_START( pltkidsa ) /* Pilot Kids, Model 2A */ | |
| 3086 | 3086 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3087 | 3087 | ROM_LOAD32_WORD("epr-21281.pr0", 0x000000, 0x080000, CRC(293ead5d) SHA1(5a6295e543d7e68387de0ca4d88e930a0d8ed25c) ) |
| 3088 | 3088 | ROM_LOAD32_WORD("epr-21282.pr1", 0x000002, 0x080000, CRC(ed0e7b9e) SHA1(15f3fab6ac2dd40f32bda55503378ab14f998707) ) |
| r3115 | r3116 | |
| 3122 | 3122 | MODEL2A_VID_BOARD |
| 3123 | 3123 | ROM_END |
| 3124 | 3124 | |
| 3125 | ROM_START( pltkids ) | |
| 3125 | ROM_START( pltkids ) /* Pilot Kids Revision A, Model 2B */ | |
| 3126 | 3126 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3127 | 3127 | ROM_LOAD32_WORD("epr-21285a.15", 0x000000, 0x080000, CRC(bdde5b41) SHA1(14c3f5031f85c6756c00bc67765a967ebaf7eb7f) ) |
| 3128 | 3128 | ROM_LOAD32_WORD("epr-21286a.16", 0x000002, 0x080000, CRC(c8092e0e) SHA1(01030621efa9c97eb43f4a5e3e029ec99a2363c5) ) |
| r3115 | r3116 | |
| 3263 | 3263 | ROM_LOAD("mpr-18244.35", 0x0600000, 0x200000, CRC(bfa75beb) SHA1(fec89260d887e90ee9c2803e2eaf937cf9bfa10b) ) |
| 3264 | 3264 | ROM_END |
| 3265 | 3265 | |
| 3266 | /* Wave Runner */ | |
| 3267 | ROM_START( waverunr ) | |
| 3266 | ROM_START( waverunr ) /* Wave Runner Revision A (Japan), Model 2C */ | |
| 3268 | 3267 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3269 | 3268 | ROM_LOAD32_WORD("epr-19282a.15", 0x000000, 0x080000, CRC(5df58604) SHA1(a136bb80746f37450be51f98ca60791b4022035d) ) |
| 3270 | 3269 | ROM_LOAD32_WORD("epr-19283a.16", 0x000002, 0x080000, CRC(bca188e1) SHA1(428f156f60e61ef314b7b50474abddf6d4dc2aca) ) |
| r3115 | r3116 | |
| 3339 | 3338 | ROM_LOAD("mpr-19296.34", 0x0400000, 0x400000, CRC(b4b9faff) SHA1(3a258e0f7c642d043cbab5f94dfe69fac8561e93) ) |
| 3340 | 3339 | ROM_END |
| 3341 | 3340 | |
| 3342 | /* Rail Chase 2 */ | |
| 3343 | ROM_START( rchase2 ) | |
| 3341 | ROM_START( rchase2 ) /* Rail Chase 2 Revision A, Model 2B */ | |
| 3344 | 3342 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3345 | 3343 | ROM_LOAD32_WORD("epr-18045a.15", 0x000000, 0x080000, CRC(bfca0314) SHA1(9eb0f2cdab8c10fda9edc0ddc439263af3903cdc) ) |
| 3346 | 3344 | ROM_LOAD32_WORD("epr-18046a.16", 0x000002, 0x080000, CRC(0b8d3074) SHA1(fee8436399fb97ad5b8357b81e69bd5c27af1dde) ) |
| r3115 | r3116 | |
| 3439 | 3437 | JP23 2-3 |
| 3440 | 3438 | JP24 2-3 |
| 3441 | 3439 | */ |
| 3442 | ROM_START( bel ) | |
| 3440 | ROM_START( bel ) /* Behind Enemy Lines, Model 2C */ | |
| 3443 | 3441 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3444 | 3442 | ROM_LOAD32_WORD("epr-20225.15", 0x000000, 0x020000, CRC(4abc6b59) SHA1(cc6da75aafcbbc86720435182a66e8de065c8e99) ) |
| 3445 | 3443 | ROM_LOAD32_WORD("epr-20226.16", 0x000002, 0x020000, CRC(43e05b3a) SHA1(204b3cc6bbfdc92b4871c45fe4abff4ab4a66317) ) |
| r3115 | r3116 | |
| 3486 | 3484 | ROM_LOAD("mpr-20253.35", 0x0600000, 0x200000, CRC(ca6aa17c) SHA1(f6df2483ca75573449ba36638dbbed4be7843a44) ) |
| 3487 | 3485 | ROM_END |
| 3488 | 3486 | |
| 3489 | ROM_START( overrev ) | |
| 3487 | ROM_START( overrev ) /* Over Rev Revision A, Model 2C */ | |
| 3490 | 3488 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3491 | 3489 | ROM_LOAD32_WORD( "epr-20124a.15", 0x000000, 0x080000, CRC(74beb8d7) SHA1(c65c641138ecd7312c4930702d1498b8a346175a) ) |
| 3492 | 3490 | ROM_LOAD32_WORD( "epr-20125a.16", 0x000002, 0x080000, CRC(def64456) SHA1(cedb64d2d99a73301ef45c2f5f860a9b87faf6a7) ) |
| r3115 | r3116 | |
| 3515 | 3513 | ROM_LOAD( "mpr-20004.34", 0x400000, 0x400000, CRC(0b9c5410) SHA1(e5bb30702fc853ccc03316be07a334269d3ebb4a) ) |
| 3516 | 3514 | ROM_END |
| 3517 | 3515 | |
| 3518 | ROM_START( topskatr ) | |
| 3516 | ROM_START( topskatr ) /* Top Skater Revision A (Export), Model 2C */ | |
| 3519 | 3517 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3520 | 3518 | ROM_LOAD32_WORD("epr-19755a.15", 0x000000, 0x080000, CRC(b80633b9) SHA1(5396da414beeb918e6f38f25a43dd76345a0c8ed) ) |
| 3521 | 3519 | ROM_LOAD32_WORD("epr-19756a.16", 0x000002, 0x080000, CRC(472046a2) SHA1(06d0f609257ba476e6bd3b956e0850e7167429ce) ) |
| r3115 | r3116 | |
| 3555 | 3553 | ROM_LOAD("mpr-19750.24s", 0xc00000, 0x400000, CRC(cd95d0bf) SHA1(40e2a2980c89049c339fefd48bf7aac79962cd2e) ) |
| 3556 | 3554 | ROM_END |
| 3557 | 3555 | |
| 3558 | ROM_START( | |
| 3556 | ROM_START( topskatu ) /* Top Skater (USA), Model 2C */ | |
| 3559 | 3557 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3558 | ROM_LOAD32_WORD( "epr-19753.15", 0x000000, 0x080000, CRC(3b3028de) SHA1(717ebf0ccd87128a24776e618cf15f07aaf48537) ) | |
| 3559 | ROM_LOAD32_WORD( "epr-19754.16", 0x000002, 0x080000, CRC(17535b98) SHA1(a2329d09821900ec4f867caf1a93759085bd0a62) ) | |
| 3560 | ||
| 3561 | ROM_REGION32_LE( 0x2000000, "user1", 0 ) // Data | |
| 3562 | ROM_LOAD32_WORD("mpr-19735.11", 0x000000, 0x400000, CRC(8e509266) SHA1(49afc91467f08befaf34e743cbe823de3e3c9d85) ) | |
| 3563 | ROM_LOAD32_WORD("mpr-19736.12", 0x000002, 0x400000, CRC(094e0a0d) SHA1(de2c739f71e51166263446b9f6a566866ab8bee8) ) | |
| 3564 | ROM_LOAD32_WORD("mpr-19737.9", 0x800000, 0x400000, CRC(281a7dde) SHA1(71d5ba434328a81969bfdc71ac1160c5ff3ae9d3) ) | |
| 3565 | ROM_LOAD32_WORD("mpr-19738.10", 0x800002, 0x400000, CRC(f688327e) SHA1(68c9db242ef7e8f98979e968a09e4b093bc5d470) ) | |
| 3566 | ||
| 3567 | ROM_REGION( 0x800000, "cpu2", 0 ) // TGPx4 program | |
| 3568 | ROM_LOAD32_WORD("mpr-19743.29", 0x000000, 0x200000, CRC(d41a41bf) SHA1(a5f6b24e6526d0d2ef9c526c273c018d1e0fed59) ) | |
| 3569 | ROM_LOAD32_WORD("mpr-19744.30", 0x000002, 0x200000, CRC(84f203bf) SHA1(4952b764e6bf6cd735018738c5eff08781ee2315) ) | |
| 3570 | ||
| 3571 | ROM_REGION( 0x400000, "user2", 0 ) // Models | |
| 3572 | ROM_LOAD32_WORD("mpr-19741.17", 0x000000, 0x200000, CRC(111a6e29) SHA1(8664059f157626e4bbdcf8357e3d30b37d3c25b8) ) | |
| 3573 | ROM_LOAD32_WORD("mpr-19742.21", 0x000002, 0x200000, CRC(28510aff) SHA1(3e68aec090f36a60b3b70bc90f09e2f9ce088718) ) | |
| 3574 | ||
| 3575 | ROM_REGION( 0x800000, "user3", 0 ) // Textures | |
| 3576 | ROM_LOAD32_WORD("mpr-19740.27", 0x000000, 0x400000, CRC(b20f508b) SHA1(c90fa3b42d87291ea459ccc137f3a2f3eb7efec0) ) | |
| 3577 | ROM_LOAD32_WORD("mpr-19739.25", 0x000002, 0x400000, CRC(8120cfd8) SHA1(a82744bff5dcdfae296c7c3e8c3fbfda26324e85) ) | |
| 3578 | ||
| 3579 | ROM_REGION( 0x100000, "audio", 0 ) // Sound program | |
| 3580 | ROM_LOAD16_WORD_SWAP("mpr-19759.31", 0x080000, 0x80000, CRC(573530f2) SHA1(7b205085965d6694f8e75e29c4028f7cb6f631ab) ) | |
| 3581 | ||
| 3582 | ROM_REGION( 0x20000, "cpu3", 0) // DSB program | |
| 3583 | ROM_LOAD16_WORD_SWAP("mpr-19760.2s", 0x000000, 0x20000, CRC(2e41ca15) SHA1(a302209bfe0f1491dff2da64b32cfaa13c3d3304) ) | |
| 3584 | ||
| 3585 | ROM_REGION( 0x800000, "scsp", 0 ) // Samples | |
| 3586 | ROM_LOAD16_WORD_SWAP("mpr-19745.32", 0x000000, 0x400000, CRC(7082a0af) SHA1(415f9d0793a697cb1719bbd96370f4a741866527) ) | |
| 3587 | ROM_LOAD16_WORD_SWAP("mpr-19746.34", 0x400000, 0x400000, CRC(657b5977) SHA1(ca76f211d68b6b55678a4d7949bfd2ddef1b1710) ) | |
| 3588 | ||
| 3589 | ROM_REGION( 0x1000000, "mpeg", 0 ) // MPEG audio data | |
| 3590 | ROM_LOAD("mpr-19747.18s", 0x000000, 0x400000, CRC(6e895aaa) SHA1(4c67c1e1d58a3034bbd711252a78689db9f235bb) ) | |
| 3591 | ROM_LOAD("mpr-19748.20s", 0x400000, 0x400000, CRC(fcd74de3) SHA1(fd4da4cf40c4342c6263cf22eee5968292a4d2c0) ) | |
| 3592 | ROM_LOAD("mpr-19749.22s", 0x800000, 0x400000, CRC(842ca1eb) SHA1(6ee6b2eb2ea400bdb9c0a9b4a126b4b86886e813) ) | |
| 3593 | ROM_LOAD("mpr-19750.24s", 0xc00000, 0x400000, CRC(cd95d0bf) SHA1(40e2a2980c89049c339fefd48bf7aac79962cd2e) ) | |
| 3594 | ROM_END | |
| 3595 | ||
| 3596 | ||
| 3597 | ROM_START( doaa ) /* Dead or Alive Revision A, Model 2A */ | |
| 3598 | ROM_REGION( 0x200000, "main", 0 ) // i960 program | |
| 3560 | 3599 | ROM_LOAD32_WORD("epr-19310a.12", 0x000000, 0x080000, CRC(06486f7a) SHA1(b3e14103570e5f45aed16e1c158e469bc85002ae) ) |
| 3561 | 3600 | ROM_LOAD32_WORD("epr-19311a.13", 0x000002, 0x080000, CRC(1be62912) SHA1(dcc2df8e28e1a107867f74248e6ffcac83afe7c0) ) |
| 3562 | 3601 | |
| r3115 | r3116 | |
| 3599 | 3638 | MODEL2A_VID_BOARD |
| 3600 | 3639 | ROM_END |
| 3601 | 3640 | |
| 3602 | ROM_START( doa ) | |
| 3641 | ROM_START( doa ) /* Dead or Alive Revision B, Model 2B */ | |
| 3603 | 3642 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3604 | 3643 | ROM_LOAD32_WORD("epr-19379b.15", 0x000000, 0x080000, CRC(8a10a944) SHA1(c675a344f74d0118907fb5292495883c0c30c719) ) |
| 3605 | 3644 | ROM_LOAD32_WORD("epr-19380b.16", 0x000002, 0x080000, CRC(766c1ec8) SHA1(49250886f66db9fd37d88bc22c8f22046f74f043) ) |
| r3115 | r3116 | |
| 3640 | 3679 | ROM_LOAD("mpr-19332.34", 0x600000, 0x200000, CRC(2877f96f) SHA1(00e5677da30527b862e238f10762a5cbfbabde2b) ) |
| 3641 | 3680 | ROM_END |
| 3642 | 3681 | |
| 3643 | ROM_START( sgt24h ) | |
| 3682 | ROM_START( sgt24h ) /* Super GT 24h, Model 2B */ | |
| 3644 | 3683 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3645 | 3684 | ROM_LOAD32_WORD("epr-19155.15", 0x000000, 0x080000, CRC(593952fd) SHA1(1fc4afc6e3910cc8adb0688542e61a9efb442e56) ) |
| 3646 | 3685 | ROM_LOAD32_WORD("epr-19156.16", 0x000002, 0x080000, CRC(a91fc4ee) SHA1(a37611da0295f7d7e5d2411c3f9b73140d311f74) ) |
| r3115 | r3116 | |
| 3671 | 3710 | ROM_LOAD("mpr-19154.32", 0x000000, 0x400000, CRC(7cd9e679) SHA1(b9812c4f3042f95febc96bcdd46e3b0724ad4b4f) ) |
| 3672 | 3711 | ROM_END |
| 3673 | 3712 | |
| 3674 | ROM_START( von ) | |
| 3713 | ROM_START( von ) /* Virtual On Cyber Troopers Revision B (US), Model 2B */ | |
| 3675 | 3714 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3676 | ROM_LOAD32_WORD("epr-18664b.15", 0x000000, 0x080000, CRC(27d0172c) SHA1(f3bcae9898c7d656eccb4d2546c9bb93daaefbb7) ) | |
| 3677 | ROM_LOAD32_WORD("epr-18665b.16", 0x000002, 0x080000, CRC(2f0142ee) SHA1(73f2a19a519ced8e0a1ab5cf69a4bf9d9841e288) ) | |
| 3715 | ROM_LOAD32_WORD("epr-18828b.15", 0x000000, 0x080000, CRC(6499cc59) SHA1(8289be295f021acbf0c903513ba97ae7de50dedb) ) | |
| 3716 | ROM_LOAD32_WORD("epr-18829b.16", 0x000002, 0x080000, CRC(0053b10f) SHA1(b89cc814b02b4ab5e37c75ee1a9cf57b88b63053) ) | |
| 3678 | 3717 | ROM_LOAD32_WORD("epr-18666.13", 0x100000, 0x080000, CRC(66edb432) SHA1(b67131b0158a58138380734dd5b9394b70010026) ) |
| 3679 | 3718 | ROM_LOAD32_WORD("epr-18667.14", 0x100002, 0x080000, CRC(b593d31f) SHA1(1e9f23f4052ab1b0275307cc80e51352f13bc319) ) |
| 3680 | 3719 | |
| r3115 | r3116 | |
| 3711 | 3750 | ROM_LOAD("mpr-18653.34", 0x400000, 0x400000, CRC(9ec3e7bf) SHA1(197bc8adc823e93128c1cebf69361a7c7297f808)) |
| 3712 | 3751 | ROM_END |
| 3713 | 3752 | |
| 3714 | ROM_START( vonusa ) | |
| 3753 | ||
| 3754 | ROM_START( vonj ) /* Virtual On Cyber Troopers Revision B (Japan), Model 2B */ | |
| 3715 | 3755 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3716 | ROM_LOAD32_WORD("epr-18828b.15", 0x000000, 0x080000, CRC(6499cc59) SHA1(8289be295f021acbf0c903513ba97ae7de50dedb) ) | |
| 3717 | ROM_LOAD32_WORD("epr-18829b.16", 0x000002, 0x080000, CRC(0053b10f) SHA1(b89cc814b02b4ab5e37c75ee1a9cf57b88b63053) ) | |
| 3756 | ROM_LOAD32_WORD("epr-18664b.15", 0x000000, 0x080000, CRC(27d0172c) SHA1(f3bcae9898c7d656eccb4d2546c9bb93daaefbb7) ) | |
| 3757 | ROM_LOAD32_WORD("epr-18665b.16", 0x000002, 0x080000, CRC(2f0142ee) SHA1(73f2a19a519ced8e0a1ab5cf69a4bf9d9841e288) ) | |
| 3718 | 3758 | ROM_LOAD32_WORD("epr-18666.13", 0x100000, 0x080000, CRC(66edb432) SHA1(b67131b0158a58138380734dd5b9394b70010026) ) |
| 3719 | 3759 | ROM_LOAD32_WORD("epr-18667.14", 0x100002, 0x080000, CRC(b593d31f) SHA1(1e9f23f4052ab1b0275307cc80e51352f13bc319) ) |
| 3720 | 3760 | |
| r3115 | r3116 | |
| 3751 | 3791 | ROM_LOAD("mpr-18653.34", 0x400000, 0x400000, CRC(9ec3e7bf) SHA1(197bc8adc823e93128c1cebf69361a7c7297f808) ) |
| 3752 | 3792 | ROM_END |
| 3753 | 3793 | |
| 3754 | ROM_START( vstriker ) | |
| 3794 | ROM_START( vstriker ) /* Virtua Striker Revision A, Model 2B */ | |
| 3755 | 3795 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3756 | 3796 | ROM_LOAD32_WORD("epr-18068a.15", 0x000000, 0x020000, CRC(afc69b54) SHA1(2127bde1de3cd6663c31cf2126847815234e09a4) ) |
| 3757 | 3797 | ROM_LOAD32_WORD("epr-18069a.16", 0x000002, 0x020000, CRC(0243250c) SHA1(3cbeac09d503a19c5950cf70e3b329f791acfa13) ) |
| r3115 | r3116 | |
| 3787 | 3827 | ROM_LOAD("mpr-18065.34", 0x400000, 0x200000, CRC(046b55fe) SHA1(2db7eabf4318881a67b10dba24f6f0cd68940ace) ) |
| 3788 | 3828 | ROM_END |
| 3789 | 3829 | |
| 3790 | ROM_START( vstrikro ) | |
| 3830 | ROM_START( vstrikro ) /* Virtua Striker, Model 2B */ | |
| 3791 | 3831 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3792 | 3832 | ROM_LOAD32_WORD("epr-18068.15", 0x000000, 0x020000, CRC(74a47795) SHA1(3ba34bd467e11e768eda95ff345f5993fb9d6bca) ) |
| 3793 | 3833 | ROM_LOAD32_WORD("epr-18069.16", 0x000002, 0x020000, CRC(f6c3fcbf) SHA1(84bf16fc2a441cb724f4bc635a4c4209c240cfbf) ) |
| r3115 | r3116 | |
| 3823 | 3863 | ROM_LOAD("mpr-18065.34", 0x400000, 0x200000, CRC(046b55fe) SHA1(2db7eabf4318881a67b10dba24f6f0cd68940ace) ) |
| 3824 | 3864 | ROM_END |
| 3825 | 3865 | |
| 3826 | ROM_START( dynabb ) | |
| 3866 | ROM_START( dynabb ) /* Dynamite Baseball '97 Revision A, Model 2B */ | |
| 3827 | 3867 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3828 | 3868 | ROM_LOAD32_WORD("epr-19833a.15", 0x000000, 0x080000, CRC(d99ed1b2) SHA1(b04613d564c04c35feafccad56ed85810d894185) ) |
| 3829 | 3869 | ROM_LOAD32_WORD("epr-19834a.16", 0x000002, 0x080000, CRC(24192bb1) SHA1(c535ab4b38ffd42f03eed6a5a1706e867eaccd67) ) |
| r3115 | r3116 | |
| 3862 | 3902 | ROM_LOAD("mpr-19853.35", 0x600000, 0x200000, CRC(cfc64857) SHA1(cf51fafb3d45bf799b9ccb407bee862e15c95981) ) |
| 3863 | 3903 | ROM_END |
| 3864 | 3904 | |
| 3865 | ROM_START( fvipers ) | |
| 3905 | ROM_START( fvipers ) /* Fighting Vipers Revision D, Model 2B */ | |
| 3866 | 3906 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3867 | 3907 | ROM_LOAD32_WORD("epr-18606d.15", 0x000000, 0x020000, CRC(7334de7d) SHA1(d10355198a3f62b503701f44dc49bfe018c787d1) ) |
| 3868 | 3908 | ROM_LOAD32_WORD("epr-18607d.16", 0x000002, 0x020000, CRC(700d2ade) SHA1(656e25a6389f04f7fb9099f0b41fb03fa645a2f0) ) |
| r3115 | r3116 | |
| 3921 | 3961 | ROM_LOAD("mpr-18632.35", 0x600000, 0x200000, CRC(39da6805) SHA1(9e9523b7c2bc50f869d062f80955da1281951299) ) |
| 3922 | 3962 | ROM_END |
| 3923 | 3963 | |
| 3924 | /* original Model 2 w/Model 1 sound board */ | |
| 3925 | ||
| 3926 | ROM_START( daytona ) | |
| 3964 | ROM_START( daytona ) /* Daytona USA (Japan, Revision A), Original Model 2 w/Model 1 sound board */ | |
| 3927 | 3965 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3928 | 3966 | ROM_LOAD32_WORD("epr-16722a.12", 0x000000, 0x020000, CRC(48b94318) SHA1(a476a9a3531beef760c88c9634ed4a7d270e8ee7) ) |
| 3929 | 3967 | ROM_LOAD32_WORD("epr-16723a.13", 0x000002, 0x020000, CRC(8af8b32d) SHA1(2039ec1f8da524176fcf85473c10a8b6e49e139a) ) |
| r3115 | r3116 | |
| 3984 | 4022 | ROM_LOAD("epr-14869c.25", 0x000000, 0x010000, CRC(24b68e64) SHA1(c19d044d4c2fe551474492aa51922587394dd371) ) |
| 3985 | 4023 | ROM_END |
| 3986 | 4024 | |
| 3987 | /* Deluxe '93 version (There is said to be a Deluxe '94 edition) */ | |
| 3988 | ||
| 3989 | ROM_START( dayton93 ) | |
| 4025 | ROM_START( dayton93 ) /* Daytona USA Deluxe '93 version (There is said to be a Deluxe '94 edition) */ | |
| 3990 | 4026 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 3991 | 4027 | ROM_LOAD32_WORD("epr-16530a.12", 0x000000, 0x020000, CRC(39e962b5) SHA1(b98a1faabb4f1eff707a94c32224c7820f259874) ) |
| 3992 | 4028 | ROM_LOAD32_WORD("epr-16531a.13", 0x000002, 0x020000, CRC(693126eb) SHA1(779734ba536db67e14760d52e8d8d7db07816481) ) |
| r3115 | r3116 | |
| 4046 | 4082 | ROM_LOAD("epr-14869c.25", 0x000000, 0x010000, CRC(24b68e64) SHA1(c19d044d4c2fe551474492aa51922587394dd371) ) |
| 4047 | 4083 | ROM_END |
| 4048 | 4084 | |
| 4049 | /* alt revision with Saturn Adverts */ | |
| 4050 | ||
| 4051 | ROM_START( daytonas ) | |
| 4085 | ROM_START( daytonas ) /* Daytona USA (With Saturn Adverts) */ | |
| 4052 | 4086 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 4053 | 4087 | ROM_LOAD32_WORD("epr-17965.ic12", 0x000000, 0x020000, CRC(f022b3da) SHA1(3c337d12f4e12141b412a7289df46f44c66964b2) ) |
| 4054 | 4088 | ROM_LOAD32_WORD("epr-17966.ic13", 0x000002, 0x020000, CRC(f9e4ece5) SHA1(2df03455a00ae7066c30bace5c2b81581529e6f4) ) |
| r3115 | r3116 | |
| 4109 | 4143 | ROM_LOAD("epr-14869c.25", 0x000000, 0x010000, CRC(24b68e64) SHA1(c19d044d4c2fe551474492aa51922587394dd371) ) |
| 4110 | 4144 | ROM_END |
| 4111 | 4145 | |
| 4112 | ROM_START( daytonat ) | |
| 4146 | ROM_START( daytonat )/* Daytona USA (Japan, Turbo hack) */ | |
| 4113 | 4147 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 4114 | 4148 | ROM_LOAD32_WORD( "turbo1.12", 0x000000, 0x080000, CRC(0b3d5d4e) SHA1(1660959cb383e22f0d6204547c30cf5fe9272b03) ) |
| 4115 | 4149 | ROM_LOAD32_WORD( "turbo2.13", 0x000002, 0x080000, CRC(f7d4e866) SHA1(c8c43904257f718665f9f7a89838eba14bde9465) ) |
| r3115 | r3116 | |
| 4181 | 4215 | with a 40 pin socket mounted on it, which plugs into position IC15 |
| 4182 | 4216 | */ |
| 4183 | 4217 | |
| 4184 | ROM_START( daytonam ) | |
| 4218 | ROM_START( daytonam ) /* Daytona USA (Japan, To The MAXX) */ | |
| 4185 | 4219 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 4186 | 4220 | ROM_LOAD32_WORD( "maxx.12", 0x000000, 0x020000, CRC(604ef2d9) SHA1(b1d5f0d41bea2e74fb9346da35a5041f4464265e) ) |
| 4187 | 4221 | ROM_LOAD32_WORD( "maxx.13", 0x000002, 0x020000, CRC(7d319970) SHA1(5bc150a77f20a29f54acdf5043fb1e8e55f6b08b) ) |
| r3115 | r3116 | |
| 4243 | 4277 | ROM_LOAD("epr-14869c.25", 0x000000, 0x010000, CRC(24b68e64) SHA1(c19d044d4c2fe551474492aa51922587394dd371) ) |
| 4244 | 4278 | ROM_END |
| 4245 | 4279 | |
| 4246 | ROM_START( vcop ) | |
| 4280 | ROM_START( vcop ) /* Virtua Cop Revision B, Model 2 */ | |
| 4247 | 4281 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 4248 | 4282 | ROM_LOAD32_WORD( "epr-17166b.012", 0x000000, 0x020000, CRC(a5647c59) SHA1(0a9e0be447d3591e82efd40ef4acbfe7ae211579) ) |
| 4249 | 4283 | ROM_LOAD32_WORD( "epr-17167b.013", 0x000002, 0x020000, CRC(f5dde26a) SHA1(95db029bc4206a44ea216afbcd1c19689f79115a) ) |
| r3115 | r3116 | |
| 4286 | 4320 | MODEL2_CPU_BOARD |
| 4287 | 4321 | ROM_END |
| 4288 | 4322 | |
| 4289 | ROM_START( desert ) | |
| 4323 | ROM_START( desert ) /* Desert Tank, Model 2 */ | |
| 4290 | 4324 | ROM_REGION( 0x200000, "main", 0 ) // i960 program |
| 4291 | 4325 | ROM_LOAD32_WORD("epr-16976.12", 0x000000, 0x020000, CRC(d036dff0) SHA1(f3e5f22ef1f3ff9c9a1ff7352cdad3e2c2977a51) ) |
| 4292 | 4326 | ROM_LOAD32_WORD("epr-16977.13", 0x000002, 0x020000, CRC(e91194bd) SHA1(cec8eb8d4b52c387d5750ee5a0c6e6ce7c0fe80d) ) |
| r3115 | r3116 | |
| 4386 | 4420 | } |
| 4387 | 4421 | |
| 4388 | 4422 | // Model 2 (TGPs, Model 1 sound board) |
| 4389 | GAME( 1993, daytona, 0, model2o, daytona, 0, ROT0, "Sega", "Daytona USA (Japan | |
| 4423 | GAME( 1993, daytona, 0, model2o, daytona, 0, ROT0, "Sega", "Daytona USA (Japan, | |
| 4390 | 4424 | GAME( 1993, dayton93, daytona, model2o, daytona, 0, ROT0, "Sega", "Daytona USA Deluxe '93", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4391 | 4425 | GAME( 1993, daytonas, daytona, model2o, daytona, 0, ROT0, "Sega", "Daytona USA (With Saturn Adverts)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4392 | 4426 | GAME( 1993, daytonat, daytona, model2o, daytona, 0, ROT0, "Sega", "Daytona USA (Japan, Turbo hack)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4393 | 4427 | GAME( 1993, daytonam, daytona, model2o, daytona, daytonam, ROT0, "Sega", "Daytona USA (Japan, To The MAXX)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4394 | 4428 | GAME( 1994, desert, 0, model2o, desert, 0, ROT0, "Sega/Martin Marietta", "Desert Tank", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4395 | GAME( 1994, vcop, 0, model2o, daytona, 0, ROT0, "Sega", "Virtua Cop", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4429 | GAME( 1994, vcop, 0, model2o, daytona, 0, ROT0, "Sega", "Virtua Cop (Revision B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4396 | 4430 | |
| 4397 | 4431 | // Model 2A-CRX (TGPs, SCSP sound board) |
| 4398 | 4432 | GAME( 1995, manxtt, 0, model2a, model2, 0, ROT0, "Sega", "Manx TT Superbike (Revision C)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4399 | 4433 | GAME( 1995, motoraid, 0, model2a, model2, 0, ROT0, "Sega", "Motoraid", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4400 | 4434 | GAME( 1995, srallyc, 0, model2a, srallyc,0, ROT0, "Sega", "Sega Rally Championship", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4401 | GAME( 1995, vf2, 0, model2a, model2, 0, ROT0, "Sega", "Virtua Fighter 2 ( | |
| 4435 | GAME( 1995, vf2, 0, model2a, model2, 0, ROT0, "Sega", "Virtua Fighter 2 (Version 2.1)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4402 | 4436 | GAME( 1995, vf2b, vf2, model2a, model2, 0, ROT0, "Sega", "Virtua Fighter 2 (Revision B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4403 | 4437 | GAME( 1995, vf2a, vf2, model2a, model2, 0, ROT0, "Sega", "Virtua Fighter 2 (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4404 | 4438 | GAME( 1995, vf2o, vf2, model2a, model2, 0, ROT0, "Sega", "Virtua Fighter 2", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4405 | 4439 | GAME( 1995, vcop2, 0, model2a, model2, 0, ROT0, "Sega", "Virtua Cop 2", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4406 | 4440 | GAME( 1995, skytargt, 0, model2a, model2, 0, ROT0, "Sega", "Sky Target", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4407 | GAME( 1996, doaa, doa, model2a, model2, doa, ROT0, "Sega", "Dead or Alive (Model 2A | |
| 4441 | GAME( 1996, doaa, doa, model2a, model2, doa, ROT0, "Sega", "Dead or Alive (Model 2A, | |
| 4408 | 4442 | GAME( 1997, zeroguna, zerogun, model2a, model2, zerogun, ROT0, "Psikyo", "Zero Gunner (Model 2A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4409 | 4443 | GAME( 1998, dynamcop, 0, model2a, model2, genprot, ROT0, "Sega", "Dynamite Cop (Export, Model 2A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4410 | 4444 | GAME( 1998, dyndeka2, dynamcop, model2a, model2, genprot, ROT0, "Sega", "Dynamite Deka 2 (Japan, Model 2A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4411 | 4445 | GAME( 1998, pltkidsa, pltkids, model2a, model2, pltkids, ROT0, "Psikyo", "Pilot Kids (Model 2A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4412 | 4446 | |
| 4413 | 4447 | // Model 2B-CRX (SHARC, SCSP sound board) |
| 4414 | GAME( 1994, vstriker, 0, model2b, model2, 0, ROT0, "Sega", "Virtua Striker (Rev A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4448 | GAME( 1994, vstriker, 0, model2b, model2, 0, ROT0, "Sega", "Virtua Striker (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4415 | 4449 | GAME( 1994, vstrikro, vstriker, model2b, model2, 0, ROT0, "Sega", "Virtua Striker", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4416 | GAME( 1995, fvipers, 0, model2b, model2, 0, ROT0, "Sega", "Fighting Vipers", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4417 | GAME( 1995, gunblade, 0, model2b, model2, 0, ROT0, "Sega", "Gunblade NY", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4418 | GAME( 1995, indy500, 0, model2b, model2, 0, ROT0, "Sega", "INDY 500 Twin", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4419 | GAME( 1995, indy500d, indy500, model2b, model2, 0, ROT0, "Sega", "INDY 500 Deluxe", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4450 | GAME( 1995, fvipers, 0, model2b, model2, 0, ROT0, "Sega", "Fighting Vipers (Revision D)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4451 | GAME( 1995, gunblade, 0, model2b, model2, 0, ROT0, "Sega", "Gunblade NY (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4452 | GAME( 1995, indy500, 0, model2b, model2, 0, ROT0, "Sega", "INDY 500 Twin (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4453 | GAME( 1995, indy500d, indy500, model2b, model2, 0, ROT0, "Sega", "INDY 500 Deluxe (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4420 | 4454 | GAME( 1996, schamp, 0, model2b, model2, 0, ROT0, "Sega", "Sonic The Fighters", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4421 | GAME( 1996, lastbrnx, 0, model2b, model2, 0, ROT0, "Sega", "Last Bronx (Export, Rev A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4422 | GAME( 1996, lastbrnj, lastbrnx, model2b, model2, 0, ROT0, "Sega", "Last Bronx (Japan, Rev A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4423 | GAME( 1996, doa, 0, model2b, model2, doa, ROT0, "Sega", "Dead or Alive (Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4455 | GAME( 1996, lastbrnx, 0, model2b, model2, 0, ROT0, "Sega", "Last Bronx (Export, Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4456 | GAME( 1996, lastbrnj, lastbrnx, model2b, model2, 0, ROT0, "Sega", "Last Bronx (Japan, Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4457 | GAME( 1996, doa, 0, model2b, model2, doa, ROT0, "Sega", "Dead or Alive (Model 2B, Revision B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4424 | 4458 | GAME( 1996, sgt24h, 0, model2b, model2, sgt24h, ROT0, "Jaleco", "Super GT 24h", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4425 | GAME( 1996, von, 0, model2b, model2, 0, ROT0, "Sega", "Virtual On Cyber Troopers (Japan, Rev B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4426 | GAME( 1996, vonusa, von, model2b, model2, 0, ROT0, "Sega", "Virtual On Cyber Troopers (US, Rev B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4427 | GAME( 1996, dynabb, 0, model2b, model2, 0, ROT0, "Sega", "Dynamite Baseball '97", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4459 | GAME( 1996, von, 0, model2b, model2, 0, ROT0, "Sega", "Virtual On Cyber Troopers (US, Revision B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4460 | GAME( 1996, vonj, von, model2b, model2, 0, ROT0, "Sega", "Virtual On Cyber Troopers (Japan, Revision B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4461 | GAME( 1996, dynabb, 0, model2b, model2, 0, ROT0, "Sega", "Dynamite Baseball '97 (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4428 | 4462 | GAME( 1997, zerogun, 0, model2b, model2, zerogun, ROT0, "Psikyo", "Zero Gunner (Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4429 | 4463 | GAME( 1997, zerogunj, zerogun, model2b, model2, zerogun, ROT0, "Psikyo", "Zero Gunner (Japan Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4430 | 4464 | GAME( 1998, dynmcopb, dynamcop, model2b, model2, genprot, ROT0, "Sega", "Dynamite Cop (Export, Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4431 | 4465 | GAME( 1998, dyndek2b, dynamcop, model2b, model2, genprot, ROT0, "Sega", "Dynamite Deka 2 (Japan, Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4432 | GAME( 1998, pltkids, 0, model2b, model2, pltkids, ROT0, "Psikyo", "Pilot Kids (Model 2B) (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4433 | GAME( 199?, waverunr, 0, model2b, model2, 0, ROT0, "Sega", "Wave Runner (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4466 | GAME( 1998, pltkids, 0, model2b, model2, pltkids, ROT0, "Psikyo", "Pilot Kids (Model 2B, Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4434 | 4467 | GAME( 199?, rchase2, 0, model2b, model2, 0, ROT0, "Sega", "Rail Chase 2 (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4435 | 4468 | |
| 4436 | 4469 | // Model 2C-CRX (TGPx4, SCSP sound board) |
| 4437 | 4470 | GAME( 1996, skisuprg, 0, model2c, model2, 0, ROT0, "Sega", "Sega Ski Super G", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4438 | 4471 | GAME( 1996, stcc, 0, model2c, model2, 0, ROT0, "Sega", "Sega Touring Car Championship (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4472 | GAME( 1996, waverunr, 0, model2c, model2, 0, ROT0, "Sega", "Wave Runner (Japan, Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4439 | 4473 | GAME( 1997, hotd, 0, model2c, model2, 0, ROT0, "Sega", "House of the Dead", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4440 | 4474 | GAME( 1997, overrev, 0, model2c, model2, 0, ROT0, "Jaleco", "Over Rev (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4441 | GAME( 1997, topskatr, 0, model2c, model2, 0, ROT0, "Sega", "Top Skater (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4475 | GAME( 1997, topskatr, 0, model2c, model2, 0, ROT0, "Sega", "Top Skater (Export, Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4476 | GAME( 1997, topskatu, topskatr, model2c, model2, 0, ROT0, "Sega", "Top Skater (USA)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) | |
| 4442 | 4477 | GAME( 1998, bel, 0, model2c, bel, 0, ROT0, "Sega/EPL Productions", "Behind Enemy Lines", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4443 | 4478 | GAME( 1998, dynmcopc, dynamcop, model2c, model2, 0, ROT0, "Sega", "Dynamite Cop (USA, Model 2C)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) |
| 4444 | 4479 |
| r3115 | r3116 | |
|---|---|---|
| 97 | 97 | { |
| 98 | 98 | switch (offset) |
| 99 | 99 | { |
| 100 | case 0x050 >> 1: /* Player 1 & Player 2 joysticks & fire buttons */ | |
| 101 | return (input_port_read(machine, "P1") + (input_port_read(machine, "P2") << 8)); | |
| 102 | case 0x76a >> 1: /* Credits */ | |
| 100 | case 0x050 >> 1: | |
| 101 | return input_port_read(machine, "INPUTS"); | |
| 102 | case 0x76a >> 1: | |
| 103 | 103 | return input_port_read(machine, "SYSTEM"); |
| 104 | case 0x0ac >> 1: /* DIPS */ | |
| 105 | return (input_port_read(machine, "DSW1") + (input_port_read(machine, "DSW2") << 8)); | |
| 104 | case 0x0ac >> 1: | |
| 105 | return input_port_read(machine, "DSW"); | |
| 106 | 106 | |
| 107 | 107 | // Protection TODO |
| 108 | 108 | } |
| r3115 | r3116 | |
| 115 | 115 | { |
| 116 | 116 | switch (offset) |
| 117 | 117 | { |
| 118 | case 0x050 >> 1: /* Player 1 & Player 2 joysticks & fire buttons */ | |
| 119 | return (input_port_read(machine, "P1") + (input_port_read(machine, "P2") << 8)); | |
| 120 | case 0x76a >> 1: /* Credits */ | |
| 118 | case 0x050 >> 1: | |
| 119 | return input_port_read(machine, "INPUTS"); | |
| 120 | case 0x76a >> 1: | |
| 121 | 121 | return input_port_read(machine, "SYSTEM"); |
| 122 | case 0x0ac >> 1: /* DIPS */ | |
| 123 | return (input_port_read(machine, "DSW1") + (input_port_read(machine, "DSW2") << 8)); | |
| 122 | case 0x0ac >> 1: | |
| 123 | return input_port_read(machine, "DSW"); | |
| 124 | 124 | } |
| 125 | 125 | return sshangha_prot_data[offset]; |
| 126 | 126 | } |
| r3115 | r3116 | |
| 202 | 202 | /******************************************************************************/ |
| 203 | 203 | |
| 204 | 204 | static INPUT_PORTS_START( sshangha ) |
| 205 | PORT_START("P1") /* Player 1 controls (0xfec047.b) */ | |
| 206 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 207 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 208 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 209 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 210 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Pick Tile") | |
| 211 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("P1 Cancel") | |
| 212 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("P1 Help") | |
| 213 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 205 | PORT_START("INPUTS") /* 0xfec046.b - 0xfec047.b */ | |
| 206 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 207 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 208 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 209 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 210 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Pick Tile") | |
| 211 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("P1 Cancel") | |
| 212 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("P1 Help") | |
| 213 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 214 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 215 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 216 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 217 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 218 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("P2 Pick Tile") | |
| 219 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 Cancel") | |
| 220 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("P2 Help") | |
| 221 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 214 | 222 | |
| 215 | PORT_START("P2") /* Player 2 controls (0xfec046.b) */ | |
| 216 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 217 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 218 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 219 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 220 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("P2 Pick Tile") | |
| 221 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 Cancel") | |
| 222 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("P2 Help") | |
| 223 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 223 | PORT_START("SYSTEM") | |
| 224 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 225 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 226 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 227 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 228 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 229 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 230 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 231 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 224 | 232 | |
| 225 | PORT_START("SYSTEM") /* Credits */ | |
| 226 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 227 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 228 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 229 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 230 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 231 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 232 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 233 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 234 | ||
| 235 | 233 | /* Dips seem inverted with respect to other Deco games */ |
| 236 | ||
| 237 | PORT_START("DSW1") /* Dip switch bank 1 (0xfec04a.b, inverted bits order) */ | |
| 238 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) // To be confirmed | |
| 239 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 240 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 241 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 242 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 243 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 244 | PORT_SERVICE( 0x20, IP_ACTIVE_LOW ) | |
| 245 | PORT_DIPNAME( 0x10, 0x10, "Coin Mode" ) // Check code at 0x0010f2 | |
| 246 | PORT_DIPSETTING( 0x10, "Mode 1" ) | |
| 247 | PORT_DIPSETTING( 0x00, "Mode 2" ) | |
| 248 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_A ) ) | |
| 249 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_EQUALS,0x10)//Mode 1 | |
| 250 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_EQUALS,0x10)//Mode 1 | |
| 251 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_EQUALS,0x10)//Mode 1 | |
| 252 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_EQUALS,0x10)//Mode 1 | |
| 253 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_NOTEQUALS,0x10)//Mode 2 | |
| 254 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_NOTEQUALS,0x10)//Mode 2 | |
| 255 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_NOTEQUALS,0x10)//Mode 2 | |
| 256 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_NOTEQUALS,0x10)//Mode 2 | |
| 257 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) ) | |
| 258 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_EQUALS,0x10)//Mode 1 | |
| 259 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_EQUALS,0x10)//Mode 1 | |
| 260 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_EQUALS,0x10)//Mode 1 | |
| 261 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_EQUALS,0x10)//Mode 1 | |
| 262 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_NOTEQUALS,0x10)//Mode 2 | |
| 263 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_NOTEQUALS,0x10)//Mode 2 | |
| 264 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_NOTEQUALS,0x10)//Mode 2 | |
| 265 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_4C ) )PORT_CONDITION("DSW1",0x10,PORTCOND_NOTEQUALS,0x10)//Mode 2 | |
| 266 | ||
| 267 | PORT_START("DSW2") /* Dip switch bank 2 (0xfec04b.b, inverted bits order) */ | |
| 268 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) | |
| 269 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 270 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) | |
| 271 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) | |
| 272 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 234 | PORT_START("DSW") /* 0xfec04b.b - 0xfec04a.b, inverted bits order */ | |
| 235 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Demo_Sounds ) ) // To be confirmed | |
| 236 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 237 | PORT_DIPSETTING( 0x0080, DEF_STR( On ) ) | |
| 238 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 239 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 240 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 241 | PORT_SERVICE( 0x0020, IP_ACTIVE_LOW ) | |
| 242 | PORT_DIPNAME( 0x0010, 0x0010, "Coin Mode" ) // Check code at 0x000010f2 | |
| 243 | PORT_DIPSETTING( 0x0010, "Mode 1" ) | |
| 244 | PORT_DIPSETTING( 0x0000, "Mode 2" ) | |
| 245 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Coin_A ) ) | |
| 246 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_EQUALS, 0x0010) //Mode 1 | |
| 247 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_EQUALS, 0x0010) //Mode 1 | |
| 248 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_EQUALS, 0x0010) //Mode 1 | |
| 249 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_EQUALS, 0x0010) //Mode 1 | |
| 250 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_NOTEQUALS, 0x0010) //Mode 2 | |
| 251 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_NOTEQUALS, 0x0010) //Mode 2 | |
| 252 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_NOTEQUALS, 0x0010) //Mode 2 | |
| 253 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_NOTEQUALS, 0x0010) //Mode 2 | |
| 254 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coin_B ) ) | |
| 255 | PORT_DIPSETTING( 0x0002, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_EQUALS, 0x0010) //Mode 1 | |
| 256 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_EQUALS, 0x0010) //Mode 1 | |
| 257 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_EQUALS, 0x0010) //Mode 1 | |
| 258 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_EQUALS, 0x0010) //Mode 1 | |
| 259 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_NOTEQUALS, 0x0010) //Mode 2 | |
| 260 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_NOTEQUALS, 0x0010) //Mode 2 | |
| 261 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_NOTEQUALS, 0x0010) //Mode 2 | |
| 262 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW", 0x0010, PORTCOND_NOTEQUALS, 0x0010) //Mode 2 | |
| 263 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Difficulty ) ) | |
| 264 | PORT_DIPSETTING( 0x4000, DEF_STR( Easy ) ) | |
| 265 | PORT_DIPSETTING( 0xc000, DEF_STR( Normal ) ) | |
| 266 | PORT_DIPSETTING( 0x8000, DEF_STR( Hard ) ) | |
| 267 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 273 | 268 | #if SSHANGHA_HACK |
| 274 | PORT_DIPNAME( 0x20, 0x20, "Debug Mode" ) | |
| 275 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 276 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 269 | PORT_DIPNAME( 0x2000, 0x2000, "Debug Mode" ) | |
| 270 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 271 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 277 | 272 | #else |
| 278 | PORT_DIPUNUSED( 0x20, IP_ACTIVE_LOW ) // See notes | |
| 273 | PORT_DIPUNUSED( 0x2000, IP_ACTIVE_LOW ) // See notes | |
| 279 | 274 | #endif |
| 280 | PORT_DIPUNUSED( 0x10, IP_ACTIVE_LOW ) | |
| 281 | PORT_DIPNAME( 0x08, 0x08, "Tile Animation" ) | |
| 282 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 283 | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) | |
| 284 | PORT_DIPNAME( 0x04, 0x04, "Use Mahjong Tiles" ) | |
| 285 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 286 | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) | |
| 287 | PORT_DIPNAME( 0x02, 0x02, "Adult Mode" ) | |
| 288 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 289 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) | |
| 290 | PORT_DIPNAME( 0x01, 0x01, "Quest Mode" ) | |
| 291 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 292 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) | |
| 275 | PORT_DIPUNUSED( 0x1000, IP_ACTIVE_LOW ) | |
| 276 | PORT_DIPNAME( 0x0800, 0x0800, "Tile Animation" ) | |
| 277 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 278 | PORT_DIPSETTING( 0x0800, DEF_STR( Yes ) ) | |
| 279 | PORT_DIPNAME( 0x0400, 0x0400, "Use Mahjong Tiles" ) | |
| 280 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 281 | PORT_DIPSETTING( 0x0400, DEF_STR( Yes ) ) | |
| 282 | PORT_DIPNAME( 0x0200, 0x0200, "Adult Mode" ) | |
| 283 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 284 | PORT_DIPSETTING( 0x0200, DEF_STR( Yes ) ) | |
| 285 | PORT_DIPNAME( 0x0100, 0x0100, "Quest Mode" ) | |
| 286 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 287 | PORT_DIPSETTING( 0x0100, DEF_STR( Yes ) ) | |
| 293 | 288 | INPUT_PORTS_END |
| 294 | 289 | |
| 295 | 290 | /******************************************************************************/ |
| r3115 | r3116 | |
|---|---|---|
| 61 | 61 | |
| 62 | 62 | static READ8_HANDLER( p1c_r ) |
| 63 | 63 | { |
| 64 | return (s2 << 7) | (s4 << 6) | ((input_port_read(machine, "IN | |
| 64 | return (s2 << 7) | (s4 << 6) | ((input_port_read(machine, "SERVCOIN | |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | static WRITE8_HANDLER( p1a_w ) |
| r3115 | r3116 | |
| 167 | 167 | AM_RANGE(0x6000, 0x67ff) AM_RAM |
| 168 | 168 | AM_RANGE(0x8000, 0x87ff) AM_RAM |
| 169 | 169 | AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w) |
| 170 | AM_RANGE(0xe000, 0xe000) AM_READ(input_port_0_r) | |
| 171 | AM_RANGE(0xe001, 0xe001) AM_READ(input_port_1_r) | |
| 172 | AM_RANGE(0xe002, 0xe002) AM_READ(input_port_2_r) | |
| 173 | AM_RANGE(0xe003, 0xe003) AM_READ(input_port_3_r) | |
| 174 | AM_RANGE(0xe004, 0xe004) AM_READ(input_port_4_r) | |
| 170 | AM_RANGE(0xe000, 0xe000) AM_READ_PORT("DSW0") | |
| 171 | AM_RANGE(0xe001, 0xe001) AM_READ_PORT("DSW1") | |
| 172 | AM_RANGE(0xe002, 0xe002) AM_READ_PORT("DSW2") | |
| 173 | AM_RANGE(0xe003, 0xe003) AM_READ_PORT("P1") | |
| 174 | AM_RANGE(0xe004, 0xe004) AM_READ_PORT("P2") | |
| 175 | 175 | ADDRESS_MAP_END |
| 176 | 176 | |
| 177 | 177 | static ADDRESS_MAP_START( cpu3_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 276 | 276 | PORT_DIPSETTING( 0x80, "20/15" ) |
| 277 | 277 | PORT_DIPSETTING( 0xc0, "10/10" ) |
| 278 | 278 | |
| 279 | PORT_START(" | |
| 279 | PORT_START("P1 | |
| 280 | 280 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 281 | 281 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 282 | 282 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| r3115 | r3116 | |
| 286 | 286 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 287 | 287 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 288 | 288 | |
| 289 | PORT_START(" | |
| 289 | PORT_START("P2 | |
| 290 | 290 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 291 | 291 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 292 | 292 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| r3115 | r3116 | |
| 296 | 296 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 297 | 297 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| 298 | 298 | |
| 299 | PORT_START("IN | |
| 299 | PORT_START("SERVCOIN | |
| 300 | 300 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) /* handled by p1c_r() */ |
| 301 | 301 | INPUT_PORTS_END |
| 302 | 302 |
| r3115 | r3116 | |
|---|---|---|
| 640 | 640 | |
| 641 | 641 | /* 2 is vblank, 4 is some sort of scanline interrupt, 6 is both at the same time. */ |
| 642 | 642 | |
| 643 | if(scancount >= 2 | |
| 643 | if(scancount >= 258) | |
| 644 | 644 | { |
| 645 | 645 | scancount = -1; |
| 646 | 646 | cps1_scancalls = 0; |
| r3115 | r3116 | |
| 676 | 676 | // popmessage("IRQ4 scancounter = %04i",scancount); |
| 677 | 677 | } |
| 678 | 678 | |
| 679 | if(scancount == 2 | |
| 679 | if(scancount == 240) /* VBlank */ | |
| 680 | 680 | { |
| 681 | 681 | cps1_cps_b_regs[0x10/2] = cps1_scanline1; |
| 682 | 682 | cps1_cps_b_regs[0x12/2] = cps1_scanline2; |
| r3115 | r3116 | |
| 1231 | 1231 | static MACHINE_DRIVER_START( cps2 ) |
| 1232 | 1232 | |
| 1233 | 1233 | /* basic machine hardware */ |
| 1234 | MDRV_CPU_ADD("main", M68000, 16 | |
| 1234 | MDRV_CPU_ADD("main", M68000, XTAL_16MHz | |
| 1235 | 1235 | MDRV_CPU_CONFIG(cps2_encryption) |
| 1236 | 1236 | MDRV_CPU_PROGRAM_MAP(cps2_readmem,cps2_writemem) |
| 1237 | MDRV_CPU_VBLANK_INT_HACK(cps2_interrupt,2 | |
| 1237 | MDRV_CPU_VBLANK_INT_HACK(cps2_interrupt,259) // 262 /* ??? interrupts per frame */ | |
| 1238 | 1238 | |
| 1239 | 1239 | MDRV_CPU_ADD("audio", Z80, 8000000) |
| 1240 | 1240 | MDRV_CPU_PROGRAM_MAP(qsound_sub_map,0) |
| 1241 | 1241 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 251) /* 251 is good (see 'mercy mercy mercy'section of sgemf attract mode for accurate sound sync */ |
| 1242 | 1242 | |
| 1243 | // MDRV_INTERLEAVE(262) /* 262 scanlines, for raster effects */ | |
| 1244 | ||
| 1245 | 1243 | MDRV_NVRAM_HANDLER(cps2) |
| 1246 | 1244 | |
| 1247 | 1245 | /* video hardware */ |
| 1248 | 1246 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) |
| 1249 | 1247 | |
| 1250 | 1248 | MDRV_SCREEN_ADD("main", RASTER) |
| 1251 | MDRV_SCREEN_REFRESH_RATE(59.633333) | |
| 1252 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1253 | 1249 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1254 | MDRV_SCREEN_SIZE(64*8, 32*8) | |
| 1255 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) | |
| 1250 | MDRV_SCREEN_RAW_PARAMS(XTAL_8MHz, 518, 64, 448, 259, 16, 240) | |
| 1251 | /* | |
| 1252 | Measured clocks: | |
| 1253 | V = 59.6376Hz | |
| 1254 | H = 15.4445kHz | |
| 1255 | H/V = 258.973 ~ 259 lines | |
| 1256 | 1256 | |
| 1257 | Possible video clocks: | |
| 1258 | 60MHz / 15.4445kHz = 3884.878 / 8 = 485.610 -> unlikely | |
| 1259 | 8MHz / 15.4445kHz = 517.983 ~ 518 -> likely | |
| 1260 | 16MHz -> same as 8 but with a /2 divider; also a possibility | |
| 1261 | */ | |
| 1257 | 1262 | MDRV_GFXDECODE(cps2) |
| 1258 | 1263 | MDRV_PALETTE_LENGTH(0xc00) |
| 1259 | 1264 |
| r3115 | r3116 | |
|---|---|---|
| 148 | 148 | AM_RANGE(0x000000, 0x01ffff) AM_READ(SMH_ROM) |
| 149 | 149 | AM_RANGE(0x060000, 0x060007) AM_READ(pushman_68705_r) |
| 150 | 150 | AM_RANGE(0xfe0800, 0xfe17ff) AM_READ(SMH_RAM) |
| 151 | AM_RANGE(0xfe4000, 0xfe4001) AM_READ(input_port_0_word_r) | |
| 152 | AM_RANGE(0xfe4002, 0xfe4003) AM_READ(input_port_1_word_r) | |
| 153 | AM_RANGE(0xfe4004, 0xfe4005) AM_READ(input_port_2_word_r) | |
| 151 | AM_RANGE(0xfe4000, 0xfe4001) AM_READ_PORT("INPUTS") | |
| 152 | AM_RANGE(0xfe4002, 0xfe4003) AM_READ_PORT("SYSTEM") | |
| 153 | AM_RANGE(0xfe4004, 0xfe4005) AM_READ_PORT("DSW") | |
| 154 | 154 | AM_RANGE(0xfec000, 0xfec7ff) AM_READ(SMH_RAM) |
| 155 | 155 | AM_RANGE(0xff8000, 0xff87ff) AM_READ(SMH_RAM) |
| 156 | 156 | AM_RANGE(0xffc000, 0xffffff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 205 | 205 | AM_RANGE(0x00000, 0x1ffff) AM_READ(SMH_ROM) |
| 206 | 206 | AM_RANGE(0x60000, 0x60007) AM_READ(bballs_68705_r) |
| 207 | 207 | AM_RANGE(0xe0800, 0xe17ff) AM_READ(SMH_RAM) |
| 208 | AM_RANGE(0xe4000, 0xe4001) AM_READ(input_port_0_word_r) | |
| 209 | AM_RANGE(0xe4002, 0xe4003) AM_READ(input_port_1_word_r) | |
| 210 | AM_RANGE(0xe4004, 0xe4005) AM_READ(input_port_2_word_r) | |
| 208 | AM_RANGE(0xe4000, 0xe4001) AM_READ_PORT("INPUTS") | |
| 209 | AM_RANGE(0xe4002, 0xe4003) AM_READ_PORT("SYSTEM") | |
| 210 | AM_RANGE(0xe4004, 0xe4005) AM_READ_PORT("DSW") | |
| 211 | 211 | AM_RANGE(0xec000, 0xec7ff) AM_READ(SMH_RAM) |
| 212 | 212 | AM_RANGE(0xf8000, 0xf87ff) AM_READ(SMH_RAM) |
| 213 | 213 | AM_RANGE(0xfc000, 0xfffff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 230 | 230 | /******************************************************************************/ |
| 231 | 231 | |
| 232 | 232 | static INPUT_PORTS_START( pushman ) |
| 233 | PORT_START("IN | |
| 233 | PORT_START("INPUTS") | |
| 234 | 234 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 235 | 235 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 236 | 236 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 248 | 248 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 249 | 249 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 250 | 250 | |
| 251 | PORT_START(" | |
| 251 | PORT_START("SYSTEM") | |
| 252 | 252 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 253 | 253 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| 254 | 254 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) |
| r3115 | r3116 | |
| 259 | 259 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 260 | 260 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 261 | 261 | |
| 262 | PORT_START(" | |
| 262 | PORT_START("DSW") | |
| 263 | 263 | PORT_DIPNAME( 0x0001, 0x0001, "Debug Mode (Cheat)") /* Listed as "Screen Skip" */ |
| 264 | 264 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 265 | 265 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 309 | 309 | INPUT_PORTS_END |
| 310 | 310 | |
| 311 | 311 | static INPUT_PORTS_START( bballs ) |
| 312 | PORT_START("IN | |
| 312 | PORT_START("INPUTS") | |
| 313 | 313 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 314 | 314 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 315 | 315 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 327 | 327 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 328 | 328 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // BUTTON3 in "test mode" |
| 329 | 329 | |
| 330 | PORT_START(" | |
| 330 | PORT_START("SYSTEM") | |
| 331 | 331 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 332 | 332 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) |
| 333 | 333 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) |
| r3115 | r3116 | |
| 338 | 338 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 339 | 339 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 340 | 340 | |
| 341 | PORT_START(" | |
| 341 | PORT_START("DSW") | |
| 342 | 342 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) |
| 343 | 343 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 344 | 344 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 7 | 7 | |
| 8 | 8 | Games supported: |
| 9 | 9 | * Konek-Gorbunok |
| 10 | * S.O.S. | |
| 10 | 11 | |
| 11 | 12 | Other games known to exist on this hardware (interchangeable by the ROM swap): |
| 12 | 13 | * Avtogonki |
| r3115 | r3116 | |
| 203 | 204 | |
| 204 | 205 | static ADDRESS_MAP_START( tiamc1_readport, ADDRESS_SPACE_IO, 8 ) |
| 205 | 206 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 206 | AM_RANGE(0xd0, 0xd0) AM_READ(input_port_0_r) | |
| 207 | AM_RANGE(0xd1, 0xd1) AM_READ(input_port_1_r) | |
| 208 | AM_RANGE(0xd2, 0xd2) AM_READ(input_port_2_r) | |
| 207 | AM_RANGE(0xd0, 0xd0) AM_READ_PORT("IN0") | |
| 208 | AM_RANGE(0xd1, 0xd1) AM_READ_PORT("IN1") | |
| 209 | AM_RANGE(0xd2, 0xd2) AM_READ_PORT("IN2") | |
| 209 | 210 | ADDRESS_MAP_END |
| 210 | 211 | |
| 211 | 212 | static INPUT_PORTS_START( tiamc1 ) |
| 212 | 213 | PORT_START("IN0") |
| 213 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 214 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 0 JOYSTICK_RIGHT */ | |
| 214 | 215 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 215 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 2 JOYSTICK_RIGHT */ | |
| 216 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 3 JOYSTICK_RIGHT */ | |
| 217 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 0 JOYSTICK_LEFT */ | |
| 216 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 2 JOYSTICK_RIGHT */ | |
| 217 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 3 JOYSTICK_RIGHT */ | |
| 218 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 0 JOYSTICK_LEFT */ | |
| 218 | 219 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 219 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 2 JOYSTICK_LEFT */ | |
| 220 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 3 JOYSTICK_LEFT */ | |
| 220 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 2 JOYSTICK_LEFT */ | |
| 221 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 3 JOYSTICK_LEFT */ | |
| 221 | 222 | |
| 222 | 223 | PORT_START("IN1") |
| 223 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 224 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 0 JOYSTICK_UP */ | |
| 224 | 225 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 225 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 2 JOYSTICK_UP */ | |
| 226 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 3 JOYSTICK_UP */ | |
| 227 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 0 JOYSTICK_DOWN */ | |
| 226 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 2 JOYSTICK_UP */ | |
| 227 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 3 JOYSTICK_UP */ | |
| 228 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 0 JOYSTICK_DOWN */ | |
| 228 | 229 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 229 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 230 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Player 2 JOYSTICK_DOWN */ | |
| 230 | 231 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE ) |
| 231 | 232 | |
| 232 | 233 | PORT_START("IN2") |
| 233 | 234 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 234 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 235 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* OUT:game counter */ | |
| 236 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* RAZR ??? */ | |
| 235 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* OUT:coin lockout */ | |
| 236 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* OUT:game counter */ | |
| 237 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* RAZR ??? */ | |
| 237 | 238 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 238 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Player 1 Kick") | |
| 239 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Player 1 Jump") | |
| 239 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) // Kick | |
| 240 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) // Jump | |
| 240 | 241 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 241 | 242 | INPUT_PORTS_END |
| 242 | 243 |
| r3115 | r3116 | |
|---|---|---|
| 1 | /* | |
| 2 | Magic's 10 (c) 1995 AWP Games | |
| 1 | /**************************************************************************** | |
| 2 | ||
| 3 | MAGIC'S 10 | |
| 4 | ---------- | |
| 5 | ||
| 6 | Driver by Pierpaolo Prazzoli. | |
| 7 | Additional work by Roberto Fresca. | |
| 8 | ||
| 9 | ||
| 10 | Supported games: | |
| 11 | ||
| 12 | Magic's 10 (ver. 16.15) (c) 1995 AWP Games | |
| 13 | Magic's 10 (ver. 16.45) (c) 1995 AWP Games | |
| 14 | Magic's 10 (ver. 16.55) (c) 1995 AWP Games | |
| 3 | 15 | Magic's 10 2 (c) 1997 ABM Games |
| 4 | Super Pool (9743 Rev.01) (c) 1997 ABM Games | |
| 5 | Hot Slot (ver 05.01) (c) 1996 ABM Electronics | |
| 6 | Magic Colors (ver 1.7a) 1999 Unknown | |
| 16 | Super Pool (9743 rev.01) (c) 1997 ABM Games | |
| 17 | Hot Slot (ver. 05.01) (c) 1996 ABM Electronics | |
| 18 | Magic Colors (ver. 1.7a) 1999 Unknown | |
| 7 | 19 | |
| 8 | Driver by Pierpaolo Prazzoli | |
| 9 | Aditional work by Roberto Fresca | |
| 10 | 20 | |
| 21 | ***************************************************************************** | |
| 22 | ||
| 23 | ||
| 24 | Magic's 10 instruction for the 1st boot: | |
| 25 | ||
| 26 | - Switch "Disable Free Play" to ON | |
| 27 | - Enter a coin | |
| 28 | - Press Collect to get the 1st game over | |
| 29 | ||
| 30 | ||
| 11 | 31 | TODO: |
| 32 | ||
| 12 | 33 | - ticket / coin dispenser |
| 13 | 34 | - some unknown writes |
| 14 | 35 | - finish magic10_2 (association coin - credits handling its inputs |
| 15 | 36 | and some reads that drive the note displayed?) |
| 16 | 37 | - protection (suprpool, hotslot, mcolors) |
| 17 | 38 | |
| 18 | Magic's 10 instruction for the 1st boot: | |
| 19 | - Switch "Disable Free Play" to ON | |
| 20 | - Enter a coin | |
| 21 | - Press Collect to get the 1st game over | |
| 22 | 39 | |
| 23 | */ | |
| 40 | ****************************************************************************/ | |
| 24 | 41 | |
| 42 | ||
| 25 | 43 | #include "driver.h" |
| 26 | 44 | #include "sound/okim6295.h" |
| 27 | 45 | |
| r3115 | r3116 | |
| 174 | 192 | |
| 175 | 193 | static INPUT_PORTS_START( magic10 ) |
| 176 | 194 | PORT_START("INPUTS") |
| 177 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 178 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 179 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 180 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 181 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) | |
| 195 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) | |
| 196 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) | |
| 197 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) | |
| 198 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) | |
| 199 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) | |
| 182 | 200 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_START1 ) |
| 183 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Play") PORT_CODE(KEYCODE_X) | |
| 184 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 201 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Play") PORT_CODE(KEYCODE_A) | |
| 202 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Lots FC") PORT_CODE(KEYCODE_S) | |
| 185 | 203 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 186 | 204 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_NAME("Note A") |
| 187 | 205 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_NAME("Note B") |
| 188 | 206 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_NAME("Note C") |
| 189 | 207 | PORT_SERVICE_NO_TOGGLE( 0x1000, IP_ACTIVE_LOW ) |
| 190 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Out Hole") PORT_CODE(KEYCODE_V) | |
| 191 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN5 ) PORT_NAME("Note D") | |
| 192 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Collect") PORT_CODE(KEYCODE_C) | |
| 208 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Out Hole") PORT_CODE(KEYCODE_D) | |
| 209 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN5 ) PORT_NAME("Note D") PORT_CODE(KEYCODE_9) | |
| 210 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Collect") PORT_CODE(KEYCODE_M) | |
| 193 | 211 | |
| 194 | 212 | PORT_START("DSW") |
| 195 | 213 | PORT_DIPNAME( 0x0001, 0x0001, "Display Logo" ) |
| r3115 | r3116 | |
| 250 | 268 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 251 | 269 | |
| 252 | 270 | PORT_START("IN1") |
| 253 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 254 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 255 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 256 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 257 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) | |
| 271 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) | |
| 272 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) | |
| 273 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) | |
| 274 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) | |
| 275 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) | |
| 258 | 276 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_START1 ) |
| 259 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Bet") PORT_CODE(KEYCODE_X) | |
| 260 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Collect") PORT_CODE(KEYCODE_C) | |
| 277 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Bet") PORT_CODE(KEYCODE_2) | |
| 278 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Collect") PORT_CODE(KEYCODE_M) | |
| 261 | 279 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 262 | 280 | |
| 263 | 281 | /* |
| r3115 | r3116 | |
| 545 | 563 | |
| 546 | 564 | /* |
| 547 | 565 | |
| 566 | Magic's 10 (ver. 16.15) | |
| 567 | ||
| 568 | 1995, A.W.P. Games | |
| 569 | Version: 16.15 | |
| 570 | ||
| 571 | CPU: | |
| 572 | 1x TS68000P12 (main)(u1) | |
| 573 | 2x TPC1020AFN-084C (PLD)(not dumped)(u41,u60) | |
| 574 | ||
| 575 | Sound: | |
| 576 | 1x OKI M6295 (u21) | |
| 577 | 1x TDA2003 (u24) | |
| 578 | 1x LM358N | |
| 579 | ||
| 580 | 1x oscillator 20.000000MHz (close to main)(osc1) | |
| 581 | 1x oscillator 30.000MHz (close to sound)(osc2) | |
| 582 | 1x orange resonator 1000J (close to sound)(xtal1) | |
| 583 | ||
| 584 | ROMs: | |
| 585 | 1x M27C2001 (1) | |
| 586 | 6x M27C1001 (2,3,5,6,7) | |
| 587 | 1x TMS27C010A (4) | |
| 588 | 1x PALCE16V8H (read protected) | |
| 589 | ||
| 590 | Note: | |
| 591 | 1x 28x2 edge connector | |
| 592 | 1x trimmer (volume) | |
| 593 | 1x 8x2 switches dip | |
| 594 | 1x battery | |
| 595 | ||
| 596 | */ | |
| 597 | ||
| 598 | ROM_START( magic10b ) | |
| 599 | ROM_REGION( 0x40000, "cpu", 0 ) /* 68000 Code */ | |
| 600 | ROM_LOAD16_BYTE( "2.u3", 0x000000, 0x20000, CRC(32c12ad6) SHA1(93340df2c0f4c260837bd6649008e26a17a22015) ) | |
| 601 | ROM_LOAD16_BYTE( "3.u2", 0x000001, 0x20000, CRC(a9945aaa) SHA1(97d4f6441b96618f2e3ce14095ffc5628cb14f0e) ) | |
| 602 | ||
| 603 | ROM_REGION( 0x80000, "gfx1", ROMREGION_DISPOSE ) /* Tiles */ | |
| 604 | ROM_LOAD( "6.u25", 0x00000, 0x20000, CRC(7abb8136) SHA1(1d4daf6a4477853d89d08afb524516ef79f60dd6) ) | |
| 605 | ROM_LOAD( "4.u26", 0x20000, 0x20000, CRC(fd0b912d) SHA1(1cd15fa3459e7fece9fc37595f2b6848c00ffa43) ) | |
| 606 | ROM_LOAD( "5.u27", 0x40000, 0x20000, CRC(8178c907) SHA1(8c3440769ed4e113d84d1f8f9079783497791859) ) | |
| 607 | ROM_LOAD( "7.u28", 0x60000, 0x20000, CRC(dfd41aab) SHA1(82248c7fa4febb1c453f35a0e4cfae062c5da2d5) ) | |
| 608 | ||
| 609 | ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ | |
| 610 | ROM_LOAD( "1.u22", 0x00000, 0x40000, CRC(98885246) SHA1(752d549e6248074f2a7f6c5cc4d0bbc44c7fa4c3) ) | |
| 611 | ROM_END | |
| 612 | ||
| 613 | /* | |
| 614 | ||
| 548 | 615 | pcb is marked: Copyright ABM - 9605 Rev.02 |
| 549 | 616 | |
| 550 | 617 | 1x 68000 |
| r3115 | r3116 | |
| 787 | 854 | |
| 788 | 855 | GAME( 1995, magic10, 0, magic10, magic10, magic10, ROT0, "A.W.P. Games", "Magic's 10 (ver. 16.55)", 0 ) |
| 789 | 856 | GAME( 1995, magic10a, magic10, magic10a, magic10, magic10, ROT0, "A.W.P. Games", "Magic's 10 (ver. 16.45)", 0 ) |
| 857 | GAME( 1995, magic10b, magic10, magic10a, magic10, magic10, ROT0, "A.W.P. Games", "Magic's 10 (ver. 16.15)", 0 ) | |
| 790 | 858 | GAME( 1997, magic102, 0, magic102, magic102, magic102, ROT0, "ABM Games", "Magic's 10 2 (ver 1.1)", GAME_NOT_WORKING ) |
| 791 | GAME( 1997, suprpool, 0, magic102, magic102, suprpool, ROT0, "ABM Games", "Super Pool (9743 Rev.01)", GAME_NOT_WORKING ) | |
| 792 | GAME( 1996, hotslot, 0, hotslot, hotslot, hotslot, ROT0, "ABM Electronics", "Hot Slot (ver 05.01)", GAME_NOT_WORKING ) | |
| 793 | GAME( 1999, mcolors, 0, magic102, magic102, magic102, ROT0, "unknown", "Magic Colors (ver 1.7a)", GAME_NOT_WORKING ) | |
| 859 | GAME( 1997, suprpool, 0, magic102, magic102, suprpool, ROT0, "ABM Games", "Super Pool (9743 rev.01)", GAME_NOT_WORKING ) | |
| 860 | GAME( 1996, hotslot, 0, hotslot, hotslot, hotslot, ROT0, "ABM Electronics", "Hot Slot (ver. 05.01)", GAME_NOT_WORKING ) | |
| 861 | GAME( 1999, mcolors, 0, magic102, magic102, magic102, ROT0, "unknown", "Magic Colors (ver. 1.7a)", GAME_NOT_WORKING ) |
| r3115 | r3116 | |
|---|---|---|
| 501 | 501 | return res ^ toggle; |
| 502 | 502 | } |
| 503 | 503 | |
| 504 | static READ16_HANDLER( blswhstl_eeprom_r ) | |
| 505 | { | |
| 506 | int res; | |
| 507 | ||
| 508 | /* bit 0 is EEPROM data */ | |
| 509 | /* bit 1 is EEPROM ready */ | |
| 510 | res = eeprom_read_bit() | input_port_read(machine, "EEPROM"); | |
| 511 | return res; | |
| 512 | } | |
| 513 | ||
| 514 | 504 | static READ16_HANDLER( ssriders_eeprom_r ) |
| 515 | 505 | { |
| 516 | 506 | int res; |
| r3115 | r3116 | |
| 520 | 510 | /* bit 1 is EEPROM ready */ |
| 521 | 511 | /* bit 2 is VBLANK (???) */ |
| 522 | 512 | /* bit 7 is service button */ |
| 523 | res = | |
| 513 | res = | |
| 524 | 514 | if (init_eeprom_count) |
| 525 | 515 | { |
| 526 | 516 | init_eeprom_count--; |
| r3115 | r3116 | |
| 539 | 529 | /* bit 1 is EEPROM ready */ |
| 540 | 530 | /* bit 2 is VBLANK (???) */ |
| 541 | 531 | /* bit 3 is service button */ |
| 542 | res = | |
| 532 | res = | |
| 543 | 533 | if (init_eeprom_count) |
| 544 | 534 | { |
| 545 | 535 | init_eeprom_count--; |
| r3115 | r3116 | |
| 616 | 606 | /* bit 1 is EEPROM ready */ |
| 617 | 607 | /* bit 3 is VBLANK (???) */ |
| 618 | 608 | /* bit 7 is service button */ |
| 619 | res = | |
| 609 | res = | |
| 620 | 610 | toggle ^= 0x0800; |
| 621 | 611 | return (res ^ toggle); |
| 622 | 612 | } |
| r3115 | r3116 | |
| 659 | 649 | return res; |
| 660 | 650 | } |
| 661 | 651 | |
| 662 | static READ16_HANDLER( prmrsocr_eeprom_r ) | |
| 663 | { | |
| 664 | /* bit 8 is EEPROM data */ | |
| 665 | /* bit 9 is EEPROM ready */ | |
| 666 | return (eeprom_read_bit() << 8) | input_port_read(machine, "P2/EEPROM"); | |
| 667 | } | |
| 668 | ||
| 669 | 652 | static WRITE16_HANDLER( prmrsocr_eeprom_w ) |
| 670 | 653 | { |
| 671 | 654 | if (ACCESSING_BITS_0_7) |
| r3115 | r3116 | |
| 838 | 821 | AM_RANGE(0x700000, 0x700001) AM_READ_PORT("P1") |
| 839 | 822 | AM_RANGE(0x700002, 0x700003) AM_READ_PORT("P2") |
| 840 | 823 | AM_RANGE(0x700004, 0x700005) AM_READ(blswhstl_coin_r) |
| 841 | AM_RANGE(0x700006, 0x700007) AM_READ | |
| 824 | AM_RANGE(0x700006, 0x700007) AM_READ | |
| 842 | 825 | AM_RANGE(0x700200, 0x700201) AM_WRITE(blswhstl_eeprom_w) |
| 843 | 826 | AM_RANGE(0x700300, 0x700301) AM_WRITE(blswhstl_700300_w) |
| 844 | 827 | AM_RANGE(0x700400, 0x700401) AM_WRITE(watchdog_reset16_w) |
| r3115 | r3116 | |
| 883 | 866 | AM_RANGE(0x118000, 0x11801f) AM_WRITE(SMH_RAM) AM_BASE(&K053936_0_ctrl) |
| 884 | 867 | AM_RANGE(0x11c000, 0x11c01f) AM_WRITE(K053251_msb_w) |
| 885 | 868 | AM_RANGE(0x120000, 0x120001) AM_READ(prmrsocr_IN0_r) |
| 886 | AM_RANGE(0x120002, 0x120003) AM_READ | |
| 869 | AM_RANGE(0x120002, 0x120003) AM_READ | |
| 887 | 870 | AM_RANGE(0x12100c, 0x12100f) AM_WRITE(prmrsocr_sound_cmd_w) |
| 888 | 871 | AM_RANGE(0x121014, 0x121015) AM_READ(prmrsocr_sound_r) |
| 889 | 872 | AM_RANGE(0x122000, 0x122001) AM_WRITE(prmrsocr_eeprom_w) /* EEPROM + video control */ |
| r3115 | r3116 | |
| 1337 | 1320 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, start ) |
| 1338 | 1321 | |
| 1339 | 1322 | static INPUT_PORTS_START( cuebrick ) |
| 1340 | PORT_START("COINS") | |
| 1323 | PORT_START("COINS") | |
| 1341 | 1324 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1342 | 1325 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1343 | 1326 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1347 | 1330 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1348 | 1331 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1349 | 1332 | |
| 1350 | PORT_START("P1") | |
| 1333 | PORT_START("P1") | |
| 1351 | 1334 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_BUTTON3, IPT_UNUSED ) |
| 1352 | 1335 | |
| 1353 | PORT_START("P2") | |
| 1336 | PORT_START("P2") | |
| 1354 | 1337 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_BUTTON3, IPT_UNUSED ) |
| 1355 | 1338 | |
| 1356 | PORT_START("DSW1") | |
| 1339 | PORT_START("DSW1") | |
| 1357 | 1340 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 1358 | 1341 | PORT_DIPSETTING( 0x03, "2" ) |
| 1359 | 1342 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 1374 | 1357 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1375 | 1358 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1376 | 1359 | |
| 1377 | PORT_START("DSW2") | |
| 1360 | PORT_START("DSW2") | |
| 1378 | 1361 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 1379 | 1362 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 1380 | 1363 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1410 | 1393 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 1411 | 1394 | // PORT_DIPSETTING( 0x00, "Invalid" ) |
| 1412 | 1395 | |
| 1413 | PORT_START("DSW3") | |
| 1396 | PORT_START("DSW3") | |
| 1414 | 1397 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1415 | 1398 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1416 | 1399 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1422 | 1405 | INPUT_PORTS_END |
| 1423 | 1406 | |
| 1424 | 1407 | static INPUT_PORTS_START( mia ) |
| 1425 | PORT_START("COINS") | |
| 1408 | PORT_START("COINS") | |
| 1426 | 1409 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1427 | 1410 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1428 | 1411 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1432 | 1415 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1433 | 1416 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1434 | 1417 | |
| 1435 | PORT_START("P1") | |
| 1418 | PORT_START("P1") | |
| 1436 | 1419 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_BUTTON3, IPT_UNUSED ) |
| 1437 | 1420 | |
| 1438 | PORT_START("P2") | |
| 1421 | PORT_START("P2") | |
| 1439 | 1422 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_BUTTON3, IPT_UNUSED ) |
| 1440 | 1423 | |
| 1441 | PORT_START("DSW1") | |
| 1424 | PORT_START("DSW1") | |
| 1442 | 1425 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 1443 | 1426 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 1444 | 1427 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1474 | 1457 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 1475 | 1458 | // PORT_DIPSETTING( 0x00, "Invalid" ) |
| 1476 | 1459 | |
| 1477 | PORT_START("DSW2") | |
| 1460 | PORT_START("DSW2") | |
| 1478 | 1461 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 1479 | 1462 | PORT_DIPSETTING( 0x03, "2" ) |
| 1480 | 1463 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 1495 | 1478 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1496 | 1479 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1497 | 1480 | |
| 1498 | PORT_START("DSW3") | |
| 1481 | PORT_START("DSW3") | |
| 1499 | 1482 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1500 | 1483 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1501 | 1484 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1507 | 1490 | INPUT_PORTS_END |
| 1508 | 1491 | |
| 1509 | 1492 | static INPUT_PORTS_START( tmnt ) |
| 1510 | PORT_START("COINS") | |
| 1493 | PORT_START("COINS") | |
| 1511 | 1494 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1512 | 1495 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1513 | 1496 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 1517 | 1500 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE3 ) |
| 1518 | 1501 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4 ) |
| 1519 | 1502 | |
| 1520 | PORT_START("P1") | |
| 1503 | PORT_START("P1") | |
| 1521 | 1504 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1522 | 1505 | |
| 1523 | PORT_START("P2") | |
| 1506 | PORT_START("P2") | |
| 1524 | 1507 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1525 | 1508 | |
| 1526 | PORT_START("P3") | |
| 1509 | PORT_START("P3") | |
| 1527 | 1510 | KONAMI_PLAYERS_INPUT_LSB( 3, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1528 | 1511 | |
| 1529 | PORT_START("DSW1") | |
| 1512 | PORT_START("DSW1") | |
| 1530 | 1513 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 1531 | 1514 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 1532 | 1515 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 1545 | 1528 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) |
| 1546 | 1529 | PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) ) |
| 1547 | 1530 | |
| 1548 | PORT_START("DSW2") | |
| 1531 | PORT_START("DSW2") | |
| 1549 | 1532 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 1550 | 1533 | PORT_DIPSETTING( 0x03, "1" ) |
| 1551 | 1534 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 1569 | 1552 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1570 | 1553 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1571 | 1554 | |
| 1572 | PORT_START("P4") | |
| 1555 | PORT_START("P4") | |
| 1573 | 1556 | KONAMI_PLAYERS_INPUT_LSB( 4, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1574 | 1557 | |
| 1575 | PORT_START("DSW3") | |
| 1558 | PORT_START("DSW3") | |
| 1576 | 1559 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1577 | 1560 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1578 | 1561 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1587 | 1570 | INPUT_PORTS_END |
| 1588 | 1571 | |
| 1589 | 1572 | static INPUT_PORTS_START( tmnt2p ) |
| 1590 | PORT_START("COINS") | |
| 1573 | PORT_START("COINS") | |
| 1591 | 1574 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1592 | 1575 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1593 | 1576 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1597 | 1580 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1598 | 1581 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1599 | 1582 | |
| 1600 | PORT_START("P1") | |
| 1583 | PORT_START("P1") | |
| 1601 | 1584 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 ) |
| 1602 | 1585 | |
| 1603 | PORT_START("P2") | |
| 1586 | PORT_START("P2") | |
| 1604 | 1587 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_UNKNOWN, IPT_START2 ) |
| 1605 | 1588 | |
| 1606 | PORT_START("P3") | |
| 1589 | PORT_START("P3") | |
| 1607 | 1590 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1608 | 1591 | |
| 1609 | PORT_START("DSW1") | |
| 1592 | PORT_START("DSW1") | |
| 1610 | 1593 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 1611 | 1594 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 1612 | 1595 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1642 | 1625 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 1643 | 1626 | // PORT_DIPSETTING( 0x00, "Invalid" ) |
| 1644 | 1627 | |
| 1645 | PORT_START("DSW2") | |
| 1628 | PORT_START("DSW2") | |
| 1646 | 1629 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 1647 | 1630 | PORT_DIPSETTING( 0x03, "1" ) |
| 1648 | 1631 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 1666 | 1649 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1667 | 1650 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1668 | 1651 | |
| 1669 | PORT_START("P4") | |
| 1652 | PORT_START("P4") | |
| 1670 | 1653 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1671 | 1654 | |
| 1672 | PORT_START("DSW3") | |
| 1655 | PORT_START("DSW3") | |
| 1673 | 1656 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1674 | 1657 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1675 | 1658 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1684 | 1667 | INPUT_PORTS_END |
| 1685 | 1668 | |
| 1686 | 1669 | static INPUT_PORTS_START( punkshot ) |
| 1687 | PORT_START("DSW1/DSW2") | |
| 1670 | PORT_START("DSW1/DSW2") | |
| 1688 | 1671 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coinage ) ) |
| 1689 | 1672 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 1690 | 1673 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 1736 | 1719 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1737 | 1720 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1738 | 1721 | |
| 1739 | PORT_START("COINS/DSW3") | |
| 1722 | PORT_START("COINS/DSW3") | |
| 1740 | 1723 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1741 | 1724 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1742 | 1725 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 1760 | 1743 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1761 | 1744 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1762 | 1745 | |
| 1763 | PORT_START("P1/P2") | |
| 1746 | PORT_START("P1/P2") | |
| 1764 | 1747 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1765 | 1748 | KONAMI_PLAYERS_INPUT_MSB( 2, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1766 | 1749 | |
| 1767 | PORT_START("P3/P4") | |
| 1750 | PORT_START("P3/P4") | |
| 1768 | 1751 | KONAMI_PLAYERS_INPUT_LSB( 3, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1769 | 1752 | KONAMI_PLAYERS_INPUT_MSB( 4, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1770 | 1753 | INPUT_PORTS_END |
| 1771 | 1754 | |
| 1772 | 1755 | static INPUT_PORTS_START( punksht2 ) |
| 1773 | PORT_START("DSW1/DSW2") | |
| 1756 | PORT_START("DSW1/DSW2") | |
| 1774 | 1757 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coinage ) ) |
| 1775 | 1758 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 1776 | 1759 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 1822 | 1805 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1823 | 1806 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1824 | 1807 | |
| 1825 | PORT_START("COINS/DSW3") | |
| 1808 | PORT_START("COINS/DSW3") | |
| 1826 | 1809 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1827 | 1810 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1828 | 1811 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1846 | 1829 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1847 | 1830 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1848 | 1831 | |
| 1849 | PORT_START("P1/P2") | |
| 1832 | PORT_START("P1/P2") | |
| 1850 | 1833 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1851 | 1834 | KONAMI_PLAYERS_INPUT_MSB( 2, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1852 | 1835 | |
| 1853 | PORT_START("P3/P4") | |
| 1836 | PORT_START("P3/P4") | |
| 1854 | 1837 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1855 | 1838 | INPUT_PORTS_END |
| 1856 | 1839 | |
| r3115 | r3116 | |
| 1871 | 1854 | PORT_START("P2") |
| 1872 | 1855 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_BUTTON3, IPT_UNKNOWN ) |
| 1873 | 1856 | |
| 1874 | PORT_START("DSW1") | |
| 1857 | PORT_START("DSW1") | |
| 1875 | 1858 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 1876 | 1859 | PORT_DIPSETTING( 0x03, "2" ) |
| 1877 | 1860 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 1894 | 1877 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1895 | 1878 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1896 | 1879 | |
| 1897 | PORT_START("DSW2") | |
| 1880 | PORT_START("DSW2") | |
| 1898 | 1881 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 1899 | 1882 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 1900 | 1883 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1930 | 1913 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 1931 | 1914 | // PORT_DIPSETTING( 0x00, "Invalid" ) |
| 1932 | 1915 | |
| 1933 | PORT_START("DSW3") | |
| 1916 | PORT_START("DSW3") | |
| 1934 | 1917 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1935 | 1918 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1936 | 1919 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1945 | 1928 | INPUT_PORTS_END |
| 1946 | 1929 | |
| 1947 | 1930 | static INPUT_PORTS_START( blswhstl ) |
| 1948 | PORT_START("P1") | |
| 1931 | PORT_START("P1") | |
| 1949 | 1932 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1950 | 1933 | |
| 1951 | PORT_START("P2") | |
| 1934 | PORT_START("P2") | |
| 1952 | 1935 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 1953 | 1936 | |
| 1954 | PORT_START("COINS") | |
| 1937 | PORT_START("COINS") | |
| 1955 | 1938 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1956 | 1939 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1957 | 1940 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1961 | 1944 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* VBLANK? OBJMPX? */ |
| 1962 | 1945 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1963 | 1946 | |
| 1964 | PORT_START("EEPROM") /* EEPROM */ | |
| 1965 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 1947 | PORT_START("EEPROM") | |
| 1948 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 1966 | 1949 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM status? - always 1 */ |
| 1967 | 1950 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1968 | 1951 | INPUT_PORTS_END |
| 1969 | 1952 | |
| 1970 | 1953 | static INPUT_PORTS_START( glfgreat ) |
| 1971 | PORT_START("P1/P2") | |
| 1954 | PORT_START("P1/P2") | |
| 1972 | 1955 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_BUTTON3, IPT_BUTTON4 ) PORT_PLAYER(1) |
| 1973 | 1956 | KONAMI_PLAYERS_INPUT_MSB( 2, IPT_BUTTON3, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 1974 | 1957 | |
| 1975 | PORT_START("P3/P4") | |
| 1958 | PORT_START("P3/P4") | |
| 1976 | 1959 | KONAMI_PLAYERS_INPUT_LSB( 3, IPT_BUTTON3, IPT_BUTTON4 ) PORT_PLAYER(3) |
| 1977 | 1960 | KONAMI_PLAYERS_INPUT_MSB( 4, IPT_BUTTON3, IPT_BUTTON4 ) PORT_PLAYER(4) |
| 1978 | 1961 | |
| r3115 | r3116 | |
| 2062 | 2045 | INPUT_PORTS_END |
| 2063 | 2046 | |
| 2064 | 2047 | static INPUT_PORTS_START( ssriders ) |
| 2065 | PORT_START("P1") | |
| 2048 | PORT_START("P1") | |
| 2066 | 2049 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 ) |
| 2067 | 2050 | |
| 2068 | PORT_START("P2") | |
| 2051 | PORT_START("P2") | |
| 2069 | 2052 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_UNKNOWN, IPT_START2 ) |
| 2070 | 2053 | |
| 2071 | PORT_START("COINS") | |
| 2054 | PORT_START("COINS") | |
| 2072 | 2055 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2073 | 2056 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2074 | 2057 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 2078 | 2061 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2079 | 2062 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2080 | 2063 | |
| 2081 | PORT_START("EEPROM") /* EEPROM and service */ | |
| 2082 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 2064 | PORT_START("EEPROM") | |
| 2065 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 2083 | 2066 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM status? - always 1 */ |
| 2084 | 2067 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* ?? TMNT2: OBJMPX */ |
| 2085 | 2068 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) /* ?? TMNT2: NVBLK */ |
| r3115 | r3116 | |
| 2087 | 2070 | PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */ |
| 2088 | 2071 | PORT_SERVICE_NO_TOGGLE( 0x80, IP_ACTIVE_LOW ) |
| 2089 | 2072 | |
| 2090 | PORT_START("P3") | |
| 2073 | PORT_START("P3") | |
| 2091 | 2074 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2092 | 2075 | |
| 2093 | PORT_START("P4") | |
| 2076 | PORT_START("P4") | |
| 2094 | 2077 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2095 | 2078 | INPUT_PORTS_END |
| 2096 | 2079 | |
| 2097 | 2080 | static INPUT_PORTS_START( ssridr4p ) |
| 2098 | PORT_START("P1") | |
| 2081 | PORT_START("P1") | |
| 2099 | 2082 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 2100 | 2083 | |
| 2101 | PORT_START("P2") | |
| 2084 | PORT_START("P2") | |
| 2102 | 2085 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 2103 | 2086 | |
| 2104 | PORT_START("COINS") | |
| 2087 | PORT_START("COINS") | |
| 2105 | 2088 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2106 | 2089 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2107 | 2090 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 2111 | 2094 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE3 ) |
| 2112 | 2095 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4 ) |
| 2113 | 2096 | |
| 2114 | PORT_START("EEPROM") /* EEPROM and service */ | |
| 2115 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 2097 | PORT_START("EEPROM") | |
| 2098 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 2116 | 2099 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM status? - always 1 */ |
| 2117 | 2100 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* ?? TMNT2: OBJMPX */ |
| 2118 | 2101 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) /* ?? TMNT2: NVBLK */ |
| r3115 | r3116 | |
| 2120 | 2103 | PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */ |
| 2121 | 2104 | PORT_SERVICE_NO_TOGGLE( 0x80, IP_ACTIVE_LOW ) |
| 2122 | 2105 | |
| 2123 | PORT_START("P3") | |
| 2106 | PORT_START("P3") | |
| 2124 | 2107 | KONAMI_PLAYERS_INPUT_LSB( 3, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 2125 | 2108 | |
| 2126 | PORT_START("P4") | |
| 2109 | PORT_START("P4") | |
| 2127 | 2110 | KONAMI_PLAYERS_INPUT_LSB( 4, IPT_UNKNOWN, IPT_UNKNOWN ) |
| 2128 | 2111 | INPUT_PORTS_END |
| 2129 | 2112 | |
| 2130 | 2113 | /* Same as 'ssridr4p', but additional Start button for each player. |
| 2131 | 2114 | COIN3, COIN4, SERVICE3 and SERVICE4 only have an effect in the "test mode". */ |
| 2132 | 2115 | static INPUT_PORTS_START( ssrid4ps ) |
| 2133 | PORT_START("P1") | |
| 2116 | PORT_START("P1") | |
| 2134 | 2117 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 ) |
| 2135 | 2118 | |
| 2136 | PORT_START("P2") | |
| 2119 | PORT_START("P2") | |
| 2137 | 2120 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_UNKNOWN, IPT_START2 ) |
| 2138 | 2121 | |
| 2139 | PORT_START("COINS") | |
| 2122 | PORT_START("COINS") | |
| 2140 | 2123 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2141 | 2124 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2142 | 2125 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 2146 | 2129 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE3 ) |
| 2147 | 2130 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4 ) |
| 2148 | 2131 | |
| 2149 | PORT_START("EEPROM") /* EEPROM and service */ | |
| 2150 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 2132 | PORT_START("EEPROM") | |
| 2133 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 2151 | 2134 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM status? - always 1 */ |
| 2152 | 2135 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* ?? TMNT2: OBJMPX */ |
| 2153 | 2136 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) /* ?? TMNT2: NVBLK */ |
| r3115 | r3116 | |
| 2155 | 2138 | PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */ |
| 2156 | 2139 | PORT_SERVICE_NO_TOGGLE( 0x80, IP_ACTIVE_LOW ) |
| 2157 | 2140 | |
| 2158 | PORT_START("P3") | |
| 2141 | PORT_START("P3") | |
| 2159 | 2142 | KONAMI_PLAYERS_INPUT_LSB( 3, IPT_UNKNOWN, IPT_START3 ) |
| 2160 | 2143 | |
| 2161 | PORT_START("P4") | |
| 2144 | PORT_START("P4") | |
| 2162 | 2145 | KONAMI_PLAYERS_INPUT_LSB( 4, IPT_UNKNOWN, IPT_START4 ) |
| 2163 | 2146 | INPUT_PORTS_END |
| 2164 | 2147 | |
| 2165 | 2148 | /* Version for the bootleg, which has the service switch a little different */ |
| 2166 | 2149 | static INPUT_PORTS_START( sunsetbl ) |
| 2167 | PORT_START("P1") | |
| 2150 | PORT_START("P1") | |
| 2168 | 2151 | KONAMI_PLAYERS_INPUT_LSB( 1, IPT_UNKNOWN, IPT_START1 ) |
| 2169 | 2152 | |
| 2170 | PORT_START("P2") | |
| 2153 | PORT_START("P2") | |
| 2171 | 2154 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_UNKNOWN, IPT_START2 ) |
| 2172 | 2155 | |
| 2173 | PORT_START("COINS") | |
| 2156 | PORT_START("COINS") | |
| 2174 | 2157 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2175 | 2158 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2176 | 2159 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 2180 | 2163 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE3 ) |
| 2181 | 2164 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4 ) |
| 2182 | 2165 | |
| 2183 | PORT_START("EEPROM") /* EEPROM and service */ | |
| 2184 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 2166 | PORT_START("EEPROM") | |
| 2167 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 2185 | 2168 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM status? - always 1 */ |
| 2186 | 2169 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2187 | 2170 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) |
| r3115 | r3116 | |
| 2189 | 2172 | PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */ |
| 2190 | 2173 | PORT_SERVICE_NO_TOGGLE( 0x80, IP_ACTIVE_LOW ) |
| 2191 | 2174 | |
| 2192 | PORT_START("P3") | |
| 2175 | PORT_START("P3") | |
| 2193 | 2176 | KONAMI_PLAYERS_INPUT_LSB( 3, IPT_UNKNOWN, IPT_START3 ) |
| 2194 | 2177 | |
| 2195 | PORT_START("P4") | |
| 2178 | PORT_START("P4") | |
| 2196 | 2179 | KONAMI_PLAYERS_INPUT_LSB( 4, IPT_UNKNOWN, IPT_START4 ) |
| 2197 | 2180 | INPUT_PORTS_END |
| 2198 | 2181 | |
| 2199 | 2182 | static INPUT_PORTS_START( qgakumon ) |
| 2200 | PORT_START("P1") | |
| 2183 | PORT_START("P1") | |
| 2201 | 2184 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // Joystick control : Left |
| 2202 | 2185 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) // Joystick control : Right |
| 2203 | 2186 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) // Joystick control : Up |
| r3115 | r3116 | |
| 2207 | 2190 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2208 | 2191 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 2209 | 2192 | |
| 2210 | PORT_START("P2") | |
| 2193 | PORT_START("P2") | |
| 2211 | 2194 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) // Joystick control : Left |
| 2212 | 2195 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) // Joystick control : Right |
| 2213 | 2196 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) // Joystick control : Up |
| r3115 | r3116 | |
| 2217 | 2200 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2218 | 2201 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 2219 | 2202 | |
| 2220 | PORT_START("COINS") | |
| 2203 | PORT_START("COINS") | |
| 2221 | 2204 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2222 | 2205 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2223 | 2206 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 2227 | 2210 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2228 | 2211 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2229 | 2212 | |
| 2230 | PORT_START("EEPROM") /* EEPROM and service */ | |
| 2231 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 2213 | PORT_START("EEPROM") | |
| 2214 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 2232 | 2215 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM status? - always 1 */ |
| 2233 | 2216 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* ?? TMNT2: OBJMPX */ |
| 2234 | 2217 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) /* ?? TMNT2: NVBLK (needs to be ACTIVE_HIGH to avoid problems) */ |
| r3115 | r3116 | |
| 2236 | 2219 | PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */ |
| 2237 | 2220 | PORT_SERVICE_NO_TOGGLE( 0x80, IP_ACTIVE_LOW ) |
| 2238 | 2221 | |
| 2239 | PORT_START("P3") | |
| 2222 | PORT_START("P3") | |
| 2240 | 2223 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2241 | 2224 | |
| 2242 | PORT_START("P4") | |
| 2225 | PORT_START("P4") | |
| 2243 | 2226 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2244 | 2227 | INPUT_PORTS_END |
| 2245 | 2228 | |
| r3115 | r3116 | |
| 2255 | 2238 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2256 | 2239 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2257 | 2240 | |
| 2258 | PORT_START("P2/EEPROM") | |
| 2241 | PORT_START("P2/EEPROM") | |
| 2259 | 2242 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_UNKNOWN, IPT_START2 ) |
| 2260 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 2243 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 2261 | 2244 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM status? - always 1 */ |
| 2262 | 2245 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2263 | 2246 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* VBLK?? */ |
| r3115 | r3116 | |
| 2289 | 2272 | |
| 2290 | 2273 | PORT_START("P2/EEPROM") |
| 2291 | 2274 | KONAMI_PLAYERS_INPUT_LSB( 2, IPT_UNKNOWN, IPT_START2 ) |
| 2292 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 2275 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 2293 | 2276 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM status? - always 1 */ |
| 2294 | 2277 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2295 | 2278 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 4229 | 4212 | |
| 4230 | 4213 | GAME( 1993, prmrsocr, 0, prmrsocr, prmrsocr, glfgreat, ROT0, "Konami", "Premier Soccer (ver EAB)", 0 ) |
| 4231 | 4214 | GAME( 1993, prmrsocj, prmrsocr, prmrsocr, prmrsocr, glfgreat, ROT0, "Konami", "Premier Soccer (ver JAB)", 0 ) |
| 4232 |
| r3115 | r3116 | |
|---|---|---|
| 156 | 156 | |
| 157 | 157 | static void update_irqs(running_machine *machine) |
| 158 | 158 | { |
| 159 | int newstate = 0; | |
| 160 | ||
| 161 | if (tms_irq) | |
| 162 | newstate = 2; | |
| 163 | if (duart_1_irq) | |
| 164 | newstate = 5; | |
| 165 | ||
| 166 | if (newstate) | |
| 167 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 168 | else | |
| 169 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 159 | cpunum_set_input_line(machine, 0, 2, tms_irq ? ASSERT_LINE : CLEAR_LINE); | |
| 160 | cpunum_set_input_line(machine, 0, 5, duart_1_irq ? ASSERT_LINE : CLEAR_LINE); | |
| 170 | 161 | } |
| 171 | 162 | |
| 172 | 163 |
| r3115 | r3116 | |
|---|---|---|
| 1091 | 1091 | AM_RANGE(0x00000000, 0x003fffff) AM_RAM AM_SHARE(1) AM_BASE(&g_p_n_psxram) AM_SIZE(&g_n_psxramsize) /* ram */ |
| 1092 | 1092 | AM_RANGE(0x1f000000, 0x1f000003) AM_READWRITE(SMH_NOP, bankoffset_w) /* banking */ |
| 1093 | 1093 | AM_RANGE(0x1f080000, 0x1f083fff) AM_READWRITE(sharedram_r, sharedram_w) AM_BASE(&namcos12_sharedram) /* shared ram?? */ |
| 1094 | AM_RANGE(0x1f140000, 0x1f140fff) AM_READWRITE8(at28c16_ | |
| 1094 | AM_RANGE(0x1f140000, 0x1f140fff) AM_DEVREADWRITE8(AT28C16, "at28c16", at28c16_ | |
| 1095 | 1095 | AM_RANGE(0x1f1bff08, 0x1f1bff0f) AM_WRITENOP /* ?? */ |
| 1096 | 1096 | AM_RANGE(0x1f700000, 0x1f70ffff) AM_WRITE(dmaoffset_w) /* dma */ |
| 1097 | 1097 | AM_RANGE(0x1f800000, 0x1f8003ff) AM_RAM /* scratchpad */ |
| r3115 | r3116 | |
| 1253 | 1253 | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1254 | 1254 | AM_RANGE(0x080000, 0x08ffff) AM_READWRITE( sharedram_sub_r, sharedram_sub_w ) |
| 1255 | 1255 | AM_RANGE(0x280000, 0x287fff) AM_READWRITE( c352_0_r, c352_0_w ) |
| 1256 | AM_RANGE(0x300000, 0x300001) AM_READ( input_port_1_word_r ) | |
| 1257 | AM_RANGE(0x300002, 0x300003) AM_READ( input_port_2_word_r ) | |
| 1256 | AM_RANGE(0x300000, 0x300001) AM_READ_PORT("IN0") | |
| 1257 | AM_RANGE(0x300002, 0x300003) AM_READ_PORT("IN1") | |
| 1258 | 1258 | AM_RANGE(0x300010, 0x300011) AM_NOP // golgo13 writes here a lot, possibly also a wait state generator? |
| 1259 | 1259 | AM_RANGE(0x300030, 0x300031) AM_NOP // most S12 bioses write here simply to generate a wait state. there is no deeper meaning. |
| 1260 | 1260 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 1437 | 1437 | |
| 1438 | 1438 | psx_dma_install_read_handler( 5, namcos12_rom_read ); |
| 1439 | 1439 | |
| 1440 | at28c16_init( 0, NULL, NULL ); | |
| 1441 | ||
| 1442 | 1440 | memory_configure_bank( 1, 0, memory_region_length( machine, "user2" ) / 0x200000, memory_region( machine, "user2" ), 0x200000 ); |
| 1443 | 1441 | m_n_bankoffset = 0; |
| 1444 | 1442 | memory_set_bank( 1, 0 ); |
| r3115 | r3116 | |
| 1477 | 1475 | MDRV_CPU_VBLANK_INT("main", irq1_line_pulse) |
| 1478 | 1476 | |
| 1479 | 1477 | MDRV_MACHINE_RESET( namcos12 ) |
| 1480 | MDRV_NVRAM_HANDLER( at28c16_0 ) | |
| 1481 | 1478 | |
| 1482 | 1479 | /* video hardware */ |
| 1483 | 1480 | MDRV_SCREEN_ADD("main", RASTER) |
| r3115 | r3116 | |
| 1501 | 1498 | MDRV_SOUND_ROUTE(1, "left", 1.00) |
| 1502 | 1499 | MDRV_SOUND_ROUTE(2, "right", 1.00) |
| 1503 | 1500 | MDRV_SOUND_ROUTE(3, "left", 1.00) |
| 1501 | ||
| 1502 | MDRV_DEVICE_ADD( "at28c16", AT28C16 ) | |
| 1504 | 1503 | MACHINE_DRIVER_END |
| 1505 | 1504 | |
| 1506 | 1505 | static INPUT_PORTS_START( namcos12 ) |
| r3115 | r3116 | |
|---|---|---|
| 791 | 791 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 792 | 792 | |
| 793 | 793 | PORT_START("DSWA") /* Dip switch A */ |
| 794 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A )) | |
| 795 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C )) | |
| 796 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C )) | |
| 797 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C )) | |
| 798 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C )) | |
| 799 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C )) | |
| 800 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C )) | |
| 801 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C )) | |
| 794 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) | |
| 795 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) | |
| 796 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 797 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 798 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 799 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 800 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 801 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) | |
| 802 | 802 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 803 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B )) | |
| 804 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C )) | |
| 805 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C )) | |
| 806 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C )) | |
| 807 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C )) | |
| 808 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C )) | |
| 809 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C )) | |
| 810 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_4C )) | |
| 803 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) | |
| 804 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C ) ) | |
| 805 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 806 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 807 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 808 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 809 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 810 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_4C ) ) | |
| 811 | 811 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 812 | 812 | PORT_DIPNAME( 0x40, 0x40, "Starting Coin" ) |
| 813 | 813 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 817 | 817 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 818 | 818 | |
| 819 | 819 | PORT_START("DSWB") /* Dip switch B */ |
| 820 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty )) | |
| 820 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 821 | 821 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| 822 | 822 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 823 | 823 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 824 | 824 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) |
| 825 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives )) | |
| 825 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 826 | 826 | PORT_DIPSETTING( 0x00, "1" ) |
| 827 | 827 | PORT_DIPSETTING( 0x04, "4" ) |
| 828 | 828 | PORT_DIPSETTING( 0x08, "2" ) |
| 829 | 829 | PORT_DIPSETTING( 0x0c, "3" ) |
| 830 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life )) | |
| 830 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 831 | 831 | PORT_DIPSETTING( 0x30, "200000 500000" ) |
| 832 | 832 | PORT_DIPSETTING( 0x20, "400000 1000000" ) |
| 833 | 833 | PORT_DIPSETTING( 0x10, "1000000 3000000" ) |
| 834 | 834 | PORT_DIPSETTING( 0x00, "No Extend" ) |
| 835 | 835 | PORT_DIPNAME( 0x40, 0x40, "Demo Sound" ) |
| 836 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) | |
| 836 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 837 | 837 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 838 | 838 | PORT_DIPNAME( 0x80, 0x80, "Test Mode" ) |
| 839 | PORT_DIPSETTING( 0x80, DEF_STR( Off )) | |
| 839 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 840 | 840 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 841 | 841 | |
| 842 | 842 | PORT_START("SYSTEM") /* START BUTTONS */ |
| r3115 | r3116 | |
| 871 | 871 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 872 | 872 | |
| 873 | 873 | PORT_START("DSWA") /* Dip switch A */ |
| 874 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A )) | |
| 875 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C )) | |
| 876 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C )) | |
| 877 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C )) | |
| 878 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C )) | |
| 879 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C )) | |
| 880 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C )) | |
| 881 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C )) | |
| 874 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) | |
| 875 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) | |
| 876 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 877 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 878 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 879 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 880 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 881 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) | |
| 882 | 882 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 883 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B )) | |
| 884 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C )) | |
| 885 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C )) | |
| 886 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C )) | |
| 887 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C )) | |
| 888 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C )) | |
| 889 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C )) | |
| 890 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_4C )) | |
| 883 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) | |
| 884 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C ) ) | |
| 885 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 886 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 887 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 888 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 889 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 890 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_4C ) ) | |
| 891 | 891 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 892 | 892 | PORT_DIPNAME( 0x40, 0x40, "Starting Coin" ) |
| 893 | 893 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 897 | 897 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 898 | 898 | |
| 899 | 899 | PORT_START("DSWB") /* Dip switch B */ |
| 900 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty )) | |
| 900 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 901 | 901 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| 902 | 902 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 903 | 903 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 904 | 904 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) |
| 905 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives )) | |
| 905 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 906 | 906 | PORT_DIPSETTING( 0x00, "1" ) |
| 907 | 907 | PORT_DIPSETTING( 0x04, "4" ) |
| 908 | 908 | PORT_DIPSETTING( 0x08, "2" ) |
| r3115 | r3116 | |
| 914 | 914 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 915 | 915 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 916 | 916 | PORT_DIPNAME( 0x40, 0x40, "Demo Sound" ) |
| 917 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) | |
| 917 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 918 | 918 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 919 | 919 | PORT_DIPNAME( 0x80, 0x80, "Test Mode" ) |
| 920 | PORT_DIPSETTING( 0x80, DEF_STR( Off )) | |
| 920 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 921 | 921 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 922 | 922 | |
| 923 | 923 | PORT_START("SYSTEM") /* START BUTTONS */ |
| r3115 | r3116 | |
| 1980 | 1980 | |
| 1981 | 1981 | static READ16_HANDLER( rdx_v33_eeprom_r ) |
| 1982 | 1982 | { |
| 1983 | return input_port_read(machine, "SYSTEM") | |
| 1983 | return input_port_read(machine, "SYSTEM") | |
| 1984 | 1984 | } |
| 1985 | 1985 | |
| 1986 | 1986 | |
| r3115 | r3116 | |
| 2108 | 2108 | ADDRESS_MAP_END |
| 2109 | 2109 | |
| 2110 | 2110 | |
| 2111 | ||
| 2112 | ||
| 2113 | 2111 | static INPUT_PORTS_START( rdx_v33 ) |
| 2114 | 2112 | PORT_START("SYSTEM") |
| 2115 | 2113 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 2116 | 2114 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| 2117 | 2115 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 2118 | 2116 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2119 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 2117 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM( | |
| 2120 | 2118 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2121 | 2119 | PORT_DIPNAME( 0x0040, 0x0040, "Test Mode" ) |
| 2122 | PORT_DIPSETTING( 0x0040, DEF_STR( Off )) | |
| 2120 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 2123 | 2121 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2124 | 2122 | PORT_BIT( 0xff80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2125 | 2123 |
| r3115 | r3116 | |
|---|---|---|
| 72 | 72 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxold_videoram_r) |
| 73 | 73 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) |
| 74 | 74 | |
| 75 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 76 | AM_RANGE(0xa001, 0xa001) AM_READ(input_port_1_r) | |
| 77 | AM_RANGE(0xa002, 0xa002) AM_READ(input_port_2_r) | |
| 75 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN0") | |
| 76 | AM_RANGE(0xa001, 0xa001) AM_READ_PORT("IN1") | |
| 77 | AM_RANGE(0xa002, 0xa002) AM_READ_PORT("IN2") | |
| 78 | 78 | |
| 79 | 79 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) |
| 80 | 80 | // AM_RANGE(0x8100, 0x8103) AM_READ(ppi8255_0_r) |
| r3115 | r3116 | |
| 110 | 110 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) |
| 111 | 111 | AM_RANGE(0x5100, 0x51ff) AM_READ(SMH_NOP) /* test mode mirror? */ |
| 112 | 112 | AM_RANGE(0x7000, 0x7000) AM_READ(watchdog_reset_r) |
| 113 | AM_RANGE(0x8000, 0x8000) AM_READ(input_port_0_r) | |
| 114 | AM_RANGE(0x8001, 0x8001) AM_READ(input_port_1_r) | |
| 115 | AM_RANGE(0x8002, 0x8002) AM_READ(input_port_2_r) | |
| 116 | AM_RANGE(0x8003, 0x8003) AM_READ(input_port_3_r) | |
| 113 | AM_RANGE(0x8000, 0x8000) AM_READ_PORT("IN0") | |
| 114 | AM_RANGE(0x8001, 0x8001) AM_READ_PORT("IN1") | |
| 115 | AM_RANGE(0x8002, 0x8002) AM_READ_PORT("IN2") | |
| 116 | AM_RANGE(0x8003, 0x8003) AM_READ_PORT("IN3") | |
| 117 | 117 | ADDRESS_MAP_END |
| 118 | 118 | |
| 119 | 119 | static ADDRESS_MAP_START( explorer_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 262 | 262 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) |
| 263 | 263 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galaxold_videoram_r) |
| 264 | 264 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) |
| 265 | AM_RANGE(0x8000, 0x8000) AM_READ(input_port_0_r) | |
| 266 | AM_RANGE(0x8001, 0x8001) AM_READ(input_port_1_r) | |
| 267 | AM_RANGE(0x8002, 0x8002) AM_READ(input_port_2_r) | |
| 268 | AM_RANGE(0x8003, 0x8003) AM_READ(input_port_3_r) | |
| 265 | AM_RANGE(0x8000, 0x8000) AM_READ_PORT("IN0") | |
| 266 | AM_RANGE(0x8001, 0x8001) AM_READ_PORT("IN1") | |
| 267 | AM_RANGE(0x8002, 0x8002) AM_READ_PORT("IN2") | |
| 268 | AM_RANGE(0x8003, 0x8003) AM_READ_PORT("IN3") | |
| 269 | 269 | ADDRESS_MAP_END |
| 270 | 270 | |
| 271 | 271 | static ADDRESS_MAP_START( hotshock_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 400 | 400 | AM_RANGE(0x8000, 0x8000) AM_WRITE(soundlatch_w) |
| 401 | 401 | AM_RANGE(0x9000, 0x9000) AM_WRITE(hotshock_sh_irqtrigger_w) |
| 402 | 402 | AM_RANGE(0x7000, 0x7000) AM_READ(watchdog_reset_r) |
| 403 | AM_RANGE(0x8000, 0x8000) AM_READ(input_port_0_r) | |
| 404 | AM_RANGE(0x8001, 0x8001) AM_READ(input_port_1_r) | |
| 405 | AM_RANGE(0x8002, 0x8002) AM_READ(input_port_2_r) | |
| 406 | AM_RANGE(0x8003, 0x8003) AM_READ(input_port_3_r) | |
| 403 | AM_RANGE(0x8000, 0x8000) AM_READ_PORT("IN0") | |
| 404 | AM_RANGE(0x8001, 0x8001) AM_READ_PORT("IN1") | |
| 405 | AM_RANGE(0x8002, 0x8002) AM_READ_PORT("IN2") | |
| 406 | AM_RANGE(0x8003, 0x8003) AM_READ_PORT("IN3") | |
| 407 | 407 | AM_RANGE(0xa000, 0xdfff) AM_ROM |
| 408 | 408 | AM_RANGE(0xe800, 0xebff) AM_RAM |
| 409 | 409 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 471 | 471 | |
| 472 | 472 | static ADDRESS_MAP_START( hunchbks_readport, ADDRESS_SPACE_IO, 8 ) |
| 473 | 473 | AM_RANGE(0x00, 0x00) AM_READ(hncholms_prot_r) |
| 474 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ | |
| 474 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ | |
| 475 | 475 | ADDRESS_MAP_END |
| 476 | 476 | |
| 477 | 477 | static INPUT_PORTS_START( scramble ) |
| r3115 | r3116 | |
| 933 | 933 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 934 | 934 | INPUT_PORTS_END |
| 935 | 935 | |
| 936 | ||
| 937 | /* ckongs coinage DIPs are spread accross two input ports */ | |
| 938 | static CUSTOM_INPUT( ckongs_coinage_r ) | |
| 939 | { | |
| 940 | int bit_mask = (FPTR)param; | |
| 941 | return (input_port_read(field->port->machine, "FAKE") & bit_mask) ? 0x01 : 0x00; | |
| 942 | } | |
| 943 | ||
| 944 | ||
| 936 | 945 | static INPUT_PORTS_START( ckongs ) |
| 937 | 946 | PORT_START("IN0") |
| 938 | 947 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 945 | 954 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 946 | 955 | |
| 947 | 956 | PORT_START("IN1") |
| 948 | /* the coinage dip switch is spread across bits 0/1 of port 1 and bit 3 of port 2. */ | |
| 949 | /* To handle that, we swap bits 0/1 of port 1 and bits 1/2 of port 2 - this is handled */ | |
| 950 | /* by ckongs_input_port_N_r() */ | |
| 951 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 952 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 953 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 954 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Lives ) ) | |
| 955 | PORT_DIPSETTING( 0x02, "3" ) | |
| 956 | PORT_DIPSETTING( 0x00, "4" ) | |
| 957 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(ckongs_coinage_r, (void *)0x01) | |
| 958 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(ckongs_coinage_r, (void *)0x02) | |
| 957 | 959 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 958 | 960 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 959 | 961 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 962 | 964 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 963 | 965 | |
| 964 | 966 | PORT_START("IN2") |
| 965 | /* the coinage dip switch is spread across bits 0/1 of port 1 and bit 3 of port 2. */ | |
| 966 | /* To handle that, we swap bits 0/1 of port 1 and bits 1/2 of port 2 - this is handled */ | |
| 967 | /* by ckongs_input_port_N_r() */ | |
| 968 | 967 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 969 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coinage ) ) | |
| 970 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 971 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) | |
| 972 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) | |
| 973 | PORT_DIPSETTING( 0x0a, DEF_STR( 2C_1C ) ) | |
| 974 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_1C ) ) | |
| 975 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_2C ) ) | |
| 976 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_3C ) ) | |
| 977 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 968 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 969 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 970 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 971 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 972 | PORT_DIPSETTING( 0x04, "3" ) | |
| 973 | PORT_DIPSETTING( 0x00, "4" ) | |
| 974 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(ckongs_coinage_r, (void *)0x04) | |
| 978 | 975 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 979 | 976 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 980 | 977 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 981 | 978 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 979 | ||
| 980 | PORT_START("FAKE") | |
| 981 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) | |
| 982 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 983 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) | |
| 984 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) | |
| 985 | PORT_DIPSETTING( 0x05, DEF_STR( 2C_1C ) ) | |
| 986 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 987 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 988 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_3C ) ) | |
| 989 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_4C ) ) | |
| 982 | 990 | INPUT_PORTS_END |
| 983 | 991 | |
| 984 | 992 | static INPUT_PORTS_START( mars ) |
| r3115 | r3116 | |
|---|---|---|
| 428 | 428 | { |
| 429 | 429 | if (ACCESSING_BITS_24_31) |
| 430 | 430 | { |
| 431 | UINT32 data = eeprom_read_bit() & 1; | |
| 432 | data |= input_port_read(machine, "COINS") & 0xfe; | |
| 433 | r |= data << 24; | |
| 431 | r |= input_port_read(machine, "COINS") << 24; | |
| 434 | 432 | } |
| 435 | 433 | return r; |
| 436 | 434 | } |
| r3115 | r3116 | |
| 1086 | 1084 | #ifdef UNUSED_DEFINITION |
| 1087 | 1085 | static INPUT_PORTS_START( taitojc ) |
| 1088 | 1086 | PORT_START("COINS") |
| 1089 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_COIN4) | |
| 1090 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_COIN3) | |
| 1091 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_COIN2) | |
| 1092 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1) | |
| 1093 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1087 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 1088 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 1089 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1090 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1091 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1094 | 1092 | //PORT_SERVICE(0x02, 0x00) |
| 1093 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 1095 | 1094 | |
| 1096 | 1095 | PORT_START("START") |
| 1097 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_START4) | |
| 1098 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_START3) | |
| 1099 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_START2) | |
| 1100 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_START1) | |
| 1101 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_SERVICE3) | |
| 1102 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_SERVICE2) | |
| 1103 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1104 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_TILT) | |
| 1096 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) | |
| 1097 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START3 ) | |
| 1098 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1099 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1100 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE3 ) | |
| 1101 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) | |
| 1102 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1103 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1105 | 1104 | |
| 1106 | 1105 | PORT_START("UNUSED") |
| 1107 | PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1106 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1108 | 1107 | |
| 1109 | 1108 | PORT_START("BUTTONS") |
| 1110 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON1) | |
| 1111 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON2) | |
| 1112 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON3) | |
| 1113 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON4) | |
| 1114 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_BUTTON5) | |
| 1115 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_BUTTON6) | |
| 1116 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON7) | |
| 1117 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON8) | |
| 1109 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1110 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1111 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 1112 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 1113 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) | |
| 1114 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON6 ) | |
| 1115 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON7 ) | |
| 1116 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON8 ) | |
| 1118 | 1117 | INPUT_PORTS_END |
| 1119 | 1118 | #endif |
| 1120 | 1119 | |
| 1121 | 1120 | static INPUT_PORTS_START( dendeg ) |
| 1122 | 1121 | PORT_START("COINS") |
| 1123 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1124 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1) | |
| 1125 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1122 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1123 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1124 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1125 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 1126 | 1126 | |
| 1127 | 1127 | PORT_START("START") |
| 1128 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1129 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_START1) | |
| 1130 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1131 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_TILT) | |
| 1128 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1129 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1130 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1131 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1132 | 1132 | |
| 1133 | 1133 | PORT_START("UNUSED") |
| 1134 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON7) // Horn | |
| 1135 | PORT_BIT(0xfe, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1134 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON7 ) // Horn | |
| 1135 | PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1136 | 1136 | |
| 1137 | 1137 | PORT_START("BUTTONS") |
| 1138 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1139 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON6) // Mascon 5 | |
| 1140 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON4) // Mascon 3 | |
| 1141 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON2) // Mascon 1 | |
| 1142 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1143 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_BUTTON5) // Mascon 4 | |
| 1144 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON3) // Mascon 2 | |
| 1145 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1) // Mascon 0 | |
| 1138 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1139 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON6 ) // Mascon 5 | |
| 1140 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) // Mascon 3 | |
| 1141 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Mascon 1 | |
| 1142 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1143 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) // Mascon 4 | |
| 1144 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) // Mascon 2 | |
| 1145 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) // Mascon 0 | |
| 1146 | 1146 | |
| 1147 | 1147 | PORT_START("ANALOG1") // Brake |
| 1148 | 1148 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00, 0xff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| r3115 | r3116 | |
| 1150 | 1150 | |
| 1151 | 1151 | static INPUT_PORTS_START( landgear ) |
| 1152 | 1152 | PORT_START("COINS") |
| 1153 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1154 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1) | |
| 1155 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1153 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1154 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1155 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1156 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 1156 | 1157 | |
| 1157 | 1158 | PORT_START("START") |
| 1158 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1159 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_START1) | |
| 1160 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1161 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_TILT) | |
| 1159 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1160 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1161 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1162 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1162 | 1163 | |
| 1163 | 1164 | PORT_START("UNUSED") |
| 1164 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1) // View button | |
| 1165 | PORT_BIT(0xfe, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1165 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) // View button | |
| 1166 | PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1166 | 1167 | |
| 1167 | 1168 | PORT_START("BUTTONS") |
| 1168 | PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1169 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1169 | 1170 | |
| 1170 | 1171 | PORT_START("ANALOG1") // Lever X |
| 1171 | 1172 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0xff, 0x00) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| r3115 | r3116 | |
| 1179 | 1180 | |
| 1180 | 1181 | static INPUT_PORTS_START( sidebs ) |
| 1181 | 1182 | PORT_START("COINS") |
| 1182 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1183 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1) | |
| 1184 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1183 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1184 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1185 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1186 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 1185 | 1187 | |
| 1186 | 1188 | PORT_START("START") |
| 1187 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1188 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_START1) | |
| 1189 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_SERVICE3) | |
| 1190 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_SERVICE2) | |
| 1191 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1192 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_TILT) | |
| 1189 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1190 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1191 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE3 ) | |
| 1192 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) | |
| 1193 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1194 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1193 | 1195 | |
| 1194 | 1196 | PORT_START("UNUSED") |
| 1195 | PORT_BIT(0xfe, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1196 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1) // View button | |
| 1197 | PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1198 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) // View button | |
| 1197 | 1199 | |
| 1198 | 1200 | PORT_START("BUTTONS") |
| 1199 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON2) // Shift down | |
| 1200 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON3) // Shift up | |
| 1201 | PORT_BIT(0xfc, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1201 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Shift down | |
| 1202 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) // Shift up | |
| 1203 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1202 | 1204 | |
| 1203 | 1205 | PORT_START("ANALOG1") // Steering |
| 1204 | 1206 | PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x00, 0xff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| r3115 | r3116 | |
| 1213 | 1215 | // TODO |
| 1214 | 1216 | static INPUT_PORTS_START( dangcurv ) |
| 1215 | 1217 | PORT_START("COINS") |
| 1216 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1217 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN1) | |
| 1218 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1218 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1219 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1220 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1221 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 1219 | 1222 | |
| 1220 | 1223 | PORT_START("START") |
| 1221 | PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1222 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_START1) | |
| 1223 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_SERVICE3) | |
| 1224 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_SERVICE2) | |
| 1225 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1226 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_TILT) | |
| 1224 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1225 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1226 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE3 ) | |
| 1227 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) | |
| 1228 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1229 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1227 | 1230 | |
| 1228 | 1231 | PORT_START("UNUSED") |
| 1229 | PORT_BIT(0xfe, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1230 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1) // View button | |
| 1232 | PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1233 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) // View button | |
| 1231 | 1234 | |
| 1232 | 1235 | PORT_START("BUTTONS") |
| 1233 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON2) // Shift down | |
| 1234 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON3) // Shift up | |
| 1235 | PORT_BIT(0xfc, IP_ACTIVE_LOW, IPT_UNUSED) | |
| 1236 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Shift down | |
| 1237 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) // Shift up | |
| 1238 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1236 | 1239 | |
| 1237 | 1240 | PORT_START("ANALOG1") // Steering |
| 1238 | 1241 | PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x00, 0xff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) |
| r3115 | r3116 | |
|---|---|---|
| 96 | 96 | AM_RANGE(0x8800, 0x8fff) AM_READ(pitnrun_videoram_r) |
| 97 | 97 | AM_RANGE(0x9000, 0x9fff) AM_READ(pitnrun_videoram2_r) |
| 98 | 98 | AM_RANGE(0xa000, 0xa0ff) AM_READ(SMH_RAM) |
| 99 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_0_r) | |
| 100 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_1_r) | |
| 101 | AM_RANGE(0xb800, 0xb800) AM_READ(input_port_2_r) | |
| 99 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("SYSTEM") | |
| 100 | AM_RANGE(0xb000, 0xb000) AM_READ_PORT("DSW") | |
| 101 | AM_RANGE(0xb800, 0xb800) AM_READ_PORT("INPUTS") | |
| 102 | 102 | AM_RANGE(0xd800, 0xd800) AM_READ(pitnrun_mcu_status_r) |
| 103 | 103 | AM_RANGE(0xd000, 0xd000) AM_READ(pitnrun_mcu_data_r) |
| 104 | 104 | AM_RANGE(0xf000, 0xf000) AM_READ(watchdog_reset_r) |
| r3115 | r3116 | |
| 174 | 174 | ADDRESS_MAP_END |
| 175 | 175 | |
| 176 | 176 | static INPUT_PORTS_START( pitnrun ) |
| 177 | PORT_START(" | |
| 177 | PORT_START("SYSTEM") | |
| 178 | 178 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 179 | 179 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 180 | 180 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| r3115 | r3116 | |
| 184 | 184 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 185 | 185 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 186 | 186 | |
| 187 | PORT_START("DSW0") | |
| 187 | PORT_START("INPUTS") | |
| 188 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 189 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 190 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 191 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 192 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 193 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 194 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 195 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 196 | ||
| 197 | PORT_START("DSW") | |
| 188 | 198 | PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coinage ) ) |
| 189 | 199 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 190 | 200 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 205 | 215 | PORT_DIPNAME( 0x80, 0x00, "No Hit (Cheat)") |
| 206 | 216 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 207 | 217 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 208 | ||
| 209 | PORT_START("IN1") | |
| 210 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 211 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 212 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 213 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 214 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 215 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 216 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 217 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 218 | 218 | INPUT_PORTS_END |
| 219 | 219 | |
| 220 | 220 |
| r3115 | r3116 | |
|---|---|---|
| 247 | 247 | AM_RANGE(0xec00, 0xec01) AM_RAM_WRITE(tehkanwc_scroll_x_w) |
| 248 | 248 | AM_RANGE(0xec02, 0xec02) AM_RAM_WRITE(tehkanwc_scroll_y_w) |
| 249 | 249 | AM_RANGE(0xf800, 0xf801) AM_READWRITE(tehkanwc_track_0_r, tehkanwc_track_0_reset_w) /* track 0 x/y */ |
| 250 | AM_RANGE(0xf802, 0xf802) AM_READWRITE(input_port_9_r, gridiron_led0_w) /* Coin & Start */ | |
| 251 | AM_RANGE(0xf803, 0xf803) AM_READ_PORT("P1BUT") /* joy0 - button */ | |
| 252 | AM_RANGE(0xf806, 0xf806) AM_READ_PORT("SYSTEM") /* Start */ | |
| 250 | AM_RANGE(0xf802, 0xf802) AM_READ_PORT("SYSTEM") AM_WRITE(gridiron_led0_w) | |
| 251 | AM_RANGE(0xf803, 0xf803) AM_READ_PORT("P1BUT") | |
| 252 | AM_RANGE(0xf806, 0xf806) AM_READ_PORT("SYSTEM") | |
| 253 | 253 | AM_RANGE(0xf810, 0xf811) AM_READWRITE(tehkanwc_track_1_r, tehkanwc_track_1_reset_w) /* track 1 x/y */ |
| 254 | 254 | AM_RANGE(0xf812, 0xf812) AM_WRITE(gridiron_led1_w) |
| 255 | AM_RANGE(0xf813, 0xf813) AM_READ_PORT("P2BUT") | |
| 255 | AM_RANGE(0xf813, 0xf813) AM_READ_PORT("P2BUT") | |
| 256 | 256 | AM_RANGE(0xf820, 0xf820) AM_READWRITE(soundlatch2_r, sound_command_w) /* answer from the sound CPU */ |
| 257 | AM_RANGE(0xf840, 0xf840) AM_READ_PORT("DSW1") AM_WRITE(sub_cpu_halt_w) /* DSW1 */ | |
| 258 | AM_RANGE(0xf850, 0xf850) AM_READ_PORT("DSW2") AM_WRITE(SMH_NOP) /* DSW2, ?? writes 0x00 or 0xff */ | |
| 257 | AM_RANGE(0xf840, 0xf840) AM_READ_PORT("DSW1") AM_WRITE(sub_cpu_halt_w) | |
| 258 | AM_RANGE(0xf850, 0xf850) AM_READ_PORT("DSW2") AM_WRITE(SMH_NOP) /* ?? writes 0x00 or 0xff */ | |
| 259 | 259 | AM_RANGE(0xf860, 0xf860) AM_READWRITE(watchdog_reset_r, tehkanwc_flipscreen_x_w) |
| 260 | AM_RANGE(0xf870, 0xf870) AM_READ_PORT("DSW3") AM_WRITE(tehkanwc_flipscreen_y_w) | |
| 260 | AM_RANGE(0xf870, 0xf870) AM_READ_PORT("DSW3") AM_WRITE(tehkanwc_flipscreen_y_w) | |
| 261 | 261 | ADDRESS_MAP_END |
| 262 | 262 | |
| 263 | 263 | static ADDRESS_MAP_START( sub_mem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
|---|---|---|
| 168 | 168 | AM_RANGE(0x9800, 0x983f) AM_RAM |
| 169 | 169 | AM_RANGE(0x9840, 0x987f) AM_RAM AM_BASE(&spriteram) |
| 170 | 170 | AM_RANGE(0x9880, 0x9bff) AM_RAM |
| 171 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 172 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 173 | AM_RANGE(0xb000, 0xb000) AM_READWRITE(input_port_2_r, nmi_enable_w) | |
| 171 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("INPUTS") | |
| 172 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("SYSTEM") | |
| 173 | AM_RANGE(0xb000, 0xb000) AM_READ_PORT("DSW") AM_WRITE(nmi_enable_w) | |
| 174 | 174 | AM_RANGE(0xb002, 0xb003) AM_WRITE(coin_lock_w) |
| 175 | 175 | AM_RANGE(0xb006, 0xb006) AM_WRITE(suprridr_flipx_w) |
| 176 | 176 | AM_RANGE(0xb007, 0xb007) AM_WRITE(suprridr_flipy_w) |
| r3115 | r3116 | |
| 237 | 237 | |
| 238 | 238 | |
| 239 | 239 | static INPUT_PORTS_START( suprridr ) |
| 240 | PORT_START("INPUTS") /* IN0 */ | |
| 241 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(suprridr_control_r, 0) | |
| 240 | PORT_START("INPUTS") | |
| 241 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(suprridr_control_r, NULL) | |
| 242 | 242 | |
| 243 | PORT_START("SYSTEM") | |
| 243 | PORT_START("SYSTEM") | |
| 244 | 244 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 245 | 245 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 246 | 246 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 247 | 247 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START2 ) |
| 248 | 248 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 249 | 249 | |
| 250 | PORT_START("DSW | |
| 250 | PORT_START("DSW | |
| 251 | 251 | PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coinage ) ) |
| 252 | 252 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 253 | 253 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 353 | 353 | static ADDRESS_MAP_START( spy_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 354 | 354 | AM_RANGE(0x0000, 0x07ff) AM_READ(spy_bankedram1_r) |
| 355 | 355 | AM_RANGE(0x0800, 0x1aff) AM_READ(SMH_RAM) |
| 356 | AM_RANGE(0x3fd0, 0x3fd0) AM_READ(input_port_4_r) | |
| 357 | AM_RANGE(0x3fd1, 0x3fd1) AM_READ(input_port_0_r) | |
| 358 | AM_RANGE(0x3fd2, 0x3fd2) AM_READ(input_port_1_r) | |
| 359 | AM_RANGE(0x3fd3, 0x3fd3) AM_READ(input_port_2_r) | |
| 360 | AM_RANGE(0x3fe0, 0x3fe0) AM_READ(input_port_3_r) | |
| 356 | AM_RANGE(0x3fd0, 0x3fd0) AM_READ_PORT("SYSTEM") | |
| 357 | AM_RANGE(0x3fd1, 0x3fd1) AM_READ_PORT("P1") | |
| 358 | AM_RANGE(0x3fd2, 0x3fd2) AM_READ_PORT("P2") | |
| 359 | AM_RANGE(0x3fd3, 0x3fd3) AM_READ_PORT("DSW1") | |
| 360 | AM_RANGE(0x3fe0, 0x3fe0) AM_READ_PORT("DSW2") | |
| 361 | 361 | AM_RANGE(0x2000, 0x5fff) AM_READ(K052109_051960_r) |
| 362 | 362 | AM_RANGE(0x6000, 0x7fff) AM_READ(SMH_BANK1) |
| 363 | 363 | AM_RANGE(0x8000, 0xffff) AM_READ(SMH_ROM) |
| r3115 | r3116 | |
|---|---|---|
| 100 | 100 | |
| 101 | 101 | ***************************************************************************/ |
| 102 | 102 | |
| 103 | static | |
| 103 | static CUSTOM | |
| 104 | 104 | { |
| 105 | int ret = | |
| 105 | int ret = | |
| 106 | 106 | |
| 107 | if (has_mcu) | |
| 108 | { | |
| 109 | /* Don't know exactly what this bit is, but s1945 and tengai | |
| 110 | both spin waiting for it to go low during POST. Also, | |
| 111 | the following code in tengai (don't know where or if it is | |
| 112 | reached) waits for it to pulse: | |
| 113 | ||
| 114 | 01A546: move.b (A2), D0 ; A2 = $c00003 | |
| 115 | 01A548: andi.b #$4, D0 | |
| 116 | 01A54C: beq $1a546 | |
| 117 | 01A54E: move.b (A2), D0 | |
| 118 | 01A550: andi.b #$4, D0 | |
| 119 | 01A554: bne $1a54e | |
| 120 | ||
| 121 | Interestingly, s1945jn has the code that spins on this bit, | |
| 122 | but said code is never reached. Prototype? */ | |
| 123 | if (mcu_status) ret |= 0x04; | |
| 124 | mcu_status = !mcu_status; /* hack */ | |
| 125 | } | |
| 126 | ||
| 127 | 107 | if (z80_nmi) |
| 128 | 108 | { |
| 129 | ret | |
| 109 | ret | |
| 130 | 110 | |
| 131 | 111 | /* main CPU might be waiting for sound CPU to finish NMI, |
| 132 | 112 | so set a timer to give sound CPU a chance to run */ |
| r3115 | r3116 | |
| 137 | 117 | return ret; |
| 138 | 118 | } |
| 139 | 119 | |
| 120 | static CUSTOM_INPUT( mcu_status_r ) | |
| 121 | { | |
| 122 | int ret = 0x00; | |
| 123 | ||
| 124 | /* Don't know exactly what this bit is, but s1945 and tengai | |
| 125 | both spin waiting for it to go low during POST. Also, | |
| 126 | the following code in tengai (don't know where or if it is | |
| 127 | reached) waits for it to pulse: | |
| 128 | ||
| 129 | 01A546: move.b (A2), D0 ; A2 = $c00003 | |
| 130 | 01A548: andi.b #$4, D0 | |
| 131 | 01A54C: beq $1a546 | |
| 132 | 01A54E: move.b (A2), D0 | |
| 133 | 01A550: andi.b #$4, D0 | |
| 134 | 01A554: bne $1a54e | |
| 135 | ||
| 136 | Interestingly, s1945jn has the code that spins on this bit, | |
| 137 | but said code is never reached. Prototype? */ | |
| 138 | if (mcu_status) | |
| 139 | ret = 0x01; | |
| 140 | ||
| 141 | mcu_status = !mcu_status; /* hack */ | |
| 142 | ||
| 143 | return ret; | |
| 144 | } | |
| 145 | ||
| 140 | 146 | static READ32_HANDLER( sngkace_input_r ) |
| 141 | 147 | { |
| 142 | 148 | switch(offset) |
| 143 | 149 | { |
| 144 | case 0x0: return (input_port_read(machine, "IN0") << 16) | 0xffff; | |
| 145 | case 0x1: return (input_port_read(machine, "DSW1") << 16) | input_port_read(machine, "DSW3"); | |
| 146 | case 0x2: return (psikyo_readcoinport(machine, 0) << 16) | input_port_read(machine, "DSW2"); | |
| 150 | case 0x0: return input_port_read(machine, "P1_P2"); | |
| 151 | case 0x1: return input_port_read(machine, "DSW"); | |
| 152 | case 0x2: return input_port_read(machine, "COIN"); | |
| 147 | 153 | default: logerror("PC %06X - Read input %02X !\n", activecpu_get_pc(), offset * 2); |
| 148 | 154 | return 0; |
| 149 | 155 | } |
| r3115 | r3116 | |
| 153 | 159 | { |
| 154 | 160 | switch(offset) |
| 155 | 161 | { |
| 156 | case 0x0: return (input_port_read(machine, "IN0") << 16) | psikyo_readcoinport(machine, 0); | |
| 157 | case 0x1: return (input_port_read(machine, "DSW1") << 16) | input_port_read(machine, "DSW2"); | |
| 162 | case 0x0: return input_port_read(machine, "P1_P2"); | |
| 163 | case 0x1: return input_port_read(machine, "DSW"); | |
| 158 | 164 | default: logerror("PC %06X - Read input %02X !\n", activecpu_get_pc(), offset*2); |
| 159 | 165 | return 0; |
| 160 | 166 | } |
| r3115 | r3116 | |
| 309 | 315 | { |
| 310 | 316 | switch(offset) |
| 311 | 317 | { |
| 312 | case 0x0: return (input_port_read(machine, "IN0") << 16) | psikyo_readcoinport(machine, 1); | |
| 313 | case 0x1: return (((input_port_read(machine, "DSW1") << 16) | input_port_read(machine, "DSW2")) & 0xffff000f) | s1945_mcu_r(machine, offset-1, mem_mask); | |
| 318 | case 0x0: return input_port_read(machine, "P1_P2"); | |
| 319 | case 0x1: return (input_port_read(machine, "DSW") & 0xffff000f) | s1945_mcu_r(machine, offset-1, mem_mask); | |
| 314 | 320 | case 0x2: return s1945_mcu_r(machine, offset-1, mem_mask); |
| 315 | 321 | default: logerror("PC %06X - Read input %02X !\n", activecpu_get_pc(), offset*2); |
| 316 | 322 | return 0; |
| r3115 | r3116 | |
| 506 | 512 | ***************************************************************************/ |
| 507 | 513 | |
| 508 | 514 | #define PSIKYO_PORT_PLAYER1 \ |
| 509 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) \ | |
| 510 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) \ | |
| 511 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) \ | |
| 512 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) \ | |
| 513 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) \ | |
| 514 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) \ | |
| 515 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) \ | |
| 516 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 515 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_START1 ) \ | |
| 516 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) \ | |
| 517 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) \ | |
| 518 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) \ | |
| 519 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) \ | |
| 520 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) \ | |
| 521 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) \ | |
| 522 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 517 | 523 | |
| 518 | 524 | #define PSIKYO_PORT_PLAYER2 \ |
| 519 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START2 ) \ | |
| 520 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) \ | |
| 521 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) \ | |
| 522 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) \ | |
| 523 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) \ | |
| 524 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) \ | |
| 525 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) \ | |
| 526 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 525 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_START2 ) \ | |
| 526 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) \ | |
| 527 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) \ | |
| 528 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) \ | |
| 529 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) \ | |
| 530 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) \ | |
| 531 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) \ | |
| 532 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 527 | 533 | |
| 528 | #define PSIKYO_PORT_COIN \ | |
| 529 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) \ | |
| 530 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) \ | |
| 531 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_SPECIAL ) \ | |
| 532 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 533 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ | |
| 534 | PORT_SERVICE_NO_TOGGLE( 0x0020, IP_ACTIVE_LOW ) \ | |
| 535 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_TILT ) \ | |
| 536 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL ) // From Sound CPU | |
| 537 | 534 | |
| 538 | 535 | |
| 539 | 536 | /*************************************************************************** |
| r3115 | r3116 | |
| 541 | 538 | ***************************************************************************/ |
| 542 | 539 | |
| 543 | 540 | static INPUT_PORTS_START( samuraia ) |
| 544 | ||
| 545 | PORT_START("IN0") // IN0 - c00000&1 | |
| 541 | PORT_START("P1_P2") /* c00000&1 */ | |
| 542 | PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 546 | 543 | PSIKYO_PORT_PLAYER2 |
| 547 | ||
| 548 | 544 | PSIKYO_PORT_PLAYER1 |
| 549 | 545 | |
| 550 | PORT_START("COIN") // IN1 - c00008&9 | |
| 551 | PSIKYO_PORT_COIN | |
| 546 | PORT_START("COIN") | |
| 547 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 548 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 549 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 550 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 551 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 552 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 553 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 554 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 555 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 556 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 557 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 558 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 559 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 560 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 561 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 562 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 552 | 563 | |
| 553 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 554 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 555 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 556 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 557 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 558 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 559 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 560 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 564 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 565 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 566 | PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 567 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 568 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 569 | PORT_SERVICE_NO_TOGGLE( 0x00200000, IP_ACTIVE_LOW ) | |
| 570 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_TILT ) | |
| 571 | PORT_BIT( 0x00800000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(z80_nmi_r, NULL) // From Sound CPU | |
| 572 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 573 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 574 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 575 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 576 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 577 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 578 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 579 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 561 | 580 | |
| 562 | PORT_START("DSW1") // IN2 - c00004&5 | |
| 563 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 564 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 565 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 566 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 567 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 568 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 569 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 570 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 571 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 572 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 573 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 574 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 575 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 576 | PORT_DIPSETTING( 0x0010, "2" ) | |
| 577 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 578 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 579 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 580 | PORT_DIPSETTING( 0x0040, "400K" ) | |
| 581 | PORT_DIPSETTING( 0x0000, "600K" ) | |
| 582 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 583 | ||
| 584 | PORT_DIPNAME( 0x0100, 0x0100, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 585 | PORT_DIPSETTING( 0x0100, "A+B/A&B" ) | |
| 586 | PORT_DIPSETTING( 0x0000, "A&B/A [Free Play]" ) | |
| 587 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Coin_A ) ) | |
| 588 | PORT_DIPSETTING( 0x0a00, DEF_STR( 3C_1C ) ) | |
| 589 | PORT_DIPSETTING( 0x0c00, DEF_STR( 2C_1C ) ) | |
| 590 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_1C ) ) | |
| 591 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_2C ) ) | |
| 592 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_3C ) ) | |
| 593 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 594 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_5C ) ) | |
| 595 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 596 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coin_B ) ) | |
| 597 | PORT_DIPSETTING( 0x5000, DEF_STR( 3C_1C ) ) | |
| 598 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 599 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 600 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_2C ) ) | |
| 601 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_3C ) ) | |
| 602 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 603 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_5C ) ) | |
| 604 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 605 | PORT_DIPNAME( 0x8000, 0x8000, "2C Start, 1C Continue" ) | |
| 606 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 607 | PORT_DIPSETTING( 0x0000, "On [Free Play]" ) // Forces 1C_1C | |
| 608 | ||
| 609 | PORT_START("DSW2") // IN3 - c00002&3 | |
| 610 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 611 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 612 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 613 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 614 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 615 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 616 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 617 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 618 | ||
| 619 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 620 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 621 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 622 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 623 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 624 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 625 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 626 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 627 | ||
| 628 | PORT_START("DSW3") // IN4 - c00006&7 | |
| 629 | ||
| 581 | PORT_START("DSW") /* c00004 -> c00007 */ | |
| 630 | 582 | /*********************************************** |
| 631 | 583 | |
| 632 | 584 | This Dip port is bit based: |
| r3115 | r3116 | |
| 640 | 592 | 1 1 1 0 Taiwan With FBI logo?? |
| 641 | 593 | |
| 642 | 594 | ************************************************/ |
| 595 | PORT_DIPNAME( 0x000000ff, 0x000000ff, "Country" ) | |
| 596 | PORT_DIPSETTING( 0x000000ff, DEF_STR( World ) ) | |
| 597 | PORT_DIPSETTING( 0x000000ef, "USA & Canada" ) | |
| 598 | PORT_DIPSETTING( 0x000000df, "Korea" ) | |
| 599 | PORT_DIPSETTING( 0x000000bf, "Hong Kong" ) | |
| 600 | PORT_DIPSETTING( 0x0000007f, "Taiwan" ) | |
| 601 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 602 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 603 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 604 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 605 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 606 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 607 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 608 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 643 | 609 | |
| 644 | PORT_DIPNAME( 0x00ff, 0x00ff, "Country" ) | |
| 645 | PORT_DIPSETTING( 0x00ff, DEF_STR( World ) ) | |
| 646 | PORT_DIPSETTING( 0x00ef, "USA & Canada" ) | |
| 647 | PORT_DIPSETTING( 0x00df, "Korea" ) | |
| 648 | PORT_DIPSETTING( 0x00bf, "Hong Kong" ) | |
| 649 | PORT_DIPSETTING( 0x007f, "Taiwan" ) | |
| 650 | ||
| 651 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 652 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 653 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 654 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 655 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 656 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 657 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 658 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 659 | ||
| 610 | PORT_DIPNAME( 0x00010000, 0x00010000, DEF_STR( Flip_Screen ) ) | |
| 611 | PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) | |
| 612 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 613 | PORT_DIPNAME( 0x00020000, 0x00000000, DEF_STR( Demo_Sounds ) ) | |
| 614 | PORT_DIPSETTING( 0x00020000, DEF_STR( Off ) ) | |
| 615 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 616 | PORT_DIPNAME( 0x000c0000, 0x000c0000, DEF_STR( Difficulty ) ) | |
| 617 | PORT_DIPSETTING( 0x00080000, DEF_STR( Easy ) ) | |
| 618 | PORT_DIPSETTING( 0x000c0000, DEF_STR( Normal ) ) | |
| 619 | PORT_DIPSETTING( 0x00040000, DEF_STR( Hard ) ) | |
| 620 | PORT_DIPSETTING( 0x00000000, DEF_STR( Hardest ) ) | |
| 621 | PORT_DIPNAME( 0x00300000, 0x00300000, DEF_STR( Lives ) ) | |
| 622 | PORT_DIPSETTING( 0x00200000, "1" ) | |
| 623 | PORT_DIPSETTING( 0x00100000, "2" ) | |
| 624 | PORT_DIPSETTING( 0x00300000, "3" ) | |
| 625 | PORT_DIPSETTING( 0x00000000, "4" ) | |
| 626 | PORT_DIPNAME( 0x00400000, 0x00400000, DEF_STR( Bonus_Life ) ) | |
| 627 | PORT_DIPSETTING( 0x00400000, "400K" ) | |
| 628 | PORT_DIPSETTING( 0x00000000, "600K" ) | |
| 629 | PORT_SERVICE( 0x00800000, IP_ACTIVE_LOW ) | |
| 630 | PORT_DIPNAME( 0x01000000, 0x01000000, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 631 | PORT_DIPSETTING( 0x01000000, "A+B/A&B" ) | |
| 632 | PORT_DIPSETTING( 0x00000000, "A&B/A [Free Play]" ) | |
| 633 | PORT_DIPNAME( 0x0e000000, 0x0e000000, DEF_STR( Coin_A ) ) | |
| 634 | PORT_DIPSETTING( 0x0a000000, DEF_STR( 3C_1C ) ) | |
| 635 | PORT_DIPSETTING( 0x0c000000, DEF_STR( 2C_1C ) ) | |
| 636 | PORT_DIPSETTING( 0x0e000000, DEF_STR( 1C_1C ) ) | |
| 637 | PORT_DIPSETTING( 0x08000000, DEF_STR( 1C_2C ) ) | |
| 638 | PORT_DIPSETTING( 0x06000000, DEF_STR( 1C_3C ) ) | |
| 639 | PORT_DIPSETTING( 0x04000000, DEF_STR( 1C_4C ) ) | |
| 640 | PORT_DIPSETTING( 0x02000000, DEF_STR( 1C_5C ) ) | |
| 641 | PORT_DIPSETTING( 0x00000000, "1C 6C [Free Play]" ) | |
| 642 | PORT_DIPNAME( 0x70000000, 0x70000000, DEF_STR( Coin_B ) ) | |
| 643 | PORT_DIPSETTING( 0x50000000, DEF_STR( 3C_1C ) ) | |
| 644 | PORT_DIPSETTING( 0x60000000, DEF_STR( 2C_1C ) ) | |
| 645 | PORT_DIPSETTING( 0x70000000, DEF_STR( 1C_1C ) ) | |
| 646 | PORT_DIPSETTING( 0x40000000, DEF_STR( 1C_2C ) ) | |
| 647 | PORT_DIPSETTING( 0x30000000, DEF_STR( 1C_3C ) ) | |
| 648 | PORT_DIPSETTING( 0x20000000, DEF_STR( 1C_4C ) ) | |
| 649 | PORT_DIPSETTING( 0x10000000, DEF_STR( 1C_5C ) ) | |
| 650 | PORT_DIPSETTING( 0x00000000, "1C 6C [Free Play]" ) | |
| 651 | PORT_DIPNAME( 0x80000000, 0x80000000, "2C Start, 1C Continue" ) | |
| 652 | PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) | |
| 653 | PORT_DIPSETTING( 0x00000000, "On [Free Play]" ) // Forces 1C_1C | |
| 660 | 654 | INPUT_PORTS_END |
| 661 | 655 | |
| 662 | 656 | static INPUT_PORTS_START( sngkace ) |
| 657 | PORT_INCLUDE( samuraia ) | |
| 663 | 658 | |
| 664 | PORT_START("IN0") // IN0 - c00000&1 | |
| 665 | PSIKYO_PORT_PLAYER2 | |
| 666 | ||
| 667 | PSIKYO_PORT_PLAYER1 | |
| 668 | ||
| 669 | PORT_START("COIN") // IN1 - c00008&9 | |
| 670 | PSIKYO_PORT_COIN | |
| 671 | ||
| 672 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 673 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 674 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 675 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 676 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 677 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 678 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 679 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 680 | ||
| 681 | PORT_START("DSW1") // IN2 - c00004&5 | |
| 682 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 683 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 684 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 685 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 686 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 687 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 688 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 689 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 690 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 691 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 692 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 693 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 694 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 695 | PORT_DIPSETTING( 0x0010, "2" ) | |
| 696 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 697 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 698 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 699 | PORT_DIPSETTING( 0x0040, "400K" ) | |
| 700 | PORT_DIPSETTING( 0x0000, "600K" ) | |
| 701 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 702 | ||
| 703 | PORT_DIPNAME( 0x0100, 0x0100, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 704 | PORT_DIPSETTING( 0x0100, "A+B/A&B" ) | |
| 705 | PORT_DIPSETTING( 0x0000, "A&B/A [Free Play]" ) | |
| 706 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Coin_A ) ) | |
| 707 | PORT_DIPSETTING( 0x0a00, DEF_STR( 3C_1C ) ) | |
| 708 | PORT_DIPSETTING( 0x0c00, DEF_STR( 2C_1C ) ) | |
| 709 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_1C ) ) | |
| 710 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_2C ) ) | |
| 711 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_3C ) ) | |
| 712 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 713 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_5C ) ) | |
| 714 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 715 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coin_B ) ) | |
| 716 | PORT_DIPSETTING( 0x5000, DEF_STR( 3C_1C ) ) | |
| 717 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 718 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 719 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_2C ) ) | |
| 720 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_3C ) ) | |
| 721 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 722 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_5C ) ) | |
| 723 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 724 | PORT_DIPNAME( 0x8000, 0x8000, "2C Start, 1C Continue" ) | |
| 725 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 726 | PORT_DIPSETTING( 0x0000, "On [Free Play]" ) // Forces 1C_1C | |
| 727 | ||
| 728 | PORT_START("DSW2") // IN3 - c00002&3 | |
| 729 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 730 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 731 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 732 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 733 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 734 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 735 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 736 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 737 | ||
| 738 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 739 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 740 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 741 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 742 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 743 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 744 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 745 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 746 | ||
| 747 | PORT_START("DSW3") // IN4 - c00006&7 | |
| 748 | ||
| 659 | PORT_MODIFY("DSW") /* c00004 -> c00007 */ | |
| 749 | 660 | /*********************************************** |
| 750 | 661 | |
| 751 | 662 | This Dip port is bit based: |
| r3115 | r3116 | |
| 759 | 670 | 1 1 1 0 Taiwan |
| 760 | 671 | |
| 761 | 672 | ************************************************/ |
| 762 | ||
| 763 | 673 | #if 0 // See Patch in MACHINE_RESET, only text not logo |
| 764 | PORT_DIPNAME( 0x00ff, 0x00ff, "Country" ) | |
| 765 | PORT_DIPSETTING( 0x00ff, DEF_STR( Japan ) ) | |
| 766 | PORT_DIPSETTING( 0x00ef, "USA & Canada" ) | |
| 767 | PORT_DIPSETTING( 0x00df, "Korea" ) | |
| 768 | PORT_DIPSETTING( 0x00bf, "Hong Kong" ) | |
| 769 | PORT_DIPSETTING( 0x007f, "Taiwan" ) | |
| 674 | PORT_DIPNAME( 0x000000ff, 0x000000ff, "Country" ) | |
| 675 | PORT_DIPSETTING( 0x000000ff, DEF_STR( Japan ) ) | |
| 676 | PORT_DIPSETTING( 0x000000ef, "USA & Canada" ) | |
| 677 | PORT_DIPSETTING( 0x000000df, "Korea" ) | |
| 678 | PORT_DIPSETTING( 0x000000bf, "Hong Kong" ) | |
| 679 | PORT_DIPSETTING( 0x0000007f, "Taiwan" ) | |
| 770 | 680 | #endif |
| 771 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 772 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 773 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 774 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 775 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 776 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 777 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 778 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 779 | ||
| 681 | PORT_BIT( 0x000000ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 780 | 682 | INPUT_PORTS_END |
| 781 | 683 | |
| 782 | 684 | |
| r3115 | r3116 | |
| 785 | 687 | ***************************************************************************/ |
| 786 | 688 | |
| 787 | 689 | static INPUT_PORTS_START( btlkroad ) |
| 788 | ||
| 789 | PORT_START("IN0") // IN0 - c00000&1 | |
| 690 | PORT_START("P1_P2") /* c00000 -> c00003 */ | |
| 691 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 692 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 693 | PORT_BIT( 0x00000004, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 694 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 695 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 696 | PORT_SERVICE_NO_TOGGLE( 0x00000020, IP_ACTIVE_LOW ) | |
| 697 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_TILT ) | |
| 698 | PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(z80_nmi_r, NULL) // From Sound CPU | |
| 699 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 700 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 701 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 702 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 703 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 704 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) | |
| 705 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) | |
| 706 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 790 | 707 | PSIKYO_PORT_PLAYER2 |
| 791 | ||
| 792 | 708 | PSIKYO_PORT_PLAYER1 |
| 793 | 709 | |
| 794 | PORT_START("COIN") // IN1 - c00002&3 | |
| 795 | PSIKYO_PORT_COIN | |
| 796 | ||
| 797 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 798 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 799 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 800 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 801 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 802 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) | |
| 803 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) | |
| 804 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 805 | ||
| 806 | PORT_START("DSW1") // IN2 - c00004&5 | |
| 807 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 808 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 809 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 810 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 811 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 812 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 813 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 814 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 815 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 816 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 817 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 818 | PORT_DIPNAME( 0x0010, 0x0010, "Unknown 2-4" ) // used | |
| 819 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 820 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 821 | PORT_DIPNAME( 0x0020, 0x0020, "Unknown 2-5" ) // used (energy lost?) | |
| 822 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 823 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 824 | PORT_DIPNAME( 0x0040, 0x0040, "Use DSW 3 (Debug)" ) | |
| 825 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 826 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 827 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 828 | ||
| 829 | PORT_DIPNAME( 0x0100, 0x0100, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 830 | PORT_DIPSETTING( 0x0100, "A+B/A&B" ) | |
| 831 | PORT_DIPSETTING( 0x0000, "A&B/A [Free Play]" ) | |
| 832 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Coin_A ) ) | |
| 833 | PORT_DIPSETTING( 0x0a00, DEF_STR( 3C_1C ) ) | |
| 834 | PORT_DIPSETTING( 0x0c00, DEF_STR( 2C_1C ) ) | |
| 835 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_1C ) ) | |
| 836 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_2C ) ) | |
| 837 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_3C ) ) | |
| 838 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 839 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_5C ) ) | |
| 840 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 841 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coin_B ) ) | |
| 842 | PORT_DIPSETTING( 0x5000, DEF_STR( 3C_1C ) ) | |
| 843 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 844 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 845 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_2C ) ) | |
| 846 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_3C ) ) | |
| 847 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 848 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_5C ) ) | |
| 849 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 850 | PORT_DIPNAME( 0x8000, 0x8000, "2C Start, 1C Continue" ) | |
| 851 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 852 | PORT_DIPSETTING( 0x0000, "On [Free Play]" ) // Forces 1C_1C | |
| 853 | ||
| 710 | PORT_START("DSW") /* c00004 -> c00007 */ | |
| 854 | 711 | /*********************************************** |
| 855 | 712 | |
| 856 | 713 | Bit 0 1 2 3 |
| r3115 | r3116 | |
| 863 | 720 | Other World |
| 864 | 721 | |
| 865 | 722 | ************************************************/ |
| 866 | ||
| 867 | PORT_START("DSW2") // IN3 - c00006&7 | |
| 868 | PORT_DIPNAME( 0x000f, 0x0000, "Copyright (Country)" ) | |
| 869 | PORT_DIPSETTING( 0x000f, "Psikyo (Japan)" ) | |
| 870 | PORT_DIPSETTING( 0x000e, "Jaleco+Psikyo (USA & Canada)" ) | |
| 871 | PORT_DIPSETTING( 0x000c, "Psikyo (Korea)" ) | |
| 872 | PORT_DIPSETTING( 0x000a, "Psikyo (Hong Kong)" ) | |
| 873 | PORT_DIPSETTING( 0x0006, "Psikyo (Taiwan)" ) | |
| 874 | PORT_DIPSETTING( 0x0000, "Psikyo (World)" ) | |
| 875 | ||
| 876 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 877 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 878 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 879 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_VBLANK ) // vblank ACTIVE_HIGH fixes slowdowns, but is it right? | |
| 880 | ||
| 723 | PORT_DIPNAME( 0x0000000f, 0x00000000, "Copyright (Country)" ) | |
| 724 | PORT_DIPSETTING( 0x0000000f, "Psikyo (Japan)" ) | |
| 725 | PORT_DIPSETTING( 0x0000000e, "Jaleco+Psikyo (USA & Canada)" ) | |
| 726 | PORT_DIPSETTING( 0x0000000c, "Psikyo (Korea)" ) | |
| 727 | PORT_DIPSETTING( 0x0000000a, "Psikyo (Hong Kong)" ) | |
| 728 | PORT_DIPSETTING( 0x00000006, "Psikyo (Taiwan)" ) | |
| 729 | PORT_DIPSETTING( 0x00000000, "Psikyo (World)" ) | |
| 730 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 731 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 732 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 733 | PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_VBLANK ) // vblank ACTIVE_HIGH fixes slowdowns, but is it right? | |
| 881 | 734 | // This DSW is used for debugging the game |
| 882 | PORT_DIPNAME( 0x0100, 0x0100, "Unknown 3-0" ) // tested! | |
| 883 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 884 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 885 | PORT_DIPNAME( 0x0200, 0x0200, "Unknown 3-1" ) // tested! | |
| 886 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 887 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 888 | PORT_DIPNAME( 0x0400, 0x0400, "Unknown 3-2" ) | |
| 889 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 890 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 891 | PORT_DIPNAME( 0x0800, 0x0800, "Unknown 3-3" ) | |
| 892 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 893 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 894 | PORT_DIPNAME( 0x1000, 0x1000, "Unknown 3-4" ) // tested! | |
| 895 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 896 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 897 | PORT_DIPNAME( 0x2000, 0x2000, "Unknown 3-5" ) | |
| 898 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 899 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 900 | PORT_DIPNAME( 0x4000, 0x4000, "Unknown 3-6" ) | |
| 901 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 902 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 903 | PORT_DIPNAME( 0x8000, 0x8000, "Unknown 3-7" ) // tested! | |
| 904 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 905 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 735 | PORT_DIPNAME( 0x00000100, 0x00000100, "Unknown 3-0" ) // tested! | |
| 736 | PORT_DIPSETTING( 0x00000100, DEF_STR( Off ) ) | |
| 737 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 738 | PORT_DIPNAME( 0x00000200, 0x00000200, "Unknown 3-1" ) // tested! | |
| 739 | PORT_DIPSETTING( 0x00000200, DEF_STR( Off ) ) | |
| 740 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 741 | PORT_DIPNAME( 0x00000400, 0x00000400, "Unknown 3-2" ) | |
| 742 | PORT_DIPSETTING( 0x00000400, DEF_STR( Off ) ) | |
| 743 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 744 | PORT_DIPNAME( 0x00000800, 0x00000800, "Unknown 3-3" ) | |
| 745 | PORT_DIPSETTING( 0x00000800, DEF_STR( Off ) ) | |
| 746 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 747 | PORT_DIPNAME( 0x00001000, 0x00001000, "Unknown 3-4" ) // tested! | |
| 748 | PORT_DIPSETTING( 0x00001000, DEF_STR( Off ) ) | |
| 749 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 750 | PORT_DIPNAME( 0x00002000, 0x00002000, "Unknown 3-5" ) | |
| 751 | PORT_DIPSETTING( 0x00002000, DEF_STR( Off ) ) | |
| 752 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 753 | PORT_DIPNAME( 0x00004000, 0x00004000, "Unknown 3-6" ) | |
| 754 | PORT_DIPSETTING( 0x00004000, DEF_STR( Off ) ) | |
| 755 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 756 | PORT_DIPNAME( 0x00008000, 0x00008000, "Unknown 3-7" ) // tested! | |
| 757 | PORT_DIPSETTING( 0x00008000, DEF_STR( Off ) ) | |
| 758 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 906 | 759 | |
| 760 | PORT_DIPNAME( 0x00010000, 0x00010000, DEF_STR( Flip_Screen ) ) | |
| 761 | PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) | |
| 762 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 763 | PORT_DIPNAME( 0x00020000, 0x00000000, DEF_STR( Demo_Sounds ) ) | |
| 764 | PORT_DIPSETTING( 0x00020000, DEF_STR( Off ) ) | |
| 765 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 766 | PORT_DIPNAME( 0x000c0000, 0x000c0000, DEF_STR( Difficulty ) ) | |
| 767 | PORT_DIPSETTING( 0x00080000, DEF_STR( Easy ) ) | |
| 768 | PORT_DIPSETTING( 0x000c0000, DEF_STR( Normal ) ) | |
| 769 | PORT_DIPSETTING( 0x00040000, DEF_STR( Hard ) ) | |
| 770 | PORT_DIPSETTING( 0x00000000, DEF_STR( Hardest ) ) | |
| 771 | PORT_DIPNAME( 0x00100000, 0x00100000, "Unknown 2-4" ) // used | |
| 772 | PORT_DIPSETTING( 0x00100000, DEF_STR( Off ) ) | |
| 773 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 774 | PORT_DIPNAME( 0x00200000, 0x00200000, "Unknown 2-5" ) // used (energy lost?) | |
| 775 | PORT_DIPSETTING( 0x00200000, DEF_STR( Off ) ) | |
| 776 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 777 | PORT_DIPNAME( 0x00400000, 0x00400000, "Use DSW 3 (Debug)" ) | |
| 778 | PORT_DIPSETTING( 0x00400000, DEF_STR( Off ) ) | |
| 779 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 780 | PORT_SERVICE( 0x00800000, IP_ACTIVE_LOW ) | |
| 781 | PORT_DIPNAME( 0x01000000, 0x01000000, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 782 | PORT_DIPSETTING( 0x01000000, "A+B/A&B" ) | |
| 783 | PORT_DIPSETTING( 0x00000000, "A&B/A [Free Play]" ) | |
| 784 | PORT_DIPNAME( 0x0e000000, 0x0e000000, DEF_STR( Coin_A ) ) | |
| 785 | PORT_DIPSETTING( 0x0a000000, DEF_STR( 3C_1C ) ) | |
| 786 | PORT_DIPSETTING( 0x0c000000, DEF_STR( 2C_1C ) ) | |
| 787 | PORT_DIPSETTING( 0x0e000000, DEF_STR( 1C_1C ) ) | |
| 788 | PORT_DIPSETTING( 0x08000000, DEF_STR( 1C_2C ) ) | |
| 789 | PORT_DIPSETTING( 0x06000000, DEF_STR( 1C_3C ) ) | |
| 790 | PORT_DIPSETTING( 0x04000000, DEF_STR( 1C_4C ) ) | |
| 791 | PORT_DIPSETTING( 0x02000000, DEF_STR( 1C_5C ) ) | |
| 792 | PORT_DIPSETTING( 0x00000000, "1C 6C [Free Play]" ) | |
| 793 | PORT_DIPNAME( 0x70000000, 0x70000000, DEF_STR( Coin_B ) ) | |
| 794 | PORT_DIPSETTING( 0x50000000, DEF_STR( 3C_1C ) ) | |
| 795 | PORT_DIPSETTING( 0x60000000, DEF_STR( 2C_1C ) ) | |
| 796 | PORT_DIPSETTING( 0x70000000, DEF_STR( 1C_1C ) ) | |
| 797 | PORT_DIPSETTING( 0x40000000, DEF_STR( 1C_2C ) ) | |
| 798 | PORT_DIPSETTING( 0x30000000, DEF_STR( 1C_3C ) ) | |
| 799 | PORT_DIPSETTING( 0x20000000, DEF_STR( 1C_4C ) ) | |
| 800 | PORT_DIPSETTING( 0x10000000, DEF_STR( 1C_5C ) ) | |
| 801 | PORT_DIPSETTING( 0x00000000, "1C 6C [Free Play]" ) | |
| 802 | PORT_DIPNAME( 0x80000000, 0x80000000, "2C Start, 1C Continue" ) | |
| 803 | PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) | |
| 804 | PORT_DIPSETTING( 0x00000000, "On [Free Play]" ) // Forces 1C_1C | |
| 907 | 805 | INPUT_PORTS_END |
| 908 | 806 | |
| 909 | 807 | |
| r3115 | r3116 | |
| 912 | 810 | ***************************************************************************/ |
| 913 | 811 | |
| 914 | 812 | static INPUT_PORTS_START( gunbird ) |
| 915 | ||
| 916 | PORT_START("IN0") // IN0 - c00000&1 | |
| 813 | PORT_START("P1_P2") /* c00000 -> c00003 */ | |
| 814 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 815 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 816 | PORT_BIT( 0x00000004, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 817 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 818 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 819 | PORT_SERVICE_NO_TOGGLE( 0x00000020, IP_ACTIVE_LOW ) | |
| 820 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_TILT ) | |
| 821 | PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(z80_nmi_r, NULL) // From Sound CPU | |
| 822 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 823 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 824 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 825 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 826 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 827 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 828 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 829 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 917 | 830 | PSIKYO_PORT_PLAYER2 |
| 918 | ||
| 919 | 831 | PSIKYO_PORT_PLAYER1 |
| 920 | 832 | |
| 921 | PORT_START("COIN") // IN1 - c00002&3 | |
| 922 | PSIKYO_PORT_COIN | |
| 923 | ||
| 924 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 925 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 926 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 927 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 928 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 929 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 930 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 931 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 932 | ||
| 933 | PORT_START("DSW1") // IN2 - c00004&5 | |
| 934 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 935 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 936 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 937 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 938 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 939 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 940 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 941 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 942 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 943 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 944 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 945 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 946 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 947 | PORT_DIPSETTING( 0x0010, "2" ) | |
| 948 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 949 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 950 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 951 | PORT_DIPSETTING( 0x0040, "400K" ) | |
| 952 | PORT_DIPSETTING( 0x0000, "600K" ) | |
| 953 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 954 | ||
| 955 | PORT_DIPNAME( 0x0100, 0x0100, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 956 | PORT_DIPSETTING( 0x0100, "A+B/A&B" ) | |
| 957 | PORT_DIPSETTING( 0x0000, "A&B/A [Free Play]" ) | |
| 958 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Coin_A ) ) | |
| 959 | PORT_DIPSETTING( 0x0a00, DEF_STR( 3C_1C ) ) | |
| 960 | PORT_DIPSETTING( 0x0c00, DEF_STR( 2C_1C ) ) | |
| 961 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_1C ) ) | |
| 962 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_2C ) ) | |
| 963 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_3C ) ) | |
| 964 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 965 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_5C ) ) | |
| 966 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 967 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coin_B ) ) | |
| 968 | PORT_DIPSETTING( 0x5000, DEF_STR( 3C_1C ) ) | |
| 969 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 970 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 971 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_2C ) ) | |
| 972 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_3C ) ) | |
| 973 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 974 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_5C ) ) | |
| 975 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 976 | PORT_DIPNAME( 0x8000, 0x8000, "2C Start, 1C Continue" ) | |
| 977 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 978 | PORT_DIPSETTING( 0x0000, "On [Free Play]" ) // Forces 1C_1C | |
| 979 | ||
| 980 | PORT_START("DSW2") // IN3 - c00006&7 | |
| 981 | ||
| 833 | PORT_START("DSW") /* c00004 -> c00007 */ | |
| 982 | 834 | /*********************************************** |
| 983 | 835 | |
| 984 | 836 | This Dip port is bit based: |
| r3115 | r3116 | |
| 998 | 850 | Has no effects on Japan or Korea versions. |
| 999 | 851 | |
| 1000 | 852 | ************************************************/ |
| 853 | PORT_DIPNAME( 0x0000000f, 0x0000000f, "Country" ) | |
| 854 | PORT_DIPSETTING( 0x0000000f, DEF_STR( World ) ) | |
| 855 | PORT_DIPSETTING( 0x0000000e, DEF_STR( USA ) ) | |
| 856 | PORT_DIPSETTING( 0x0000000d, "Korea" ) | |
| 857 | PORT_DIPSETTING( 0x0000000b, "Hong Kong" ) | |
| 858 | PORT_DIPSETTING( 0x00000007, "Taiwan" ) | |
| 859 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 860 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 861 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 862 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 863 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 864 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 865 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 866 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 867 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 868 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 869 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 870 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1001 | 871 | |
| 1002 | PORT_DIPNAME( 0x000f, 0x000f, "Country" ) | |
| 1003 | PORT_DIPSETTING( 0x000f, DEF_STR( World ) ) | |
| 1004 | PORT_DIPSETTING( 0x000e, DEF_STR( USA ) ) | |
| 1005 | PORT_DIPSETTING( 0x000d, "Korea" ) | |
| 1006 | PORT_DIPSETTING( 0x000b, "Hong Kong" ) | |
| 1007 | PORT_DIPSETTING( 0x0007, "Taiwan" ) | |
| 1008 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1009 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1010 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1011 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 1012 | ||
| 1013 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1014 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1015 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1016 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1017 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1018 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1019 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1020 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1021 | ||
| 872 | PORT_DIPNAME( 0x00010000, 0x00010000, DEF_STR( Flip_Screen ) ) | |
| 873 | PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) | |
| 874 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 875 | PORT_DIPNAME( 0x00020000, 0x00000000, DEF_STR( Demo_Sounds ) ) | |
| 876 | PORT_DIPSETTING( 0x00020000, DEF_STR( Off ) ) | |
| 877 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 878 | PORT_DIPNAME( 0x000c0000, 0x000c0000, DEF_STR( Difficulty ) ) | |
| 879 | PORT_DIPSETTING( 0x00080000, DEF_STR( Easy ) ) | |
| 880 | PORT_DIPSETTING( 0x000c0000, DEF_STR( Normal ) ) | |
| 881 | PORT_DIPSETTING( 0x00040000, DEF_STR( Hard ) ) | |
| 882 | PORT_DIPSETTING( 0x00000000, DEF_STR( Hardest ) ) | |
| 883 | PORT_DIPNAME( 0x00300000, 0x00300000, DEF_STR( Lives ) ) | |
| 884 | PORT_DIPSETTING( 0x00200000, "1" ) | |
| 885 | PORT_DIPSETTING( 0x00100000, "2" ) | |
| 886 | PORT_DIPSETTING( 0x00300000, "3" ) | |
| 887 | PORT_DIPSETTING( 0x00000000, "4" ) | |
| 888 | PORT_DIPNAME( 0x00400000, 0x00400000, DEF_STR( Bonus_Life ) ) | |
| 889 | PORT_DIPSETTING( 0x00400000, "400K" ) | |
| 890 | PORT_DIPSETTING( 0x00000000, "600K" ) | |
| 891 | PORT_SERVICE( 0x00800000, IP_ACTIVE_LOW ) | |
| 892 | PORT_DIPNAME( 0x01000000, 0x01000000, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 893 | PORT_DIPSETTING( 0x01000000, "A+B/A&B" ) | |
| 894 | PORT_DIPSETTING( 0x00000000, "A&B/A [Free Play]" ) | |
| 895 | PORT_DIPNAME( 0x0e000000, 0x0e000000, DEF_STR( Coin_A ) ) | |
| 896 | PORT_DIPSETTING( 0x0a000000, DEF_STR( 3C_1C ) ) | |
| 897 | PORT_DIPSETTING( 0x0c000000, DEF_STR( 2C_1C ) ) | |
| 898 | PORT_DIPSETTING( 0x0e000000, DEF_STR( 1C_1C ) ) | |
| 899 | PORT_DIPSETTING( 0x08000000, DEF_STR( 1C_2C ) ) | |
| 900 | PORT_DIPSETTING( 0x06000000, DEF_STR( 1C_3C ) ) | |
| 901 | PORT_DIPSETTING( 0x04000000, DEF_STR( 1C_4C ) ) | |
| 902 | PORT_DIPSETTING( 0x02000000, DEF_STR( 1C_5C ) ) | |
| 903 | PORT_DIPSETTING( 0x00000000, "1C 6C [Free Play]" ) | |
| 904 | PORT_DIPNAME( 0x70000000, 0x70000000, DEF_STR( Coin_B ) ) | |
| 905 | PORT_DIPSETTING( 0x50000000, DEF_STR( 3C_1C ) ) | |
| 906 | PORT_DIPSETTING( 0x60000000, DEF_STR( 2C_1C ) ) | |
| 907 | PORT_DIPSETTING( 0x70000000, DEF_STR( 1C_1C ) ) | |
| 908 | PORT_DIPSETTING( 0x40000000, DEF_STR( 1C_2C ) ) | |
| 909 | PORT_DIPSETTING( 0x30000000, DEF_STR( 1C_3C ) ) | |
| 910 | PORT_DIPSETTING( 0x20000000, DEF_STR( 1C_4C ) ) | |
| 911 | PORT_DIPSETTING( 0x10000000, DEF_STR( 1C_5C ) ) | |
| 912 | PORT_DIPSETTING( 0x00000000, "1C 6C [Free Play]" ) | |
| 913 | PORT_DIPNAME( 0x80000000, 0x80000000, "2C Start, 1C Continue" ) | |
| 914 | PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) | |
| 915 | PORT_DIPSETTING( 0x00000000, "On [Free Play]" ) // Forces 1C_1C | |
| 1022 | 916 | INPUT_PORTS_END |
| 1023 | 917 | |
| 1024 | 918 | static INPUT_PORTS_START( gunbirdj ) |
| 919 | PORT_INCLUDE( gunbird ) | |
| 1025 | 920 | |
| 1026 | PORT_START("IN0") // IN0 - c00000&1 | |
| 1027 | PSIKYO_PORT_PLAYER2 | |
| 1028 | ||
| 1029 | PSIKYO_PORT_PLAYER1 | |
| 1030 | ||
| 1031 | PORT_START("COIN") // IN1 - c00002&3 | |
| 1032 | PSIKYO_PORT_COIN | |
| 1033 | ||
| 1034 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1035 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1036 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1037 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1038 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1039 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1040 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1041 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1042 | ||
| 1043 | PORT_START("DSW1") // IN2 - c00004&5 | |
| 1044 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1045 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1046 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1047 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1048 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1049 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1050 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1051 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 1052 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 1053 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 1054 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1055 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 1056 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 1057 | PORT_DIPSETTING( 0x0010, "2" ) | |
| 1058 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 1059 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 1060 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 1061 | PORT_DIPSETTING( 0x0040, "400K" ) | |
| 1062 | PORT_DIPSETTING( 0x0000, "600K" ) | |
| 1063 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1064 | ||
| 1065 | PORT_DIPNAME( 0x0100, 0x0100, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 1066 | PORT_DIPSETTING( 0x0100, "A+B/A&B" ) | |
| 1067 | PORT_DIPSETTING( 0x0000, "A&B/A [Free Play]" ) | |
| 1068 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Coin_A ) ) | |
| 1069 | PORT_DIPSETTING( 0x0a00, DEF_STR( 3C_1C ) ) | |
| 1070 | PORT_DIPSETTING( 0x0c00, DEF_STR( 2C_1C ) ) | |
| 1071 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_1C ) ) | |
| 1072 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_2C ) ) | |
| 1073 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_3C ) ) | |
| 1074 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 1075 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_5C ) ) | |
| 1076 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 1077 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coin_B ) ) | |
| 1078 | PORT_DIPSETTING( 0x5000, DEF_STR( 3C_1C ) ) | |
| 1079 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 1080 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 1081 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_2C ) ) | |
| 1082 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_3C ) ) | |
| 1083 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 1084 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_5C ) ) | |
| 1085 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 1086 | PORT_DIPNAME( 0x8000, 0x8000, "2C Start, 1C Continue" ) | |
| 1087 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1088 | PORT_DIPSETTING( 0x0000, "On [Free Play]" ) // Forces 1C_1C | |
| 1089 | ||
| 1090 | PORT_START("DSW2") // IN3 - c00006&7 | |
| 1091 | ||
| 1092 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1093 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1094 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1095 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1096 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1097 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1098 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1099 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 1100 | ||
| 1101 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1102 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1103 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1104 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1105 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1106 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1107 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1108 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1109 | ||
| 921 | PORT_MODIFY("DSW") /* c00004 -> c00007 */ | |
| 922 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 923 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 924 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 925 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 926 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 927 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 928 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 929 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 930 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 931 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 932 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 933 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 934 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 935 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 936 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 937 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1110 | 938 | INPUT_PORTS_END |
| 1111 | 939 | |
| 1112 | 940 | |
| r3115 | r3116 | |
| 1115 | 943 | ***************************************************************************/ |
| 1116 | 944 | |
| 1117 | 945 | static INPUT_PORTS_START( s1945 ) |
| 1118 | ||
| 1119 | PORT_START("IN0") // IN0 - c00000&1 | |
| 946 | PORT_START("P1_P2") /* c00000 -> c00003 */ | |
| 947 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 948 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 949 | PORT_BIT( 0x00000004, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(mcu_status_r, NULL) | |
| 950 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 951 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 952 | PORT_SERVICE_NO_TOGGLE( 0x00000020, IP_ACTIVE_LOW ) | |
| 953 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_TILT ) | |
| 954 | PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(z80_nmi_r, NULL) // From Sound CPU | |
| 955 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 956 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 957 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 958 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 959 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 960 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 961 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 962 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1120 | 963 | PSIKYO_PORT_PLAYER2 |
| 1121 | ||
| 1122 | 964 | PSIKYO_PORT_PLAYER1 |
| 1123 | 965 | |
| 1124 | PORT_START("COIN") // IN1 - c00002&3 | |
| 1125 | PSIKYO_PORT_COIN | |
| 1126 | ||
| 1127 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1128 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1129 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1130 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1131 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1132 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1133 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1134 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1135 | ||
| 1136 | PORT_START("DSW1") // IN2 - c00004&5 | |
| 1137 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1138 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1139 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1140 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1141 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1142 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1143 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1144 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 1145 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 1146 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 1147 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1148 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 1149 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 1150 | PORT_DIPSETTING( 0x0010, "2" ) | |
| 1151 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 1152 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 1153 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 1154 | PORT_DIPSETTING( 0x0040, "600K" ) | |
| 1155 | PORT_DIPSETTING( 0x0000, "800K" ) | |
| 1156 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1157 | ||
| 1158 | PORT_DIPNAME( 0x0100, 0x0100, "Credits/Coinage" ) // No freeplay for s1945 | |
| 1159 | PORT_DIPSETTING( 0x0100, "A+B/A&B" ) | |
| 1160 | PORT_DIPSETTING( 0x0000, "A&B/A" ) | |
| 1161 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Coin_A ) ) | |
| 1162 | PORT_DIPSETTING( 0x0a00, DEF_STR( 3C_1C ) ) | |
| 1163 | PORT_DIPSETTING( 0x0c00, DEF_STR( 2C_1C ) ) | |
| 1164 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_1C ) ) | |
| 1165 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_2C ) ) | |
| 1166 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_3C ) ) | |
| 1167 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 1168 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_5C ) ) | |
| 1169 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) | |
| 1170 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coin_B ) ) | |
| 1171 | PORT_DIPSETTING( 0x5000, DEF_STR( 3C_1C ) ) | |
| 1172 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 1173 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 1174 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_2C ) ) | |
| 1175 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_3C ) ) | |
| 1176 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 1177 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_5C ) ) | |
| 1178 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) | |
| 1179 | PORT_DIPNAME( 0x8000, 0x8000, "2C Start, 1C Continue" ) | |
| 1180 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1181 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) // Forces 1C_1C | |
| 1182 | ||
| 1183 | PORT_START("DSW2") // IN3 - c00006&7 | |
| 1184 | ||
| 966 | PORT_START("DSW") /* c00004 -> c00007 */ | |
| 1185 | 967 | /*********************************************** |
| 1186 | 968 | |
| 1187 | 969 | This Dip port is bit based: |
| r3115 | r3116 | |
| 1202 | 984 | No effect on set s1945j or s1945k |
| 1203 | 985 | |
| 1204 | 986 | ************************************************/ |
| 987 | PORT_DIPNAME( 0x0000000f, 0x0000000f, "Country" ) | |
| 988 | PORT_DIPSETTING( 0x0000000f, DEF_STR( World ) ) | |
| 989 | PORT_DIPSETTING( 0x0000000e, "U.S.A & Canada" ) | |
| 990 | PORT_DIPSETTING( 0x0000000d, "Korea" ) | |
| 991 | PORT_DIPSETTING( 0x0000000b, "Hong Kong" ) | |
| 992 | PORT_DIPSETTING( 0x00000007, "Taiwan" ) | |
| 993 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 994 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 995 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 996 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 997 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 998 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 999 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1000 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1001 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1002 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1003 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1004 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1205 | 1005 | |
| 1206 | PORT_DIPNAME( 0x000f, 0x000f, "Country" ) | |
| 1207 | PORT_DIPSETTING( 0x000f, DEF_STR( World ) ) | |
| 1208 | PORT_DIPSETTING( 0x000e, "U.S.A & Canada" ) | |
| 1209 | PORT_DIPSETTING( 0x000d, "Korea" ) | |
| 1210 | PORT_DIPSETTING( 0x000b, "Hong Kong" ) | |
| 1211 | PORT_DIPSETTING( 0x0007, "Taiwan" ) | |
| 1212 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1213 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1214 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1215 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 1216 | ||
| 1217 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1218 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1219 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1220 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1221 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1222 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1223 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1224 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1225 | ||
| 1006 | PORT_DIPNAME( 0x00010000, 0x00010000, DEF_STR( Flip_Screen ) ) | |
| 1007 | PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) | |
| 1008 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 1009 | PORT_DIPNAME( 0x00020000, 0x00000000, DEF_STR( Demo_Sounds ) ) | |
| 1010 | PORT_DIPSETTING( 0x00020000, DEF_STR( Off ) ) | |
| 1011 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 1012 | PORT_DIPNAME( 0x000c0000, 0x000c0000, DEF_STR( Difficulty ) ) | |
| 1013 | PORT_DIPSETTING( 0x00080000, DEF_STR( Easy ) ) | |
| 1014 | PORT_DIPSETTING( 0x000c0000, DEF_STR( Normal ) ) | |
| 1015 | PORT_DIPSETTING( 0x00040000, DEF_STR( Hard ) ) | |
| 1016 | PORT_DIPSETTING( 0x00000000, DEF_STR( Hardest ) ) | |
| 1017 | PORT_DIPNAME( 0x00300000, 0x00300000, DEF_STR( Lives ) ) | |
| 1018 | PORT_DIPSETTING( 0x00200000, "1" ) | |
| 1019 | PORT_DIPSETTING( 0x00100000, "2" ) | |
| 1020 | PORT_DIPSETTING( 0x00300000, "3" ) | |
| 1021 | PORT_DIPSETTING( 0x00000000, "4" ) | |
| 1022 | PORT_DIPNAME( 0x00400000, 0x00400000, DEF_STR( Bonus_Life ) ) | |
| 1023 | PORT_DIPSETTING( 0x00400000, "600K" ) | |
| 1024 | PORT_DIPSETTING( 0x00000000, "800K" ) | |
| 1025 | PORT_SERVICE( 0x00800000, IP_ACTIVE_LOW ) | |
| 1026 | PORT_DIPNAME( 0x01000000, 0x01000000, "Credits/Coinage" ) // No freeplay for s1945 | |
| 1027 | PORT_DIPSETTING( 0x01000000, "A+B/A&B" ) | |
| 1028 | PORT_DIPSETTING( 0x00000000, "A&B/A" ) | |
| 1029 | PORT_DIPNAME( 0x0e000000, 0x0e000000, DEF_STR( Coin_A ) ) | |
| 1030 | PORT_DIPSETTING( 0x0a000000, DEF_STR( 3C_1C ) ) | |
| 1031 | PORT_DIPSETTING( 0x0c000000, DEF_STR( 2C_1C ) ) | |
| 1032 | PORT_DIPSETTING( 0x0e000000, DEF_STR( 1C_1C ) ) | |
| 1033 | PORT_DIPSETTING( 0x08000000, DEF_STR( 1C_2C ) ) | |
| 1034 | PORT_DIPSETTING( 0x06000000, DEF_STR( 1C_3C ) ) | |
| 1035 | PORT_DIPSETTING( 0x04000000, DEF_STR( 1C_4C ) ) | |
| 1036 | PORT_DIPSETTING( 0x02000000, DEF_STR( 1C_5C ) ) | |
| 1037 | PORT_DIPSETTING( 0x00000000, DEF_STR( 1C_6C ) ) | |
| 1038 | PORT_DIPNAME( 0x70000000, 0x70000000, DEF_STR( Coin_B ) ) | |
| 1039 | PORT_DIPSETTING( 0x50000000, DEF_STR( 3C_1C ) ) | |
| 1040 | PORT_DIPSETTING( 0x60000000, DEF_STR( 2C_1C ) ) | |
| 1041 | PORT_DIPSETTING( 0x70000000, DEF_STR( 1C_1C ) ) | |
| 1042 | PORT_DIPSETTING( 0x40000000, DEF_STR( 1C_2C ) ) | |
| 1043 | PORT_DIPSETTING( 0x30000000, DEF_STR( 1C_3C ) ) | |
| 1044 | PORT_DIPSETTING( 0x20000000, DEF_STR( 1C_4C ) ) | |
| 1045 | PORT_DIPSETTING( 0x10000000, DEF_STR( 1C_5C ) ) | |
| 1046 | PORT_DIPSETTING( 0x00000000, DEF_STR( 1C_6C ) ) | |
| 1047 | PORT_DIPNAME( 0x80000000, 0x80000000, "2C Start, 1C Continue" ) | |
| 1048 | PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) | |
| 1049 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) // Forces 1C_1C | |
| 1226 | 1050 | INPUT_PORTS_END |
| 1227 | 1051 | |
| 1228 | 1052 | static INPUT_PORTS_START( s1945a ) |
| 1053 | PORT_INCLUDE( s1945 ) | |
| 1229 | 1054 | |
| 1230 | PORT_START("IN0") // IN0 - c00000&1 | |
| 1231 | PSIKYO_PORT_PLAYER2 | |
| 1232 | ||
| 1233 | PSIKYO_PORT_PLAYER1 | |
| 1234 | ||
| 1235 | PORT_START("COIN") // IN1 - c00002&3 | |
| 1236 | PSIKYO_PORT_COIN | |
| 1237 | ||
| 1238 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1239 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1240 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1241 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1242 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1243 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1244 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1245 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1246 | ||
| 1247 | PORT_START("DSW1") // IN2 - c00004&5 | |
| 1248 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1249 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1250 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1251 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1252 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1253 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1254 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1255 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 1256 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 1257 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 1258 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1259 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 1260 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 1261 | PORT_DIPSETTING( 0x0010, "2" ) | |
| 1262 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 1263 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 1264 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 1265 | PORT_DIPSETTING( 0x0040, "600K" ) | |
| 1266 | PORT_DIPSETTING( 0x0000, "800K" ) | |
| 1267 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1268 | ||
| 1269 | PORT_DIPNAME( 0x0100, 0x0100, "Credits/Coinage" ) // No freeplay for s1945 | |
| 1270 | PORT_DIPSETTING( 0x0100, "A+B/A&B" ) | |
| 1271 | PORT_DIPSETTING( 0x0000, "A&B/A" ) | |
| 1272 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Coin_A ) ) | |
| 1273 | PORT_DIPSETTING( 0x0a00, DEF_STR( 3C_1C ) ) | |
| 1274 | PORT_DIPSETTING( 0x0c00, DEF_STR( 2C_1C ) ) | |
| 1275 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_1C ) ) | |
| 1276 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_2C ) ) | |
| 1277 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_3C ) ) | |
| 1278 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 1279 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_5C ) ) | |
| 1280 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) | |
| 1281 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coin_B ) ) | |
| 1282 | PORT_DIPSETTING( 0x5000, DEF_STR( 3C_1C ) ) | |
| 1283 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 1284 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 1285 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_2C ) ) | |
| 1286 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_3C ) ) | |
| 1287 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 1288 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_5C ) ) | |
| 1289 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) | |
| 1290 | PORT_DIPNAME( 0x8000, 0x8000, "2C Start, 1C Continue" ) | |
| 1291 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1292 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) // Forces 1C_1C | |
| 1293 | ||
| 1294 | PORT_START("DSW2") // IN3 - c00006&7 | |
| 1295 | ||
| 1055 | PORT_MODIFY("DSW") | |
| 1296 | 1056 | /*********************************************** |
| 1297 | 1057 | |
| 1298 | 1058 | This Dip port is bit based: |
| r3115 | r3116 | |
| 1300 | 1060 | Bit 0 1 2 3 |
| 1301 | 1061 | 1 1 1 1 Japan, anything but 0x0f = "World" |
| 1302 | 1062 | ************************************************/ |
| 1303 | ||
| 1304 | PORT_DIPNAME( 0x000f, 0x000e, "Country" ) | |
| 1305 | PORT_DIPSETTING( 0x000f, DEF_STR( Japan ) ) | |
| 1306 | PORT_DIPSETTING( 0x000e, DEF_STR( World ) ) | |
| 1307 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1308 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1309 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1310 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 1311 | ||
| 1312 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1313 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1314 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1315 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1316 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1317 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1318 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1319 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1320 | ||
| 1063 | PORT_DIPNAME( 0x0000000f, 0x0000000e, "Country" ) | |
| 1064 | PORT_DIPSETTING( 0x0000000f, DEF_STR( Japan ) ) | |
| 1065 | PORT_DIPSETTING( 0x0000000e, DEF_STR( World ) ) | |
| 1066 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1067 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1068 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1069 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 1070 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1071 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1072 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1073 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1074 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1075 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1076 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1077 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1321 | 1078 | INPUT_PORTS_END |
| 1322 | 1079 | |
| 1323 | 1080 | static INPUT_PORTS_START( s1945j ) |
| 1081 | PORT_INCLUDE( s1945 ) | |
| 1324 | 1082 | |
| 1325 | PORT_START("IN0") // IN0 - c00000&1 | |
| 1326 | PSIKYO_PORT_PLAYER2 | |
| 1327 | ||
| 1328 | PSIKYO_PORT_PLAYER1 | |
| 1329 | ||
| 1330 | PORT_START("COIN") // IN1 - c00002&3 | |
| 1331 | PSIKYO_PORT_COIN | |
| 1332 | ||
| 1333 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1334 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1335 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1336 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1337 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1338 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1339 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1340 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1341 | ||
| 1342 | PORT_START("DSW1") // IN2 - c00004&5 | |
| 1343 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1344 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1345 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1346 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1347 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1348 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1349 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1350 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 1351 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 1352 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 1353 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1354 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 1355 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 1356 | PORT_DIPSETTING( 0x0010, "2" ) | |
| 1357 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 1358 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 1359 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 1360 | PORT_DIPSETTING( 0x0040, "600K" ) | |
| 1361 | PORT_DIPSETTING( 0x0000, "800K" ) | |
| 1362 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1363 | ||
| 1364 | PORT_DIPNAME( 0x0100, 0x0100, "Credits/Coinage" ) // No freeplay for s1945? | |
| 1365 | PORT_DIPSETTING( 0x0100, "A+B/A&B" ) | |
| 1366 | PORT_DIPSETTING( 0x0000, "A&B/A" ) | |
| 1367 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Coin_A ) ) | |
| 1368 | PORT_DIPSETTING( 0x0a00, DEF_STR( 3C_1C ) ) | |
| 1369 | PORT_DIPSETTING( 0x0c00, DEF_STR( 2C_1C ) ) | |
| 1370 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_1C ) ) | |
| 1371 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_2C ) ) | |
| 1372 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_3C ) ) | |
| 1373 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 1374 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_5C ) ) | |
| 1375 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) | |
| 1376 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coin_B ) ) | |
| 1377 | PORT_DIPSETTING( 0x5000, DEF_STR( 3C_1C ) ) | |
| 1378 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 1379 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 1380 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_2C ) ) | |
| 1381 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_3C ) ) | |
| 1382 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 1383 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_5C ) ) | |
| 1384 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) | |
| 1385 | PORT_DIPNAME( 0x8000, 0x8000, "2C Start, 1C Continue" ) | |
| 1386 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1387 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) // Forces 1C_1C | |
| 1388 | ||
| 1389 | PORT_START("DSW2") // IN3 - c00006&7 | |
| 1390 | ||
| 1391 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1392 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1393 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1394 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1395 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1396 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1397 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1398 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 1399 | ||
| 1400 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1401 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1402 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1403 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1404 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1405 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1406 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1407 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1408 | ||
| 1083 | PORT_MODIFY("DSW") | |
| 1084 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1085 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1086 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1087 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1088 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1089 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1090 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1091 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 1092 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1093 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1094 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1095 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1096 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1097 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1098 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1099 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1409 | 1100 | INPUT_PORTS_END |
| 1410 | 1101 | |
| 1411 | 1102 | |
| r3115 | r3116 | |
| 1414 | 1105 | ***************************************************************************/ |
| 1415 | 1106 | |
| 1416 | 1107 | static INPUT_PORTS_START( tengai ) |
| 1417 | ||
| 1418 | PORT_START("IN0") // IN0 - c00000&1 | |
| 1108 | PORT_START("P1_P2") /* c00000 -> c00003 */ | |
| 1109 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1110 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1111 | PORT_BIT( 0x00000004, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(mcu_status_r, NULL) | |
| 1112 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1113 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1114 | PORT_SERVICE_NO_TOGGLE( 0x00000020, IP_ACTIVE_LOW ) | |
| 1115 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_TILT ) | |
| 1116 | PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(z80_nmi_r, NULL) // From Sound CPU | |
| 1117 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1118 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1119 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1120 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1121 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1122 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1123 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1124 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1419 | 1125 | PSIKYO_PORT_PLAYER2 |
| 1420 | ||
| 1421 | 1126 | PSIKYO_PORT_PLAYER1 |
| 1422 | 1127 | |
| 1423 | PORT_START("COIN") // IN1PORT_START_TAG("DSW1") // IN2 - c00002&3 | |
| 1424 | PSIKYO_PORT_COIN | |
| 1425 | ||
| 1426 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1427 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1428 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1429 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1430 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1431 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1432 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1433 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1434 | ||
| 1435 | PORT_START("DSW1") // IN2 - c00004&5 | |
| 1436 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1437 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1438 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1439 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1440 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1441 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1442 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) | |
| 1443 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 1444 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) | |
| 1445 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 1446 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1447 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) | |
| 1448 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 1449 | PORT_DIPSETTING( 0x0010, "2" ) | |
| 1450 | PORT_DIPSETTING( 0x0030, "3" ) | |
| 1451 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 1452 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Bonus_Life ) ) | |
| 1453 | PORT_DIPSETTING( 0x0040, "600K" ) | |
| 1454 | PORT_DIPSETTING( 0x0000, "800K" ) | |
| 1455 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1456 | ||
| 1457 | PORT_DIPNAME( 0x0100, 0x0100, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 1458 | PORT_DIPSETTING( 0x0100, "A+B/A&B" ) | |
| 1459 | PORT_DIPSETTING( 0x0000, "A&B/A [Free Play]" ) | |
| 1460 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Coin_A ) ) | |
| 1461 | PORT_DIPSETTING( 0x0a00, DEF_STR( 3C_1C ) ) | |
| 1462 | PORT_DIPSETTING( 0x0c00, DEF_STR( 2C_1C ) ) | |
| 1463 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_1C ) ) | |
| 1464 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_2C ) ) | |
| 1465 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_3C ) ) | |
| 1466 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 1467 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_5C ) ) | |
| 1468 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 1469 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coin_B ) ) | |
| 1470 | PORT_DIPSETTING( 0x5000, DEF_STR( 3C_1C ) ) | |
| 1471 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 1472 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 1473 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_2C ) ) | |
| 1474 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_3C ) ) | |
| 1475 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) | |
| 1476 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_5C ) ) | |
| 1477 | PORT_DIPSETTING( 0x0000, "1C 6C [Free Play]" ) | |
| 1478 | PORT_DIPNAME( 0x8000, 0x8000, "2C Start, 1C Continue" ) | |
| 1479 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1480 | PORT_DIPSETTING( 0x0000, "On [Free Play]" ) // Forces 1C_1C | |
| 1481 | ||
| 1482 | PORT_START("DSW2") // IN3 - c00006&7 | |
| 1483 | ||
| 1128 | PORT_START("DSW") /* c00004 -> c00007 */ | |
| 1484 | 1129 | /*********************************************** |
| 1485 | 1130 | |
| 1486 | 1131 | This Dip port is bit based: |
| r3115 | r3116 | |
| 1489 | 1134 | Text for other regions is present though. |
| 1490 | 1135 | |
| 1491 | 1136 | ************************************************/ |
| 1137 | PORT_DIPNAME( 0x0000000f, 0x0000000e, "Country" ) | |
| 1138 | PORT_DIPSETTING( 0x0000000f, DEF_STR( Japan ) ) | |
| 1139 | PORT_DIPSETTING( 0x0000000e, DEF_STR( World ) ) | |
| 1140 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1141 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1142 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1143 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 1144 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1145 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1146 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1147 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1148 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1149 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1150 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1151 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1492 | 1152 | |
| 1493 | PORT_DIPNAME( 0x000f, 0x000e, "Country" ) | |
| 1494 | PORT_DIPSETTING( 0x000f, DEF_STR( Japan ) ) | |
| 1495 | PORT_DIPSETTING( 0x000e, DEF_STR( World ) ) | |
| 1496 | ||
| 1497 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1498 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1499 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1500 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_VBLANK ) // vblank | |
| 1501 | ||
| 1502 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1503 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1504 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1505 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1506 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1507 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1508 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1509 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // tested! | |
| 1510 | ||
| 1153 | PORT_DIPNAME( 0x00010000, 0x00010000, DEF_STR( Flip_Screen ) ) | |
| 1154 | PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) | |
| 1155 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 1156 | PORT_DIPNAME( 0x00020000, 0x00000000, DEF_STR( Demo_Sounds ) ) | |
| 1157 | PORT_DIPSETTING( 0x00020000, DEF_STR( Off ) ) | |
| 1158 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 1159 | PORT_DIPNAME( 0x000c0000, 0x000c0000, DEF_STR( Difficulty ) ) | |
| 1160 | PORT_DIPSETTING( 0x00080000, DEF_STR( Easy ) ) | |
| 1161 | PORT_DIPSETTING( 0x000c0000, DEF_STR( Normal ) ) | |
| 1162 | PORT_DIPSETTING( 0x00040000, DEF_STR( Hard ) ) | |
| 1163 | PORT_DIPSETTING( 0x00000000, DEF_STR( Hardest ) ) | |
| 1164 | PORT_DIPNAME( 0x00300000, 0x00300000, DEF_STR( Lives ) ) | |
| 1165 | PORT_DIPSETTING( 0x00200000, "1" ) | |
| 1166 | PORT_DIPSETTING( 0x00100000, "2" ) | |
| 1167 | PORT_DIPSETTING( 0x00300000, "3" ) | |
| 1168 | PORT_DIPSETTING( 0x00000000, "4" ) | |
| 1169 | PORT_DIPNAME( 0x00400000, 0x00400000, DEF_STR( Bonus_Life ) ) | |
| 1170 | PORT_DIPSETTING( 0x00400000, "600K" ) | |
| 1171 | PORT_DIPSETTING( 0x00000000, "800K" ) | |
| 1172 | PORT_SERVICE( 0x00800000, IP_ACTIVE_LOW ) | |
| 1173 | PORT_DIPNAME( 0x01000000, 0x01000000, "Credits/Coinage" ) // [Free Play] on all for free play | |
| 1174 | PORT_DIPSETTING( 0x01000000, "A+B/A&B" ) | |
| 1175 | PORT_DIPSETTING( 0x00000000, "A&B/A [Free Play]" ) | |
| 1176 | PORT_DIPNAME( 0x0e000000, 0x0e000000, DEF_STR( Coin_A ) ) | |
| 1177 | PORT_DIPSETTING( 0x0a000000, DEF_STR( 3C_1C ) ) | |
| 1178 | PORT_DIPSETTING( 0x0c000000, DEF_STR( 2C_1C ) ) | |
| 1179 | PORT_DIPSETTING( 0x0e000000, DEF_STR( 1C_1C ) ) | |
| 1180 | PORT_DIPSETTING( 0x08000000, DEF_STR( 1C_2C ) ) | |
| 1181 | PORT_DIPSETTING( 0x06000000, DEF_STR( 1C_3C ) ) | |
| 1182 | PORT_DIPSETTING( 0x04000000, DEF_STR( 1C_4C ) ) | |
| 1183 | PORT_DIPSETTING( 0x02000000, DEF_STR( 1C_5C ) ) | |
| 1184 | PORT_DIPSETTING( 0x00000000, "1C 6C [Free Play]" ) | |
| 1185 | PORT_DIPNAME( 0x70000000, 0x70000000, DEF_STR( Coin_B ) ) | |
| 1186 | PORT_DIPSETTING( 0x50000000, DEF_STR( 3C_1C ) ) | |
| 1187 | PORT_DIPSETTING( 0x60000000, DEF_STR( 2C_1C ) ) | |
| 1188 | PORT_DIPSETTING( 0x70000000, DEF_STR( 1C_1C ) ) | |
| 1189 | PORT_DIPSETTING( 0x40000000, DEF_STR( 1C_2C ) ) | |
| 1190 | PORT_DIPSETTING( 0x30000000, DEF_STR( 1C_3C ) ) | |
| 1191 | PORT_DIPSETTING( 0x20000000, DEF_STR( 1C_4C ) ) | |
| 1192 | PORT_DIPSETTING( 0x10000000, DEF_STR( 1C_5C ) ) | |
| 1193 | PORT_DIPSETTING( 0x00000000, "1C 6C [Free Play]" ) | |
| 1194 | PORT_DIPNAME( 0x80000000, 0x80000000, "2C Start, 1C Continue" ) | |
| 1195 | PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) | |
| 1196 | PORT_DIPSETTING( 0x00000000, "On [Free Play]" ) // Forces 1C_1C | |
| 1511 | 1197 | INPUT_PORTS_END |
| 1512 | 1198 | |
| 1513 | 1199 |
| r3115 | r3116 | |
|---|---|---|
| 131 | 131 | } |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | static READ16_HANDLER( wbeachvl_port0_r ) | |
| 135 | { | |
| 136 | int bit; | |
| 137 | ||
| 138 | bit = eeprom_read_bit() << 7; | |
| 139 | ||
| 140 | return (input_port_read(machine, "SYSTEM") & 0x7f) | bit; | |
| 141 | } | |
| 142 | ||
| 143 | static READ16_HANDLER( hotmind_port2_r ) | |
| 144 | { | |
| 145 | int bit; | |
| 146 | ||
| 147 | bit = eeprom_read_bit() << 7; | |
| 148 | ||
| 149 | return (input_port_read(machine, "P2") & 0x7f) | bit; | |
| 150 | } | |
| 151 | ||
| 152 | 134 | static WRITE16_HANDLER( wbeachvl_coin_eeprom_w ) |
| 153 | 135 | { |
| 154 | 136 | if (ACCESSING_BITS_0_7) |
| r3115 | r3116 | |
| 306 | 288 | AM_RANGE(0x510000, 0x51000b) AM_WRITE(wbeachvl_scroll_w) |
| 307 | 289 | AM_RANGE(0x51000c, 0x51000d) AM_WRITENOP /* 2 and 3 */ |
| 308 | 290 | // AM_RANGE(0x700000, 0x700001) ?? written on startup |
| 309 | AM_RANGE(0x710010, 0x710011) AM_READ | |
| 291 | AM_RANGE(0x710010, 0x710011) AM_READ | |
| 310 | 292 | AM_RANGE(0x710012, 0x710013) AM_READ_PORT("P1") |
| 311 | 293 | AM_RANGE(0x710014, 0x710015) AM_READ_PORT("P2") |
| 312 | 294 | AM_RANGE(0x710016, 0x710017) AM_WRITE(wbeachvl_coin_eeprom_w) |
| r3115 | r3116 | |
| 348 | 330 | AM_RANGE(0x280000, 0x2807ff) AM_RAM_WRITE(bigtwin_paletteram_w) AM_BASE(&paletteram16) |
| 349 | 331 | AM_RANGE(0x300010, 0x300011) AM_READ_PORT("SYSTEM") |
| 350 | 332 | AM_RANGE(0x300012, 0x300013) AM_READ_PORT("P1") |
| 351 | AM_RANGE(0x300014, 0x300015) AM_WRITE(hotmind_coin_eeprom_w | |
| 333 | AM_RANGE(0x300014, 0x300015) AM_READ_PORT("P2") AM_WRITE(hotmind_coin_eeprom_w | |
| 352 | 334 | AM_RANGE(0x30001a, 0x30001b) AM_READ_PORT("DSW1") |
| 353 | 335 | AM_RANGE(0x30001c, 0x30001d) AM_READ_PORT("DSW2") |
| 354 | 336 | AM_RANGE(0x30001e, 0x30001f) AM_WRITE(playmark_snd_command_w) |
| r3115 | r3116 | |
| 392 | 374 | ADDRESS_MAP_END |
| 393 | 375 | |
| 394 | 376 | |
| 395 | ||
| 396 | ||
| 397 | 377 | static INPUT_PORTS_START( bigtwin ) |
| 398 | 378 | PORT_START("SYSTEM") |
| 399 | 379 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 455 | 435 | PORT_DIPNAME( 0x01, 0x01, "Coin Mode" ) |
| 456 | 436 | PORT_DIPSETTING( 0x01, "Mode 1" ) |
| 457 | 437 | PORT_DIPSETTING( 0x00, "Mode 2" ) |
| 458 | PORT_DIPNAME( 0x1e, 0x1e, "Coinage Mode 1" ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 459 | PORT_DIPSETTING( 0x14, DEF_STR( 6C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 460 | PORT_DIPSETTING( 0x16, DEF_STR( 5C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 461 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 462 | PORT_DIPSETTING( 0x1a, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 463 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 464 | PORT_DIPSETTING( 0x1c, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 465 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 466 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 467 | PORT_DIPSETTING( 0x1e, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 468 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 469 | PORT_DIPSETTING( 0x12, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 470 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 471 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 472 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 473 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 474 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 475 | PORT_DIPNAME( 0x06, 0x06, "Coin A Mode 2" ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 476 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 477 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 478 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 479 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 480 | PORT_DIPNAME( 0x18, 0x18, "Coin B Mode 2" ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 481 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 482 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 483 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 484 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 438 | PORT_DIPNAME( 0x1e, 0x1e, "Coinage Mode 1" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_EQUALS, 0x01) | |
| 439 | PORT_DIPSETTING( 0x14, DEF_STR( 6C_1C ) ) | |
| 440 | PORT_DIPSETTING( 0x16, DEF_STR( 5C_1C ) ) | |
| 441 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) | |
| 442 | PORT_DIPSETTING( 0x1a, DEF_STR( 3C_1C ) ) | |
| 443 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_3C ) ) | |
| 444 | PORT_DIPSETTING( 0x1c, DEF_STR( 2C_1C ) ) | |
| 445 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_3C ) ) | |
| 446 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_2C ) ) | |
| 447 | PORT_DIPSETTING( 0x1e, DEF_STR( 1C_1C ) ) | |
| 448 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_3C ) ) | |
| 449 | PORT_DIPSETTING( 0x12, DEF_STR( 1C_2C ) ) | |
| 450 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 451 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_4C ) ) | |
| 452 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_5C ) ) | |
| 453 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) | |
| 454 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 455 | PORT_DIPNAME( 0x06, 0x06, "Coin A Mode 2" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_NOTEQUALS, 0x01) | |
| 456 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 457 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 458 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 459 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) | |
| 460 | PORT_DIPNAME( 0x18, 0x18, "Coin B Mode 2" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_NOTEQUALS, 0x01) | |
| 461 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 462 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 463 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_5C ) ) | |
| 464 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 485 | 465 | PORT_DIPNAME( 0x20, 0x20, "Minimum Credits to Start" ) |
| 486 | 466 | PORT_DIPSETTING( 0x20, "1" ) |
| 487 | 467 | PORT_DIPSETTING( 0x00, "2" ) |
| r3115 | r3116 | |
| 502 | 482 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 503 | 483 | PORT_SERVICE_NO_TOGGLE(0x20, IP_ACTIVE_LOW) |
| 504 | 484 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* ?? see code at 746a. sound status? */ |
| 505 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 485 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 506 | 486 | |
| 507 | 487 | PORT_START("P1") |
| 508 | 488 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 603 | 583 | PORT_DIPNAME( 0x01, 0x01, "Coin Mode" ) |
| 604 | 584 | PORT_DIPSETTING( 0x01, "Mode 1" ) |
| 605 | 585 | PORT_DIPSETTING( 0x00, "Mode 2" ) |
| 606 | PORT_DIPNAME( 0x1e, 0x1e, "Coinage Mode 1" ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 607 | PORT_DIPSETTING( 0x14, DEF_STR( 6C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 608 | PORT_DIPSETTING( 0x16, DEF_STR( 5C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 609 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 610 | PORT_DIPSETTING( 0x1a, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 611 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 612 | PORT_DIPSETTING( 0x1c, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 613 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 614 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 615 | PORT_DIPSETTING( 0x1e, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 616 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 617 | PORT_DIPSETTING( 0x12, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 618 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 619 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 620 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 621 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 622 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 623 | PORT_DIPNAME( 0x06, 0x06, "Coin A Mode 2" ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 624 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 625 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 626 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 627 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 628 | PORT_DIPNAME( 0x18, 0x18, "Coin B Mode 2" ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 629 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 630 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 631 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 632 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 586 | PORT_DIPNAME( 0x1e, 0x1e, "Coinage Mode 1" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_EQUALS, 0x01) | |
| 587 | PORT_DIPSETTING( 0x14, DEF_STR( 6C_1C ) ) | |
| 588 | PORT_DIPSETTING( 0x16, DEF_STR( 5C_1C ) ) | |
| 589 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) | |
| 590 | PORT_DIPSETTING( 0x1a, DEF_STR( 3C_1C ) ) | |
| 591 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_3C ) ) | |
| 592 | PORT_DIPSETTING( 0x1c, DEF_STR( 2C_1C ) ) | |
| 593 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_3C ) ) | |
| 594 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_2C ) ) | |
| 595 | PORT_DIPSETTING( 0x1e, DEF_STR( 1C_1C ) ) | |
| 596 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_3C ) ) | |
| 597 | PORT_DIPSETTING( 0x12, DEF_STR( 1C_2C ) ) | |
| 598 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 599 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_4C ) ) | |
| 600 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_5C ) ) | |
| 601 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) | |
| 602 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 603 | PORT_DIPNAME( 0x06, 0x06, "Coin A Mode 2" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_NOTEQUALS, 0x01) | |
| 604 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 605 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 606 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 607 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) | |
| 608 | PORT_DIPNAME( 0x18, 0x18, "Coin B Mode 2" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_NOTEQUALS, 0x01) | |
| 609 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 610 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 611 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_5C ) ) | |
| 612 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 633 | 613 | PORT_DIPNAME( 0x20, 0x20, "Minimum Credits to Start" ) |
| 634 | 614 | PORT_DIPSETTING( 0x20, "1" ) |
| 635 | 615 | PORT_DIPSETTING( 0x00, "2" ) |
| r3115 | r3116 | |
| 668 | 648 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 669 | 649 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 670 | 650 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 671 | PORT_BIT( 0x80, IP_ACTIVE_ | |
| 651 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 672 | 652 | |
| 673 | 653 | PORT_START("DSW1") |
| 674 | 654 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| r3115 | r3116 | |
| 698 | 678 | PORT_DIPNAME( 0x01, 0x01, "Coin Mode" ) |
| 699 | 679 | PORT_DIPSETTING( 0x01, "Mode 1" ) |
| 700 | 680 | PORT_DIPSETTING( 0x00, "Mode 2" ) |
| 701 | PORT_DIPNAME( 0x1e, 0x1e, "Coinage Mode 1" ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 702 | PORT_DIPSETTING( 0x14, DEF_STR( 6C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 703 | PORT_DIPSETTING( 0x16, DEF_STR( 5C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 704 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 705 | PORT_DIPSETTING( 0x1a, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 706 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 707 | PORT_DIPSETTING( 0x1c, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 708 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 709 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 710 | PORT_DIPSETTING( 0x1e, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 711 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 712 | PORT_DIPSETTING( 0x12, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 713 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 714 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 715 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 716 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 717 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 718 | PORT_DIPNAME( 0x06, 0x06, "Coin A Mode 2" ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 719 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 720 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 721 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 722 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 723 | PORT_DIPNAME( 0x18, 0x18, "Coin B Mode 2" ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 724 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 725 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 726 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 727 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 681 | PORT_DIPNAME( 0x1e, 0x1e, "Coinage Mode 1" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_EQUALS, 0x01) | |
| 682 | PORT_DIPSETTING( 0x14, DEF_STR( 6C_1C ) ) | |
| 683 | PORT_DIPSETTING( 0x16, DEF_STR( 5C_1C ) ) | |
| 684 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) | |
| 685 | PORT_DIPSETTING( 0x1a, DEF_STR( 3C_1C ) ) | |
| 686 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_3C ) ) | |
| 687 | PORT_DIPSETTING( 0x1c, DEF_STR( 2C_1C ) ) | |
| 688 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_3C ) ) | |
| 689 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_2C ) ) | |
| 690 | PORT_DIPSETTING( 0x1e, DEF_STR( 1C_1C ) ) | |
| 691 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_3C ) ) | |
| 692 | PORT_DIPSETTING( 0x12, DEF_STR( 1C_2C ) ) | |
| 693 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 694 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_4C ) ) | |
| 695 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_5C ) ) | |
| 696 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) | |
| 697 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 698 | PORT_DIPNAME( 0x06, 0x06, "Coin A Mode 2" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_NOTEQUALS, 0x01) | |
| 699 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 700 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 701 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 702 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) | |
| 703 | PORT_DIPNAME( 0x18, 0x18, "Coin B Mode 2" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_NOTEQUALS, 0x01) | |
| 704 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 705 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 706 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_5C ) ) | |
| 707 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 728 | 708 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 729 | 709 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 730 | 710 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 794 | 774 | PORT_DIPNAME( 0x01, 0x01, "Coin Mode" ) |
| 795 | 775 | PORT_DIPSETTING( 0x01, "Mode 1" ) |
| 796 | 776 | PORT_DIPSETTING( 0x00, "Mode 2" ) |
| 797 | PORT_DIPNAME( 0x1e, 0x1e, "Coinage Mode 1" ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 798 | PORT_DIPSETTING( 0x14, DEF_STR( 6C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 799 | PORT_DIPSETTING( 0x16, DEF_STR( 5C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 800 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 801 | PORT_DIPSETTING( 0x1a, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 802 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 803 | PORT_DIPSETTING( 0x1c, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 804 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 805 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 806 | PORT_DIPSETTING( 0x1e, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 807 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 808 | PORT_DIPSETTING( 0x12, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 809 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 810 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 811 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 812 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 813 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_EQUALS,0x01) | |
| 814 | PORT_DIPNAME( 0x06, 0x06, "Coin A Mode 2" ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 815 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 816 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 817 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 818 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 819 | PORT_DIPNAME( 0x18, 0x18, "Coin B Mode 2" ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 820 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 821 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 822 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_5C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 823 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 777 | PORT_DIPNAME( 0x1e, 0x1e, "Coinage Mode 1" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_EQUALS, 0x01) | |
| 778 | PORT_DIPSETTING( 0x14, DEF_STR( 6C_1C ) ) | |
| 779 | PORT_DIPSETTING( 0x16, DEF_STR( 5C_1C ) ) | |
| 780 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) | |
| 781 | PORT_DIPSETTING( 0x1a, DEF_STR( 3C_1C ) ) | |
| 782 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_3C ) ) | |
| 783 | PORT_DIPSETTING( 0x1c, DEF_STR( 2C_1C ) ) | |
| 784 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_3C ) ) | |
| 785 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_2C ) ) | |
| 786 | PORT_DIPSETTING( 0x1e, DEF_STR( 1C_1C ) ) | |
| 787 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_3C ) ) | |
| 788 | PORT_DIPSETTING( 0x12, DEF_STR( 1C_2C ) ) | |
| 789 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 790 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_4C ) ) | |
| 791 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_5C ) ) | |
| 792 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) | |
| 793 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 794 | PORT_DIPNAME( 0x06, 0x06, "Coin A Mode 2" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_NOTEQUALS, 0x01) | |
| 795 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 796 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 797 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 798 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) | |
| 799 | PORT_DIPNAME( 0x18, 0x18, "Coin B Mode 2" ) PORT_CONDITION("DSW2", 0x01, PORTCOND_NOTEQUALS, 0x01) | |
| 800 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 801 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 802 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_5C ) ) | |
| 803 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) | |
| 824 | 804 | PORT_DIPNAME( 0x20, 0x20, "Minimum Credits to Start" ) |
| 825 | 805 | PORT_DIPSETTING( 0x20, "1" ) |
| 826 | 806 | PORT_DIPSETTING( 0x00, "2" ) |
| r3115 | r3116 | |
|---|---|---|
| 393 | 393 | } |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | static msm5205_interface msm_interface = | |
| 396 | static const msm5205_interface msm_interface = | |
| 397 | 397 | { |
| 398 | 398 | adpcm_int, /* interrupt function */ |
| 399 | 399 | MSM5205_S96_4B /* 1 / 96 = 3906.25Hz playback - guess */ |
| r3115 | r3116 | |
|---|---|---|
| 1427 | 1427 | |
| 1428 | 1428 | static ADDRESS_MAP_START( readmem_mcu, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1429 | 1429 | AM_RANGE(0x0000, 0x0000) AM_READ(SMH_NOP) |
| 1430 | AM_RANGE(0x0001, 0x0001) AM_READ(input_port_0_r) /* p1,p2 start */ | |
| 1431 | AM_RANGE(0x0002, 0x0002) AM_READ(input_port_1_r) /* coins */ | |
| 1430 | AM_RANGE(0x0001, 0x0001) AM_READ_PORT("PORTB") /* p1,p2 start */ | |
| 1431 | AM_RANGE(0x0002, 0x0002) AM_READ_PORT("PORTC") /* coins */ | |
| 1432 | 1432 | AM_RANGE(0x0003, 0x0003) AM_READ(namcos2_mcu_port_d_r) |
| 1433 | AM_RANGE(0x0007, 0x0007) AM_READ | |
| 1433 | AM_RANGE(0x0007, 0x0007) AM_READ | |
| 1434 | 1434 | AM_RANGE(0x0010, 0x0010) AM_READ(namcos2_mcu_analog_ctrl_r) |
| 1435 | 1435 | AM_RANGE(0x0011, 0x0011) AM_READ(namcos2_mcu_analog_port_r) |
| 1436 | 1436 | AM_RANGE(0x0008, 0x003f) AM_READ(SMH_RAM) |
| 1437 | 1437 | AM_RANGE(0x0040, 0x01bf) AM_READ(SMH_RAM) |
| 1438 | 1438 | AM_RANGE(0x01c0, 0x1fff) AM_READ(SMH_ROM) |
| 1439 | AM_RANGE(0x2000, 0x2000) AM_READ(input_port_11_r) /* dipswitches */ | |
| 1440 | AM_RANGE(0x3000, 0x3000) AM_READ(input_port_12_r) /* DIAL0 */ | |
| 1441 | AM_RANGE(0x3001, 0x3001) AM_READ(input_port_13_r) /* DIAL1 */ | |
| 1442 | AM_RANGE(0x3002, 0x3002) AM_READ(input_port_14_r) /* DIAL2 */ | |
| 1443 | AM_RANGE(0x3003, 0x3003) AM_READ(input_port_15_r) /* DIAL3 */ | |
| 1439 | AM_RANGE(0x2000, 0x2000) AM_READ_PORT("DSW") | |
| 1440 | AM_RANGE(0x3000, 0x3000) AM_READ_PORT("DIAL0") | |
| 1441 | AM_RANGE(0x3001, 0x3001) AM_READ_PORT("DIAL1") | |
| 1442 | AM_RANGE(0x3002, 0x3002) AM_READ_PORT("DIAL2") | |
| 1443 | AM_RANGE(0x3003, 0x3003) AM_READ_PORT("DIAL3") | |
| 1444 | 1444 | AM_RANGE(0x5000, 0x57ff) AM_READ(namcos2_dualportram_byte_r) |
| 1445 | AM_RANGE(0x6000, 0x6fff) AM_READ(SMH_NOP) | |
| 1445 | AM_RANGE(0x6000, 0x6fff) AM_READ(SMH_NOP) /* watchdog */ | |
| 1446 | 1446 | AM_RANGE(0x8000, 0xffff) AM_READ(SMH_ROM) |
| 1447 | 1447 | ADDRESS_MAP_END |
| 1448 | 1448 |
| r3115 | r3116 | |
|---|---|---|
| 559 | 559 | AM_RANGE(0xc0000a, 0xc0000b) AM_WRITE(z80_ctrl_w) |
| 560 | 560 | AM_RANGE(0xc0000c, 0xc0000d) AM_READWRITE(soundlatch3_word_r, soundlatch3_word_w) |
| 561 | 561 | |
| 562 | AM_RANGE(0xc08000, 0xc08001) AM_READ(input_port_0_word_r) // p1+p2 controls | |
| 563 | AM_RANGE(0xc08002, 0xc08003) AM_READ(input_port_1_word_r) // p3+p4 controls | |
| 564 | AM_RANGE(0xc08004, 0xc08005) AM_READ(input_port_2_word_r) // extra controls | |
| 565 | AM_RANGE(0xc08006, 0xc08007) AM_READ(input_port_3_word_r) // dipswitches | |
| 562 | AM_RANGE(0xc08000, 0xc08001) AM_READ_PORT("P1P2") | |
| 563 | AM_RANGE(0xc08002, 0xc08003) AM_READ_PORT("P3P4") | |
| 564 | AM_RANGE(0xc08004, 0xc08005) AM_READ_PORT("Service") | |
| 565 | AM_RANGE(0xc08006, 0xc08007) AM_READ_PORT("DSW") | |
| 566 | 566 | |
| 567 | 567 | AM_RANGE(0xc10000, 0xc1ffff) AM_READWRITE(z80_ram_r, z80_ram_w) /* Z80 Program */ |
| 568 | 568 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 591 | 591 | AM_RANGE(0xc0000a, 0xc0000b) AM_WRITE(z80_ctrl_w) |
| 592 | 592 | AM_RANGE(0xc0000c, 0xc0000d) AM_READWRITE(soundlatch3_word_r, soundlatch3_word_w) |
| 593 | 593 | |
| 594 | AM_RANGE(0xc08000, 0xc08001) AM_READ(input_port_0_word_r) // p1+p2 controls | |
| 595 | AM_RANGE(0xc08002, 0xc08003) AM_READ(input_port_1_word_r) // p3+p4 controls | |
| 596 | AM_RANGE(0xc08004, 0xc08005) AM_READ(input_port_2_word_r) // extra controls | |
| 597 | AM_RANGE(0xc08006, 0xc08007) AM_READ(input_port_3_word_r) // dipswitches | |
| 594 | AM_RANGE(0xc08000, 0xc08001) AM_READ_PORT("P1P2") | |
| 595 | AM_RANGE(0xc08002, 0xc08003) AM_READ_PORT("P3P4") | |
| 596 | AM_RANGE(0xc08004, 0xc08005) AM_READ_PORT("Service") | |
| 597 | AM_RANGE(0xc08006, 0xc08007) AM_READ_PORT("DSW") | |
| 598 | 598 | |
| 599 | 599 | AM_RANGE(0xc10000, 0xc1ffff) AM_READWRITE(z80_ram_r, z80_ram_w) /* Z80 Program */ |
| 600 | 600 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 623 | 623 | AM_RANGE(0xc0000a, 0xc0000b) AM_WRITE(z80_ctrl_w) |
| 624 | 624 | AM_RANGE(0xc0000c, 0xc0000d) AM_READWRITE(soundlatch3_word_r, soundlatch3_word_w) |
| 625 | 625 | |
| 626 | AM_RANGE(0xc08000, 0xc08001) AM_READ(input_port_0_word_r) // p1+p2 controls | |
| 627 | AM_RANGE(0xc08002, 0xc08003) AM_READ(input_port_1_word_r) // p3+p4 controls | |
| 628 | AM_RANGE(0xc08004, 0xc08005) AM_READ(input_port_2_word_r) // extra controls | |
| 629 | AM_RANGE(0xc08006, 0xc08007) AM_READ(input_port_3_word_r) // dipswitches | |
| 626 | AM_RANGE(0xc08000, 0xc08001) AM_READ_PORT("P1P2") | |
| 627 | AM_RANGE(0xc08002, 0xc08003) AM_READ_PORT("P3P4") | |
| 628 | AM_RANGE(0xc08004, 0xc08005) AM_READ_PORT("Service") | |
| 629 | AM_RANGE(0xc08006, 0xc08007) AM_READ_PORT("DSW") | |
| 630 | 630 | |
| 631 | 631 | AM_RANGE(0xc10000, 0xc1ffff) AM_READWRITE(z80_ram_r, z80_ram_w) /* Z80 Program */ |
| 632 | 632 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 652 | 652 | AM_RANGE(0xc0000a, 0xc0000b) AM_WRITE(z80_ctrl_w) |
| 653 | 653 | AM_RANGE(0xc0000c, 0xc0000d) AM_READWRITE(soundlatch3_word_r, soundlatch3_word_w) |
| 654 | 654 | |
| 655 | AM_RANGE(0xc08000, 0xc08001) AM_READ(input_port_0_word_r) // p1+p2 controls | |
| 656 | AM_RANGE(0xc08002, 0xc08003) AM_READ(input_port_1_word_r) // p3+p4 controls | |
| 657 | AM_RANGE(0xc08004, 0xc08005) AM_READ(input_port_2_word_r) // extra controls | |
| 658 | AM_RANGE(0xc08006, 0xc08007) AM_READ(input_port_3_word_r) // dipswitches | |
| 655 | AM_RANGE(0xc08000, 0xc08001) AM_READ_PORT("P1P2") | |
| 656 | AM_RANGE(0xc08002, 0xc08003) AM_READ_PORT("P3P4") | |
| 657 | AM_RANGE(0xc08004, 0xc08005) AM_READ_PORT("Service") | |
| 658 | AM_RANGE(0xc08006, 0xc08007) AM_READ_PORT("DSW") | |
| 659 | 659 | |
| 660 | 660 | AM_RANGE(0xc10000, 0xc1ffff) AM_READWRITE(z80_ram_r, z80_ram_w) /* Z80 Program */ |
| 661 | 661 | AM_RANGE(0xd00000, 0xd0ffff) AM_READWRITE(arm7_ram_r, arm7_ram_w) /* ARM7 Shared RAM */ |
| r3115 | r3116 | |
| 685 | 685 | AM_RANGE(0xc0000a, 0xc0000b) AM_WRITE(z80_ctrl_w) |
| 686 | 686 | AM_RANGE(0xc0000c, 0xc0000d) AM_READWRITE(soundlatch3_word_r, soundlatch3_word_w) |
| 687 | 687 | |
| 688 | AM_RANGE(0xc08000, 0xc08001) AM_READ(input_port_0_word_r) // p1+p2 controls | |
| 689 | AM_RANGE(0xc08002, 0xc08003) AM_READ(input_port_1_word_r) // p3+p4 controls | |
| 690 | AM_RANGE(0xc08004, 0xc08005) AM_READ(input_port_2_word_r) // extra controls | |
| 691 | AM_RANGE(0xc08006, 0xc08007) AM_READ(input_port_3_word_r) // dipswitches | |
| 688 | AM_RANGE(0xc08000, 0xc08001) AM_READ_PORT("P1P2") | |
| 689 | AM_RANGE(0xc08002, 0xc08003) AM_READ_PORT("P3P4") | |
| 690 | AM_RANGE(0xc08004, 0xc08005) AM_READ_PORT("Service") | |
| 691 | AM_RANGE(0xc08006, 0xc08007) AM_READ_PORT("DSW") | |
| 692 | 692 | |
| 693 | 693 | AM_RANGE(0xc10000, 0xc1ffff) AM_READWRITE(z80_ram_r, z80_ram_w) /* Z80 Program */ |
| 694 | 694 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 786 | 786 | AM_RANGE(0xc0000a, 0xc0000b) AM_WRITE(z80_ctrl_w) |
| 787 | 787 | AM_RANGE(0xc0000c, 0xc0000d) AM_READWRITE(soundlatch3_word_r, soundlatch3_word_w) |
| 788 | 788 | |
| 789 | AM_RANGE(0xc08000, 0xc08001) AM_READ(input_port_0_word_r) // p1+p2 controls | |
| 790 | AM_RANGE(0xc08002, 0xc08003) AM_READ(input_port_1_word_r) // p3+p4 controls | |
| 791 | AM_RANGE(0xc08004, 0xc08005) AM_READ(input_port_2_word_r) // extra controls | |
| 792 | AM_RANGE(0xc08006, 0xc08007) AM_READ(input_port_3_word_r) // dipswitches | |
| 789 | AM_RANGE(0xc08000, 0xc08001) AM_READ_PORT("P1P2") | |
| 790 | AM_RANGE(0xc08002, 0xc08003) AM_READ_PORT("P3P4") | |
| 791 | AM_RANGE(0xc08004, 0xc08005) AM_READ_PORT("Service") | |
| 792 | AM_RANGE(0xc08006, 0xc08007) AM_READ_PORT("DSW") | |
| 793 | 793 | |
| 794 | 794 | AM_RANGE(0xc10000, 0xc1ffff) AM_READWRITE(z80_ram_r, z80_ram_w) /* Z80 Program */ |
| 795 | 795 | AM_RANGE(0x4f0000, 0x4f003f) AM_READWRITE(arm7_ram_r, arm7_ram_w) /* ARM7 Shared RAM */ |
| r3115 | r3116 | |
| 818 | 818 | /* enough for 4 players, the basic dips mapped are listed in the test mode */ |
| 819 | 819 | |
| 820 | 820 | static INPUT_PORTS_START( pgm ) |
| 821 | PORT_START("P1P2") | |
| 821 | PORT_START("P1P2") | |
| 822 | 822 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 823 | 823 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 824 | 824 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 836 | 836 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 837 | 837 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 838 | 838 | |
| 839 | PORT_START("P3P4") | |
| 839 | PORT_START("P3P4") | |
| 840 | 840 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START3 ) |
| 841 | 841 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) |
| 842 | 842 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) |
| r3115 | r3116 | |
| 854 | 854 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) |
| 855 | 855 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) |
| 856 | 856 | |
| 857 | PORT_START("Service") | |
| 857 | PORT_START("Service") | |
| 858 | 858 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 859 | 859 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 860 | 860 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) |
| 861 | 861 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN4 ) |
| 862 | // PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) // test 1p+2p | |
| 863 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 864 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) // service 1p+2p | |
| 865 | // PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON6 ) // test 3p+4p | |
| 866 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 867 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE2 ) // service 3p+4p | |
| 862 | // PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) // test 1p+2p | |
| 863 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 864 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) // service 1p+2p | |
| 865 | // PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON6 ) // test 3p+4p | |
| 866 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 867 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE2 ) // service 3p+4p | |
| 868 | 868 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| 869 | 869 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 870 | 870 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) |
| 871 | 871 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) |
| 872 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 873 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 874 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 875 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 872 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 873 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 874 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 875 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unused? | |
| 876 | 876 | |
| 877 | PORT_START("DSW") | |
| 877 | PORT_START("DSW") | |
| 878 | 878 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) |
| 879 | 879 | PORT_DIPNAME( 0x0002, 0x0002, "Music" ) |
| 880 | 880 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 898 | 898 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 899 | 899 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 900 | 900 | |
| 901 | PORT_START("Region") | |
| 901 | PORT_START("Region") | |
| 902 | 902 | PORT_DIPNAME( 0x0003, 0x0000, DEF_STR( Region ) ) |
| 903 | 903 | PORT_DIPSETTING( 0x0000, DEF_STR( World ) ) |
| 904 | 904 | // PORT_DIPSETTING( 0x0001, DEF_STR( World ) ) // again? |
| r3115 | r3116 | |
| 910 | 910 | PORT_INCLUDE ( pgm ) |
| 911 | 911 | |
| 912 | 912 | PORT_MODIFY("Region") |
| 913 | PORT_DIPNAME( 0x0003, 0x0002, DEF_STR( Unused ) ) // region switch | |
| 914 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) // if enabled, game gives | |
| 915 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) // "incorrect version" error | |
| 913 | PORT_DIPNAME( 0x0003, 0x0002, DEF_STR( Unused ) ) // region switch | |
| 914 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) // if enabled, game gives | |
| 915 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) // "incorrect version" error | |
| 916 | 916 | INPUT_PORTS_END |
| 917 | 917 | |
| 918 | 918 | static INPUT_PORTS_START( sango ) |
| 919 | PORT_START("P1P2") /* DSW */ | |
| 920 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) | |
| 921 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 922 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 923 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 924 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 925 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 926 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 927 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 928 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 ) | |
| 929 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 930 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 931 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 932 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 933 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 934 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 935 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 919 | PORT_INCLUDE ( pgm ) | |
| 936 | 920 | |
| 937 | PORT_START("P3P4") /* DSW */ | |
| 938 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START3 ) | |
| 939 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) | |
| 940 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) | |
| 941 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) | |
| 942 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) | |
| 943 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 944 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 945 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 946 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START4 ) | |
| 947 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4) | |
| 948 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) | |
| 949 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) | |
| 950 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4) | |
| 951 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 952 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 953 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 954 | ||
| 955 | PORT_START("Service") /* DSW */ | |
| 956 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 957 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 958 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 959 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 960 | // PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) // test 1p+2p | |
| 961 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 962 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) // service 1p+2p | |
| 963 | // PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON6 ) // test 3p+4p | |
| 964 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 965 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE2 ) // service 3p+4p | |
| 966 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 967 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 968 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) | |
| 969 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) | |
| 970 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 971 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 972 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 973 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 974 | ||
| 975 | PORT_START("DSW") /* DSW */ | |
| 976 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) | |
| 977 | PORT_DIPNAME( 0x0002, 0x0002, "Music" ) | |
| 978 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 979 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) | |
| 980 | PORT_DIPNAME( 0x0004, 0x0004, "Voice" ) | |
| 981 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 982 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) | |
| 983 | PORT_DIPNAME( 0x0008, 0x0008, "Free" ) | |
| 984 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 985 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 986 | PORT_DIPNAME( 0x0010, 0x0010, "Stop" ) | |
| 987 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 988 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 989 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 990 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 991 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 992 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 993 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 994 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 995 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 996 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 997 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 998 | ||
| 999 | PORT_START("Region") /* Region - supplied by protection device */ | |
| 921 | PORT_MODIFY("Region") /* Region - supplied by protection device */ | |
| 1000 | 922 | PORT_DIPNAME( 0x000f, 0x0005, DEF_STR( Region ) ) |
| 1001 | 923 | PORT_DIPSETTING( 0x0000, "China" ) |
| 1002 | 924 | PORT_DIPSETTING( 0x0001, "Taiwan" ) |
| r3115 | r3116 | |
| 1007 | 929 | INPUT_PORTS_END |
| 1008 | 930 | |
| 1009 | 931 | static INPUT_PORTS_START( olds ) |
| 1010 | PORT_START("P1P2") /* DSW */ | |
| 1011 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1012 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1013 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1014 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1015 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 1016 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1017 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1018 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1019 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1020 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1021 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1022 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1023 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1024 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1025 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1026 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 932 | PORT_INCLUDE ( pgm ) | |
| 1027 | 933 | |
| 1028 | PORT_START("P3P4") /* DSW */ | |
| 1029 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START3 ) | |
| 1030 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) | |
| 1031 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) | |
| 1032 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) | |
| 1033 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) | |
| 1034 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 1035 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 1036 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 1037 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START4 ) | |
| 1038 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4) | |
| 1039 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) | |
| 1040 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) | |
| 1041 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4) | |
| 1042 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 1043 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 1044 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 1045 | ||
| 1046 | PORT_START("Service") /* DSW */ | |
| 1047 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1048 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1049 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 1050 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 1051 | // PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) // test 1p+2p | |
| 1052 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 1053 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) // service 1p+2p | |
| 1054 | // PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON6 ) // test 3p+4p | |
| 1055 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 1056 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE2 ) // service 3p+4p | |
| 1057 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 1058 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 1059 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) | |
| 1060 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) | |
| 1061 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1062 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1063 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1064 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1065 | ||
| 1066 | PORT_START("DSW") /* DSW */ | |
| 1067 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) | |
| 1068 | PORT_DIPNAME( 0x0002, 0x0002, "Music" ) | |
| 1069 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1070 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) | |
| 1071 | PORT_DIPNAME( 0x0004, 0x0004, "Voice" ) | |
| 1072 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1073 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) | |
| 1074 | PORT_DIPNAME( 0x0008, 0x0008, "Free" ) | |
| 1075 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1076 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1077 | PORT_DIPNAME( 0x0010, 0x0010, "Stop" ) | |
| 1078 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1079 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1080 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1081 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1082 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1083 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 1084 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1085 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1086 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 1087 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1088 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1089 | ||
| 1090 | PORT_START("Region") /* Region - supplied by protection device */ | |
| 934 | PORT_MODIFY("Region") /* Region - supplied by protection device */ | |
| 1091 | 935 | PORT_DIPNAME( 0x000f, 0x0006, DEF_STR( Region ) ) |
| 1092 | // includes region 1 = taiwan , 2 = china, 3 = japan (title = orlegend special), 4 = korea, 5 = hongkong, 6 = world | |
| 936 | /* includes the following regions: | |
| 937 | 1 = taiwan, 2 = china, 3 = japan (title = orlegend special), | |
| 938 | 4 = korea, 5 = hong kong, 6 = world */ | |
| 1093 | 939 | PORT_DIPSETTING( 0x0001, "Taiwan" ) |
| 1094 | 940 | PORT_DIPSETTING( 0x0002, "China" ) |
| 1095 | 941 | PORT_DIPSETTING( 0x0003, DEF_STR( Japan ) ) |
| r3115 | r3116 | |
| 1099 | 945 | INPUT_PORTS_END |
| 1100 | 946 | |
| 1101 | 947 | static INPUT_PORTS_START( killbld ) |
| 1102 | PORT_START("P1P2") /* DSW */ | |
| 1103 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1104 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1105 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1106 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1107 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 1108 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1109 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1110 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1111 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1112 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1113 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1114 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1115 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1116 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1117 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1118 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 948 | PORT_INCLUDE ( pgm ) | |
| 1119 | 949 | |
| 1120 | PORT_START("P3P4") /* DSW */ | |
| 1121 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START3 ) | |
| 1122 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) | |
| 1123 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) | |
| 1124 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) | |
| 1125 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) | |
| 1126 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 1127 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 1128 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 1129 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START4 ) | |
| 1130 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4) | |
| 1131 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) | |
| 1132 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) | |
| 1133 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4) | |
| 1134 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 1135 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 1136 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 1137 | ||
| 1138 | PORT_START("Service") /* DSW */ | |
| 1139 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1140 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1141 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 1142 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 1143 | // PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) // test 1p+2p | |
| 1144 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 1145 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) // service 1p+2p | |
| 1146 | // PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON6 ) // test 3p+4p | |
| 1147 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 1148 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE2 ) // service 3p+4p | |
| 1149 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 1150 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 1151 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) | |
| 1152 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) | |
| 1153 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1154 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1155 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1156 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1157 | ||
| 1158 | PORT_START("DSW") /* DSW */ | |
| 1159 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) | |
| 1160 | PORT_DIPNAME( 0x0002, 0x0002, "Music" ) | |
| 1161 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1162 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) | |
| 1163 | PORT_DIPNAME( 0x0004, 0x0004, "Voice" ) | |
| 1164 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1165 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) | |
| 1166 | PORT_DIPNAME( 0x0008, 0x0008, "Free" ) | |
| 1167 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1168 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1169 | PORT_DIPNAME( 0x0010, 0x0010, "Stop" ) | |
| 1170 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1171 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1172 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1173 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1174 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1175 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 1176 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1177 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1178 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 1179 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1180 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1181 | ||
| 1182 | PORT_START("Region") /* Region - supplied by protection device */ | |
| 950 | PORT_MODIFY("Region") /* Region - supplied by protection device */ | |
| 1183 | 951 | PORT_DIPNAME( 0x00ff, 0x0021, DEF_STR( Region ) ) |
| 1184 | 952 | PORT_DIPSETTING( 0x0016, "Taiwan" ) |
| 1185 | 953 | PORT_DIPSETTING( 0x0017, "China" ) |
| r3115 | r3116 | |
| 1196 | 964 | INPUT_PORTS_END |
| 1197 | 965 | |
| 1198 | 966 | static INPUT_PORTS_START( photoy2k ) |
| 1199 | PORT_START("P1P2") /* DSW */ | |
| 1200 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1201 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1202 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1203 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1204 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 1205 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1206 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1207 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1208 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1209 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1210 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1211 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1212 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1213 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1214 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1215 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 967 | PORT_INCLUDE ( pgm ) | |
| 1216 | 968 | |
| 1217 | PORT_START("P3P4") /* DSW */ | |
| 1218 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START3 ) | |
| 1219 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) | |
| 1220 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) | |
| 1221 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) | |
| 1222 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) | |
| 1223 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 1224 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 1225 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 1226 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START4 ) | |
| 1227 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4) | |
| 1228 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) | |
| 1229 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) | |
| 1230 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4) | |
| 1231 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 1232 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 1233 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 1234 | ||
| 1235 | PORT_START("Service") /* DSW */ | |
| 1236 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1237 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1238 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 1239 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 1240 | // PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) // test 1p+2p | |
| 1241 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 1242 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) // service 1p+2p | |
| 1243 | // PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON6 ) // test 3p+4p | |
| 1244 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 1245 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE2 ) // service 3p+4p | |
| 1246 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 1247 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 1248 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) | |
| 1249 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) | |
| 1250 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1251 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1252 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1253 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1254 | ||
| 1255 | PORT_START("DSW") /* DSW */ | |
| 1256 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) | |
| 1257 | PORT_DIPNAME( 0x0002, 0x0002, "Music" ) | |
| 1258 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1259 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) | |
| 1260 | PORT_DIPNAME( 0x0004, 0x0004, "Voice" ) | |
| 1261 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1262 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) | |
| 1263 | PORT_DIPNAME( 0x0008, 0x0008, "Free" ) | |
| 1264 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1265 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1266 | PORT_DIPNAME( 0x0010, 0x0010, "Stop" ) | |
| 1267 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1268 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1269 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1270 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1271 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1272 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 1273 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1274 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1275 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 1276 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1277 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1278 | ||
| 1279 | PORT_START("Region") /* Region - supplied by protection device */ | |
| 969 | PORT_MODIFY("Region") /* Region - supplied by protection device */ | |
| 1280 | 970 | PORT_DIPNAME( 0x000f, 0x0003, DEF_STR( Region ) ) |
| 1281 | 971 | PORT_DIPSETTING( 0x0000, "Taiwan" ) |
| 1282 | 972 | PORT_DIPSETTING( 0x0001, "China" ) |
| r3115 | r3116 | |
| 1287 | 977 | INPUT_PORTS_END |
| 1288 | 978 | |
| 1289 | 979 | static INPUT_PORTS_START( ddp2 ) |
| 1290 | PORT_START("P1P2") /* P1 */ | |
| 1291 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1292 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1293 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1294 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1295 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 1296 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1297 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1298 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1299 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1300 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1301 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1302 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1303 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1304 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1305 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1306 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 980 | PORT_INCLUDE ( pgm ) | |
| 1307 | 981 | |
| 1308 | PORT_START("P3P4") /* P2 */ | |
| 1309 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START3 ) | |
| 1310 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) | |
| 1311 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) | |
| 1312 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) | |
| 1313 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) | |
| 1314 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 1315 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 1316 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 1317 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START4 ) | |
| 1318 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4) | |
| 1319 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) | |
| 1320 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) | |
| 1321 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4) | |
| 1322 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 1323 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 1324 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 1325 | ||
| 1326 | PORT_START("Service") /* DSW */ | |
| 1327 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1328 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1329 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 1330 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 1331 | // PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) // test 1p+2p | |
| 1332 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 1333 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) // service 1p+2p | |
| 1334 | // PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON6 ) // test 3p+4p | |
| 1335 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) // what should i use? | |
| 1336 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE2 ) // service 3p+4p | |
| 1337 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 1338 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 1339 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) | |
| 1340 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) | |
| 1341 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1342 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1343 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1344 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // uused? | |
| 1345 | ||
| 1346 | PORT_START("DSW") /* DSW */ | |
| 1347 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) | |
| 1348 | PORT_DIPNAME( 0x0002, 0x0002, "Music" ) | |
| 1349 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1350 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) | |
| 1351 | PORT_DIPNAME( 0x0004, 0x0004, "Voice" ) | |
| 1352 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1353 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) | |
| 1354 | PORT_DIPNAME( 0x0008, 0x0008, "Free" ) | |
| 1355 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1356 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1357 | PORT_DIPNAME( 0x0010, 0x0010, "Stop" ) | |
| 1358 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1359 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1360 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1361 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1362 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1363 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 1364 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1365 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1366 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 1367 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1368 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1369 | ||
| 1370 | /* probably not dsw related anyway | |
| 982 | /* // probably not dsw related anyway | |
| 1371 | 983 | PORT_START("UNK0") |
| 1372 | 984 | PORT_DIPNAME( 0x0001, 0x0001, "4" ) |
| 1373 | 985 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 1468 | 1080 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1469 | 1081 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1470 | 1082 | */ |
| 1471 | PORT_ | |
| 1083 | PORT_MODIFY("Region") /* Region - supplied by protection device */ | |
| 1472 | 1084 | PORT_DIPNAME( 0x000f, 0x0005, DEF_STR( Region ) ) |
| 1473 | 1085 | PORT_DIPSETTING( 0x0000, "China" ) |
| 1474 | 1086 | PORT_DIPSETTING( 0x0001, "Taiwan" ) |
| r3115 | r3116 | |
|---|---|---|
| 144 | 144 | prot_data^=data^0x11; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | static | |
| 147 | static CUSTOM_I | |
| 148 | 148 | { |
| 149 | int data=7; | |
| 150 | switch(input_port_read(machine, "IN1")) //multiplexed | |
| 149 | int data = 7; | |
| 150 | switch(input_port_read(field->port->machine, "EXTRA")) //multiplexed | |
| 151 | 151 | { |
| 152 | 152 | case 0x01: data = 1; break; |
| 153 | 153 | case 0x02: data = 2; break; |
| r3115 | r3116 | |
| 157 | 157 | case 0x20: data = 6; break; |
| 158 | 158 | case 0x40: data = 0; break; |
| 159 | 159 | } |
| 160 | return (input_port_read(machine, "IN0") & (~0x1c)) | (data << 2); | |
| 160 | ||
| 161 | return data; | |
| 161 | 162 | } |
| 162 | 163 | |
| 163 | 164 | static ADDRESS_MAP_START( ssingles_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 179 | 180 | AM_RANGE(0x0a, 0x0a) AM_WRITE(ay8910_write_port_1_w) |
| 180 | 181 | AM_RANGE(0x16, 0x16) AM_READ_PORT("DSW0") |
| 181 | 182 | AM_RANGE(0x18, 0x18) AM_READ_PORT("DSW1") |
| 182 | AM_RANGE(0x1c, 0x1c) AM_READ | |
| 183 | AM_RANGE(0x1c, 0x1c) AM_READ | |
| 183 | 184 | AM_RANGE(0x1a, 0x1a) AM_WRITENOP //video/crt related |
| 184 | 185 | AM_RANGE(0xfe, 0xfe) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| 185 | 186 | AM_RANGE(0xff, 0xff) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w) |
| r3115 | r3116 | |
| 187 | 188 | ADDRESS_MAP_END |
| 188 | 189 | |
| 189 | 190 | static INPUT_PORTS_START( ssingles ) |
| 190 | PORT_START("IN | |
| 191 | PORT_START("INPUTS") | |
| 191 | 192 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 192 | 193 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) //must be LOW |
| 194 | PORT_BIT( 0x1c, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(controls_r, NULL) | |
| 193 | 195 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON4 ) |
| 194 | 196 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 195 | 197 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) |
| 196 | 198 | |
| 197 | PORT_START(" | |
| 199 | PORT_START("EXTRA") | |
| 198 | 200 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) |
| 199 | 201 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) |
| 200 | 202 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) |
| r3115 | r3116 | |
|---|---|---|
| 55 | 55 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 56 | 56 | AM_RANGE(0x2000, 0x3bff) AM_READ(SMH_RAM) |
| 57 | 57 | AM_RANGE(0x3c10, 0x3c10) AM_READ(SMH_NOP) /* ???? */ |
| 58 | AM_RANGE(0x3e00, 0x3e00) AM_READ(input_port_0_r) | |
| 59 | AM_RANGE(0x3e01, 0x3e01) AM_READ(input_port_1_r) | |
| 60 | AM_RANGE(0x3e02, 0x3e02) AM_READ(input_port_2_r) | |
| 58 | AM_RANGE(0x3e00, 0x3e00) AM_READ_PORT("SYSTEM") | |
| 59 | AM_RANGE(0x3e01, 0x3e01) AM_READ_PORT("P1") | |
| 60 | AM_RANGE(0x3e02, 0x3e02) AM_READ_PORT("P2") | |
| 61 | 61 | AM_RANGE(0x3e03, 0x3e03) AM_READ(SMH_NOP) |
| 62 | AM_RANGE(0x3e80, 0x3e80) AM_READ(input_port_3_r) | |
| 63 | AM_RANGE(0x3f00, 0x3f00) AM_READ(input_port_4_r) | |
| 62 | AM_RANGE(0x3e80, 0x3e80) AM_READ_PORT("DSW1") | |
| 63 | AM_RANGE(0x3f00, 0x3f00) AM_READ_PORT("DSW2") | |
| 64 | 64 | AM_RANGE(0x6000, 0xffff) AM_READ(SMH_ROM) |
| 65 | 65 | ADDRESS_MAP_END |
| 66 | 66 | |
| r3115 | r3116 | |
| 100 | 100 | |
| 101 | 101 | |
| 102 | 102 | static INPUT_PORTS_START( sbasketb ) |
| 103 | PORT_START("SYSTEM") | |
| 103 | PORT_START("SYSTEM") | |
| 104 | 104 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 105 | 105 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 106 | 106 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 110 | 110 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 111 | 111 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 112 | 112 | |
| 113 | PORT_START("P1") | |
| 113 | PORT_START("P1") | |
| 114 | 114 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 115 | 115 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 116 | 116 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 120 | 120 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 121 | 121 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 122 | 122 | |
| 123 | PORT_START("P2") | |
| 123 | PORT_START("P2") | |
| 124 | 124 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 125 | 125 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 126 | 126 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 130 | 130 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL |
| 131 | 131 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 132 | 132 | |
| 133 | PORT_START("DSW1") | |
| 133 | PORT_START("DSW1") | |
| 134 | 134 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Game_Time ) ) |
| 135 | 135 | PORT_DIPSETTING( 0x03, "30" ) |
| 136 | 136 | PORT_DIPSETTING( 0x01, "40" ) |
| r3115 | r3116 | |
| 154 | 154 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 155 | 155 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 156 | 156 | |
| 157 | PORT_START("DSW2") | |
| 157 | PORT_START("DSW2") | |
| 158 | 158 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 159 | 159 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 160 | 160 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 155 | 155 | /******************************************************************************/ |
| 156 | 156 | |
| 157 | 157 | static INPUT_PORTS_START( funkyjet ) |
| 158 | PORT_START("P1") /* Player 1 controls */ | |
| 159 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 160 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 161 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 162 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 163 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 164 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 165 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) /* Button 3 only in "test mode" */ | |
| 166 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 158 | PORT_START("INPUTS") | |
| 159 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 160 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 161 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 162 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 163 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 164 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 165 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) /* Button 3 only in "test mode" */ | |
| 166 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 167 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 168 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 169 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 170 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 171 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 172 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 173 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) /* Button 3 only in "test mode" */ | |
| 174 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 167 | 175 | |
| 168 | PORT_START("P2") /* Player 2 controls */ | |
| 169 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 170 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 171 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 172 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 173 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 174 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 175 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) /* Button 3 only in "test mode" */ | |
| 176 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 176 | PORT_START("SYSTEM") | |
| 177 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 178 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 179 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 180 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 177 | 181 | |
| 178 | PORT_START("IN0") /* System Inputs */ | |
| 179 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 180 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 181 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 182 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 183 | ||
| 184 | 182 | /* Dips seem inverted with respect to other Deco games */ |
| 183 | PORT_START("DSW") | |
| 184 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) | |
| 185 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 186 | PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) ) | |
| 187 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) | |
| 188 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) | |
| 189 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) | |
| 190 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) | |
| 191 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_5C ) ) | |
| 192 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_6C ) ) | |
| 193 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) | |
| 194 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 195 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) | |
| 196 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) | |
| 197 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) | |
| 198 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) | |
| 199 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) | |
| 200 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) ) | |
| 201 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_6C ) ) | |
| 202 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 203 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 204 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 205 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) | |
| 185 | 206 | |
| 186 | PORT_START("DSWA") /* Dip switch bank 1 */ | |
| 187 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) | |
| 188 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 189 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 190 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 191 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) ) | |
| 192 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) | |
| 193 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 194 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_5C ) ) | |
| 195 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_6C ) ) | |
| 196 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) ) | |
| 197 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 198 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 199 | PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) ) | |
| 200 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_2C ) ) | |
| 201 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) | |
| 202 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 203 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) | |
| 204 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_6C ) ) | |
| 205 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 206 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 207 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 208 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) | |
| 209 | ||
| 210 | PORT_START("DSWB") /* Dip switch bank 2 */ | |
| 211 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) | |
| 212 | PORT_DIPSETTING( 0x80, "1" ) | |
| 213 | PORT_DIPSETTING( 0xc0, "2" ) | |
| 214 | PORT_DIPSETTING( 0x40, "3" ) | |
| 215 | PORT_DIPSETTING( 0x00, "4" ) | |
| 216 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 217 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 218 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 219 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 220 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 221 | PORT_DIPNAME( 0x08, 0x08, "Freeze" ) | |
| 222 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 223 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 224 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Free_Play ) ) | |
| 225 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 226 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 227 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Allow_Continue ) ) | |
| 228 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 229 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) | |
| 230 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Demo_Sounds ) ) | |
| 231 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 232 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 207 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Demo_Sounds ) ) | |
| 208 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 209 | PORT_DIPSETTING( 0x0100, DEF_STR( On ) ) | |
| 210 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) ) | |
| 211 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 212 | PORT_DIPSETTING( 0x0200, DEF_STR( Yes ) ) | |
| 213 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Free_Play ) ) | |
| 214 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 215 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 216 | PORT_DIPNAME( 0x0800, 0x0800, "Freeze" ) | |
| 217 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 218 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 219 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) | |
| 220 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) | |
| 221 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) | |
| 222 | PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) ) | |
| 223 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 224 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) | |
| 225 | PORT_DIPSETTING( 0x8000, "1" ) | |
| 226 | PORT_DIPSETTING( 0xc000, "2" ) | |
| 227 | PORT_DIPSETTING( 0x4000, "3" ) | |
| 228 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 233 | 229 | INPUT_PORTS_END |
| 234 | 230 | |
| 235 | 231 | static INPUT_PORTS_START( funkyjej ) |
| 236 | 232 | PORT_INCLUDE(funkyjet) |
| 237 | 233 | |
| 238 | PORT_MODIFY("DSWB") | |
| 239 | ||
| 240 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 241 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 242 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 234 | PORT_MODIFY("DSW") | |
| 235 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 236 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 237 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 243 | 238 | INPUT_PORTS_END |
| 244 | 239 | |
| 245 | 240 | static INPUT_PORTS_START( sotsugyo ) |
| 246 | PORT_START("P1") /* Player 1 controls */ | |
| 247 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 248 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 249 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 250 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 251 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 252 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 253 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) /* only in "test mode" */ | |
| 254 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 241 | PORT_INCLUDE(funkyjet) | |
| 255 | 242 | |
| 256 | PORT_START("P2") /* Player 2 controls */ | |
| 257 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 258 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 259 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 260 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 261 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 262 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 263 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) /* only in "test mode" */ | |
| 264 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 265 | ||
| 266 | PORT_START("IN0") /* System Inputs */ | |
| 267 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 268 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) // Not working - see notes | |
| 269 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) // See notes | |
| 270 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 271 | ||
| 272 | /* Dips seem inverted with respect to other Deco games */ | |
| 273 | ||
| 274 | PORT_START("DSWA") /* Dip switch bank 1 */ | |
| 275 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) | |
| 276 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 277 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 278 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 279 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) ) | |
| 280 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) | |
| 281 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 282 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_5C ) ) | |
| 283 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_6C ) ) | |
| 284 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) ) | |
| 285 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 286 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 287 | PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) ) | |
| 288 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_2C ) ) | |
| 289 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) | |
| 290 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 291 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) | |
| 292 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_6C ) ) | |
| 293 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 294 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 295 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 296 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) | |
| 297 | ||
| 298 | PORT_START("DSWB") /* Dip switch bank 2 */ | |
| 299 | PORT_DIPNAME( 0x80, 0x80, "Freeze" ) | |
| 300 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 301 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 302 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Free_Play ) ) | |
| 303 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 304 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 305 | PORT_DIPNAME( 0x30, 0x20, DEF_STR( Difficulty ) ) | |
| 306 | PORT_DIPSETTING( 0x30, DEF_STR( Easy ) ) | |
| 307 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) | |
| 308 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 309 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 310 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 311 | PORT_DIPSETTING( 0x04, "1" ) | |
| 312 | PORT_DIPSETTING( 0x08, "2" ) | |
| 313 | PORT_DIPSETTING( 0x0c, "3" ) | |
| 314 | PORT_DIPSETTING( 0x00, "4" ) | |
| 315 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 316 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 317 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 318 | PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW ) // See notes | |
| 243 | PORT_MODIFY("DSW") | |
| 244 | PORT_DIPUNUSED( 0x0100, IP_ACTIVE_LOW ) // See notes | |
| 245 | PORT_DIPNAME( 0x0200, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 246 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 247 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 248 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Lives ) ) | |
| 249 | PORT_DIPSETTING( 0x0400, "1" ) | |
| 250 | PORT_DIPSETTING( 0x0800, "2" ) | |
| 251 | PORT_DIPSETTING( 0x0c00, "3" ) | |
| 252 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 253 | PORT_DIPNAME( 0x3000, 0x2000, DEF_STR( Difficulty ) ) | |
| 254 | PORT_DIPSETTING( 0x3000, DEF_STR( Easy ) ) | |
| 255 | PORT_DIPSETTING( 0x2000, DEF_STR( Normal ) ) | |
| 256 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) | |
| 257 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 258 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Free_Play ) ) | |
| 259 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 260 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 261 | PORT_DIPNAME( 0x8000, 0x8000, "Freeze" ) | |
| 262 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 263 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 319 | 264 | INPUT_PORTS_END |
| 320 | 265 | |
| 321 | 266 | /******************************************************************************/ |
| r3115 | r3116 | |
|---|---|---|
| 159 | 159 | AM_RANGE(0x8800, 0x93FF) AM_READ(SMH_RAM) /* Video RAM */ |
| 160 | 160 | AM_RANGE(0x9800, 0x983F) AM_READ(SMH_RAM) /* Sprites */ |
| 161 | 161 | AM_RANGE(0x9840, 0x985F) AM_READ(skyarmy_scrollram_r) /* Sroll RAM */ |
| 162 | AM_RANGE(0xA000, 0xA000) AM_READ(input_port_0_r) | |
| 163 | AM_RANGE(0xA001, 0xA001) AM_READ(input_port_1_r) | |
| 164 | AM_RANGE(0xA002, 0xA002) AM_READ(input_port_2_r) | |
| 165 | AM_RANGE(0xA003, 0xA003) AM_READ(input_port_3_r) | |
| 162 | AM_RANGE(0xA000, 0xA000) AM_READ_PORT("DSW") | |
| 163 | AM_RANGE(0xA001, 0xA001) AM_READ_PORT("P1") | |
| 164 | AM_RANGE(0xA002, 0xA002) AM_READ_PORT("P2") | |
| 165 | AM_RANGE(0xA003, 0xA003) AM_READ_PORT("SYSTEM") | |
| 166 | 166 | ADDRESS_MAP_END |
| 167 | 167 | |
| 168 | 168 | static ADDRESS_MAP_START( skyarmy_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
|---|---|---|
| 97 | 97 | |
| 98 | 98 | static ADDRESS_MAP_START( io_map, ADDRESS_SPACE_IO, 8 ) |
| 99 | 99 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 100 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) // Player 1 controls | |
| 101 | AM_RANGE(0x01, 0x01) AM_READ(input_port_1_r) // Player 2 controls | |
| 102 | AM_RANGE(0x02, 0x02) AM_READ(input_port_2_r) // ?? | |
| 103 | AM_RANGE(0x04, 0x04) AM_READ(input_port_3_r) // extra controls + coin + test | |
| 104 | AM_RANGE(0x05, 0x05) AM_READ(input_port_4_r) AM_WRITE(rom_bank_select_w) | |
| 100 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") | |
| 101 | AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") | |
| 102 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2") // ?? | |
| 103 | AM_RANGE(0x04, 0x04) AM_READ_PORT("SYSTEM") | |
| 104 | AM_RANGE(0x05, 0x05) AM_READ_PORT("IN4") AM_WRITE(rom_bank_select_w) | |
| 105 | 105 | AM_RANGE(0x06, 0x06) AM_READ(suprgolf_random) // game locks up or crashes? if this doesn't return right values? |
| 106 | 106 | |
| 107 | 107 | AM_RANGE(0x08, 0x08) AM_READ(ym2203_status_port_0_r) AM_WRITE(ym2203_control_port_0_w) |
| r3115 | r3116 | |
| 109 | 109 | ADDRESS_MAP_END |
| 110 | 110 | |
| 111 | 111 | static INPUT_PORTS_START( suprgolf ) |
| 112 | PORT_START("P1") | |
| 112 | PORT_START("P1") | |
| 113 | 113 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 114 | 114 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 115 | 115 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 119 | 119 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) /* CNT */ |
| 120 | 120 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) /* SEL */ |
| 121 | 121 | |
| 122 | PORT_START("P2") | |
| 122 | PORT_START("P2") | |
| 123 | 123 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 124 | 124 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 125 | 125 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 129 | 129 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) /* CNT */ |
| 130 | 130 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) /* SEL */ |
| 131 | 131 | |
| 132 | PORT_START("IN2") | |
| 132 | PORT_START("IN2") | |
| 133 | 133 | PORT_DIPNAME( 0x01, 0x01, "2" ) |
| 134 | 134 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 135 | 135 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 155 | 155 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 156 | 156 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 157 | 157 | |
| 158 | PORT_START("SYSTEM") | |
| 158 | PORT_START("SYSTEM") | |
| 159 | 159 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) /* 1P */ |
| 160 | 160 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) /* POW */ |
| 161 | 161 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) /* 1P */ |
| r3115 | r3116 | |
| 169 | 169 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 170 | 170 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 171 | 171 | |
| 172 | PORT_START("IN4") | |
| 172 | PORT_START("IN4") | |
| 173 | 173 | PORT_DIPNAME( 0x01, 0x01, "4" ) |
| 174 | 174 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 175 | 175 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 195 | 195 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 196 | 196 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 197 | 197 | |
| 198 | PORT_START("DSW0") | |
| 198 | PORT_START("DSW0") | |
| 199 | 199 | PORT_DIPNAME( 0x01, 0x01, "DSW0" ) |
| 200 | 200 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 201 | 201 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 221 | 221 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 222 | 222 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 223 | 223 | |
| 224 | PORT_START("DSW1") | |
| 224 | PORT_START("DSW1") | |
| 225 | 225 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 226 | 226 | PORT_DIPNAME( 0x02, 0x02, "DSW1" ) |
| 227 | 227 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| r3115 | r3116 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | static void update_interrupts(running_machine *machine) |
| 34 | 34 | { |
| 35 | int newstate = 0; | |
| 36 | ||
| 37 | if (atarigen_scanline_int_state) | |
| 38 | newstate = 1; | |
| 39 | if (atarigen_video_int_state) | |
| 40 | newstate = 2; | |
| 41 | if (atarigen_sound_int_state) | |
| 42 | newstate = 4; | |
| 43 | ||
| 44 | if (newstate) | |
| 45 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 46 | else | |
| 47 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 35 | cpunum_set_input_line(machine, 0, 1, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 36 | cpunum_set_input_line(machine, 0, 2, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 37 | cpunum_set_input_line(machine, 0, 4, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 48 | 38 | } |
| 49 | 39 | |
| 50 | 40 | |
| r3115 | r3116 | |
| 144 | 134 | AM_RANGE(0xff4800, 0xff4fff) AM_WRITE(skullxbo_mobwr_w) |
| 145 | 135 | AM_RANGE(0xff6000, 0xff6fff) AM_WRITE(atarigen_eeprom_w) AM_BASE(&atarigen_eeprom) AM_SIZE(&atarigen_eeprom_size) |
| 146 | 136 | AM_RANGE(0xff5000, 0xff5001) AM_READ(atarigen_sound_r) |
| 147 | AM_RANGE(0xff5800, 0xff5801) AM_READ | |
| 137 | AM_RANGE(0xff5800, 0xff5801) AM_READ | |
| 148 | 138 | AM_RANGE(0xff5802, 0xff5803) AM_READ(special_port1_r) |
| 149 | 139 | AM_RANGE(0xff6000, 0xff6fff) AM_READ(atarigen_eeprom_r) |
| 150 | 140 | AM_RANGE(0xff8000, 0xff9fff) AM_RAM_WRITE(atarigen_playfield_latched_lsb_w) AM_BASE(&atarigen_playfield) |
| r3115 | r3116 | |
| 164 | 154 | *************************************/ |
| 165 | 155 | |
| 166 | 156 | static INPUT_PORTS_START( skullxbo ) |
| 167 | PORT_START("FF5800") | |
| 157 | PORT_START("FF5800") | |
| 168 | 158 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 169 | 159 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 170 | 160 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 175 | 165 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 176 | 166 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 177 | 167 | |
| 178 | PORT_START("FF5802") | |
| 168 | PORT_START("FF5802") | |
| 179 | 169 | PORT_BIT( 0x000f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 180 | 170 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_UNUSED ) /* HBLANK */ |
| 181 | 171 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| r3115 | r3116 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | TODO: |
| 8 | 8 | (almost everything) |
| 9 | - add emulation of HD63484 (like shanghai.c but 4bpp mode and much more commands) | |
| 10 | 9 | - add sound and i/o |
| 11 | 10 | - protection in Fashion Gambler (NVRam based?) |
| 12 | 11 | |
| r3115 | r3116 | |
| 141 | 140 | #include "machine/68681.h" |
| 142 | 141 | #include "deprecat.h" |
| 143 | 142 | |
| 143 | static UINT8 register_active; | |
| 144 | 144 | static struct |
| 145 | 145 | { |
| 146 | 146 | const device_config *duart68681; |
| r3115 | r3116 | |
| 194 | 194 | NULL |
| 195 | 195 | }; |
| 196 | 196 | |
| 197 | /* | |
| 198 | 197 | static PALETTE_INIT( adp ) |
| 199 | 198 | { |
| 200 | 199 | int i; |
| r3115 | r3116 | |
| 206 | 205 | |
| 207 | 206 | |
| 208 | 207 | // red component |
| 209 | bit0 = (i >> | |
| 208 | bit0 = (i >> 0) & 0x01; | |
| 210 | 209 | bit1 = (i >> 3) & 0x01; |
| 211 | bit2 = (i >> | |
| 210 | bit2 = (i >> 0) & 0x01; | |
| 212 | 211 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 213 | 212 | // green component |
| 214 | bit0 = (i >> 5) & 0x01; | |
| 215 | bit1 = (i >> 6) & 0x01; | |
| 216 | bit2 = (i >> 7) & 0x01; | |
| 213 | bit0 = (i >> 1) & 0x01; | |
| 214 | bit1 = (i >> 3) & 0x01; | |
| 215 | bit2 = (i >> 1) & 0x01; | |
| 217 | 216 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 218 | 217 | // blue component |
| 219 | bit0 = 0; | |
| 220 | bit1 = (i >> 0) & 0x01; | |
| 221 | bit2 = (i >> 1) & 0x01; | |
| 218 | bit0 = (i >> 2) & 0x01; | |
| 219 | bit1 = (i >> 3) & 0x01; | |
| 220 | bit2 = (i >> 2) & 0x01; | |
| 222 | 221 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 223 | 222 | |
| 224 | 223 | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| 225 | 224 | } |
| 226 | 225 | } |
| 227 | */ | |
| 228 | 226 | |
| 229 | 227 | static VIDEO_START(adp) |
| 230 | 228 | { |
| r3115 | r3116 | |
| 273 | 271 | for (x = 0 ; x < (HD63484_reg[0xca/2] & 0x0fff) * 4 ; x += 4) |
| 274 | 272 | { |
| 275 | 273 | b &= (HD63484_RAM_SIZE-1); |
| 276 | *BITMAP_ADDR16(bitmap, y, x ) = (HD63484_ram[b] & 0x000f); | |
| 277 | *BITMAP_ADDR16(bitmap, y, x + 1) = (HD63484_ram[b] & 0x00f0) >> 4; | |
| 278 | *BITMAP_ADDR16(bitmap, y, x + 2) = (HD63484_ram[b] & 0x0f00) >> 8; | |
| 279 | *BITMAP_ADDR16(bitmap, y, x + 3) = (HD63484_ram[b] & 0xf000) >> 12; | |
| 274 | *BITMAP_ADDR16(bitmap, y, x ) = ((HD63484_ram[b] & 0x000f) >> 0) << 0; | |
| 275 | *BITMAP_ADDR16(bitmap, y, x + 1) = ((HD63484_ram[b] & 0x00f0) >> 4) << 0; | |
| 276 | *BITMAP_ADDR16(bitmap, y, x + 2) = ((HD63484_ram[b] & 0x0f00) >> 8) << 0; | |
| 277 | *BITMAP_ADDR16(bitmap, y, x + 3) = ((HD63484_ram[b] & 0xf000) >> 12) << 0; | |
| 280 | 278 | b++; |
| 281 | 279 | } |
| 282 | 280 | } |
| r3115 | r3116 | |
| 298 | 296 | b &= (HD63484_RAM_SIZE - 1); |
| 299 | 297 | if (x <= w && x + sx >= 0 && x + sx < (HD63484_reg[0xca/2] & 0x0fff) * 4) |
| 300 | 298 | { |
| 301 | *BITMAP_ADDR16(bitmap, y, x + sx ) = (HD63484_ram[b] & 0x000f); | |
| 302 | *BITMAP_ADDR16(bitmap, y, x + sx + 1) = (HD63484_ram[b] & 0x00f0) >> 4; | |
| 303 | *BITMAP_ADDR16(bitmap, y, x + sx + 2) = (HD63484_ram[b] & 0x0f00) >> 8; | |
| 304 | *BITMAP_ADDR16(bitmap, y, x + sx + 3) = (HD63484_ram[b] & 0xf000) >> 12; | |
| 299 | *BITMAP_ADDR16(bitmap, y, x + sx ) = ((HD63484_ram[b] & 0x000f) >> 0) << 0; | |
| 300 | *BITMAP_ADDR16(bitmap, y, x + sx + 1) = ((HD63484_ram[b] & 0x00f0) >> 4) << 0; | |
| 301 | *BITMAP_ADDR16(bitmap, y, x + sx + 2) = ((HD63484_ram[b] & 0x0f00) >> 8) << 0; | |
| 302 | *BITMAP_ADDR16(bitmap, y, x + sx + 3) = ((HD63484_ram[b] & 0xf000) >> 12) << 0; | |
| 305 | 303 | } |
| 306 | 304 | b++; |
| 307 | 305 | } |
| r3115 | r3116 | |
| 313 | 311 | |
| 314 | 312 | static READ16_HANDLER(test_r) |
| 315 | 313 | { |
| 314 | // printf("ra=%04x ",register_active); | |
| 315 | if (register_active == 0x0000) { | |
| 316 | if (input_code_pressed(KEYCODE_1)) return 0x0001 ^ 0xffff; | |
| 317 | if (input_code_pressed(KEYCODE_2)) return 0x0002 ^ 0xffff; | |
| 318 | if (input_code_pressed(KEYCODE_3)) return 0x0004 ^ 0xffff; | |
| 319 | if (input_code_pressed(KEYCODE_4)) return 0x0008 ^ 0xffff; | |
| 320 | if (input_code_pressed(KEYCODE_5)) return 0x0010 ^ 0xffff; | |
| 321 | if (input_code_pressed(KEYCODE_6)) return 0x0020 ^ 0xffff; | |
| 322 | if (input_code_pressed(KEYCODE_7)) return 0x0040 ^ 0xffff; | |
| 323 | if (input_code_pressed(KEYCODE_8)) return 0x0080 ^ 0xffff; | |
| 324 | if (input_code_pressed(KEYCODE_A)) return 0x0100 ^ 0xffff; | |
| 325 | if (input_code_pressed(KEYCODE_S)) return 0x0200 ^ 0xffff; | |
| 326 | if (input_code_pressed(KEYCODE_D)) return 0x0400 ^ 0xffff; | |
| 327 | if (input_code_pressed(KEYCODE_F)) return 0x0800 ^ 0xffff; | |
| 328 | if (input_code_pressed(KEYCODE_G)) return 0x1000 ^ 0xffff; | |
| 329 | if (input_code_pressed(KEYCODE_H)) return 0x2000 ^ 0xffff; | |
| 330 | if (input_code_pressed(KEYCODE_J)) return 0x4000 ^ 0xffff; | |
| 331 | if (input_code_pressed(KEYCODE_K)) return 0x8000 ^ 0xffff; | |
| 332 | return 0x4; | |
| 333 | } | |
| 334 | if (input_code_pressed(KEYCODE_1)) return 0x0001 ^ 0xffff; | |
| 335 | if (input_code_pressed(KEYCODE_2)) return 0x0002 ^ 0xffff; | |
| 336 | if (input_code_pressed(KEYCODE_3)) return 0x0004 ^ 0xffff; | |
| 337 | if (input_code_pressed(KEYCODE_4)) return 0x0008 ^ 0xffff; | |
| 338 | if (input_code_pressed(KEYCODE_5)) return 0x0010 ^ 0xffff; | |
| 339 | if (input_code_pressed(KEYCODE_6)) return 0x0020 ^ 0xffff; | |
| 340 | if (input_code_pressed(KEYCODE_7)) return 0x0040 ^ 0xffff; | |
| 341 | if (input_code_pressed(KEYCODE_8)) return 0x0080 ^ 0xffff; | |
| 342 | ||
| 343 | // return 0x0004 ^ 0xffff; // 0x0004 | |
| 316 | 344 | switch (mame_rand(machine) & 3) |
| 317 | 345 | { |
| 318 | 346 | case 0: |
| r3115 | r3116 | |
| 320 | 348 | case 1: |
| 321 | 349 | return 0xffff; |
| 322 | 350 | default: |
| 323 | return mame_rand(machine) | |
| 351 | return mame_rand(machine) & 0xffff; | |
| 324 | 352 | } |
| 325 | 353 | } |
| 326 | 354 | |
| 355 | /* | |
| 327 | 356 | static READ16_HANDLER(test1_r) |
| 328 | 357 | { |
| 329 | if (input_code_pressed(KEYCODE_Q)) return 0x0001; | |
| 330 | if (input_code_pressed(KEYCODE_W)) return 0x0002; | |
| 331 | if (input_code_pressed(KEYCODE_E)) return 0x0004; | |
| 332 | if (input_code_pressed(KEYCODE_R)) return 0x0008; | |
| 333 | if (input_code_pressed(KEYCODE_T)) return 0x0010; | |
| 334 | if (input_code_pressed(KEYCODE_Y)) return 0x0020; | |
| 335 | if (input_code_pressed(KEYCODE_U)) return 0x0040; | |
| 336 | if (input_code_pressed(KEYCODE_I)) return 0x0080; | |
| 337 | if (input_code_pressed(KEYCODE_A)) return 0x0100; | |
| 338 | if (input_code_pressed(KEYCODE_S)) return 0x0200; | |
| 339 | if (input_code_pressed(KEYCODE_D)) return 0x0400; | |
| 340 | if (input_code_pressed(KEYCODE_F)) return 0x0800; | |
| 341 | if (input_code_pressed(KEYCODE_G)) return 0x1000; | |
| 342 | if (input_code_pressed(KEYCODE_H)) return 0x2000; | |
| 343 | if (input_code_pressed(KEYCODE_J)) return 0x4000; | |
| 344 | if (input_code_pressed(KEYCODE_K)) return 0x8000; | |
| 358 | if (input_code_pressed(KEYCODE_Q)) return 0x0001; | |
| 359 | if (input_code_pressed(KEYCODE_W)) return 0x0002; | |
| 360 | if (input_code_pressed(KEYCODE_E)) return 0x0004; | |
| 361 | if (input_code_pressed(KEYCODE_R)) return 0x0008; | |
| 362 | if (input_code_pressed(KEYCODE_T)) return 0x0010; | |
| 363 | if (input_code_pressed(KEYCODE_Y)) return 0x0020; | |
| 364 | if (input_code_pressed(KEYCODE_U)) return 0x0040; | |
| 365 | if (input_code_pressed(KEYCODE_I)) return 0x0080; | |
| 366 | if (input_code_pressed(KEYCODE_A)) return 0x0100; | |
| 367 | if (input_code_pressed(KEYCODE_S)) return 0x0200; | |
| 368 | if (input_code_pressed(KEYCODE_D)) return 0x0400; | |
| 369 | if (input_code_pressed(KEYCODE_F)) return 0x0800; | |
| 370 | if (input_code_pressed(KEYCODE_G)) return 0x1000; | |
| 371 | if (input_code_pressed(KEYCODE_H)) return 0x2000; | |
| 372 | if (input_code_pressed(KEYCODE_J)) return 0x4000; | |
| 373 | if (input_code_pressed(KEYCODE_K)) return 0x8000; | |
| 345 | 374 | |
| 375 | switch (mame_rand(machine) & 3) | |
| 376 | { | |
| 377 | case 0: | |
| 378 | return 0; | |
| 379 | case 1: | |
| 380 | return 0xffff; | |
| 381 | default: | |
| 382 | return mame_rand(machine) % 0xffff; | |
| 383 | } | |
| 384 | } | |
| 385 | */ | |
| 386 | ||
| 387 | static READ16_HANDLER(rh1_r) | |
| 388 | { | |
| 389 | // printf("ra=%04x ",register_active); | |
| 390 | /* | |
| 391 | if ((register_active == 0x0e) || (register_active == 0x0e) || (register_active == 0x0e)) | |
| 392 | { | |
| 393 | if (input_code_pressed(KEYCODE_1)) return 0x0001 ^ 0xffff; | |
| 394 | if (input_code_pressed(KEYCODE_2)) return 0x0002 ^ 0xffff; | |
| 395 | if (input_code_pressed(KEYCODE_3)) return 0x0004 ^ 0xffff; | |
| 396 | if (input_code_pressed(KEYCODE_4)) return 0x0008 ^ 0xffff; | |
| 397 | if (input_code_pressed(KEYCODE_5)) return 0x0010 ^ 0xffff; | |
| 398 | if (input_code_pressed(KEYCODE_6)) return 0x0020 ^ 0xffff; | |
| 399 | if (input_code_pressed(KEYCODE_7)) return 0x0040 ^ 0xffff; | |
| 400 | if (input_code_pressed(KEYCODE_8)) return 0x0080 ^ 0xffff; | |
| 401 | if (input_code_pressed(KEYCODE_A)) return 0x0100 ^ 0xffff; | |
| 402 | if (input_code_pressed(KEYCODE_S)) return 0x0200 ^ 0xffff; | |
| 403 | if (input_code_pressed(KEYCODE_D)) return 0x0400 ^ 0xffff; | |
| 404 | if (input_code_pressed(KEYCODE_F)) return 0x0800 ^ 0xffff; | |
| 405 | if (input_code_pressed(KEYCODE_G)) return 0x1000 ^ 0xffff; | |
| 406 | if (input_code_pressed(KEYCODE_H)) return 0x2000 ^ 0xffff; | |
| 407 | if (input_code_pressed(KEYCODE_J)) return 0x4000 ^ 0xffff; | |
| 408 | if (input_code_pressed(KEYCODE_K)) return 0x8000 ^ 0xffff; | |
| 409 | ||
| 410 | } | |
| 411 | */ | |
| 346 | 412 | switch (mame_rand(machine) & 3) |
| 347 | 413 | { |
| 348 | 414 | case 0: |
| r3115 | r3116 | |
| 354 | 420 | } |
| 355 | 421 | } |
| 356 | 422 | |
| 423 | static WRITE16_HANDLER(wh1_w) | |
| 424 | { | |
| 425 | // register_active = data; | |
| 426 | } | |
| 427 | ||
| 428 | static WRITE16_HANDLER(wh2_w) | |
| 429 | { | |
| 430 | register_active = data; | |
| 431 | } | |
| 432 | ||
| 357 | 433 | static ADDRESS_MAP_START( skattv_mem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 358 | 434 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 359 | AM_RANGE(0x400000, 0x4000ff) AM_READ(test_r) //18b too | |
| 360 | 435 | AM_RANGE(0x800080, 0x800081) AM_READWRITE(HD63484_status_r, HD63484_address_w) |
| 361 | 436 | AM_RANGE(0x800082, 0x800083) AM_READWRITE(HD63484_data_r, HD63484_data_w) |
| 362 | // AM_RANGE(0x8000a0, 0x8000a1) AM_READ(handler2_r) | |
| 363 | // AM_RANGE(0x8000a2, 0x8000a3) AM_READ(handler2_r) | |
| 364 | // AM_RANGE(0x800100, 0x80017f) AM_READ(test_r) //18b too | |
| 365 | AM_RANGE(0x800100, 0x800101) AM_READ(test_r) //18b too | |
| 366 | AM_RANGE(0x800140, 0x800141) AM_READ(test1_r) //18b too | |
| 437 | AM_RANGE(0x800100, 0x800101) AM_READWRITE(test_r,wh2_w) //related to input | |
| 438 | AM_RANGE(0x800140, 0x800141) AM_READWRITE(rh1_r,wh1_w) //18b too | |
| 439 | AM_RANGE(0x800142, 0x800143) AM_READWRITE(rh1_r,wh1_w) //18b too | |
| 367 | 440 | AM_RANGE(0x800180, 0x80019f) AM_DEVREADWRITE8( DUART68681, "duart68681", duart68681_r, duart68681_w, 0xff ) |
| 368 | 441 | // AM_RANGE(0xffd246, 0xffd247) AM_READ(handler3_r) |
| 369 | 442 | // AM_RANGE(0xffd248, 0xffd249) AM_READ(handler3_r) |
| r3115 | r3116 | |
| 396 | 469 | PORT_INCLUDE(microtouch) |
| 397 | 470 | |
| 398 | 471 | PORT_START("DSW1") |
| 399 | PORT_BIT( 0x0001, IP_ACTIVE_ | |
| 472 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN5 ) | |
| 400 | 473 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN6 ) |
| 401 | 474 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BILL1 ) |
| 402 | 475 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 430 | 503 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 431 | 504 | MDRV_SCREEN_SIZE(384, 280) |
| 432 | 505 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1) |
| 433 | MDRV_PALETTE_LENGTH(0x10 | |
| 506 | MDRV_PALETTE_LENGTH(0x10 | |
| 434 | 507 | |
| 435 | ||
| 508 | | |
| 436 | 509 | MDRV_VIDEO_START(adp) |
| 437 | 510 | MDRV_VIDEO_UPDATE(adp) |
| 438 | 511 | |
| r3115 | r3116 | |
| 459 | 532 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 460 | 533 | MDRV_SCREEN_SIZE(384, 280) |
| 461 | 534 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1) |
| 462 | MDRV_PALETTE_LENGTH(0x10 | |
| 535 | MDRV_PALETTE_LENGTH(0x10 | |
| 463 | 536 | |
| 464 | ||
| 537 | | |
| 465 | 538 | MDRV_VIDEO_START(adp) |
| 466 | 539 | MDRV_VIDEO_UPDATE(adp) |
| 467 | 540 | |
| r3115 | r3116 | |
| 481 | 554 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 482 | 555 | MDRV_SCREEN_SIZE(640, 480) |
| 483 | 556 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 484 | MDRV_PALETTE_LENGTH(0x10 | |
| 557 | MDRV_PALETTE_LENGTH(0x10 | |
| 485 | 558 | |
| 486 | 559 | // MDRV_PALETTE_INIT(adp) |
| 487 | 560 | MDRV_VIDEO_START(adp) |
| r3115 | r3116 | |
|---|---|---|
| 406 | 406 | AM_RANGE(0x300004, 0x300005) AM_WRITE(io_offset_w) //unknown i/o device |
| 407 | 407 | AM_RANGE(0x300006, 0x300007) AM_WRITE(io_data_w) |
| 408 | 408 | |
| 409 | AM_RANGE(0x400000, 0x400001) AM_READ(input_port_0_word_r) | |
| 410 | AM_RANGE(0x400002, 0x400003) AM_READ(input_port_1_word_r) | |
| 411 | AM_RANGE(0x400004, 0x400005) AM_READ(input_port_2_word_r) | |
| 409 | AM_RANGE(0x400000, 0x400001) AM_READ_PORT("P1_P2") | |
| 410 | AM_RANGE(0x400002, 0x400003) AM_READ_PORT("SYSTEM") | |
| 411 | AM_RANGE(0x400004, 0x400005) AM_READ_PORT("DSW") | |
| 412 | 412 | AM_RANGE(0x400006, 0x400007) AM_WRITE(fifo_data_w) |
| 413 | 413 | AM_RANGE(0x400008, 0x400009) AM_WRITE(fifo_clear_w) |
| 414 | 414 | AM_RANGE(0x40000a, 0x40000b) AM_WRITE(fifo_flush_w) |
| r3115 | r3116 | |
|---|---|---|
| 2668 | 2668 | |
| 2669 | 2669 | /* video hardware */ |
| 2670 | 2670 | MDRV_SCREEN_ADD("main", RASTER) |
| 2671 | MDRV_SCREEN_REFRESH_RATE(59.633333) /* just a guess for now, based on previous games */ | |
| 2672 | /* however Mantis bug 2110 suggests it may be slightly different */ | |
| 2673 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2674 | 2671 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2675 | MDRV_SCREEN_SIZE(512*2, 224*2) | |
| 2676 | MDRV_SCREEN_VISIBLE_AREA(0, (384*1)-1, 0, 223/*511*/) | |
| 2672 | MDRV_SCREEN_RAW_PARAMS(XTAL_60MHz/8, 486, 0, 384, 259, 0, 224) | |
| 2673 | /* | |
| 2674 | Measured clocks: | |
| 2675 | V = 59.5992Hz | |
| 2676 | H = 15.4335kHz | |
| 2677 | H/V = 258.955 ~ 259 lines | |
| 2677 | 2678 | |
| 2679 | Possible video clocks: | |
| 2680 | 60MHz / 15.4335kHz = 3887.647 / 8 = 485.956 ~ 486 -> likely | |
| 2681 | 42.9545MHz / 15.4445kHz = 2781.217 / 6 = 463.536 -> unlikely | |
| 2682 | */ | |
| 2683 | ||
| 2678 | 2684 | MDRV_MACHINE_START(cps3) |
| 2679 | 2685 | MDRV_MACHINE_RESET(cps3) |
| 2680 | 2686 | MDRV_NVRAM_HANDLER( cps3 ) |
| r3115 | r3116 | |
|---|---|---|
| 744 | 744 | } |
| 745 | 745 | } |
| 746 | 746 | |
| 747 | static | |
| 747 | static CUSTOM_I | |
| 748 | 748 | { |
| 749 | 749 | /* For Teki Paki hardware */ |
| 750 | 750 | /* bit 4 high signifies secondary CPU is ready */ |
| r3115 | r3116 | |
| 755 | 755 | case CPU_2_HD647180: mcu_data = 0xff; break; /* Teki Paki */ |
| 756 | 756 | default: mcu_data = 0x00; break; |
| 757 | 757 | } |
| 758 | if (mcu_data == 0xff) mcu_data = 0x10; | |
| 759 | else mcu_data = 0x00; | |
| 760 | return ( mcu_data | input_port_read(machine, "JMPR") ); | |
| 758 | ||
| 759 | return (mcu_data == 0xff) ? 0x01 : 0x00; | |
| 761 | 760 | } |
| 762 | 761 | |
| 763 | 762 | static READ16_HANDLER( pipibibi_z80_status_r ) |
| r3115 | r3116 | |
| 994 | 993 | /* from/to nvram to store the settings (a 93C45 EEPROM) */ |
| 995 | 994 | memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x28f002, 0x28fbff, 0, 0, SMH_BANK2, SMH_BANK2); |
| 996 | 995 | memory_set_bankptr(2, fixeight_sec_cpu_mem); |
| 997 | memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x28f004, 0x28f005, 0, 0, input_port_5_word_r, SMH_NOP); /* Dip Switch A - Wrong !!! */ | |
| 998 | memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x28f006, 0x28f007, 0, 0, input_port_6_word_r, SMH_NOP); /* Dip Switch B - Wrong !!! */ | |
| 999 | memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x28f008, 0x28f009, 0, 0, input_port_7_word_r, SMH_NOP); /* Territory Jumper block - Wrong !!! */ | |
| 996 | memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x28f004, 0x28f005, 0, 0, input_port_read_handler16(machine->portconfig, "DSWA"), SMH_NOP); /* Dip Switch A - Wrong !!! */ | |
| 997 | memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x28f006, 0x28f007, 0, 0, input_port_read_handler16(machine->portconfig, "DSWB"), SMH_NOP); /* Dip Switch B - Wrong !!! */ | |
| 998 | memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x28f008, 0x28f009, 0, 0, input_port_read_handler16(machine->portconfig, "JMPR"), SMH_NOP); /* Territory Jumper block - Wrong !!! */ | |
| 1000 | 999 | |
| 1001 | 1000 | mcu_data = data; |
| 1002 | 1001 | } |
| r3115 | r3116 | |
| 1397 | 1396 | AM_RANGE(0x180000, 0x180001) AM_READ_PORT("DSWA") |
| 1398 | 1397 | AM_RANGE(0x180010, 0x180011) AM_READ_PORT("DSWB") |
| 1399 | 1398 | AM_RANGE(0x180020, 0x180021) AM_READ_PORT("SYS") |
| 1400 | AM_RANGE(0x180030, 0x180031) AM_READ | |
| 1399 | AM_RANGE(0x180030, 0x180031) AM_READ | |
| 1401 | 1400 | AM_RANGE(0x180040, 0x180041) AM_WRITE(toaplan2_coin_word_w) /* Coin count/lock */ |
| 1402 | 1401 | AM_RANGE(0x180050, 0x180051) AM_READ_PORT("IN1") |
| 1403 | 1402 | AM_RANGE(0x180060, 0x180061) AM_READ_PORT("IN2") |
| r3115 | r3116 | |
| 2181 | 2180 | |
| 2182 | 2181 | |
| 2183 | 2182 | static INPUT_PORTS_START( tekipaki ) |
| 2184 | PORT_INCLUDE(toaplan2) | |
| 2183 | PORT_INCLUDE( toaplan2 ) | |
| 2185 | 2184 | |
| 2186 | 2185 | PORT_MODIFY("DSWA") |
| 2187 | 2186 | /* Various features on bit mask 0x000f - see above */ |
| r3115 | r3116 | |
| 2221 | 2220 | PORT_DIPSETTING( 0x0008, "Hong Kong (Honest Trading Co.)" ) |
| 2222 | 2221 | PORT_DIPSETTING( 0x0005, "Taiwan" ) |
| 2223 | 2222 | PORT_DIPSETTING( 0x0006, "Taiwan (Spacy Co. Ltd)" ) |
| 2223 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(c2map_r, NULL) | |
| 2224 | 2224 | INPUT_PORTS_END |
| 2225 | 2225 | |
| 2226 | 2226 | |
| 2227 | 2227 | static INPUT_PORTS_START( ghox ) |
| 2228 | PORT_INCLUDE(toaplan2) | |
| 2228 | PORT_INCLUDE( toaplan2 ) | |
| 2229 | 2229 | |
| 2230 | 2230 | PORT_MODIFY("DSWA") |
| 2231 | 2231 | /* Various features on bit mask 0x000f - see above */ |
| r3115 | r3116 | |
| 2281 | 2281 | |
| 2282 | 2282 | |
| 2283 | 2283 | static INPUT_PORTS_START( dogyuun ) |
| 2284 | PORT_INCLUDE(toaplan2) | |
| 2284 | PORT_INCLUDE( toaplan2 ) | |
| 2285 | 2285 | |
| 2286 | 2286 | PORT_MODIFY("IN1") |
| 2287 | 2287 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2338 | 2338 | |
| 2339 | 2339 | |
| 2340 | 2340 | static INPUT_PORTS_START( kbash ) |
| 2341 | PORT_INCLUDE(toaplan2) | |
| 2341 | PORT_INCLUDE( toaplan2 ) | |
| 2342 | 2342 | |
| 2343 | 2343 | PORT_MODIFY("IN1") |
| 2344 | 2344 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2402 | 2402 | |
| 2403 | 2403 | |
| 2404 | 2404 | static INPUT_PORTS_START( truxton2 ) |
| 2405 | PORT_INCLUDE(toaplan2) | |
| 2405 | PORT_INCLUDE( toaplan2 ) | |
| 2406 | 2406 | |
| 2407 | 2407 | PORT_MODIFY("IN1") |
| 2408 | 2408 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2450 | 2450 | |
| 2451 | 2451 | |
| 2452 | 2452 | static INPUT_PORTS_START( pipibibs ) |
| 2453 | PORT_INCLUDE(toaplan2) | |
| 2453 | PORT_INCLUDE( toaplan2 ) | |
| 2454 | 2454 | |
| 2455 | 2455 | PORT_MODIFY("DSWA") |
| 2456 | 2456 | /* Various features on bit mask 0x000f - see above */ |
| r3115 | r3116 | |
| 2496 | 2496 | PORT_INCLUDE(pipibibs) |
| 2497 | 2497 | |
| 2498 | 2498 | PORT_MODIFY("JMPR") |
| 2499 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_U | |
| 2499 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUST | |
| 2500 | 2500 | INPUT_PORTS_END |
| 2501 | 2501 | |
| 2502 | 2502 | |
| r3115 | r3116 | |
| 2527 | 2527 | |
| 2528 | 2528 | |
| 2529 | 2529 | static INPUT_PORTS_START( fixeight ) |
| 2530 | PORT_INCLUDE(toaplan2) | |
| 2530 | PORT_INCLUDE( toaplan2 ) | |
| 2531 | 2531 | |
| 2532 | 2532 | PORT_START("IN3") |
| 2533 | 2533 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(3) PORT_8WAY |
| r3115 | r3116 | |
| 2615 | 2615 | |
| 2616 | 2616 | |
| 2617 | 2617 | static INPUT_PORTS_START( grindstm ) |
| 2618 | PORT_INCLUDE(toaplan2) | |
| 2618 | PORT_INCLUDE( toaplan2 ) | |
| 2619 | 2619 | |
| 2620 | 2620 | PORT_MODIFY("DSWA") |
| 2621 | 2621 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:1") |
| r3115 | r3116 | |
| 2677 | 2677 | |
| 2678 | 2678 | |
| 2679 | 2679 | static INPUT_PORTS_START( batsugun ) |
| 2680 | PORT_INCLUDE(toaplan2) | |
| 2680 | PORT_INCLUDE( toaplan2 ) | |
| 2681 | 2681 | |
| 2682 | 2682 | PORT_MODIFY("DSWA") |
| 2683 | 2683 | PORT_DIPNAME( 0x0001, 0x0000, "Continue Mode" ) PORT_DIPLOCATION("SW1:1") |
| r3115 | r3116 | |
| 2729 | 2729 | |
| 2730 | 2730 | |
| 2731 | 2731 | static INPUT_PORTS_START( snowbro2 ) |
| 2732 | PORT_INCLUDE(toaplan2) | |
| 2732 | PORT_INCLUDE( toaplan2 ) | |
| 2733 | 2733 | |
| 2734 | 2734 | PORT_START("IN3") |
| 2735 | 2735 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(3) PORT_8WAY |
| r3115 | r3116 | |
| 2797 | 2797 | |
| 2798 | 2798 | |
| 2799 | 2799 | static INPUT_PORTS_START( sstriker ) |
| 2800 | PORT_INCLUDE(toaplan2) | |
| 2800 | PORT_INCLUDE( toaplan2 ) | |
| 2801 | 2801 | |
| 2802 | 2802 | PORT_MODIFY("DSWA") |
| 2803 | 2803 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:1") |
| r3115 | r3116 | |
| 2850 | 2850 | |
| 2851 | 2851 | |
| 2852 | 2852 | static INPUT_PORTS_START( kingdmgp ) |
| 2853 | PORT_INCLUDE(toaplan2) | |
| 2853 | PORT_INCLUDE( toaplan2 ) | |
| 2854 | 2854 | |
| 2855 | 2855 | PORT_MODIFY("DSWA") |
| 2856 | 2856 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:1") |
| r3115 | r3116 | |
|---|---|---|
| 201 | 201 | |
| 202 | 202 | static INPUT_PORTS_START( couple ) |
| 203 | 203 | PORT_START("P1") |
| 204 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) \ | |
| 205 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) \ | |
| 206 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) \ | |
| 207 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) \ | |
| 208 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_IMPULSE(1) \ | |
| 209 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_IMPULSE(1) \ | |
| 210 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_IMPULSE(1) \ | |
| 211 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_IMPULSE(1) \ | |
| 204 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 205 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 206 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 207 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 208 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_IMPULSE(1) | |
| 209 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_IMPULSE(1) | |
| 210 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_IMPULSE(1) | |
| 211 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_IMPULSE(1) | |
| 212 | 212 | |
| 213 | 213 | PORT_START("DSW") |
| 214 | PORT_DIPNAME( 0x01, 0x00, "Number of Attempts" ) \ | |
| 215 | PORT_DIPSETTING( 0x01, "99" ) \ | |
| 216 | PORT_DIPSETTING( 0x00, "9" ) \ | |
| 217 | PORT_DIPNAME( 0x02, 0x02, "Tries Per Coin" ) \ | |
| 218 | PORT_DIPSETTING( 0x02, "3" ) \ | |
| 219 | PORT_DIPSETTING( 0x00, "2" ) \ | |
| 220 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coinage ) ) \ | |
| 221 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) \ | |
| 222 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) \ | |
| 223 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) \ | |
| 224 | /*2 Coins for 2 Credits?I think this is an invalid setting,it doesn't even work correctly*/ \ | |
| 225 | /* PORT_DIPSETTING( 0x00, DEF_STR( 2C_2C ) ) */ \ | |
| 226 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Difficulty ) ) \ | |
| 227 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) \ | |
| 228 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) \ | |
| 229 | PORT_DIPNAME( 0x20, 0x00, "Sound" ) \ | |
| 230 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) \ | |
| 231 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) \ | |
| 214 | PORT_DIPNAME( 0x01, 0x00, "Number of Attempts" ) | |
| 215 | PORT_DIPSETTING( 0x01, "99" ) | |
| 216 | PORT_DIPSETTING( 0x00, "9" ) | |
| 217 | PORT_DIPNAME( 0x02, 0x02, "Tries Per Coin" ) | |
| 218 | PORT_DIPSETTING( 0x02, "3" ) | |
| 219 | PORT_DIPSETTING( 0x00, "2" ) | |
| 220 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coinage ) ) | |
| 221 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 222 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) | |
| 223 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 224 | /*2 Coins for 2 Credits?I think this is an invalid setting,it doesn't even work correctly*/ | |
| 225 | /* PORT_DIPSETTING( 0x00, DEF_STR( 2C_2C ) ) */ | |
| 226 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Difficulty ) ) | |
| 227 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 228 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 229 | PORT_DIPNAME( 0x20, 0x00, "Sound" ) | |
| 230 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 231 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 232 | 232 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) |
| 233 | 233 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 234 | 234 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
|---|---|---|
| 17 | 17 | #define ML_CHARS 0x2000 |
| 18 | 18 | static UINT8 dirtychar[ML_CHARS]; |
| 19 | 19 | static int status_bit; |
| 20 | static int adpcm_pos; | |
| 21 | static int adpcm_data; | |
| 20 | 22 | |
| 21 | 23 | |
| 24 | ||
| 22 | 25 | static const gfx_layout tiles8x8_layout = |
| 23 | 26 | { |
| 24 | 27 | 8,8, |
| r3115 | r3116 | |
| 87 | 90 | memory_set_bankptr( 1, memory_region(machine, "z80") + ((data) & 0x03) * 0x4000 + 0x10000 ); |
| 88 | 91 | } |
| 89 | 92 | |
| 90 | static int adpcm_pos; | |
| 91 | ||
| 92 | 93 | static void ml_msm5205_vck(running_machine *machine, int chip) |
| 93 | 94 | { |
| 94 | static int adpcm_data = -1; | |
| 95 | ||
| 96 | 95 | if (adpcm_data != -1) |
| 97 | 96 | { |
| 98 | 97 | msm5205_data_w(0, adpcm_data & 0x0f); |
| r3115 | r3116 | |
| 352 | 351 | sound_bankswitch_w |
| 353 | 352 | }; |
| 354 | 353 | |
| 354 | static MACHINE_RESET( mlanding ) | |
| 355 | { | |
| 356 | status_bit = 0; | |
| 357 | adpcm_pos = 0; | |
| 358 | adpcm_data = -1; | |
| 359 | } | |
| 355 | 360 | |
| 356 | 361 | static MACHINE_DRIVER_START( mlanding ) |
| 357 | 362 | |
| r3115 | r3116 | |
| 385 | 390 | MDRV_VIDEO_START(mlanding) |
| 386 | 391 | MDRV_VIDEO_UPDATE(mlanding) |
| 387 | 392 | |
| 393 | MDRV_MACHINE_RESET(mlanding) | |
| 394 | ||
| 388 | 395 | /* sound hardware */ |
| 389 | 396 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 390 | 397 |
| r3115 | r3116 | |
|---|---|---|
| 200 | 200 | AM_RANGE(0xd000, 0xd7ff) AM_READWRITE(tankbust_txtram_r, tankbust_txtram_w) AM_BASE(&tankbust_txtram) |
| 201 | 201 | AM_RANGE(0xd800, 0xd8ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 202 | 202 | AM_RANGE(0xe000, 0xe007) AM_READWRITE(debug_output_area_r, tankbust_e0xx_w) |
| 203 | AM_RANGE(0xe800, 0xe800) AM_READWRITE(input_port_0_r, tankbust_yscroll_w) | |
| 204 | AM_RANGE(0xe801, 0xe801) AM_READ(input_port_1_r) | |
| 205 | AM_RANGE(0xe802, 0xe802) AM_READ(input_port_2_r) | |
| 203 | AM_RANGE(0xe800, 0xe800) AM_READ_PORT("INPUTS") AM_WRITE(tankbust_yscroll_w) | |
| 204 | AM_RANGE(0xe801, 0xe801) AM_READ_PORT("SYSTEM") | |
| 205 | AM_RANGE(0xe802, 0xe802) AM_READ_PORT("DSW") | |
| 206 | 206 | AM_RANGE(0xe801, 0xe802) AM_WRITE(tankbust_xscroll_w) |
| 207 | 207 | AM_RANGE(0xe803, 0xe803) AM_READWRITE(some_changing_input, tankbust_soundlatch_w) /*unknown. Game expects this to change so this is not player input */ |
| 208 | 208 | AM_RANGE(0xe804, 0xe804) AM_WRITE(SMH_NOP) /* watchdog ? ; written in long-lasting loops */ |
| r3115 | r3116 | |
| 233 | 233 | |
| 234 | 234 | |
| 235 | 235 | static INPUT_PORTS_START( tankbust ) |
| 236 | PORT_START("INPUTS") | |
| 236 | PORT_START("INPUTS") | |
| 237 | 237 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 238 | 238 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 239 | 239 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| r3115 | r3116 | |
| 243 | 243 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 244 | 244 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 245 | 245 | |
| 246 | PORT_START("SYSTEM") | |
| 246 | PORT_START("SYSTEM") | |
| 247 | 247 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 248 | 248 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 249 | 249 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 253 | 253 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 254 | 254 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 255 | 255 | |
| 256 | PORT_START("DSW") | |
| 256 | PORT_START("DSW") | |
| 257 | 257 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 258 | 258 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) |
| 259 | 259 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) |
| r3115 | r3116 | |
|---|---|---|
| 72 | 72 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 73 | 73 | AM_RANGE(0x00, 0x7f) AM_READ(nb1413m3_sndrom_r) |
| 74 | 74 | AM_RANGE(0x81, 0x81) AM_READ(ay8910_read_port_0_r) |
| 75 | AM_RANGE(0x90, 0x90) AM_READ | |
| 75 | AM_RANGE(0x90, 0x90) AM_READ | |
| 76 | 76 | AM_RANGE(0xa0, 0xa0) AM_READ(nb1413m3_inputport1_r) |
| 77 | 77 | AM_RANGE(0xb0, 0xb0) AM_READ(nb1413m3_inputport2_r) |
| 78 | 78 | AM_RANGE(0xc0, 0xc0) AM_READ(pastelg_sndrom_r) |
| r3115 | r3116 | |
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | static INPUT_PORTS_START( pastelg ) |
| 97 | PORT_START("DSWA") | |
| 97 | PORT_START("DSWA") | |
| 98 | 98 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 99 | 99 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| 100 | 100 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 119 | 119 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 120 | 120 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 121 | 121 | |
| 122 | PORT_START("DSWB") | |
| 122 | PORT_START("DSWB") | |
| 123 | 123 | PORT_DIPNAME( 0x03, 0x00, "Number of last chance" ) |
| 124 | 124 | PORT_DIPSETTING( 0x03, "0" ) |
| 125 | 125 | PORT_DIPSETTING( 0x02, "1" ) |
| r3115 | r3116 | |
| 143 | 143 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 144 | 144 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 145 | 145 | |
| 146 | PORT_START("DSWC") | |
| 146 | PORT_START("DSWC") | |
| 147 | 147 | PORT_DIPNAME( 0x03, 0x03, "Change Rate" ) |
| 148 | 148 | PORT_DIPSETTING( 0x03, "Type-A" ) |
| 149 | 149 | PORT_DIPSETTING( 0x02, "Type-B" ) |
| r3115 | r3116 | |
| 167 | 167 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 168 | 168 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 169 | 169 | |
| 170 | PORT_START("SYSTEM") /* (3) PORT 0 */ | |
| 171 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 170 | PORT_START("SYSTEM") | |
| 171 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 172 | 172 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 173 | 173 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 174 | 174 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
|---|---|---|
| 84 | 84 | **************************************************************************/ |
| 85 | 85 | |
| 86 | 86 | #include "driver.h" |
| 87 | #include "cpu/ | |
| 87 | #include "cpu/mcs48 | |
| 88 | 88 | #include "sound/5220intf.h" |
| 89 | 89 | |
| 90 | 90 | extern UINT8 *portrait_bgvideoram,*portrait_fgvideoram; |
| r3115 | r3116 | |
| 131 | 131 | AM_RANGE(0x9200, 0x97ff) AM_RAM |
| 132 | 132 | AM_RANGE(0xa000, 0xa000) AM_WRITE(soundlatch_w) |
| 133 | 133 | AM_RANGE(0xa010, 0xa010) AM_WRITENOP // ? |
| 134 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 135 | AM_RANGE(0xa004, 0xa004) AM_READ(input_port_1_r) | |
| 136 | AM_RANGE(0xa008, 0xa008) AM_READWRITE(input_port_2_r, portrait_ctrl_w) | |
| 137 | AM_RANGE(0xa010, 0xa010) AM_READ(input_port_3_r) | |
| 134 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("DSW1") | |
| 135 | AM_RANGE(0xa004, 0xa004) AM_READ_PORT("DSW2") | |
| 136 | AM_RANGE(0xa008, 0xa008) AM_READ_PORT("SYSTEM") AM_WRITE(portrait_ctrl_w) | |
| 137 | AM_RANGE(0xa010, 0xa010) AM_READ_PORT("INPUTS") | |
| 138 | 138 | AM_RANGE(0xa018, 0xa018) AM_READWRITE(SMH_NOP, portrait_positive_scroll_w) |
| 139 | 139 | AM_RANGE(0xa019, 0xa019) AM_WRITE(portrait_negative_scroll_w) |
| 140 | 140 | AM_RANGE(0xa800, 0xa83f) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| r3115 | r3116 | |
| 148 | 148 | |
| 149 | 149 | |
| 150 | 150 | static INPUT_PORTS_START( portrait ) |
| 151 | PORT_START("DSW1") | |
| 151 | PORT_START("DSW1") | |
| 152 | 152 | PORT_DIPNAME( 0x0f, 0x08, DEF_STR( Coin_A ) ) |
| 153 | 153 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_1C ) ) |
| 154 | 154 | PORT_DIPSETTING( 0x09, DEF_STR( 1C_2C ) ) |
| r3115 | r3116 | |
| 179 | 179 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 180 | 180 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 181 | 181 | |
| 182 | PORT_START("DSW2") | |
| 182 | PORT_START("DSW2") | |
| 183 | 183 | PORT_DIPNAME( 0x01, 0x00, "Game Play" ) |
| 184 | 184 | PORT_DIPSETTING( 0x00, "Normal Play" ) |
| 185 | 185 | PORT_DIPSETTING( 0x01, "Freeplay (255 Cameras)" ) |
| r3115 | r3116 | |
| 203 | 203 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) |
| 204 | 204 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 205 | 205 | |
| 206 | PORT_START("SYSTEM") | |
| 206 | PORT_START("SYSTEM") | |
| 207 | 207 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) |
| 208 | 208 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) |
| 209 | 209 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(2) |
| r3115 | r3116 | |
| 215 | 215 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 216 | 216 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 217 | 217 | |
| 218 | PORT_START("INPUTS") | |
| 218 | PORT_START("INPUTS") | |
| 219 | 219 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 220 | 220 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 221 | 221 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| r3115 | r3116 | |
|---|---|---|
| 337 | 337 | rocknms_main2sub = (data ^ 0xffff); |
| 338 | 338 | } |
| 339 | 339 | |
| 340 | static | |
| 340 | static CUSTOM_I | |
| 341 | 341 | { |
| 342 | return | |
| 342 | return | |
| 343 | 343 | } |
| 344 | 344 | |
| 345 | 345 | static WRITE16_HANDLER( rocknms_sub2main_w ) |
| r3115 | r3116 | |
| 601 | 601 | AM_RANGE(0xa40002, 0xa40003) AM_READ(tetrisp2_sound_r ) // Sound |
| 602 | 602 | AM_RANGE(0xa44000, 0xa44001) AM_READ(rockn_adpcmbank_r ) // Sound Bank |
| 603 | 603 | AM_RANGE(0xbe0000, 0xbe0001) AM_READ(SMH_NOP ) // INT-level1 dummy read |
| 604 | AM_RANGE(0xbe0002, 0xbe0003) AM_READ | |
| 604 | AM_RANGE(0xbe0002, 0xbe0003) AM_READ | |
| 605 | 605 | AM_RANGE(0xbe0004, 0xbe0005) AM_READ_PORT("SYSTEM") // Inputs |
| 606 | 606 | AM_RANGE(0xbe0008, 0xbe0009) AM_READ_PORT("DSW") // Inputs |
| 607 | 607 | AM_RANGE(0xbe000a, 0xbe000b) AM_READ(watchdog_reset16_r) // Watchdog |
| r3115 | r3116 | |
| 700 | 700 | static INPUT_PORTS_START( tetrisp2 ) |
| 701 | 701 | |
| 702 | 702 | PORT_START("PLAYERS") /*$be0002.w*/ |
| 703 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 704 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 705 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 706 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 707 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 708 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 709 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 710 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 711 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 712 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 713 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 714 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 715 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 716 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 717 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 718 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 703 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 704 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 705 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 706 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 707 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 708 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 709 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 710 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 711 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 712 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 713 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 714 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 715 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 716 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 717 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 718 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 719 | 719 | |
| 720 | 720 | PORT_START("SYSTEM") /*$be0004.w*/ |
| 721 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 722 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 723 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 724 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 725 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 726 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 727 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 728 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 729 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SPECIAL ) /* ?*/ | |
| 730 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SPECIAL ) /* ?*/ | |
| 731 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 732 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 733 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 734 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 735 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 736 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 721 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 722 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 723 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 724 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 725 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 726 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 727 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 728 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 729 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SPECIAL ) /* ?*/ | |
| 730 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SPECIAL ) /* ?*/ | |
| 731 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 732 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 733 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 734 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 735 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 736 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 737 | 737 | |
| 738 | 738 | PORT_START("DSW") //$be0008.w |
| 739 | 739 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") |
| r3115 | r3116 | |
| 835 | 835 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 836 | 836 | |
| 837 | 837 | PORT_START("COINS") // be0004.w |
| 838 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 839 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 840 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 841 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 838 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 839 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 840 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 841 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 842 | 842 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_SERVICE2 ) // (keep pressed during boot for test mode) |
| 843 | 843 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 844 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 845 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 846 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 847 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 848 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 849 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 850 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 851 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 852 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 853 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 844 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 845 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 846 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 847 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 848 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 849 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 850 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 851 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 852 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 853 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 854 | 854 | |
| 855 | 855 | PORT_START("DSW") // be0008.w |
| 856 | 856 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
| 906 | 906 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) |
| 907 | 907 | |
| 908 | 908 | PORT_START("PRINT") // be0006.w |
| 909 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Print 1?") // Press both to print (and alternate with ok too). | |
| 910 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Print 2?") // Hold them for some seconds to bring up a "caution" message. | |
| 909 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Print 1?") // Press both to print (and alternate with ok too). | |
| 910 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Print 2?") // Hold them for some seconds to bring up a "caution" message. | |
| 911 | 911 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH,IPT_SPECIAL ) // ? |
| 912 | 912 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 913 | 913 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 933 | 933 | |
| 934 | 934 | static INPUT_PORTS_START( rockn ) |
| 935 | 935 | PORT_START("PLAYERS") //$be0002.w |
| 936 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 937 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 938 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 939 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 940 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 941 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 942 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 943 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 944 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 945 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 946 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 947 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 948 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 949 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 950 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 951 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 936 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 937 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 938 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 939 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 940 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 941 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 942 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 943 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 944 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 945 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 946 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 947 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 948 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 949 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 950 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 951 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 952 | 952 | |
| 953 | 953 | PORT_START("SYSTEM") //$be0004.w |
| 954 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 955 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 956 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 957 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 958 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_LOW) | |
| 959 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 960 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 961 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 962 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 963 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 964 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 965 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 966 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 967 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 968 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 969 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 954 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 955 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 956 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 957 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 958 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_LOW ) | |
| 959 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 960 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 961 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 962 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 963 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 964 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 965 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 966 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 967 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 968 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 969 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 970 | 970 | |
| 971 | 971 | PORT_START("DSW") //$be0008.w |
| 972 | 972 | PORT_DIPNAME( 0x0001, 0x0001, "DIPSW 1-1") // All these used to be marked 'Cheat', can't think why. |
| r3115 | r3116 | |
| 1023 | 1023 | |
| 1024 | 1024 | static INPUT_PORTS_START( rocknms ) |
| 1025 | 1025 | PORT_START("PLAYERS") // IN0 - $be0002.w |
| 1026 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) // MAIN -> SUB Communication | |
| 1027 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) // MAIN -> SUB Communication | |
| 1028 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1029 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1030 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1031 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1032 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 1033 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1034 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1035 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1036 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1037 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1038 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1039 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1040 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1041 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1026 | PORT_BIT( 0x0003, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(rocknms_main2sub_status_r, NULL) // MAIN -> SUB Communication | |
| 1027 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1028 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1029 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1030 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1031 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 1032 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1033 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1034 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1035 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1036 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1037 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1038 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1039 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1040 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1042 | 1041 | |
| 1043 | 1042 | PORT_START("SYSTEM") // IN1 - $be0004.w |
| 1044 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1045 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1046 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1047 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1048 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_LOW) | |
| 1049 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1050 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1051 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1052 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1053 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1054 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1055 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1056 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1057 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1058 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1059 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1043 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1044 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1045 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1046 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1047 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_LOW ) | |
| 1048 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1049 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1050 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1051 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1052 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1053 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1054 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1055 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1056 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1057 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1058 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1060 | 1059 | |
| 1061 | 1060 | PORT_START("DSW") //$be0008.w |
| 1062 | 1061 | PORT_DIPNAME( 0x0001, 0x0001, "DIPSW 1-1") // All these used to be marked 'Cheat', can't think why. |
| r3115 | r3116 | |
|---|---|---|
| 622 | 622 | AM_RANGE( 0xc00000, 0xc00001 ) AM_WRITE( galgames_palette_offset_w ) |
| 623 | 623 | AM_RANGE( 0xc00002, 0xc00003 ) AM_WRITE( galgames_palette_data_w ) |
| 624 | 624 | |
| 625 | AM_RANGE( 0xd00000, 0xd00001 ) AM_READ | |
| 625 | AM_RANGE( 0xd00000, 0xd00001 ) AM_READ_PORT("TRACKBALL_1 | |
| 626 | 626 | AM_RANGE( 0xd00000, 0xd00001 ) AM_WRITE( SMH_NOP ) |
| 627 | AM_RANGE( 0xd00002, 0xd00003 ) AM_READ ( input_port_1_word_r ) // trackball p1 y | |
| 628 | AM_RANGE( 0xd00004, 0xd00005 ) AM_READ ( input_port_2_word_r ) // trackball p2 x | |
| 629 | AM_RANGE( 0xd00006, 0xd00007 ) AM_READ ( input_port_3_word_r ) // trackball p2 y | |
| 630 | AM_RANGE( 0xd00008, 0xd00009 ) AM_READ ( input_port_4_word_r ) | |
| 631 | AM_RANGE( 0xd0000a, 0xd0000b ) AM_READ ( input_port_5_word_r ) | |
| 632 | AM_RANGE( 0xd0000c, 0xd0000d ) AM_READWRITE( input_port_6_word_r, SMH_NOP ) | |
| 627 | AM_RANGE( 0xd00002, 0xd00003 ) AM_READ_PORT("TRACKBALL_1_Y") | |
| 628 | AM_RANGE( 0xd00004, 0xd00005 ) AM_READ_PORT("TRACKBALL_2_X") | |
| 629 | AM_RANGE( 0xd00006, 0xd00007 ) AM_READ_PORT("TRACKBALL_2_Y") | |
| 630 | AM_RANGE( 0xd00008, 0xd00009 ) AM_READ_PORT("P1") | |
| 631 | AM_RANGE( 0xd0000a, 0xd0000b ) AM_READ_PORT("P2") | |
| 632 | AM_RANGE( 0xd0000c, 0xd0000d ) AM_READ_PORT("SYSTEM") AM_WRITENOP | |
| 633 | 633 | |
| 634 | AM_RANGE( 0xd0000e, 0xd0000f ) AM_WRITE | |
| 634 | AM_RANGE( 0xd0000e, 0xd0000f ) AM_WRITE | |
| 635 | 635 | AM_RANGE( 0xd00010, 0xd00011 ) AM_READWRITE( galgames_eeprom_r, galgames_eeprom_w ) |
| 636 | 636 | AM_RANGE( 0xd00012, 0xd00013 ) AM_READWRITE( galgames_cart_data_r, galgames_cart_data_w ) |
| 637 | 637 | AM_RANGE( 0xd00014, 0xd00015 ) AM_READWRITE( galgames_cart_clock_r, galgames_cart_clock_w ) |
| r3115 | r3116 | |
| 645 | 645 | |
| 646 | 646 | ***************************************************************************/ |
| 647 | 647 | static INPUT_PORTS_START( tm ) |
| 648 | PORT_INCLUDE(microtouch) | |
| 648 | PORT_INCLUDE( microtouch ) | |
| 649 | 649 | |
| 650 | PORT_START("COIN") // IN3 | |
| 651 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN5 ) // "M. Coin 1 Input" | |
| 652 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN6 ) // "M. Coin 2 Input" | |
| 653 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BILL1 ) PORT_IMPULSE(2) // "DBV Input" | |
| 654 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 655 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // service coin? | |
| 656 | PORT_SERVICE_NO_TOGGLE( 0x0020, IP_ACTIVE_LOW ) | |
| 657 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_SERVICE1 ) // "Calibrate" | |
| 658 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 659 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 660 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 661 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 662 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 663 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_COIN1 ) // "E. Coin 1" (ECA?) tmaster defaults to e. coin, | |
| 664 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_COIN2 ) // "E. Coin 2" (ECA?) rather than m. coin | |
| 665 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN3 ) // "E. Coin 3" (ECA?) so they're coin1-coin4 | |
| 666 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN4 ) // "E. Coin 4" (ECA?) | |
| 650 | PORT_START("COIN") | |
| 651 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN5 ) // "M. Coin 1 Input" | |
| 652 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN6 ) // "M. Coin 2 Input" | |
| 653 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BILL1 ) PORT_IMPULSE(2) // "DBV Input" | |
| 654 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 655 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // service coin? | |
| 656 | PORT_SERVICE_NO_TOGGLE( 0x0020, IP_ACTIVE_LOW ) | |
| 657 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_SERVICE1 ) // "Calibrate" | |
| 658 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 659 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 660 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 661 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 662 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 663 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_COIN1 ) // "E. Coin 1" (ECA?) tmaster defaults to e. coin, | |
| 664 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_COIN2 ) // "E. Coin 2" (ECA?) rather than m. coin | |
| 665 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN3 ) // "E. Coin 3" (ECA?) so they're coin1-coin4 | |
| 666 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN4 ) // "E. Coin 4" (ECA?) | |
| 667 | 667 | INPUT_PORTS_END |
| 668 | 668 | |
| 669 | 669 | static INPUT_PORTS_START( tmaster ) |
| 670 | PORT_INCLUDE(microtouch) | |
| 670 | PORT_INCLUDE( microtouch ) | |
| 671 | 671 | |
| 672 | PORT_START("COIN") // IN3 | |
| 673 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) // "M. Coin 1 Input" | |
| 674 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) // "M. Coin 2 Input" | |
| 675 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BILL1 ) PORT_IMPULSE(2) // "DBV Input" | |
| 676 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 677 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 678 | PORT_SERVICE_NO_TOGGLE( 0x0020, IP_ACTIVE_LOW ) | |
| 679 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_SERVICE1 ) // "Calibrate" | |
| 680 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 681 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 682 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 683 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 684 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 685 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_COIN3 ) // "E. Coin 1" (ECA mech) The rest of the tm games | |
| 686 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_COIN4 ) // "E. Coin 2" (ECA mech) Default to m. coin | |
| 687 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN5 ) // "E. Coin 3" (ECA mech) So these are coin3-coin6 | |
| 688 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN6 ) // "E. Coin 4" (ECA mech) | |
| 672 | PORT_START("COIN") | |
| 673 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) // "M. Coin 1 Input" | |
| 674 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) // "M. Coin 2 Input" | |
| 675 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BILL1 ) PORT_IMPULSE(2) // "DBV Input" | |
| 676 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 677 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 678 | PORT_SERVICE_NO_TOGGLE( 0x0020, IP_ACTIVE_LOW ) | |
| 679 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_SERVICE1 ) // "Calibrate" | |
| 680 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 681 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 682 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 683 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 684 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL ) | |
| 685 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_COIN3 ) // "E. Coin 1" (ECA mech) The rest of the tm games | |
| 686 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_COIN4 ) // "E. Coin 2" (ECA mech) Default to m. coin | |
| 687 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN5 ) // "E. Coin 3" (ECA mech) So these are coin3-coin6 | |
| 688 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN6 ) // "E. Coin 4" (ECA mech) | |
| 689 | 689 | INPUT_PORTS_END |
| 690 | 690 | |
| 691 | 691 | static INPUT_PORTS_START( galgames ) |
| 692 | PORT_START("TRACKBALL_1_X") | |
| 693 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(5) PORT_PLAYER(1) PORT_RESET | |
| 694 | ||
| 695 | PORT_START("TRACKBALL_1_Y") | |
| 696 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(5) PORT_PLAYER(1) PORT_RESET | |
| 697 | ||
| 698 | PORT_START("TRACKBALL_2_X") | |
| 699 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(5) PORT_PLAYER(2) PORT_RESET | |
| 700 | ||
| 701 | PORT_START("TRACKBALL_2_Y") | |
| 702 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(5) PORT_PLAYER(2) PORT_RESET | |
| 703 | ||
| 704 | PORT_START("IN4") | |
| 692 | PORT_START("P1") | |
| 705 | 693 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 706 | 694 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 707 | 695 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 712 | 700 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 713 | 701 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 714 | 702 | |
| 715 | PORT_START(" | |
| 703 | PORT_START("P2 | |
| 716 | 704 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 717 | 705 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 718 | 706 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 723 | 711 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 724 | 712 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 725 | 713 | |
| 726 | PORT_START(" | |
| 714 | PORT_START("SYSTEM") | |
| 727 | 715 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) // CS 1 (coin) |
| 728 | 716 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) // CS 2 (coin) |
| 729 | 717 | PORT_SERVICE_NO_TOGGLE( 0x0004, IP_ACTIVE_LOW ) // System Check |
| r3115 | r3116 | |
| 733 | 721 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 734 | 722 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 735 | 723 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 724 | ||
| 725 | PORT_START("TRACKBALL_1_X") | |
| 726 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(5) PORT_PLAYER(1) PORT_RESET | |
| 727 | ||
| 728 | PORT_START("TRACKBALL_1_Y") | |
| 729 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(5) PORT_PLAYER(1) PORT_RESET | |
| 730 | ||
| 731 | PORT_START("TRACKBALL_2_X") | |
| 732 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(5) PORT_PLAYER(2) PORT_RESET | |
| 733 | ||
| 734 | PORT_START("TRACKBALL_2_Y") | |
| 735 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(5) PORT_PLAYER(2) PORT_RESET | |
| 736 | 736 | INPUT_PORTS_END |
| 737 | 737 | |
| 738 | 738 |
| r3115 | r3116 | |
|---|---|---|
| 197 | 197 | WRITE16_HANDLER( f1gpstr2_vregs_w ); |
| 198 | 198 | WRITE16_HANDLER( scudhamm_vregs_w ); |
| 199 | 199 | |
| 200 | CUSTOM_INPUT( cischeat_shift_r ); | |
| 201 | ||
| 200 | 202 | VIDEO_START( bigrun ); |
| 201 | 203 | VIDEO_START( cischeat ); |
| 202 | 204 | VIDEO_START( f1gpstar ); |
| r3115 | r3116 | |
| 1006 | 1008 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 High Gear") |
| 1007 | 1009 | |
| 1008 | 1010 | PORT_START("IN1") // Coins - $80000.w |
| 1009 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1010 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1011 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1012 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1011 | 1013 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1012 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW) // called "Test" | |
| 1013 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1014 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1015 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1016 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1014 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) // called "Test" | |
| 1015 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1016 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1017 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1018 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1017 | 1019 | |
| 1018 | 1020 | PORT_START("IN2") //Controls - $80002.w |
| 1019 | 1021 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Brake") // Brake |
| 1020 | ||
| 1022 | | |
| 1021 | 1023 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1022 | 1024 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1023 | 1025 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1026 | 1028 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("P1 Horn") // Horn |
| 1027 | 1029 | |
| 1028 | 1030 | PORT_START("IN3") // Motor Control? - $80004.w |
| 1029 | PORT_DIPNAME( 0x01, 0x01, "Up Limit SW" | |
| 1031 | PORT_DIPNAME( 0x01, 0x01, "Up Limit SW" | |
| 1030 | 1032 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1031 | 1033 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1032 | PORT_DIPNAME( 0x02, 0x02, "Down Limit SW" | |
| 1034 | PORT_DIPNAME( 0x02, 0x02, "Down Limit SW" ) | |
| 1033 | 1035 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1034 | 1036 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1035 | 1037 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1036 | 1038 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1037 | // PORT_DIPNAME( 0x10, 0x10, "Right Limit SW" | |
| 1039 | // PORT_DIPNAME( 0x10, 0x10, "Right Limit SW" | |
| 1038 | 1040 | // PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 1039 | 1041 | // PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1040 | // PORT_DIPNAME( 0x20, 0x20, "Left Limit SW" | |
| 1042 | // PORT_DIPNAME( 0x20, 0x20, "Left Limit SW" | |
| 1041 | 1043 | // PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1042 | 1044 | // PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1043 | 1045 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1138 | 1140 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 High Gear") |
| 1139 | 1141 | |
| 1140 | 1142 | PORT_START("IN1") // Coins - $80000.w |
| 1141 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1142 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1143 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1144 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1143 | 1145 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1144 | 1146 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW) // called "Test" |
| 1145 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1146 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1147 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1148 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1147 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1148 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1149 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1150 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1149 | 1151 | |
| 1150 | 1152 | PORT_START("IN2") // Controls - $80002.w |
| 1151 | 1153 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Brake") // Brake |
| 1152 | ||
| 1154 | | |
| 1153 | 1155 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1154 | 1156 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1155 | 1157 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Accelerator") // Accel |
| r3115 | r3116 | |
| 1158 | 1160 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("P1 Horn") // Horn |
| 1159 | 1161 | |
| 1160 | 1162 | PORT_START("IN3") // Motor Control? - $80004.w |
| 1161 | PORT_DIPNAME( 0x01, 0x01, "Up Limit SW" | |
| 1163 | PORT_DIPNAME( 0x01, 0x01, "Up Limit SW" | |
| 1162 | 1164 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1163 | 1165 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1164 | PORT_DIPNAME( 0x02, 0x02, "Down Limit SW" | |
| 1166 | PORT_DIPNAME( 0x02, 0x02, "Down Limit SW" ) | |
| 1165 | 1167 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1166 | 1168 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1167 | 1169 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1168 | 1170 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1169 | PORT_DIPNAME( 0x10, 0x10, "Right Limit SW" | |
| 1171 | PORT_DIPNAME( 0x10, 0x10, "Right Limit SW" ) | |
| 1170 | 1172 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 1171 | 1173 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1172 | PORT_DIPNAME( 0x20, 0x20, "Left Limit SW" | |
| 1174 | PORT_DIPNAME( 0x20, 0x20, "Left Limit SW" ) | |
| 1173 | 1175 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1174 | 1176 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1175 | 1177 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1312 | 1314 | PORT_DIPSETTING( 0x0300, DEF_STR( Japan ) ) |
| 1313 | 1315 | PORT_DIPSETTING( 0x0200, DEF_STR( USA ) ) |
| 1314 | 1316 | PORT_DIPSETTING( 0x0100, DEF_STR( Europe ) ) |
| 1315 | PORT_DIPSETTING( 0x0000, "France" | |
| 1317 | PORT_DIPSETTING( 0x0000, "France" | |
| 1316 | 1318 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW02:3,4") // -> !f9026 |
| 1317 | 1319 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) // 58 <- Initial Time (seconds, Germany) |
| 1318 | 1320 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) // 51 |
| r3115 | r3116 | |
| 1332 | 1334 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) |
| 1333 | 1335 | PORT_DIPNAME( 0x8000, 0x8000, "Vibrations" ) PORT_DIPLOCATION("SW02:8") |
| 1334 | 1336 | PORT_DIPSETTING( 0x8000, "Torque" ) |
| 1335 | PORT_DIPSETTING( 0x0000, "Shake" | |
| 1337 | PORT_DIPSETTING( 0x0000, "Shake" | |
| 1336 | 1338 | |
| 1337 | 1339 | PORT_START("IN2") // Controls - $80004.w -> !f9016 |
| 1338 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1339 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1340 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1341 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1340 | 1342 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1341 | 1343 | PORT_SERVICE_NO_TOGGLE( 0x0008, IP_ACTIVE_LOW) // -> f0100 (called "Test") |
| 1342 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1343 | // PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON4 ) // Shift -> !f900e - We handle it with 2 buttons | |
| 1344 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Brake")// Brake -> !f9010 | |
| 1345 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START2 ) // "Race Together" | |
| 1344 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1345 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(cischeat_shift_r, NULL) // Shift -> !f900e - We handle it with 2 buttons | |
| 1346 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Brake")// Brake -> !f9010 | |
| 1347 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START2 ) // "Race Together" | |
| 1346 | 1348 | |
| 1347 | 1349 | PORT_START("IN3") // ? Read at boot only - $80006.w |
| 1348 | 1350 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1478 | 1480 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) |
| 1479 | 1481 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // GAME OVER if pressed on the selection screen |
| 1480 | 1482 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1481 | PORT_SERVICE_NO_TOGGLE( 0x0008, IP_ACTIVE_LOW) // called "Test" | |
| 1482 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1483 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON4 ) // Select | |
| 1484 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1485 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1483 | PORT_SERVICE_NO_TOGGLE( 0x0008, IP_ACTIVE_LOW ) // called "Test" | |
| 1484 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1485 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON4 ) // Select | |
| 1486 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1487 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1486 | 1488 | |
| 1487 | 1489 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_BUTTON1 ) // Gu |
| 1488 | 1490 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_BUTTON2 ) // Choki |
| r3115 | r3116 | |
| 1490 | 1492 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1491 | 1493 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1492 | 1494 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1493 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_TILT | |
| 1495 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_TILT | |
| 1494 | 1496 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1495 | 1497 | |
| 1496 | 1498 | PORT_START("IN1") // A/D |
| r3115 | r3116 | |
| 1539 | 1541 | |
| 1540 | 1542 | static INPUT_PORTS_START( armchmp2 ) |
| 1541 | 1543 | PORT_START("IN0") // Buttons + Sensors |
| 1542 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) // left sensor | |
| 1543 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) // right sensor | |
| 1544 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SPECIAL ) // center sensor | |
| 1544 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) // left sensor | |
| 1545 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SPECIAL ) // right sensor | |
| 1546 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SPECIAL ) // center sensor | |
| 1545 | 1547 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1546 | 1548 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_LOW ) |
| 1547 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1548 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1549 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1550 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1551 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) // hard | |
| 1552 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) // easy | |
| 1553 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON3 ) // elbow (it always complains though) | |
| 1549 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1550 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1551 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1552 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1553 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) // hard | |
| 1554 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) // easy | |
| 1555 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON3 ) // elbow (it always complains though) | |
| 1554 | 1556 | |
| 1555 | 1557 | PORT_START("IN1") // A/D |
| 1556 | 1558 | PORT_BIT( 0x00ff, 0x0000, IPT_DIAL ) PORT_MINMAX(0x0000,0x00ff) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) |
| r3115 | r3116 | |
|---|---|---|
| 313 | 313 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 314 | 314 | |
| 315 | 315 | PORT_START("IN1") |
| 316 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_64v, | |
| 316 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_64v, NULL) | |
| 317 | 317 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 318 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 318 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 319 | 319 | |
| 320 | 320 | PORT_COIN |
| 321 | 321 | INPUT_PORTS_END |
| r3115 | r3116 | |
| 395 | 395 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 396 | 396 | |
| 397 | 397 | PORT_START("IN1") |
| 398 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_64v, | |
| 398 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_64v, NULL) | |
| 399 | 399 | PORT_BIT( 0x0e, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 400 | 400 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coinage ) ) |
| 401 | 401 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 403 | 403 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) |
| 404 | 404 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) |
| 405 | 405 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 406 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 406 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 407 | 407 | |
| 408 | 408 | PORT_COIN |
| 409 | 409 | INPUT_PORTS_END |
| r3115 | r3116 | |
| 485 | 485 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 486 | 486 | |
| 487 | 487 | PORT_START("IN1") |
| 488 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_64v, | |
| 488 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_64v, NULL) | |
| 489 | 489 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 490 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 490 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 491 | 491 | |
| 492 | 492 | PORT_COIN |
| 493 | 493 | |
| r3115 | r3116 | |
| 613 | 613 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 614 | 614 | |
| 615 | 615 | PORT_START("IN1") |
| 616 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_64v, | |
| 616 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_64v, NULL) | |
| 617 | 617 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 618 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 618 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 619 | 619 | |
| 620 | 620 | PORT_CABINET_COLOR_OR_BW |
| 621 | 621 | |
| r3115 | r3116 | |
| 641 | 641 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 642 | 642 | |
| 643 | 643 | PORT_START("IN1") |
| 644 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 644 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 645 | 645 | PORT_DIPNAME( 0x04, 0x04, "Rom Test" ) |
| 646 | 646 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 647 | 647 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 648 | 648 | PORT_BIT( 0x7a, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 649 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 649 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 650 | 650 | |
| 651 | 651 | PORT_CABINET_COLOR_OR_BW |
| 652 | 652 | |
| r3115 | r3116 | |
| 688 | 688 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 689 | 689 | |
| 690 | 690 | PORT_START("IN2") |
| 691 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 691 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 692 | 692 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 693 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 693 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 694 | 694 | |
| 695 | 695 | PORT_CABINET_COLOR_OR_BW |
| 696 | 696 | |
| r3115 | r3116 | |
| 827 | 827 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 828 | 828 | |
| 829 | 829 | PORT_START("IN2") |
| 830 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 830 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 831 | 831 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Demo_Sounds ) ) |
| 832 | 832 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 833 | 833 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 834 | 834 | PORT_BIT( 0x7c, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 835 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 835 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 836 | 836 | |
| 837 | 837 | PORT_COIN |
| 838 | 838 | INPUT_PORTS_END |
| r3115 | r3116 | |
| 860 | 860 | PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 861 | 861 | |
| 862 | 862 | PORT_START("IN2") |
| 863 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 863 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 864 | 864 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Demo_Sounds ) ) |
| 865 | 865 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 866 | 866 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 867 | 867 | PORT_BIT( 0x7c, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 868 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 868 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 869 | 869 | |
| 870 | 870 | PORT_COIN |
| 871 | 871 | INPUT_PORTS_END |
| r3115 | r3116 | |
| 902 | 902 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 903 | 903 | |
| 904 | 904 | PORT_START("IN2") |
| 905 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 905 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 906 | 906 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 907 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 907 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 908 | 908 | |
| 909 | 909 | PORT_COIN |
| 910 | 910 | INPUT_PORTS_END |
| r3115 | r3116 | |
| 1062 | 1062 | static ADDRESS_MAP_START( invho2_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1063 | 1063 | ADDRESS_MAP_GLOBAL_MASK(0x7f) |
| 1064 | 1064 | |
| 1065 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ(input_port_0_r) | |
| 1066 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ(input_port_1_r) | |
| 1067 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ(input_port_2_r) | |
| 1068 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ(input_port_3_r) | |
| 1065 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ_PORT("IN0") | |
| 1066 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ_PORT("IN1") | |
| 1067 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ_PORT("IN2") | |
| 1068 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ_PORT("IN3") | |
| 1069 | 1069 | |
| 1070 | 1070 | /* no decoder, just logic gates, so in theory the |
| 1071 | 1071 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1076 | 1076 | static ADDRESS_MAP_START( invds_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1077 | 1077 | ADDRESS_MAP_GLOBAL_MASK(0x7f) |
| 1078 | 1078 | |
| 1079 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ(input_port_0_r) | |
| 1080 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ(input_port_1_r) | |
| 1081 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ(input_port_2_r) | |
| 1082 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ(input_port_3_r) | |
| 1079 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ_PORT("IN0") | |
| 1080 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ_PORT("IN1") | |
| 1081 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ_PORT("IN2") | |
| 1082 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ_PORT("IN3") | |
| 1083 | 1083 | |
| 1084 | 1084 | /* no decoder, just logic gates, so in theory the |
| 1085 | 1085 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1090 | 1090 | static ADDRESS_MAP_START( sspacaho_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1091 | 1091 | ADDRESS_MAP_GLOBAL_MASK(0x7f) |
| 1092 | 1092 | |
| 1093 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ(input_port_0_r) | |
| 1094 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ(input_port_1_r) | |
| 1095 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ(input_port_2_r) | |
| 1096 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ(input_port_3_r) | |
| 1093 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ_PORT("IN0") | |
| 1094 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ_PORT("IN1") | |
| 1095 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ_PORT("IN2") | |
| 1096 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ_PORT("IN3") | |
| 1097 | 1097 | |
| 1098 | 1098 | /* no decoder, just logic gates, so in theory the |
| 1099 | 1099 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1104 | 1104 | static ADDRESS_MAP_START( tranqgun_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1105 | 1105 | ADDRESS_MAP_GLOBAL_MASK(0xf) |
| 1106 | 1106 | |
| 1107 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x0c) AM_READ(input_port_0_r) | |
| 1108 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x0c) AM_READ(input_port_1_r) | |
| 1109 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x0c) AM_READ(input_port_2_r) | |
| 1110 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x0c) AM_READ(input_port_3_r) | |
| 1107 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x0c) AM_READ_PORT("IN0") | |
| 1108 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x0c) AM_READ_PORT("IN1") | |
| 1109 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x0c) AM_READ_PORT("IN2") | |
| 1110 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x0c) AM_READ_PORT("IN3") | |
| 1111 | 1111 | |
| 1112 | 1112 | /* no decoder, just logic gates, so in theory the |
| 1113 | 1113 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1118 | 1118 | static ADDRESS_MAP_START( spacetrk_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1119 | 1119 | ADDRESS_MAP_GLOBAL_MASK(0x7f) |
| 1120 | 1120 | |
| 1121 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ(input_port_0_r) | |
| 1122 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ(input_port_1_r) | |
| 1123 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ(input_port_2_r) | |
| 1124 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ(input_port_3_r) | |
| 1121 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ_PORT("IN0") | |
| 1122 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ_PORT("IN1") | |
| 1123 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ_PORT("IN2") | |
| 1124 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ_PORT("IN3") | |
| 1125 | 1125 | |
| 1126 | 1126 | /* no decoder, just logic gates, so in theory the |
| 1127 | 1127 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1132 | 1132 | static ADDRESS_MAP_START( carnival_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1133 | 1133 | ADDRESS_MAP_GLOBAL_MASK(0x7f) |
| 1134 | 1134 | |
| 1135 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ(input_port_0_r) | |
| 1136 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ(input_port_1_r) | |
| 1137 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ(input_port_2_r) | |
| 1138 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ(input_port_3_r) | |
| 1135 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ_PORT("IN0") | |
| 1136 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ_PORT("IN1") | |
| 1137 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ_PORT("IN2") | |
| 1138 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ_PORT("IN3") | |
| 1139 | 1139 | |
| 1140 | 1140 | /* no decoder, just logic gates, so in theory the |
| 1141 | 1141 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1146 | 1146 | static ADDRESS_MAP_START( brdrline_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1147 | 1147 | ADDRESS_MAP_GLOBAL_MASK(0xf) |
| 1148 | 1148 | |
| 1149 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x0c) AM_READ(input_port_0_r) | |
| 1150 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x0c) AM_READ(input_port_1_r) | |
| 1151 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x0c) AM_READ(input_port_2_r) | |
| 1152 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x0c) AM_READ(input_port_3_r) | |
| 1149 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x0c) AM_READ_PORT("IN0") | |
| 1150 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x0c) AM_READ_PORT("IN1") | |
| 1151 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x0c) AM_READ_PORT("IN2") | |
| 1152 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x0c) AM_READ_PORT("IN3") | |
| 1153 | 1153 | |
| 1154 | 1154 | /* no decoder, just logic gates, so in theory the |
| 1155 | 1155 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1160 | 1160 | static ADDRESS_MAP_START( pulsar_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1161 | 1161 | ADDRESS_MAP_GLOBAL_MASK(0x7f) |
| 1162 | 1162 | |
| 1163 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ(input_port_0_r) | |
| 1164 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ(input_port_1_r) | |
| 1165 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ(input_port_2_r) | |
| 1166 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ(input_port_3_r) | |
| 1163 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ_PORT("IN0") | |
| 1164 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ_PORT("IN1") | |
| 1165 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ_PORT("IN2") | |
| 1166 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ_PORT("IN3") | |
| 1167 | 1167 | |
| 1168 | 1168 | /* no decoder, just logic gates, so in theory the |
| 1169 | 1169 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1174 | 1174 | static ADDRESS_MAP_START( heiankyo_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1175 | 1175 | ADDRESS_MAP_GLOBAL_MASK(0xf) |
| 1176 | 1176 | |
| 1177 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x0c) AM_READ(input_port_0_r) | |
| 1178 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x0c) AM_READ(input_port_1_r) | |
| 1179 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x0c) AM_READ(input_port_2_r) | |
| 1180 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x0c) AM_READ(input_port_3_r) | |
| 1177 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x0c) AM_READ_PORT("IN0") | |
| 1178 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x0c) AM_READ_PORT("IN1") | |
| 1179 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x0c) AM_READ_PORT("IN2") | |
| 1180 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x0c) AM_READ_PORT("IN3") | |
| 1181 | 1181 | |
| 1182 | 1182 | /* no decoder, just logic gates, so in theory the |
| 1183 | 1183 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1188 | 1188 | static ADDRESS_MAP_START( alphaho_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1189 | 1189 | ADDRESS_MAP_GLOBAL_MASK(0x7f) |
| 1190 | 1190 | |
| 1191 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ(input_port_0_r) | |
| 1192 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ(input_port_1_r) | |
| 1193 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ(input_port_2_r) | |
| 1194 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ(input_port_3_r) | |
| 1191 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ_PORT("IN0") | |
| 1192 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ_PORT("IN1") | |
| 1193 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ_PORT("IN2") | |
| 1194 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ_PORT("IN3") | |
| 1195 | 1195 | |
| 1196 | 1196 | /* no decoder, just logic gates, so in theory the |
| 1197 | 1197 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 1219 | 1219 | PORT_DIPNAME( 0x04, 0x00, "Head On Lives (2/2)" ) |
| 1220 | 1220 | PORT_DIPSETTING( 0x04, "+0" ) |
| 1221 | 1221 | PORT_DIPSETTING( 0x00, "+1" ) |
| 1222 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1222 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1223 | 1223 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1224 | 1224 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1225 | 1225 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1230 | 1230 | PORT_DIPNAME( 0x04, 0x00, "Invinco Lives" ) |
| 1231 | 1231 | PORT_DIPSETTING( 0x00, "5" ) |
| 1232 | 1232 | PORT_DIPSETTING( 0x04, "6" ) |
| 1233 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1233 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1234 | 1234 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1235 | 1235 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1236 | 1236 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) /* probably unused */ |
| r3115 | r3116 | |
| 1244 | 1244 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1245 | 1245 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1246 | 1246 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1247 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1247 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1248 | 1248 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Game Select") PORT_TOGGLE |
| 1249 | 1249 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1250 | 1250 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1273 | 1273 | PORT_DIPNAME( 0x04, 0x00, "Invinco Lives (2/2)" ) |
| 1274 | 1274 | PORT_DIPSETTING( 0x00, "+0" ) |
| 1275 | 1275 | PORT_DIPSETTING( 0x04, "+2" ) |
| 1276 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1276 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1277 | 1277 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1278 | 1278 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1279 | 1279 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1284 | 1284 | PORT_DIPNAME( 0x04, 0x00, "Deep Scan Lives (1/2)" ) |
| 1285 | 1285 | PORT_DIPSETTING( 0x00, "+0" ) |
| 1286 | 1286 | PORT_DIPSETTING( 0x04, "+1" ) |
| 1287 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1287 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1288 | 1288 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1289 | 1289 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1290 | 1290 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1296 | 1296 | PORT_DIPNAME( 0x04, 0x00, "Deep Scan Lives (2/2)" ) |
| 1297 | 1297 | PORT_DIPSETTING( 0x04, "+0" ) |
| 1298 | 1298 | PORT_DIPSETTING( 0x00, "+2" ) |
| 1299 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1299 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1300 | 1300 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Game Select") PORT_TOGGLE |
| 1301 | 1301 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1302 | 1302 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1325 | 1325 | PORT_DIPNAME( 0x04, 0x00, "S.A. Lives (2/2)" ) |
| 1326 | 1326 | PORT_DIPSETTING( 0x00, "+0" ) |
| 1327 | 1327 | PORT_DIPSETTING( 0x04, "+2" ) |
| 1328 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1328 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1329 | 1329 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1330 | 1330 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1331 | 1331 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1336 | 1336 | PORT_DIPNAME( 0x04, 0x00, "S.A. Bonus Life" ) |
| 1337 | 1337 | PORT_DIPSETTING( 0x00, "10000" ) |
| 1338 | 1338 | PORT_DIPSETTING( 0x04, "15000" ) |
| 1339 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1339 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1340 | 1340 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1341 | 1341 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1342 | 1342 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1347 | 1347 | PORT_DIPNAME( 0x04, 0x00, "S.A. Bonus Life For Final UFO" ) |
| 1348 | 1348 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1349 | 1349 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1350 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1350 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1351 | 1351 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Game Select") PORT_TOGGLE |
| 1352 | 1352 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1353 | 1353 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1376 | 1376 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 1377 | 1377 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1378 | 1378 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1379 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_vblank_comp, | |
| 1379 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_vblank_comp, NULL) | |
| 1380 | 1380 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1381 | 1381 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1382 | 1382 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1387 | 1387 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 1388 | 1388 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1389 | 1389 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1390 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1390 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1391 | 1391 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1392 | 1392 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1393 | 1393 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1398 | 1398 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 1399 | 1399 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1400 | 1400 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1401 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1401 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1402 | 1402 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1403 | 1403 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1404 | 1404 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1427 | 1427 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) /* unknown, but used */ |
| 1428 | 1428 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1429 | 1429 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1430 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1430 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1431 | 1431 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 1432 | 1432 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1433 | 1433 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1438 | 1438 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Bonus_Life ) ) |
| 1439 | 1439 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1440 | 1440 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 1441 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1441 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1442 | 1442 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1443 | 1443 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1444 | 1444 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1449 | 1449 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1450 | 1450 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1451 | 1451 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1452 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1452 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1453 | 1453 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1454 | 1454 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1455 | 1455 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1478 | 1478 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) /* unknown, but used */ |
| 1479 | 1479 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1480 | 1480 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1481 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1481 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1482 | 1482 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 1483 | 1483 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1484 | 1484 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1489 | 1489 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Bonus_Life ) ) |
| 1490 | 1490 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1491 | 1491 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 1492 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1492 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1493 | 1493 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1494 | 1494 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1495 | 1495 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1500 | 1500 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1501 | 1501 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1502 | 1502 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1503 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1503 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1504 | 1504 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1505 | 1505 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1506 | 1506 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1531 | 1531 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1532 | 1532 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1533 | 1533 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1534 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1534 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1535 | 1535 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1536 | 1536 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1537 | 1537 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1542 | 1542 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1543 | 1543 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1544 | 1544 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1545 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1545 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1546 | 1546 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1547 | 1547 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1548 | 1548 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1553 | 1553 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1554 | 1554 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1555 | 1555 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1556 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1556 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1557 | 1557 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1558 | 1558 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1559 | 1559 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1584 | 1584 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1585 | 1585 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1586 | 1586 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1587 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1587 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1588 | 1588 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1589 | 1589 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1590 | 1590 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1595 | 1595 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1596 | 1596 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1597 | 1597 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1598 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1598 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1599 | 1599 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1600 | 1600 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1601 | 1601 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1606 | 1606 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1607 | 1607 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1608 | 1608 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1609 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1609 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1610 | 1610 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1611 | 1611 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1612 | 1612 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1640 | 1640 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) |
| 1641 | 1641 | PORT_DIPSETTING( 0x04, "3" ) |
| 1642 | 1642 | PORT_DIPSETTING( 0x00, "4" ) |
| 1643 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_vblank_comp, | |
| 1643 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_vblank_comp, NULL) | |
| 1644 | 1644 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1645 | 1645 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1646 | 1646 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1662 | 1662 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1663 | 1663 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1664 | 1664 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1665 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1665 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1666 | 1666 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1667 | 1667 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1668 | 1668 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1691 | 1691 | PORT_DIPNAME( 0x04, 0x04, "Lives (2/2)" ) |
| 1692 | 1692 | PORT_DIPSETTING( 0x04, "+0" ) |
| 1693 | 1693 | PORT_DIPSETTING( 0x00, "+1" ) |
| 1694 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1694 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1695 | 1695 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1696 | 1696 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1697 | 1697 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1702 | 1702 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1703 | 1703 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1704 | 1704 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1705 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1705 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1706 | 1706 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1707 | 1707 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1708 | 1708 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1713 | 1713 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 1714 | 1714 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1715 | 1715 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1716 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1716 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1717 | 1717 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1718 | 1718 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1719 | 1719 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1742 | 1742 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) /* bonus life? */ |
| 1743 | 1743 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1744 | 1744 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1745 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1745 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1746 | 1746 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1747 | 1747 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1748 | 1748 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1753 | 1753 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) /* bonus life? */ |
| 1754 | 1754 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1755 | 1755 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1756 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1756 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1757 | 1757 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 1758 | 1758 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* has to be 0, protection? */ |
| 1759 | 1759 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) /* probably unused */ |
| r3115 | r3116 | |
| 1764 | 1764 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) |
| 1765 | 1765 | PORT_DIPSETTING( 0x00, "3" ) |
| 1766 | 1766 | PORT_DIPSETTING( 0x04, "5" ) |
| 1767 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1767 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1768 | 1768 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1769 | 1769 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) |
| 1770 | 1770 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1793 | 1793 | PORT_DIPNAME( 0x04, 0x00, "Alpha Fighter Lives (2/2)" ) |
| 1794 | 1794 | PORT_DIPSETTING( 0x00, "+0" ) |
| 1795 | 1795 | PORT_DIPSETTING( 0x04, "+2" ) |
| 1796 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 1796 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 1797 | 1797 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1798 | 1798 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1799 | 1799 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r3115 | r3116 | |
| 1802 | 1802 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 1803 | 1803 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1804 | 1804 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 1805 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 1805 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 1806 | 1806 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 1807 | 1807 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1808 | 1808 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r3115 | r3116 | |
| 1813 | 1813 | PORT_DIPNAME( 0x04, 0x00, "Alpha Fighter Unknown" ) // related to soccer frequency (code at 0x4950) |
| 1814 | 1814 | PORT_DIPSETTING( 0x00, DEF_STR ( Off ) ) |
| 1815 | 1815 | PORT_DIPSETTING( 0x04, DEF_STR ( On ) ) |
| 1816 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 1816 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 1817 | 1817 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Game Select") PORT_TOGGLE |
| 1818 | 1818 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 1819 | 1819 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r3115 | r3116 | |
| 2005 | 2005 | static ADDRESS_MAP_START( samurai_io_map, ADDRESS_SPACE_IO, 8 ) |
| 2006 | 2006 | ADDRESS_MAP_GLOBAL_MASK(0x7f) |
| 2007 | 2007 | |
| 2008 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ(input_port_0_r) | |
| 2009 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ(input_port_1_r) | |
| 2010 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ(input_port_2_r) | |
| 2011 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ(input_port_3_r) | |
| 2008 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x7c) AM_READ_PORT("IN0") | |
| 2009 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x7c) AM_READ_PORT("IN1") | |
| 2010 | AM_RANGE(0x02, 0x02) AM_MIRROR(0x7c) AM_READ_PORT("IN2") | |
| 2011 | AM_RANGE(0x03, 0x03) AM_MIRROR(0x7c) AM_READ_PORT("IN3") | |
| 2012 | 2012 | |
| 2013 | 2013 | /* no decoder, just logic gates, so in theory the |
| 2014 | 2014 | game can write to multiple locations at once */ |
| r3115 | r3116 | |
| 2036 | 2036 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) /* unknown, but used */ |
| 2037 | 2037 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 2038 | 2038 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2039 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 2039 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 2040 | 2040 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 2041 | 2041 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 2042 | 2042 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 2047 | 2047 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 2048 | 2048 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 2049 | 2049 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2050 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, | |
| 2050 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_timer_value, NULL) | |
| 2051 | 2051 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 2052 | 2052 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 2053 | 2053 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 2058 | 2058 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) |
| 2059 | 2059 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 2060 | 2060 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2061 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 2061 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 2062 | 2062 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 2063 | 2063 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 2064 | 2064 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 2141 | 2141 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 2142 | 2142 | |
| 2143 | 2143 | PORT_START("IN1") |
| 2144 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 2144 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 2145 | 2145 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 2146 | 2146 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2147 | 2147 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2160 | 2160 | PORT_DIPNAME(0x40, 0x40, DEF_STR( Unknown ) ) |
| 2161 | 2161 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 2162 | 2162 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2163 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 2163 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 2164 | 2164 | |
| 2165 | 2165 | PORT_COIN |
| 2166 | 2166 | INPUT_PORTS_END |
| r3115 | r3116 | |
| 2257 | 2257 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2258 | 2258 | |
| 2259 | 2259 | PORT_START("IN2") |
| 2260 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, | |
| 2260 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_get_composite_blank_comp, NULL) | |
| 2261 | 2261 | PORT_BIT( 0x7e, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| 2262 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, | |
| 2262 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(vicdual_read_coin_status, NULL) | |
| 2263 | 2263 | |
| 2264 | 2264 | PORT_COIN |
| 2265 | 2265 | INPUT_PORTS_END |
| r3115 | r3116 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | static void update_interrupts(running_machine *machine) |
| 34 | 34 | { |
| 35 | int newstate = 0; | |
| 36 | ||
| 37 | if (atarigen_video_int_state) | |
| 38 | newstate = 1; | |
| 39 | if (atarigen_sound_int_state) | |
| 40 | newstate = 2; | |
| 41 | ||
| 42 | if (newstate) | |
| 43 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 44 | else | |
| 45 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 35 | cpunum_set_input_line(machine, 0, 1, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 36 | cpunum_set_input_line(machine, 0, 2, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 46 | 37 | } |
| 47 | 38 | |
| 48 | 39 |
| r3115 | r3116 | |
|---|---|---|
| 209 | 209 | AM_RANGE(0x01000000, 0x01007fff) AM_RAM //tested - STATIC RAM |
| 210 | 210 | AM_RANGE(0x01600000, 0x0160004f) AM_READWRITE(cop_r, cop_w) AM_BASE(&cop_ram) |
| 211 | 211 | AM_RANGE(0x01800200, 0x01800203) AM_WRITE(videoreg_w) |
| 212 | AM_RANGE(0x01800300, 0x01800303) AM_READ(input_port_0_dword_r) | |
| 213 | AM_RANGE(0x01800400, 0x01800403) AM_READ(input_port_1_dword_r) | |
| 212 | AM_RANGE(0x01800300, 0x01800303) AM_READ_PORT("IN0") | |
| 213 | AM_RANGE(0x01800400, 0x01800403) AM_READ_PORT("IN1") | |
| 214 | 214 | AM_RANGE(0x01a00000, 0x01afffff) AM_RAM AM_BASE(&speglsht_framebuffer) |
| 215 | 215 | AM_RANGE(0x01b00000, 0x01b07fff) AM_RAM //cleared ... video related ? |
| 216 | 216 | AM_RANGE(0x01c00000, 0x01dfffff) AM_READ(SMH_ROM) AM_WRITE(SMH_ROM) AM_REGION("user2", 0) |
| r3115 | r3116 | |
| 223 | 223 | |
| 224 | 224 | static INPUT_PORTS_START( speglsht ) |
| 225 | 225 | PORT_START("IN0") |
| 226 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 227 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 228 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 229 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 230 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 231 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 232 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 233 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 234 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 226 | PORT_BIT( 0x000000ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 227 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 228 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 229 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 230 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 231 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 232 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 233 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 234 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 235 | 235 | PORT_BIT( 0xffff0000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 236 | 236 | |
| 237 | 237 | PORT_START("IN1") |
| 238 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 239 | PORT_DIPSETTING( 0x0003, DEF_STR( 3C_1C ) ) | |
| 240 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 241 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) | |
| 242 | PORT_DIPSETTING( 0x0001, "1C/1C or 2C/3C" ) /* 1 coin/1 credit or 2 coins/3 credits */ | |
| 243 | PORT_DIPSETTING( 0x0002, DEF_STR( 2C_3C ) ) | |
| 244 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) | |
| 245 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) | |
| 246 | PORT_DIPSETTING( 0x0000, "2C Start/1C Continue" ) | |
| 247 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 248 | PORT_DIPSETTING( 0x0018, DEF_STR( 3C_1C ) ) | |
| 249 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) ) | |
| 250 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) | |
| 251 | PORT_DIPSETTING( 0x0008, "1C/1C or 2C/3C" ) /* 1 coin/1 credit or 2 coins/3 credits */ | |
| 252 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_3C ) ) | |
| 253 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) | |
| 254 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) | |
| 255 | PORT_DIPSETTING( 0x0000, "2C Start/1C Continue" ) | |
| 256 | PORT_DIPNAME( 0x0040, 0x0040, "Unkown / Unused" ) | |
| 257 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 258 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 259 | PORT_DIPNAME( 0x0080, 0x0080, "Bonus for PAR Play" ) | |
| 260 | PORT_DIPSETTING( 0x0080, DEF_STR( None ) ) | |
| 261 | PORT_DIPSETTING( 0x0000, "Extra Hole" ) | |
| 262 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Difficulty ) ) | |
| 263 | PORT_DIPSETTING( 0x0300, DEF_STR( Normal ) ) | |
| 264 | PORT_DIPSETTING( 0x0200, DEF_STR( Easy ) ) | |
| 265 | PORT_DIPSETTING( 0x0100, DEF_STR( Hard ) ) | |
| 266 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) | |
| 267 | PORT_DIPNAME( 0x0c00, 0x0c00, "Number of Players" ) | |
| 268 | PORT_DIPSETTING( 0x0c00, "3" ) | |
| 269 | PORT_DIPSETTING( 0x0800, "4" ) | |
| 270 | PORT_DIPSETTING( 0x0400, "2" ) | |
| 271 | PORT_DIPSETTING( 0x0000, "1" ) | |
| 272 | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 273 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 274 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 275 | PORT_DIPNAME( 0x2000, 0x0000, "Control Panel" ) | |
| 276 | PORT_DIPSETTING( 0x2000, "Double" ) | |
| 277 | PORT_DIPSETTING( 0x0000, DEF_STR( Single ) ) | |
| 278 | PORT_DIPNAME( 0x4000, 0x4000, "Country" ) | |
| 279 | PORT_DIPSETTING( 0x4000, DEF_STR( Japan ) ) | |
| 280 | PORT_DIPSETTING( 0x0000, DEF_STR( USA ) ) | |
| 238 | PORT_DIPNAME( 0x00000007, 0x00000007, DEF_STR( Coin_A ) ) | |
| 239 | PORT_DIPSETTING( 0x00000003, DEF_STR( 3C_1C ) ) | |
| 240 | PORT_DIPSETTING( 0x00000004, DEF_STR( 2C_1C ) ) | |
| 241 | PORT_DIPSETTING( 0x00000007, DEF_STR( 1C_1C ) ) | |
| 242 | PORT_DIPSETTING( 0x00000001, "1C/1C or 2C/3C" ) /* 1 coin/1 credit or 2 coins/3 credits */ | |
| 243 | PORT_DIPSETTING( 0x00000002, DEF_STR( 2C_3C ) ) | |
| 244 | PORT_DIPSETTING( 0x00000006, DEF_STR( 1C_2C ) ) | |
| 245 | PORT_DIPSETTING( 0x00000005, DEF_STR( 1C_3C ) ) | |
| 246 | PORT_DIPSETTING( 0x00000000, "2C Start/1C Continue" ) | |
| 247 | PORT_DIPNAME( 0x00000038, 0x00000038, DEF_STR( Coin_B ) ) | |
| 248 | PORT_DIPSETTING( 0x00000018, DEF_STR( 3C_1C ) ) | |
| 249 | PORT_DIPSETTING( 0x00000020, DEF_STR( 2C_1C ) ) | |
| 250 | PORT_DIPSETTING( 0x00000038, DEF_STR( 1C_1C ) ) | |
| 251 | PORT_DIPSETTING( 0x00000008, "1C/1C or 2C/3C" ) /* 1 coin/1 credit or 2 coins/3 credits */ | |
| 252 | PORT_DIPSETTING( 0x00000010, DEF_STR( 2C_3C ) ) | |
| 253 | PORT_DIPSETTING( 0x00000030, DEF_STR( 1C_2C ) ) | |
| 254 | PORT_DIPSETTING( 0x00000028, DEF_STR( 1C_3C ) ) | |
| 255 | PORT_DIPSETTING( 0x00000000, "2C Start/1C Continue" ) | |
| 256 | PORT_DIPNAME( 0x00000040, 0x00000040, "Unkown / Unused" ) | |
| 257 | PORT_DIPSETTING( 0x00000040, DEF_STR( Off ) ) | |
| 258 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 259 | PORT_DIPNAME( 0x00000080, 0x00000080, "Bonus for PAR Play" ) | |
| 260 | PORT_DIPSETTING( 0x00000080, DEF_STR( None ) ) | |
| 261 | PORT_DIPSETTING( 0x00000000, "Extra Hole" ) | |
| 262 | PORT_DIPNAME( 0x00000300, 0x00000300, DEF_STR( Difficulty ) ) | |
| 263 | PORT_DIPSETTING( 0x00000300, DEF_STR( Normal ) ) | |
| 264 | PORT_DIPSETTING( 0x00000200, DEF_STR( Easy ) ) | |
| 265 | PORT_DIPSETTING( 0x00000100, DEF_STR( Hard ) ) | |
| 266 | PORT_DIPSETTING( 0x00000000, DEF_STR( Very_Hard ) ) | |
| 267 | PORT_DIPNAME( 0x00000c00, 0x00000c00, "Number of Players" ) | |
| 268 | PORT_DIPSETTING( 0x00000c00, "3" ) | |
| 269 | PORT_DIPSETTING( 0x00000800, "4" ) | |
| 270 | PORT_DIPSETTING( 0x00000400, "2" ) | |
| 271 | PORT_DIPSETTING( 0x00000000, "1" ) | |
| 272 | PORT_DIPNAME( 0x00001000, 0x00000000, DEF_STR( Demo_Sounds ) ) | |
| 273 | PORT_DIPSETTING( 0x00001000, DEF_STR( Off ) ) | |
| 274 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 275 | PORT_DIPNAME( 0x00002000, 0x00000000, "Control Panel" ) | |
| 276 | PORT_DIPSETTING( 0x00002000, "Double" ) | |
| 277 | PORT_DIPSETTING( 0x00000000, DEF_STR( Single ) ) | |
| 278 | PORT_DIPNAME( 0x00004000, 0x00004000, "Country" ) | |
| 279 | PORT_DIPSETTING( 0x00004000, DEF_STR( Japan ) ) | |
| 280 | PORT_DIPSETTING( 0x00000000, DEF_STR( USA ) ) | |
| 281 | 281 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 282 | 282 | PORT_SERVICE_NO_TOGGLE( 0x00010000, IP_ACTIVE_HIGH ) |
| 283 | 283 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_TILT ) |
| 284 | 284 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 285 | 285 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 286 | 286 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 287 | PORT_BIT( 0x80 | |
| 287 | PORT_BIT( 0x80a00000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 288 | 288 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_START1 ) |
| 289 | 289 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 290 | 290 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| r3115 | r3116 | |
|---|---|---|
| 589 | 589 | AM_RANGE(0x5400, 0x57ff) AM_READ(galaxold_videoram_r) |
| 590 | 590 | AM_RANGE(0x5800, 0x58ff) AM_READ(SMH_RAM) |
| 591 | 591 | AM_RANGE(0x6000, 0x6000) AM_READ_PORT("IN0") |
| 592 | AM_RANGE(0x6800, 0x6800) AM_READ(_4in1_input_port_1_r) | |
| 593 | AM_RANGE(0x7000, 0x7000) AM_READ(_4in1_input_port_2_r) | |
| 592 | AM_RANGE(0x6800, 0x6800) AM_READ_PORT("IN1") | |
| 593 | AM_RANGE(0x7000, 0x7000) AM_READ_PORT("DSW0") | |
| 594 | 594 | AM_RANGE(0x7800, 0x78ff) AM_READ(watchdog_reset_r) |
| 595 | 595 | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_ROM) /* fixed menu code */ |
| 596 | 596 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 1079 | 1079 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 1080 | 1080 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 1081 | 1081 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 1082 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_SPECIAL ) // See fake ports | |
| 1082 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(_4in1_fake_port_r, (void *)0x40) // See fake ports | |
| 1083 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(_4in1_fake_port_r, (void *)0x80) // See fake ports | |
| 1083 | 1084 | |
| 1084 | 1085 | PORT_START("DSW0") |
| 1085 | PORT_BIT( 0x3b, IP_ACTIVE_HIGH, IPT_SPECIAL ) // See fake ports | |
| 1086 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(_4in1_fake_port_r, (void *)0x01) // See fake ports | |
| 1087 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(_4in1_fake_port_r, (void *)0x02) // See fake ports | |
| 1086 | 1088 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) |
| 1087 | 1089 | PORT_DIPSETTING( 0x00, "3" ) // 2 when continue (Scramble PT2) |
| 1088 | 1090 | PORT_DIPSETTING( 0x04, "5" ) // 2 when continue (Scramble PT2) |
| 1091 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(_4in1_fake_port_r, (void *)0x08) // See fake ports | |
| 1092 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(_4in1_fake_port_r, (void *)0x10) // See fake ports | |
| 1093 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(_4in1_fake_port_r, (void *)0x20) // See fake ports | |
| 1089 | 1094 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1090 | 1095 | |
| 1091 | 1096 | PORT_START("FAKE1") /* The Ghost Muncher PT3 - FAKE DSW0 (bits 0 to 5) and IN1 (bits 6 and 7) */ |
| r3115 | r3116 | |
| 2012 | 2017 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2013 | 2018 | INPUT_PORTS_END |
| 2014 | 2019 | |
| 2020 | /* ckongg coinage DIPs are spread accross two input ports */ | |
| 2021 | static CUSTOM_INPUT( ckongg_coinage_r ) | |
| 2022 | { | |
| 2023 | int bit_mask = (FPTR)param; | |
| 2024 | return (input_port_read(field->port->machine, "FAKE") & bit_mask) ? 0x01 : 0x00; | |
| 2025 | } | |
| 2026 | ||
| 2015 | 2027 | static INPUT_PORTS_START( ckongg ) |
| 2016 | 2028 | PORT_START("IN0") |
| 2017 | 2029 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r3115 | r3116 | |
| 2030 | 2042 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 2031 | 2043 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 2032 | 2044 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 2033 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 2034 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 2035 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2036 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 2037 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 2045 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Coinage ) ) PORT_CONDITION("DSW0", 0x04, PORTCOND_EQUALS, 0x00) | |
| 2046 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 2047 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) | |
| 2048 | PORT_DIPUNKNOWN( 0x40, 0x40 ) PORT_CONDITION("DSW0", 0x04, PORTCOND_EQUALS, 0x04) | |
| 2049 | PORT_DIPUNKNOWN( 0x80, 0x80 ) | |
| 2038 | 2050 | |
| 2039 | 2051 | PORT_START("DSW0") |
| 2040 | 2052 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| r3115 | r3116 | |
| 2042 | 2054 | PORT_DIPSETTING( 0x01, "2" ) |
| 2043 | 2055 | PORT_DIPSETTING( 0x02, "3" ) |
| 2044 | 2056 | PORT_DIPSETTING( 0x03, "4" ) |
| 2045 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 2046 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2047 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 2057 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Players ) ) | |
| 2058 | PORT_DIPSETTING( 0x04, "1" ) | |
| 2059 | PORT_DIPSETTING( 0x00, "2" ) | |
| 2048 | 2060 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) |
| 2049 | 2061 | PORT_DIPSETTING( 0x08, "500000" ) |
| 2050 | 2062 | PORT_DIPSETTING( 0x00, "750000" ) |
| r3115 | r3116 | |
| 2070 | 2082 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 2071 | 2083 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 2072 | 2084 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 2073 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 2074 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 2075 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2076 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 2077 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 2085 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(ckongg_coinage_r, (void *)0x01) | |
| 2086 | PORT_DIPUNKNOWN( 0x80, 0x80 ) | |
| 2078 | 2087 | |
| 2079 | 2088 | PORT_START("DSW0") |
| 2080 | 2089 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| r3115 | r3116 | |
| 2082 | 2091 | PORT_DIPSETTING( 0x01, "2" ) |
| 2083 | 2092 | PORT_DIPSETTING( 0x02, "3" ) |
| 2084 | 2093 | PORT_DIPSETTING( 0x03, "4" ) |
| 2085 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 2086 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2087 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 2094 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(ckongg_coinage_r, (void *)0x02) | |
| 2088 | 2095 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) |
| 2089 | 2096 | PORT_DIPSETTING( 0x08, "500000" ) |
| 2090 | 2097 | PORT_DIPSETTING( 0x00, "750000" ) |
| 2091 | 2098 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2099 | ||
| 2100 | PORT_START("FAKE") | |
| 2101 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) | |
| 2102 | PORT_DIPSETTING( 0x03, DEF_STR( 5C_1C ) ) | |
| 2103 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2104 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 2105 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_4C ) ) | |
| 2092 | 2106 | INPUT_PORTS_END |
| 2093 | 2107 | |
| 2094 | 2108 | static INPUT_PORTS_START( porter ) |
| 2095 | PORT_START("IN0") | |
| 2109 | PORT_START("IN0") | |
| 2096 | 2110 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2097 | 2111 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 2098 | 2112 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) |
| r3115 | r3116 | |
|---|---|---|
| 931 | 931 | PORT_DIPNAME( 0x10, 0x00, "Left Coin" ) PORT_DIPLOCATION("N8:5") |
| 932 | 932 | PORT_DIPSETTING( 0x00, "*1" ) |
| 933 | 933 | PORT_DIPSETTING( 0x10, "*2" ) |
| 934 | PORT_DIPNAME( 0xe0, 0x00, "Bonus Coins" ) PORT_DIPLOCATION("N8:6,7,8") | |
| 934 | PORT_DIPNAME( 0xe0, 0x00, "Bonus Coins" ) PORT_DIPLOCATION("N8:6,7,8") | |
| 935 | 935 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 936 | 936 | PORT_DIPSETTING( 0x20, "3 credits/2 coins" ) |
| 937 | 937 | PORT_DIPSETTING( 0x40, "5 credits/4 coins" ) |
| r3115 | r3116 | |
| 1633 | 1633 | /* sound hardware */ |
| 1634 | 1634 | MDRV_SOUND_REPLACE("pokey", AY8910, 12096000/8) |
| 1635 | 1635 | MDRV_SOUND_CONFIG(centipdb_ay8910_interface) |
| 1636 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", | |
| 1636 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2 | |
| 1637 | 1637 | MACHINE_DRIVER_END |
| 1638 | 1638 | |
| 1639 | 1639 | |
| r3115 | r3116 | |
| 1646 | 1646 | /* sound hardware */ |
| 1647 | 1647 | MDRV_SOUND_REPLACE("pokey", AY8910, 12096000/8) |
| 1648 | 1648 | MDRV_SOUND_CONFIG(centipdb_ay8910_interface) |
| 1649 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", | |
| 1649 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2 | |
| 1650 | 1650 | MACHINE_DRIVER_END |
| 1651 | 1651 | |
| 1652 | 1652 |
| r3115 | r3116 | |
|---|---|---|
| 157 | 157 | |
| 158 | 158 | static void update_interrupts(running_machine *machine) |
| 159 | 159 | { |
| 160 | int newstate = 0; | |
| 161 | ||
| 162 | /* all interrupts go through an LS148, which gives priority to the highest */ | |
| 163 | if (joystick_int && joystick_int_enable) | |
| 164 | newstate = 2; | |
| 165 | if (atarigen_scanline_int_state) | |
| 166 | newstate = 3; | |
| 167 | if (atarigen_video_int_state) | |
| 168 | newstate = 4; | |
| 169 | if (atarigen_sound_int_state) | |
| 170 | newstate = 6; | |
| 171 | ||
| 172 | /* set the new state of the IRQ lines */ | |
| 173 | if (newstate) | |
| 174 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 175 | else | |
| 176 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 160 | cpunum_set_input_line(machine, 0, 2, joystick_int && joystick_int_enable ? ASSERT_LINE : CLEAR_LINE); | |
| 161 | cpunum_set_input_line(machine, 0, 3, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 162 | cpunum_set_input_line(machine, 0, 4, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 163 | cpunum_set_input_line(machine, 0, 6, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 177 | 164 | } |
| 178 | 165 | |
| 179 | 166 |
| r3115 | r3116 | |
|---|---|---|
| 287 | 287 | |
| 288 | 288 | AM_RANGE(0xf400, 0xf400) AM_WRITE(bg_scrollx_w) |
| 289 | 289 | |
| 290 | AM_RANGE(0xf800, 0xf800) AM_READ(input_port_0_r) AM_WRITENOP | |
| 291 | AM_RANGE(0xf801, 0xf801) AM_READ(input_port_1_r) AM_WRITE(bgcolor_w) | |
| 292 | AM_RANGE(0xf802, 0xf802) AM_READ(input_port_2_r) | |
| 290 | AM_RANGE(0xf800, 0xf800) AM_READ_PORT("P1") AM_WRITENOP | |
| 291 | AM_RANGE(0xf801, 0xf801) AM_READ_PORT("P2") AM_WRITE(bgcolor_w) | |
| 292 | AM_RANGE(0xf802, 0xf802) AM_READ_PORT("SYSTEM") | |
| 293 | 293 | AM_RANGE(0xf803, 0xf803) AM_WRITE(bg_scrolly_w) |
| 294 | AM_RANGE(0xf804, 0xf804) AM_READ(input_port_4_r) /* DSW2 */ | |
| 295 | AM_RANGE(0xf805, 0xf805) AM_READ(input_port_3_r) /* DSW1 */ | |
| 294 | AM_RANGE(0xf804, 0xf804) AM_READ_PORT("DSW2") | |
| 295 | AM_RANGE(0xf805, 0xf805) AM_READ_PORT("DSW1") | |
| 296 | 296 | AM_RANGE(0xf806, 0xf806) AM_READNOP /* Protection related, ((val&3)==2) -> jump to 0 */ |
| 297 | 297 | |
| 298 | 298 | AM_RANGE(0xfc00, 0xfc00) AM_WRITE (flip_w) |
| r3115 | r3116 | |
| 352 | 352 | GFXDECODE_END |
| 353 | 353 | |
| 354 | 354 | static INPUT_PORTS_START( pturn ) |
| 355 | PORT_START("IN0") | |
| 356 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 357 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 358 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 359 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 355 | PORT_START("P1") | |
| 356 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 357 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 358 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 359 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 360 | 360 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 361 | 361 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 362 | 362 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 363 | 363 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 364 | 364 | |
| 365 | PORT_START("IN1") | |
| 366 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 367 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 368 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 369 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 365 | PORT_START("P2") | |
| 366 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 367 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 368 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 369 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 370 | 370 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 371 | 371 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 372 | 372 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 373 | 373 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 374 | 374 | |
| 375 | PORT_START("IN2") | |
| 376 | PORT_BIT( 0x01, IP_ACTIVE_HIGH,IPT_COIN1 ) | |
| 377 | PORT_BIT( 0x02, IP_ACTIVE_HIGH,IPT_COIN2 ) | |
| 378 | PORT_BIT( 0x04, IP_ACTIVE_HIGH,IPT_SERVICE1 ) /* service coin */ | |
| 379 | PORT_BIT( 0x10, IP_ACTIVE_HIGH,IPT_START1 ) | |
| 380 | PORT_BIT( 0x20, IP_ACTIVE_HIGH,IPT_START2 ) | |
| 375 | PORT_START("SYSTEM") | |
| 376 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 377 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 378 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) /* service coin */ | |
| 379 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 380 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 381 | 381 | PORT_BIT( 0xc8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 382 | 382 | |
| 383 | 383 | PORT_START("DSW1") |
| r3115 | r3116 | |
|---|---|---|
| 73 | 73 | AM_RANGE(0x0000, 0x07ff) AM_READ(SMH_RAM) |
| 74 | 74 | AM_RANGE(0x2000, 0x27ff) AM_READ(SMH_RAM) |
| 75 | 75 | AM_RANGE(0x2800, 0x2bff) AM_READ(btime_mirrorvideoram_r) |
| 76 | AM_RANGE(0x4000, 0x4000) AM_READ(input_port_2_r) /* DSW1 */ | |
| 77 | AM_RANGE(0x4001, 0x4001) AM_READ(input_port_3_r) /* DSW2 */ | |
| 76 | AM_RANGE(0x4000, 0x4000) AM_READ_PORT("DSW1") | |
| 77 | AM_RANGE(0x4001, 0x4001) AM_READ_PORT("DSW2") | |
| 78 | 78 | /* AM_RANGE(0x4004, 0x4004) */ /* this is read */ |
| 79 | AM_RANGE(0x4002, 0x4002) AM_READ(input_port_0_r) /* IN0 */ | |
| 80 | AM_RANGE(0x4003, 0x4003) AM_READ(input_port_1_r) /* IN1 */ | |
| 79 | AM_RANGE(0x4002, 0x4002) AM_READ_PORT("P1") | |
| 80 | AM_RANGE(0x4003, 0x4003) AM_READ_PORT("P2") | |
| 81 | 81 | AM_RANGE(0xa000, 0xffff) AM_READ(SMH_ROM) |
| 82 | 82 | ADDRESS_MAP_END |
| 83 | 83 | |
| r3115 | r3116 | |
| 100 | 100 | AM_RANGE(0x1000, 0x17ff) AM_READ(SMH_RAM) |
| 101 | 101 | AM_RANGE(0x1800, 0x1bff) AM_READ(btime_mirrorvideoram_r) |
| 102 | 102 | AM_RANGE(0x1c00, 0x1fff) AM_READ(btime_mirrorcolorram_r) |
| 103 | AM_RANGE(0x2000, 0x2000) AM_READ(input_port_2_r) /* DSW1 */ | |
| 104 | AM_RANGE(0x2001, 0x2001) AM_READ(input_port_3_r) /* DSW2 */ | |
| 105 | AM_RANGE(0x2002, 0x2002) AM_READ(input_port_0_r) /* IN0 */ | |
| 106 | AM_RANGE(0x2003, 0x2003) AM_READ(input_port_1_r) /* IN1 */ | |
| 103 | AM_RANGE(0x2000, 0x2000) AM_READ_PORT("DSW1") | |
| 104 | AM_RANGE(0x2001, 0x2001) AM_READ_PORT("DSW2") | |
| 105 | AM_RANGE(0x2002, 0x2002) AM_READ_PORT("P1") | |
| 106 | AM_RANGE(0x2003, 0x2003) AM_READ_PORT("P2") | |
| 107 | 107 | AM_RANGE(0x3000, 0x7fff) AM_READ(SMH_ROM) |
| 108 | 108 | AM_RANGE(0xf000, 0xffff) AM_READ(SMH_ROM) /* reset/interrupt vectors */ |
| 109 | 109 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 126 | 126 | |
| 127 | 127 | |
| 128 | 128 | static INPUT_PORTS_START( scregg ) |
| 129 | PORT_START("P1") | |
| 129 | PORT_START("P1") | |
| 130 | 130 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 131 | 131 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 132 | 132 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| r3115 | r3116 | |
| 136 | 136 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 137 | 137 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 138 | 138 | |
| 139 | PORT_START("P2") | |
| 139 | PORT_START("P2") | |
| 140 | 140 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| 141 | 141 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| 142 | 142 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 146 | 146 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 147 | 147 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 148 | 148 | |
| 149 | PORT_START("DSW1") | |
| 149 | PORT_START("DSW1") | |
| 150 | 150 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 151 | 151 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 152 | 152 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 168 | 168 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) |
| 169 | 169 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 170 | 170 | |
| 171 | PORT_START("DSW2") | |
| 171 | PORT_START("DSW2") | |
| 172 | 172 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) |
| 173 | 173 | PORT_DIPSETTING( 0x01, "3" ) |
| 174 | 174 | PORT_DIPSETTING( 0x00, "5" ) |
| r3115 | r3116 | |
|---|---|---|
| 365 | 365 | |
| 366 | 366 | /******************************************************************************/ |
| 367 | 367 | |
| 368 | #define DEC0_PLAYER1_CONTROL \ | |
| 369 | PORT_START("IN0") /* Player 1 controls */ \ | |
| 370 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY \ | |
| 371 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY \ | |
| 372 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY \ | |
| 373 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY \ | |
| 374 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) \ | |
| 375 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) \ | |
| 376 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) /* Button 3 - unused */ \ | |
| 377 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) /* Button 4 - unused */ | |
| 368 | static INPUT_PORTS_START( dec0 ) | |
| 369 | PORT_START("INPUTS") | |
| 370 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 371 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 372 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 373 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 374 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 375 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 376 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) /* Button 3 - only in Service Mode */ | |
| 377 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) /* Button 4 - only in Service Mode */ | |
| 378 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 379 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 380 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 381 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 382 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 383 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 384 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL /* Button 3 - only in Service Mode */ | |
| 385 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_COCKTAIL /* Button 4 - only in Service Mode */ | |
| 378 | 386 | |
| 379 | #define DEC0_PLAYER2_CONTROL \ | |
| 380 | PORT_START("IN1") /* Player 2 controls */ \ | |
| 381 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL \ | |
| 382 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL \ | |
| 383 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL \ | |
| 384 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL \ | |
| 385 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL \ | |
| 386 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL \ | |
| 387 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) /* Button 3 - unused */ \ | |
| 388 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) /* Button 4 - unused */ | |
| 387 | PORT_START("SYSTEM") | |
| 388 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON5 ) /* Button 5 - only in Service Mode */ | |
| 389 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_COCKTAIL /* Button 5 - only in Service Mode */ | |
| 390 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 391 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 392 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 393 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 394 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 395 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 396 | INPUT_PORTS_END | |
| 389 | 397 | |
| 390 | #define DEC0_MACHINE_CONTROL \ | |
| 391 | PORT_START("IN2") /* Credits, start buttons */ \ | |
| 392 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) /* PL1 Button 5 - unused */ \ | |
| 393 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) /* PL2 Button 5 - unused */ \ | |
| 394 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) \ | |
| 395 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) \ | |
| 396 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) \ | |
| 397 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) \ | |
| 398 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ | |
| 399 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 398 | static INPUT_PORTS_START( dec1 ) | |
| 399 | PORT_START("INPUTS") | |
| 400 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 401 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 402 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 403 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 404 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 405 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 406 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) /* Button 3 - only in Service Mode */ | |
| 407 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 408 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 409 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 410 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 411 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 412 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 413 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 414 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL /* Button 3 - only in Service Mode */ | |
| 415 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 400 | 416 | |
| 417 | PORT_START("SYSTEM") | |
| 418 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 419 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 420 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 421 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 422 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 423 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 424 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 425 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 426 | INPUT_PORTS_END | |
| 427 | ||
| 401 | 428 | #define DEC0_COIN_SETTING \ |
| 402 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) \ | |
| 403 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ | |
| 404 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) \ | |
| 405 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) \ | |
| 406 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) \ | |
| 407 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) \ | |
| 408 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ | |
| 409 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) \ | |
| 410 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) \ | |
| 411 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) \ | |
| 429 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coin_A ) ) \ | |
| 430 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) \ | |
| 431 | PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) ) \ | |
| 432 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_1C ) ) \ | |
| 433 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_2C ) ) \ | |
| 434 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Coin_B ) ) \ | |
| 435 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) \ | |
| 436 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) \ | |
| 437 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_1C ) ) \ | |
| 438 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_2C ) ) | |
| 412 | 439 | |
| 413 | 440 | static INPUT_PORTS_START( hbarrel ) |
| 414 | DEC0_PLAYER1_CONTROL | |
| 415 | DEC0_PLAYER2_CONTROL | |
| 416 | DEC0_MACHINE_CONTROL | |
| 441 | PORT_INCLUDE( dec0 ) | |
| 417 | 442 | |
| 418 | PORT_START("DSW0") | |
| 419 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) \ | |
| 420 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) \ | |
| 421 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) \ | |
| 422 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) \ | |
| 423 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) ) \ | |
| 424 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) \ | |
| 425 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) \ | |
| 426 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) \ | |
| 427 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) \ | |
| 428 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_3C ) ) \ | |
| 429 | PORT_SERVICE( 0x10, IP_ACTIVE_LOW ) | |
| 430 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 431 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 432 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 433 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 434 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 435 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 436 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // Always OFF | |
| 437 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 438 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 443 | PORT_START("DSW") | |
| 444 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Coin_A ) ) | |
| 445 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_1C ) ) | |
| 446 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_1C ) ) | |
| 447 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_2C ) ) | |
| 448 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_3C ) ) | |
| 449 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Coin_B ) ) | |
| 450 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_1C ) ) | |
| 451 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_1C ) ) | |
| 452 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_2C ) ) | |
| 453 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_3C ) ) | |
| 454 | PORT_SERVICE( 0x0010, IP_ACTIVE_LOW ) | |
| 455 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 456 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 457 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 458 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 459 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 460 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 461 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) // Always OFF | |
| 462 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 463 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 439 | 464 | |
| 440 | PORT_START("DSW1") | |
| 441 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 442 | PORT_DIPSETTING( 0x01, "1" ) | |
| 443 | PORT_DIPSETTING( 0x03, "3" ) | |
| 444 | PORT_DIPSETTING( 0x02, "5" ) | |
| 445 | PORT_DIPSETTING( 0x00, "Infinite (Cheat)") | |
| 446 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 447 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 448 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 449 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 450 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 451 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) | |
| 452 | PORT_DIPSETTING( 0x30, "30k 80k 160k" ) | |
| 453 | PORT_DIPSETTING( 0x10, "50k 120k 190k" ) | |
| 454 | PORT_DIPSETTING( 0x20, "100k 200k 300k" ) | |
| 455 | PORT_DIPSETTING( 0x00, "150k 300k 450k" ) | |
| 456 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) ) | |
| 457 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 458 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 459 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // Always OFF | |
| 460 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 461 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 465 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 466 | PORT_DIPSETTING( 0x0100, "1" ) | |
| 467 | PORT_DIPSETTING( 0x0300, "3" ) | |
| 468 | PORT_DIPSETTING( 0x0200, "5" ) | |
| 469 | PORT_DIPSETTING( 0x0000, "Infinite (Cheat)") | |
| 470 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 471 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) | |
| 472 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) | |
| 473 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) | |
| 474 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 475 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Bonus_Life ) ) | |
| 476 | PORT_DIPSETTING( 0x3000, "30k 80k 160k" ) | |
| 477 | PORT_DIPSETTING( 0x1000, "50k 120k 190k" ) | |
| 478 | PORT_DIPSETTING( 0x2000, "100k 200k 300k" ) | |
| 479 | PORT_DIPSETTING( 0x0000, "150k 300k 450k" ) | |
| 480 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Allow_Continue ) ) | |
| 481 | PORT_DIPSETTING( 0x4000, DEF_STR( No ) ) | |
| 482 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) | |
| 483 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) // Always OFF | |
| 484 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 485 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 462 | 486 | |
| 463 | 487 | PORT_START("AN0") /* player 1 12-way rotary control - converted in controls_r() */ |
| 464 | 488 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE |
| r3115 | r3116 | |
| 468 | 492 | INPUT_PORTS_END |
| 469 | 493 | |
| 470 | 494 | static INPUT_PORTS_START( birdtry ) |
| 471 | DEC0_PLAYER1_CONTROL | |
| 472 | DEC0_PLAYER2_CONTROL | |
| 473 | DEC0_MACHINE_CONTROL | |
| 495 | PORT_INCLUDE( dec0 ) | |
| 474 | 496 | |
| 475 | PORT_START("DSW | |
| 497 | PORT_START("DSW | |
| 476 | 498 | DEC0_COIN_SETTING |
| 477 | PORT_SERVICE( 0x10, IP_ACTIVE_LOW ) | |
| 478 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 479 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 480 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 481 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 482 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 483 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 484 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 485 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 486 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 499 | PORT_SERVICE( 0x0010, IP_ACTIVE_LOW ) | |
| 500 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 501 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 502 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 503 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 504 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 505 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 506 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) | |
| 507 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 508 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 487 | 509 | |
| 488 | PORT_START("DSW1") | |
| 489 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 490 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 491 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 492 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 493 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 494 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 495 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 496 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 497 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 498 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 499 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 500 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 501 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 502 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 503 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 504 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 505 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 506 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 507 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 508 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 509 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 510 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 511 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 512 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 510 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) | |
| 511 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 512 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 513 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) | |
| 514 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 515 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 516 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) | |
| 517 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 518 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 519 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) | |
| 520 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 521 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 522 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) | |
| 523 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 524 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 525 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) | |
| 526 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 527 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 528 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) | |
| 529 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 530 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 531 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) | |
| 532 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 533 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 513 | 534 | |
| 514 | 535 | PORT_START("AN0") /* player 1 12-way rotary control - converted in controls_r() */ |
| 515 | 536 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE |
| r3115 | r3116 | |
| 519 | 540 | INPUT_PORTS_END |
| 520 | 541 | |
| 521 | 542 | static INPUT_PORTS_START( baddudes ) |
| 522 | DEC0_PLAYER1_CONTROL | |
| 523 | DEC0_PLAYER2_CONTROL | |
| 524 | DEC0_MACHINE_CONTROL | |
| 543 | PORT_INCLUDE( dec0 ) | |
| 525 | 544 | |
| 526 | PORT_START("DSW | |
| 545 | PORT_START("DSW | |
| 527 | 546 | DEC0_COIN_SETTING |
| 528 | PORT_SERVICE( 0x10, IP_ACTIVE_LOW ) | |
| 529 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 530 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 531 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 532 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 533 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 534 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 535 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) // According to some technical sources should be "Cabinet" | |
| 536 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 537 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 547 | PORT_SERVICE( 0x0010, IP_ACTIVE_LOW ) | |
| 548 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 549 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 550 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 551 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 552 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 553 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 554 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) // According to some technical sources should be "Cabinet" | |
| 555 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 556 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 538 | 557 | |
| 539 | PORT_START("DSW1") | |
| 540 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 541 | PORT_DIPSETTING( 0x01, "1" ) | |
| 542 | PORT_DIPSETTING( 0x03, "2" ) | |
| 543 | PORT_DIPSETTING( 0x02, "3" ) | |
| 544 | PORT_DIPSETTING( 0x00, "Infinite (Cheat)") | |
| 545 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 546 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 547 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 548 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 549 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 550 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) | |
| 551 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 552 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) | |
| 553 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) // Always OFF | |
| 554 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 555 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 556 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) // Always OFF | |
| 557 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 558 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 559 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // Always OFF | |
| 560 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 561 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 558 | PORT_DIPNAME( 0x0300, 0x0200, DEF_STR( Lives ) ) | |
| 559 | PORT_DIPSETTING( 0x0100, "1" ) | |
| 560 | PORT_DIPSETTING( 0x0300, "2" ) | |
| 561 | PORT_DIPSETTING( 0x0200, "3" ) | |
| 562 | PORT_DIPSETTING( 0x0000, "Infinite (Cheat)") | |
| 563 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 564 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) | |
| 565 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) | |
| 566 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) | |
| 567 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 568 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Allow_Continue ) ) | |
| 569 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 570 | PORT_DIPSETTING( 0x1000, DEF_STR( Yes ) ) | |
| 571 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unused ) ) // Always OFF | |
| 572 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 573 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 574 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unused ) ) // Always OFF | |
| 575 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 576 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 577 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) // Always OFF | |
| 578 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 579 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 562 | 580 | |
| 563 | 581 | PORT_START("AN0") /* player 1 12-way rotary control - converted in controls_r() */ |
| 564 | 582 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused */ |
| r3115 | r3116 | |
| 568 | 586 | INPUT_PORTS_END |
| 569 | 587 | |
| 570 | 588 | static INPUT_PORTS_START( robocop ) |
| 571 | DEC0_PLAYER1_CONTROL | |
| 572 | DEC0_PLAYER2_CONTROL | |
| 573 | DEC0_MACHINE_CONTROL | |
| 589 | PORT_INCLUDE( dec0 ) | |
| 574 | 590 | |
| 575 | PORT_START("DSW | |
| 591 | PORT_START("DSW | |
| 576 | 592 | DEC0_COIN_SETTING |
| 577 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) // Always OFF | |
| 578 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 579 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 580 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 581 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 582 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 583 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 584 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 585 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 586 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 587 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 588 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 593 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) // Always OFF | |
| 594 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 595 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 596 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 597 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 598 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 599 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 600 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 601 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 602 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Cabinet ) ) | |
| 603 | PORT_DIPSETTING( 0x0000, DEF_STR( Upright ) ) | |
| 604 | PORT_DIPSETTING( 0x0080, DEF_STR( Cocktail ) ) | |
| 589 | 605 | |
| 590 | PORT_START("DSW1") | |
| 591 | PORT_DIPNAME( 0x03, 0x03, "Player Energy" ) | |
| 592 | PORT_DIPSETTING( 0x01, DEF_STR( Low ) ) | |
| 593 | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) | |
| 594 | PORT_DIPSETTING( 0x02, DEF_STR( High ) ) | |
| 595 | PORT_DIPSETTING( 0x00, DEF_STR( Very_High ) ) | |
| 596 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 597 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 598 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 599 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 600 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 601 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) | |
| 602 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 603 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) | |
| 604 | PORT_DIPNAME( 0x20, 0x20, "Bonus Stage Energy" ) | |
| 605 | PORT_DIPSETTING( 0x00, DEF_STR( Low ) ) | |
| 606 | PORT_DIPSETTING( 0x20, DEF_STR( High ) ) | |
| 607 | PORT_DIPNAME( 0x40, 0x40, "Brink Time" ) | |
| 608 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) | |
| 609 | PORT_DIPSETTING( 0x00, "Less" ) | |
| 610 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // Always OFF | |
| 611 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 612 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 606 | PORT_DIPNAME( 0x0300, 0x0300, "Player Energy" ) | |
| 607 | PORT_DIPSETTING( 0x0100, DEF_STR( Low ) ) | |
| 608 | PORT_DIPSETTING( 0x0300, DEF_STR( Medium ) ) | |
| 609 | PORT_DIPSETTING( 0x0200, DEF_STR( High ) ) | |
| 610 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_High ) ) | |
| 611 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 612 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) | |
| 613 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) | |
| 614 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) | |
| 615 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 616 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Allow_Continue ) ) | |
| 617 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 618 | PORT_DIPSETTING( 0x1000, DEF_STR( Yes ) ) | |
| 619 | PORT_DIPNAME( 0x2000, 0x2000, "Bonus Stage Energy" ) | |
| 620 | PORT_DIPSETTING( 0x0000, DEF_STR( Low ) ) | |
| 621 | PORT_DIPSETTING( 0x2000, DEF_STR( High ) ) | |
| 622 | PORT_DIPNAME( 0x4000, 0x4000, "Brink Time" ) | |
| 623 | PORT_DIPSETTING( 0x4000, DEF_STR( Normal ) ) | |
| 624 | PORT_DIPSETTING( 0x0000, "Less" ) | |
| 625 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) // Always OFF | |
| 626 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 627 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 613 | 628 | INPUT_PORTS_END |
| 614 | 629 | |
| 615 | 630 | static INPUT_PORTS_START( hippodrm ) |
| 616 | DEC0_PLAYER1_CONTROL | |
| 617 | DEC0_PLAYER2_CONTROL | |
| 618 | DEC0_MACHINE_CONTROL | |
| 631 | PORT_INCLUDE( dec0 ) | |
| 619 | 632 | |
| 620 | PORT_START("DSW | |
| 633 | PORT_START("DSW | |
| 621 | 634 | DEC0_COIN_SETTING |
| 622 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) // Always OFF | |
| 623 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 624 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 625 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 626 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 627 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 628 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 629 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 630 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 631 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // Always OFF | |
| 632 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 633 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 635 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) // Always OFF | |
| 636 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 637 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 638 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 639 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 640 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 641 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 642 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 643 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 644 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) // Always OFF | |
| 645 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 646 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 634 | 647 | |
| 635 | PORT_START("DSW1") | |
| 636 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 637 | PORT_DIPSETTING( 0x01, "1" ) | |
| 638 | PORT_DIPSETTING( 0x03, "2" ) | |
| 639 | PORT_DIPSETTING( 0x02, "3" ) | |
| 640 | PORT_DIPSETTING( 0x00, "5" ) | |
| 641 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 642 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 643 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 644 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 645 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 646 | PORT_DIPNAME( 0x30, 0x30, "Player & Enemy Energy" ) | |
| 647 | PORT_DIPSETTING( 0x10, DEF_STR( Low ) ) | |
| 648 | PORT_DIPSETTING( 0x20, DEF_STR( Medium ) ) | |
| 649 | PORT_DIPSETTING( 0x30, DEF_STR( High ) ) | |
| 650 | PORT_DIPSETTING( 0x00, DEF_STR( Very_High ) ) | |
| 651 | PORT_DIPNAME( 0x40, 0x40, "Enemy Power on Continue" ) | |
| 652 | PORT_DIPSETTING( 0x40, "3 Dots" ) // 3 Dots less | |
| 653 | PORT_DIPSETTING( 0x00, "2 Dots" ) // 2 Dots less | |
| 654 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // Always OFF | |
| 655 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 656 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 648 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 649 | PORT_DIPSETTING( 0x0100, "1" ) | |
| 650 | PORT_DIPSETTING( 0x0300, "2" ) | |
| 651 | PORT_DIPSETTING( 0x0200, "3" ) | |
| 652 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 653 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 654 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) | |
| 655 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) | |
| 656 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) | |
| 657 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 658 | PORT_DIPNAME( 0x3000, 0x3000, "Player & Enemy Energy" ) | |
| 659 | PORT_DIPSETTING( 0x1000, DEF_STR( Low ) ) | |
| 660 | PORT_DIPSETTING( 0x2000, DEF_STR( Medium ) ) | |
| 661 | PORT_DIPSETTING( 0x3000, DEF_STR( High ) ) | |
| 662 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_High ) ) | |
| 663 | PORT_DIPNAME( 0x4000, 0x4000, "Enemy Power on Continue" ) | |
| 664 | PORT_DIPSETTING( 0x4000, "3 Dots" ) // 3 Dots less | |
| 665 | PORT_DIPSETTING( 0x0000, "2 Dots" ) // 2 Dots less | |
| 666 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) // Always OFF | |
| 667 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 668 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 657 | 669 | |
| 658 | 670 | PORT_START("VBLANK") |
| 659 | 671 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 660 | 672 | INPUT_PORTS_END |
| 661 | 673 | |
| 662 | #define DEC1_PLAYER1_CONTROL \ | |
| 663 | PORT_START("IN0") \ | |
| 664 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY \ | |
| 665 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY \ | |
| 666 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY \ | |
| 667 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY \ | |
| 668 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) \ | |
| 669 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) \ | |
| 670 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) /* button 3 - unused */ \ | |
| 671 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 672 | ||
| 673 | #define DEC1_PLAYER2_CONTROL \ | |
| 674 | PORT_START("IN1")\ | |
| 675 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL \ | |
| 676 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL \ | |
| 677 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL \ | |
| 678 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL \ | |
| 679 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL \ | |
| 680 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL \ | |
| 681 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) /* button 3 - unused */ \ | |
| 682 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 683 | ||
| 684 | ||
| 685 | 674 | static INPUT_PORTS_START( slyspy ) |
| 686 | DEC1_PLAYER1_CONTROL | |
| 687 | DEC1_PLAYER2_CONTROL | |
| 675 | PORT_INCLUDE( dec1 ) | |
| 676 | /* if you set VBLANK as ACTIVE_LOW, you obtain screwed up colors */ | |
| 688 | 677 | |
| 689 | PORT_START("IN2") /* Credits, start buttons */ | |
| 690 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 691 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 692 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 693 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) /* screwed up colors with ACTIVE_LOW */ | |
| 694 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 695 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 696 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 697 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 698 | ||
| 699 | PORT_START("DSW0") | |
| 678 | PORT_START("DSW") | |
| 700 | 679 | DEC0_COIN_SETTING |
| 701 | PORT_SERVICE( 0x10, IP_ACTIVE_LOW ) | |
| 702 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 703 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 704 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 705 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 706 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 707 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 708 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 709 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 710 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 680 | PORT_SERVICE( 0x0010, IP_ACTIVE_LOW ) | |
| 681 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 682 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 683 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 684 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 685 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 686 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 687 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Cabinet ) ) | |
| 688 | PORT_DIPSETTING( 0x0000, DEF_STR( Upright ) ) | |
| 689 | PORT_DIPSETTING( 0x0080, DEF_STR( Cocktail ) ) | |
| 711 | 690 | |
| 712 | PORT_START("DSW1") | |
| 713 | PORT_DIPNAME( 0x03, 0x03, "Energy" ) | |
| 714 | PORT_DIPSETTING( 0x02, DEF_STR( Low ) ) | |
| 715 | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) | |
| 716 | PORT_DIPSETTING( 0x01, DEF_STR( High ) ) | |
| 717 | PORT_DIPSETTING( 0x00, DEF_STR( Very_High ) ) | |
| 718 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 719 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 720 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 721 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 722 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 723 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) | |
| 724 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 725 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) | |
| 726 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) // Always OFF | |
| 727 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 728 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 729 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) // Always OFF | |
| 730 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 731 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 732 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // Always OFF | |
| 733 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 734 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 691 | PORT_DIPNAME( 0x0300, 0x0300, "Energy" ) | |
| 692 | PORT_DIPSETTING( 0x0200, DEF_STR( Low ) ) | |
| 693 | PORT_DIPSETTING( 0x0300, DEF_STR( Medium ) ) | |
| 694 | PORT_DIPSETTING( 0x0100, DEF_STR( High ) ) | |
| 695 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_High ) ) | |
| 696 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 697 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) | |
| 698 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) | |
| 699 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) | |
| 700 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 701 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Allow_Continue ) ) | |
| 702 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 703 | PORT_DIPSETTING( 0x1000, DEF_STR( Yes ) ) | |
| 704 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unused ) ) // Always OFF | |
| 705 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 706 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 707 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unused ) ) // Always OFF | |
| 708 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 709 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 710 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) // Always OFF | |
| 711 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 712 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 735 | 713 | INPUT_PORTS_END |
| 736 | 714 | |
| 737 | 715 | static INPUT_PORTS_START( midres ) |
| 738 | DEC1_PLAYER1_CONTROL | |
| 739 | DEC1_PLAYER2_CONTROL | |
| 716 | PORT_INCLUDE( dec1 ) | |
| 740 | 717 | |
| 741 | PORT_START("IN2") /* Credits */ | |
| 742 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 743 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 744 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 745 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 746 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 747 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 748 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 749 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 750 | ||
| 751 | PORT_START("DSW0") | |
| 718 | PORT_START("DSW") | |
| 752 | 719 | DEC0_COIN_SETTING |
| 753 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) // Always OFF | |
| 754 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 755 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 756 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 757 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 758 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 759 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 760 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 761 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 762 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // Always OFF | |
| 763 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 764 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 720 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) // Always OFF | |
| 721 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 722 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 723 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 724 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 725 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 726 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 727 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 728 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 729 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) // Always OFF | |
| 730 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 731 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 765 | 732 | |
| 766 | PORT_START("DSW1") | |
| 767 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 768 | PORT_DIPSETTING( 0x01, "1" ) | |
| 769 | PORT_DIPSETTING( 0x03, "3" ) | |
| 770 | PORT_DIPSETTING( 0x02, "5" ) | |
| 771 | PORT_DIPSETTING( 0x00, "Infinite (Cheat)") | |
| 772 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 773 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 774 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 775 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 776 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 777 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) // Extra Lives? | |
| 778 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 779 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 780 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) // Extra Lives? | |
| 781 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 782 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 783 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) ) | |
| 784 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 785 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 786 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // Always OFF | |
| 787 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 788 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 733 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 734 | PORT_DIPSETTING( 0x0100, "1" ) | |
| 735 | PORT_DIPSETTING( 0x0300, "3" ) | |
| 736 | PORT_DIPSETTING( 0x0200, "5" ) | |
| 737 | PORT_DIPSETTING( 0x0000, "Infinite (Cheat)") | |
| 738 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 739 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) | |
| 740 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) | |
| 741 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) | |
| 742 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 743 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) // Extra Lives? | |
| 744 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 745 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 746 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) // Extra Lives? | |
| 747 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 748 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 749 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Allow_Continue ) ) | |
| 750 | PORT_DIPSETTING( 0x4000, DEF_STR( No ) ) | |
| 751 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) | |
| 752 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) // Always OFF | |
| 753 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 754 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 789 | 755 | |
| 790 | 756 | PORT_START("AN0") /* player 1 12-way rotary control - converted in controls_r() */ |
| 791 | 757 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE |
| r3115 | r3116 | |
| 795 | 761 | INPUT_PORTS_END |
| 796 | 762 | |
| 797 | 763 | static INPUT_PORTS_START( bouldash ) |
| 798 | DEC1_PLAYER1_CONTROL | |
| 799 | DEC1_PLAYER2_CONTROL | |
| 764 | PORT_INCLUDE( dec1 ) | |
| 800 | 765 | |
| 801 | PORT_START("IN2") /* Credits, start buttons */ | |
| 802 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 803 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 804 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 805 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_VBLANK ) /* extremely slow palette fades with ACTIVE_HIGH */ | |
| 806 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 807 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 808 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 809 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 766 | PORT_MODIFY("SYSTEM") | |
| 767 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) /* extremely slow palette fades with ACTIVE_HIGH */ | |
| 810 | 768 | |
| 811 | PORT_START("DSW | |
| 769 | PORT_START("DSW | |
| 812 | 770 | /* Different Coinage. Just a few combinations from manual, the rest was figured out */ |
| 813 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) | |
| 814 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 815 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 816 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 817 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 818 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 819 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 820 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_5C ) ) | |
| 821 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_6C ) ) | |
| 822 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) | |
| 823 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 824 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 825 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 826 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 827 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 828 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 829 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) | |
| 830 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_6C ) ) | |
| 831 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) | |
| 832 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 833 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 834 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 835 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 836 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 771 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 772 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 773 | PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) ) | |
| 774 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) | |
| 775 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) | |
| 776 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) | |
| 777 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) | |
| 778 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_5C ) ) | |
| 779 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_6C ) ) | |
| 780 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 781 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 782 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_1C ) ) | |
| 783 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) | |
| 784 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) | |
| 785 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) | |
| 786 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) | |
| 787 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) ) | |
| 788 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_6C ) ) | |
| 789 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) | |
| 790 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 791 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 792 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Cabinet ) ) | |
| 793 | PORT_DIPSETTING( 0x0000, DEF_STR( Upright ) ) | |
| 794 | PORT_DIPSETTING( 0x0080, DEF_STR( Cocktail ) ) | |
| 837 | 795 | |
| 838 | PORT_START("DSW1") | |
| 839 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 840 | PORT_DIPSETTING( 0x00, "2" ) | |
| 841 | PORT_DIPSETTING( 0x03, "3" ) | |
| 842 | PORT_DIPSETTING( 0x02, "4" ) | |
| 843 | PORT_DIPSETTING( 0x01, "5" ) | |
| 844 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 845 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 846 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) | |
| 847 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 848 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 849 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) // Always OFF | |
| 850 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 851 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 852 | PORT_DIPNAME( 0x20, 0x20, "Game Change Mode" ) | |
| 853 | PORT_DIPSETTING( 0x20, "Part 1" ) | |
| 854 | PORT_DIPSETTING( 0x00, "Part 2" ) | |
| 855 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) | |
| 856 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 857 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) | |
| 858 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 859 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 860 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 796 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 797 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 798 | PORT_DIPSETTING( 0x0300, "3" ) | |
| 799 | PORT_DIPSETTING( 0x0200, "4" ) | |
| 800 | PORT_DIPSETTING( 0x0100, "5" ) | |
| 801 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) | |
| 802 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) | |
| 803 | PORT_DIPSETTING( 0x0c00, DEF_STR( Normal ) ) | |
| 804 | PORT_DIPSETTING( 0x0400, DEF_STR( Hard ) ) | |
| 805 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 806 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unused ) ) // Always OFF | |
| 807 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 808 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 809 | PORT_DIPNAME( 0x2000, 0x2000, "Game Change Mode" ) | |
| 810 | PORT_DIPSETTING( 0x2000, "Part 1" ) | |
| 811 | PORT_DIPSETTING( 0x0000, "Part 2" ) | |
| 812 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Allow_Continue ) ) | |
| 813 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 814 | PORT_DIPSETTING( 0x4000, DEF_STR( Yes ) ) | |
| 815 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 816 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 817 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 861 | 818 | INPUT_PORTS_END |
| 862 | 819 | |
| 863 | 820 | /******************************************************************************/ |
| r3115 | r3116 | |
|---|---|---|
| 420 | 420 | static READ16_HANDLER( fake_r ) { return ssv_scroll[offset]; } |
| 421 | 421 | #endif |
| 422 | 422 | |
| 423 | #define SSV_READMEM( _ROM ) \ | |
| 423 | #define SSV_READMEM( _ROM ) \ | |
| 424 | 424 | AM_RANGE(0x000000, 0x00ffff) AM_READ(SMH_RAM ) /* RAM */ \ |
| 425 | 425 | AM_RANGE(0x100000, 0x13ffff) AM_READ(SMH_RAM ) /* Sprites */ \ |
| 426 | 426 | AM_RANGE(0x140000, 0x15ffff) AM_READ(SMH_RAM ) /* Palette */ \ |
| 427 | 427 | AM_RANGE(0x160000, 0x17ffff) AM_READ(SMH_RAM ) /* */ \ |
| 428 | 428 | AM_RANGE(0x1c0000, 0x1c0001) AM_READ(ssv_vblank_r ) /* Vblank? */ \ |
| 429 | 429 | /**/AM_RANGE(0x1c0002, 0x1c007f) AM_READ(SMH_RAM ) /* Scroll */ \ |
| 430 | AM_RANGE(0x210002, 0x210003) AM_READ(input_port_0_word_r ) /* DSW */ \ | |
| 431 | AM_RANGE(0x210004, 0x210005) AM_READ(input_port_1_word_r ) /* DSW */ \ | |
| 432 | AM_RANGE(0x210008, 0x210009) AM_READ(input_port_2_word_r ) /* P1 */ \ | |
| 433 | AM_RANGE(0x21000a, 0x21000b) AM_READ(input_port_3_word_r ) /* P2 */ \ | |
| 434 | AM_RANGE(0x21000c, 0x21000d) AM_READ(input_port_4_word_r ) /* Coins */ \ | |
| 430 | AM_RANGE(0x210002, 0x210003) AM_READ_PORT("DSW1") \ | |
| 431 | AM_RANGE(0x210004, 0x210005) AM_READ_PORT("DSW2") \ | |
| 432 | AM_RANGE(0x210008, 0x210009) AM_READ_PORT("P1") \ | |
| 433 | AM_RANGE(0x21000a, 0x21000b) AM_READ_PORT("P2") \ | |
| 434 | AM_RANGE(0x21000c, 0x21000d) AM_READ_PORT("SYSTEM") \ | |
| 435 | 435 | AM_RANGE(0x21000e, 0x21000f) AM_READ(SMH_NOP ) /* */ \ |
| 436 | 436 | AM_RANGE(0x300000, 0x30007f) AM_READ(es5506_data_0_word_r ) /* Sound */ \ |
| 437 | AM_RANGE(0x482000, 0x482fff) AM_RAM_WRITE(dsp_w) AM_BASE(&dsp_ram) \ | |
| 438 | AM_RANGE(_ROM, 0xffffff) AM_READ(SMH_BANK1 ) /* ROM */ \ | |
| 437 | AM_RANGE(0x482000, 0x482fff) AM_RAM_WRITE(dsp_w) AM_BASE(&dsp_ram) \ | |
| 438 | AM_RANGE(_ROM, 0xffffff) AM_READ(SMH_BANK1 ) /* ROM */ \ | |
| 439 | 439 | //AM_RANGE(0x990000, 0x99007f) AM_READ(fake_r) |
| 440 | 440 | |
| 441 | 441 | #define SSV_WRITEMEM \ |
| r3115 | r3116 | |
|---|---|---|
| 51 | 51 | |
| 52 | 52 | static void update_interrupts(running_machine *machine) |
| 53 | 53 | { |
| 54 | int newstate = 0; | |
| 55 | ||
| 56 | if (atarigen_video_int_state) | |
| 57 | newstate = 4; | |
| 58 | if (atarigen_sound_int_state) | |
| 59 | newstate = 5; | |
| 60 | ||
| 61 | if (newstate) | |
| 62 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 63 | else | |
| 64 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 54 | cpunum_set_input_line(machine, 0, 4, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 55 | cpunum_set_input_line(machine, 0, 5, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 65 | 56 | } |
| 66 | 57 | |
| 67 | 58 |
| r3115 | r3116 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | static void update_interrupts(running_machine *machine) |
| 34 | 34 | { |
| 35 | int newstate = 0; | |
| 36 | ||
| 37 | if (atarigen_scanline_int_state) | |
| 38 | newstate |= 4; | |
| 39 | if (atarigen_sound_int_state) | |
| 40 | newstate |= 6; | |
| 41 | ||
| 42 | if (newstate) | |
| 43 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 44 | else | |
| 45 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 35 | cpunum_set_input_line(machine, 0, 4, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 36 | cpunum_set_input_line(machine, 0, 6, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 46 | 37 | } |
| 47 | 38 | |
| 48 | 39 |
| r3115 | r3116 | |
|---|---|---|
| 271 | 271 | |
| 272 | 272 | static void update_mpu68_interrupts(running_machine *machine) |
| 273 | 273 | { |
| 274 | int newstate = 0; | |
| 275 | ||
| 276 | if (m6840_irq_state) | |
| 277 | newstate = 1; | |
| 278 | if (m6850_irq_state) | |
| 279 | newstate = 2; | |
| 280 | if (scn2674_irq_state) | |
| 281 | newstate = 3; | |
| 282 | ||
| 283 | /* set the new state of the IRQ lines */ | |
| 284 | if (newstate) | |
| 285 | { | |
| 286 | LOGSTUFF(("68k IRQ, %x\n", newstate)); | |
| 287 | cpunum_set_input_line(machine, 1, newstate, ASSERT_LINE); | |
| 288 | } | |
| 289 | else | |
| 290 | { | |
| 291 | LOGSTUFF(("68k IRQ Clear, %x\n", newstate)); | |
| 292 | cpunum_set_input_line(machine, 1, 7, CLEAR_LINE); | |
| 293 | } | |
| 274 | cpunum_set_input_line(machine, 1, 1, m6840_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 275 | cpunum_set_input_line(machine, 1, 2, m6850_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 276 | cpunum_set_input_line(machine, 1, 3, scn2674_irq_state ? ASSERT_LINE : CLEAR_LINE); | |
| 294 | 277 | } |
| 295 | 278 | |
| 296 | 279 | /* Communications with 6809 board */ |
| r3115 | r3116 | |
| 1381 | 1364 | |
| 1382 | 1365 | /* setup 4 reels (for hybrid machines) */ |
| 1383 | 1366 | |
| 1384 | Stepper_init(0, BARCREST_48STEP_REEL); | |
| 1385 | Stepper_init(1, BARCREST_48STEP_REEL); | |
| 1386 | Stepper_init(2, BARCREST_48STEP_REEL); | |
| 1387 | Stepper_init(3, BARCREST_48STEP_REEL); | |
| 1367 | stepper_config(0, &barcrest_reel_interface); | |
| 1368 | stepper_config(1, &barcrest_reel_interface); | |
| 1369 | stepper_config(2, &barcrest_reel_interface); | |
| 1370 | stepper_config(3, &barcrest_reel_interface); | |
| 1388 | 1371 | |
| 1389 | 1372 | /* setup the standard oki MSC1937 display */ |
| 1390 | 1373 |
| r3115 | r3116 | |
|---|---|---|
| 78 | 78 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 79 | 79 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(namcond1_shared_ram_r,namcond1_shared_ram_w) AM_BASE(&namcond1_shared_ram) |
| 80 | 80 | AM_RANGE(0x800000, 0x80000f) AM_READWRITE(ygv608_r,ygv608_w) |
| 81 | AM_RANGE(0xa00000, 0xa00fff) AM_READWRITE8(at28c16_ | |
| 81 | AM_RANGE(0xa00000, 0xa00fff) AM_DEVREADWRITE8(AT28C16, "at28c16", at28c16_ | |
| 82 | 82 | #ifdef MAME_DEBUG |
| 83 | 83 | AM_RANGE(0xb00000, 0xb00001) AM_READ(ygv608_debug_trigger) |
| 84 | 84 | #endif |
| r3115 | r3116 | |
| 88 | 88 | /*************************************************************/ |
| 89 | 89 | |
| 90 | 90 | static INPUT_PORTS_START( namcond1 ) |
| 91 | PORT_START("P1_P2") | |
| 91 | PORT_START("P1_P2") | |
| 92 | 92 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 93 | 93 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| 94 | 94 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| r3115 | r3116 | |
| 106 | 106 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 107 | 107 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) |
| 108 | 108 | |
| 109 | PORT_START("DSW") | |
| 109 | PORT_START("DSW") | |
| 110 | 110 | PORT_DIPNAME( 0x0100, 0x0100, "Freeze" ) |
| 111 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 112 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 111 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 112 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 113 | 113 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Test ) ) |
| 114 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 115 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 114 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 115 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 116 | 116 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 117 | 117 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 118 | 118 | PORT_SERVICE( 0x4000, IP_ACTIVE_LOW ) |
| r3115 | r3116 | |
| 251 | 251 | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 252 | 252 | AM_RANGE(0x200000, 0x20ffff) AM_READWRITE( sharedram_sub_r, sharedram_sub_w ) |
| 253 | 253 | AM_RANGE(0xa00000, 0xa07fff) AM_READWRITE( c352_0_r, c352_0_w ) |
| 254 | AM_RANGE(0xc00000, 0xc00001) AM_READ( input_port_1_word_r ) | |
| 255 | AM_RANGE(0xc00002, 0xc00003) AM_READ( input_port_0_word_r ) | |
| 254 | AM_RANGE(0xc00000, 0xc00001) AM_READ_PORT("P1_P2") | |
| 255 | AM_RANGE(0xc00002, 0xc00003) AM_READ_PORT("DSW") | |
| 256 | 256 | AM_RANGE(0xc00010, 0xc00011) AM_NOP |
| 257 | 257 | AM_RANGE(0xc00030, 0xc00031) AM_NOP |
| 258 | 258 | AM_RANGE(0xc00040, 0xc00041) AM_NOP |
| r3115 | r3116 | |
| 272 | 272 | } |
| 273 | 273 | } |
| 274 | 274 | |
| 275 | static DRIVER_INIT( namcond1 ) | |
| 276 | { | |
| 277 | at28c16_init( 0, NULL, NULL ); | |
| 278 | } | |
| 279 | ||
| 280 | 275 | /****************************************** |
| 281 | 276 | ND-1 Master clock = 49.152MHz |
| 282 | 277 | - 680000 = 12288000 (CLK/4) |
| r3115 | r3116 | |
| 302 | 297 | |
| 303 | 298 | MDRV_MACHINE_START(namcond1) |
| 304 | 299 | MDRV_MACHINE_RESET(namcond1) |
| 305 | MDRV_NVRAM_HANDLER(at28c16_0) | |
| 306 | 300 | |
| 307 | 301 | /* video hardware */ |
| 308 | 302 | MDRV_SCREEN_ADD("main", RASTER) |
| r3115 | r3116 | |
| 326 | 320 | MDRV_SOUND_ROUTE(1, "left", 1.00) |
| 327 | 321 | MDRV_SOUND_ROUTE(2, "right", 1.00) |
| 328 | 322 | MDRV_SOUND_ROUTE(3, "left", 1.00) |
| 323 | ||
| 324 | MDRV_DEVICE_ADD( "at28c16", AT28C16 ) | |
| 329 | 325 | MACHINE_DRIVER_END |
| 330 | 326 | |
| 331 | 327 | ROM_START( ncv1 ) |
| r3115 | r3116 | |
| 405 | 401 | ROM_LOAD( "ncs1voic.7c", 0x000000, 0x200000, CRC(ed05fd88) SHA1(ad88632c89a9946708fc6b4c9247e1bae9b2944b) ) |
| 406 | 402 | ROM_END |
| 407 | 403 | |
| 408 | GAME( 1995, ncv1, 0, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.1", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 409 | GAME( 1995, ncv1j, ncv1, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.1 (Japan, v1.00)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 410 | GAME( 1995, ncv1j2, ncv1, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.1 (Japan, v1.03)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 411 | GAME( 1996, ncv2, 0, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.2", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 412 | GAME( 1996, ncv2j, ncv2, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.2 (Japan)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 404 | GAME( 1995, ncv1, 0, namcond1, namcond1, 0, ROT90, "Namco", "Namco Classics Collection Vol.1", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 405 | GAME( 1995, ncv1j, ncv1, namcond1, namcond1, 0, ROT90, "Namco", "Namco Classics Collection Vol.1 (Japan, v1.00)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 406 | GAME( 1995, ncv1j2, ncv1, namcond1, namcond1, 0, ROT90, "Namco", "Namco Classics Collection Vol.1 (Japan, v1.03)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 407 | GAME( 1996, ncv2, 0, namcond1, namcond1, 0, ROT90, "Namco", "Namco Classics Collection Vol.2", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) | |
| 408 | GAME( 1996, ncv2j, ncv2, namcond1, namcond1, 0, ROT90, "Namco", "Namco Classics Collection Vol.2 (Japan)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) |
| r3115 | r3116 | |
|---|---|---|
| 70 | 70 | |
| 71 | 71 | static ADDRESS_MAP_START( usgames_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 72 | 72 | AM_RANGE(0x0000, 0x1fff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 73 | AM_RANGE(0x2000, 0x2000) AM_READ(input_port_1_r) | |
| 74 | AM_RANGE(0x2010, 0x2010) AM_READ(input_port_0_r) | |
| 73 | AM_RANGE(0x2000, 0x2000) AM_READ_PORT("DSW") | |
| 74 | AM_RANGE(0x2010, 0x2010) AM_READ_PORT("INPUTS") | |
| 75 | 75 | AM_RANGE(0x2020, 0x2020) AM_WRITE(lamps1_w) |
| 76 | 76 | AM_RANGE(0x2030, 0x2030) AM_WRITE(lamps2_w) |
| 77 | 77 | AM_RANGE(0x2040, 0x2040) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| 78 | AM_RANGE(0x2041, 0x2041) AM_READ | |
| 78 | AM_RANGE(0x2041, 0x2041) AM_READ | |
| 79 | 79 | AM_RANGE(0x2041, 0x2041) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w) |
| 80 | 80 | AM_RANGE(0x2060, 0x2060) AM_WRITE(usgames_rombank_w) |
| 81 | AM_RANGE(0x2070, 0x2070) AM_READ | |
| 81 | AM_RANGE(0x2070, 0x2070) AM_READ | |
| 82 | 82 | AM_RANGE(0x2400, 0x2400) AM_WRITE(ay8910_control_port_0_w) |
| 83 | 83 | AM_RANGE(0x2401, 0x2401) AM_WRITE(ay8910_write_port_0_w) |
| 84 | 84 | AM_RANGE(0x2800, 0x2fff) AM_RAM_WRITE(usgames_charram_w) AM_BASE(&usgames_charram) |
| r3115 | r3116 | |
| 92 | 92 | AM_RANGE(0x0000, 0x1fff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 93 | 93 | AM_RANGE(0x2000, 0x2000) AM_WRITE(ay8910_control_port_0_w) |
| 94 | 94 | AM_RANGE(0x2001, 0x2001) AM_WRITE(ay8910_write_port_0_w) |
| 95 | AM_RANGE(0x2400, 0x2400) AM_READ(input_port_1_r) | |
| 96 | AM_RANGE(0x2410, 0x2410) AM_READ(input_port_0_r) | |
| 95 | AM_RANGE(0x2400, 0x2400) AM_READ_PORT("DSW") | |
| 96 | AM_RANGE(0x2410, 0x2410) AM_READ_PORT("INPUTS") | |
| 97 | 97 | AM_RANGE(0x2420, 0x2420) AM_WRITE(lamps1_w) |
| 98 | 98 | AM_RANGE(0x2430, 0x2430) AM_WRITE(lamps2_w) |
| 99 | 99 | AM_RANGE(0x2440, 0x2440) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| 100 | AM_RANGE(0x2441, 0x2441) AM_READ | |
| 100 | AM_RANGE(0x2441, 0x2441) AM_READ | |
| 101 | 101 | AM_RANGE(0x2441, 0x2441) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w) |
| 102 | 102 | AM_RANGE(0x2460, 0x2460) AM_WRITE(usgames_rombank_w) |
| 103 | AM_RANGE(0x2470, 0x2470) AM_READ | |
| 103 | AM_RANGE(0x2470, 0x2470) AM_READ | |
| 104 | 104 | AM_RANGE(0x2800, 0x2fff) AM_RAM_WRITE(usgames_charram_w) AM_BASE(&usgames_charram) |
| 105 | 105 | AM_RANGE(0x3000, 0x3fff) AM_RAM_WRITE(usgames_videoram_w) AM_BASE(&usgames_videoram) |
| 106 | 106 | AM_RANGE(0x4000, 0x7fff) AM_READWRITE(SMH_BANK1, SMH_ROM) |
| 107 | 107 | AM_RANGE(0x8000, 0xffff) AM_ROM |
| 108 | 108 | ADDRESS_MAP_END |
| 109 | 109 | |
| 110 | #define USGIN0\ | |
| 111 | PORT_START("IN0")\ | |
| 112 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Button 1") PORT_CODE(KEYCODE_Z)\ | |
| 113 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Button 2") PORT_CODE(KEYCODE_X)\ | |
| 114 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Button 3") PORT_CODE(KEYCODE_C)\ | |
| 115 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Button 4") PORT_CODE(KEYCODE_V)\ | |
| 116 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Button 5") PORT_CODE(KEYCODE_B)\ | |
| 117 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )\ | |
| 118 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) )\ | |
| 119 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 120 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )\ | |
| 121 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )\ | |
| 122 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) )\ | |
| 123 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 124 | 110 | |
| 125 | #define USGIN2 \ | |
| 126 | PORT_START("IN2")\ | |
| 127 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )\ | |
| 128 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) )\ | |
| 129 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 130 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )\ | |
| 131 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) )\ | |
| 132 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 133 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )\ | |
| 134 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) )\ | |
| 135 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 136 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )\ | |
| 137 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) )\ | |
| 138 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 139 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )\ | |
| 140 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) )\ | |
| 141 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 142 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )\ | |
| 143 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) )\ | |
| 144 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 145 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )\ | |
| 146 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) )\ | |
| 147 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 148 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )\ | |
| 149 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) )\ | |
| 111 | static INPUT_PORTS_START( usg32 ) | |
| 112 | PORT_START("INPUTS") | |
| 113 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Button 1") PORT_CODE(KEYCODE_Z) | |
| 114 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Button 2") PORT_CODE(KEYCODE_X) | |
| 115 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Button 3") PORT_CODE(KEYCODE_C) | |
| 116 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Button 4") PORT_CODE(KEYCODE_V) | |
| 117 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Button 5") PORT_CODE(KEYCODE_B) | |
| 118 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 119 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 150 | 120 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 151 | ||
| 152 | #define USGIN3\ | |
| 153 | PORT_START("IN3")\ | |
| 154 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )\ | |
| 155 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) )\ | |
| 156 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 157 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )\ | |
| 158 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) )\ | |
| 159 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 160 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )\ | |
| 161 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) )\ | |
| 162 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 163 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )\ | |
| 164 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) )\ | |
| 165 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 166 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )\ | |
| 167 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) )\ | |
| 168 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 169 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )\ | |
| 170 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) )\ | |
| 171 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 172 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )\ | |
| 173 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) )\ | |
| 174 | PORT_DIPSETTING( 0x00, DEF_STR( On ) )\ | |
| 175 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )\ | |
| 176 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) )\ | |
| 121 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 122 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 123 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 177 | 124 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 178 | 125 | |
| 179 | ||
| 180 | static INPUT_PORTS_START( usg32 ) | |
| 181 | ||
| 182 | USGIN0 | |
| 183 | ||
| 184 | 126 | PORT_START("DSW") |
| 185 | PORT_DIPNAME( 0x01, 0x01, "Service Keyboard Attached?" ) | |
| 127 | PORT_DIPNAME( 0x01, 0x01, "Service Keyboard Attached?" ) // Not actually a DIP, when keyboard is plugged in, this goes low | |
| 186 | 128 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) |
| 187 | 129 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 188 | PORT_SERVICE_NO_TOGGLE(0x02, IP_ACTIVE_HIGH) | |
| 130 | PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_HIGH ) | |
| 189 | 131 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 190 | 132 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 191 | 133 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 201 | 143 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SPECIAL ) // +12 Volts? |
| 202 | 144 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 203 | 145 | |
| 146 | PORT_START("UNK1") | |
| 147 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 148 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 149 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 150 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 151 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 152 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 153 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 154 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 155 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 156 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 157 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 158 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 159 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 160 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 161 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 162 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 163 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 164 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 165 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 166 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 167 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 168 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 169 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 170 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 204 | 171 | |
| 205 | USGIN2 | |
| 206 | ||
| 207 | USGIN3 | |
| 208 | INPUT_PORTS_END | |
| 209 | ||
| 210 | ||
| 211 | static INPUT_PORTS_START( usg83 ) //From here, the hardware was slightly upgraded, but not too different. | |
| 212 | ||
| 213 | USGIN0 | |
| 214 | ||
| 215 | PORT_START("DSW") | |
| 216 | PORT_DIPNAME( 0x01, 0x01, "Service Keyboard Attached?" ) //Not actually a DIP, when keyboard is plugged in, this goes low | |
| 217 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 218 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 219 | PORT_SERVICE_NO_TOGGLE(0x02, IP_ACTIVE_HIGH) | |
| 220 | PORT_DIPNAME( 0x04, 0x04, "Test_Switch" ) | |
| 172 | PORT_START("UNK2") | |
| 173 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 174 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 175 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 176 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 177 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 178 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 179 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 221 | 180 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 222 | 181 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 223 | 182 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 224 | 183 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 225 | 184 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 226 | 185 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 227 | PORT_DIPSETTING( 0x10, DEF_STR( No ) ) | |
| 228 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 186 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 187 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 229 | 188 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 230 | 189 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 231 | 190 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 232 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SPECIAL ) // +12 Volts? | |
| 233 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 191 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 192 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 193 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 194 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 195 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 196 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 197 | INPUT_PORTS_END | |
| 234 | 198 | |
| 235 | USGIN2 | |
| 199 | /* From here, the hardware was slightly upgraded, but not too different. */ | |
| 200 | static INPUT_PORTS_START( usg83 ) | |
| 201 | PORT_INCLUDE( usg32 ) | |
| 236 | 202 | |
| 237 | USGIN3 | |
| 238 | ||
| 203 | PORT_MODIFY("DSW") | |
| 204 | PORT_DIPNAME( 0x04, 0x04, "Test_Switch" ) | |
| 205 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 206 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 239 | 207 | INPUT_PORTS_END |
| 240 | 208 | |
| 241 | 209 |
| r3115 | r3116 | |
|---|---|---|
| 119 | 119 | static UINT8 *cchip_ram; |
| 120 | 120 | static UINT8 adpcm_b[0x08]; |
| 121 | 121 | static UINT8 adpcm_c[0x08]; |
| 122 | static UINT32 adpcm_pos[2],adpcm_end[2]; | |
| 123 | static int adpcm_data[2]; | |
| 124 | ||
| 122 | 125 | static int opwolf_gun_xoffs, opwolf_gun_yoffs; |
| 123 | 126 | |
| 124 | 127 | WRITE16_HANDLER( rainbow_spritectrl_w ); |
| r3115 | r3116 | |
| 291 | 294 | ADDRESS_MAP_END |
| 292 | 295 | |
| 293 | 296 | |
| 294 | static UINT32 adpcm_pos[2],adpcm_end[2]; | |
| 295 | ||
| 296 | 297 | //static UINT8 adpcm_d[0x08]; |
| 297 | 298 | //0 - start ROM offset LSB |
| 298 | 299 | //1 - start ROM offset MSB |
| r3115 | r3116 | |
| 313 | 314 | |
| 314 | 315 | static MACHINE_RESET( opwolf ) |
| 315 | 316 | { |
| 317 | adpcm_b[0] = adpcm_b[1] = 0; | |
| 318 | adpcm_c[0] = adpcm_c[1] = 0; | |
| 319 | adpcm_pos[0] = adpcm_pos[1] = 0; | |
| 320 | adpcm_end[0] = adpcm_end[1] = 0; | |
| 321 | adpcm_data[0] = adpcm_data[1] = -1; | |
| 322 | ||
| 316 | 323 | msm5205_reset_w(0, 1); |
| 317 | 324 | msm5205_reset_w(1, 1); |
| 318 | 325 | } |
| 319 | 326 | |
| 320 | 327 | static void opwolf_msm5205_vck(running_machine *machine, int chip) |
| 321 | 328 | { |
| 322 | static int adpcm_data[2] = { -1, -1 }; | |
| 323 | ||
| 324 | 329 | if (adpcm_data[chip] != -1) |
| 325 | 330 | { |
| 326 | 331 | msm5205_data_w(chip, adpcm_data[chip] & 0x0f); |
| r3115 | r3116 | |
|---|---|---|
| 89 | 89 | AM_RANGE(0x0000, 0x07ff) AM_READ(bankedram_r) |
| 90 | 90 | AM_RANGE(0x0800, 0x1fff) AM_READ(SMH_RAM) |
| 91 | 91 | AM_RANGE(0x2000, 0x3fff) AM_READ(SMH_BANK1) /* banked ROM */ |
| 92 | AM_RANGE(0x5f8c, 0x5f8c) AM_READ(input_port_0_r) | |
| 93 | AM_RANGE(0x5f8d, 0x5f8d) AM_READ(input_port_1_r) | |
| 94 | AM_RANGE(0x5f8e, 0x5f8e) AM_READ(input_port_4_r) | |
| 95 | AM_RANGE(0x5f8f, 0x5f8f) AM_READ(input_port_2_r) | |
| 96 | AM_RANGE(0x5f90, 0x5f90) AM_READ(input_port_3_r) | |
| 92 | AM_RANGE(0x5f8c, 0x5f8c) AM_READ_PORT("P1") | |
| 93 | AM_RANGE(0x5f8d, 0x5f8d) AM_READ_PORT("P2") | |
| 94 | AM_RANGE(0x5f8e, 0x5f8e) AM_READ_PORT("DSW3") | |
| 95 | AM_RANGE(0x5f8f, 0x5f8f) AM_READ_PORT("DSW1") | |
| 96 | AM_RANGE(0x5f90, 0x5f90) AM_READ_PORT("DSW2") | |
| 97 | 97 | // AM_RANGE(0x5f91, 0x5f91) AM_READ(ym2151_status_port_0_r) /* ? */ |
| 98 | 98 | AM_RANGE(0x5fa0, 0x5faf) AM_READ(K053244_r) |
| 99 | 99 | AM_RANGE(0x5fc0, 0x5fc0) AM_READ(watchdog_reset_r) |
| r3115 | r3116 | |
| 123 | 123 | ***************************************************************************/ |
| 124 | 124 | |
| 125 | 125 | static INPUT_PORTS_START( surpratk ) |
| 126 | PORT_START("P1") | |
| 126 | PORT_START("P1") | |
| 127 | 127 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 128 | 128 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 129 | 129 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 133 | 133 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 134 | 134 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 135 | 135 | |
| 136 | PORT_START("P2") | |
| 136 | PORT_START("P2") | |
| 137 | 137 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 ) |
| 138 | 138 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 139 | 139 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 143 | 143 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 144 | 144 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 145 | 145 | |
| 146 | PORT_START("DSW1") | |
| 146 | PORT_START("DSW1") | |
| 147 | 147 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 148 | 148 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 149 | 149 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 179 | 179 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 180 | 180 | // PORT_DIPSETTING( 0x00, "No Use" ) |
| 181 | 181 | |
| 182 | PORT_START("DSW2") | |
| 182 | PORT_START("DSW2") | |
| 183 | 183 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 184 | 184 | PORT_DIPSETTING( 0x03, "2" ) |
| 185 | 185 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 203 | 203 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 204 | 204 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 205 | 205 | |
| 206 | PORT_START("DSW3") | |
| 206 | PORT_START("DSW3") | |
| 207 | 207 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 208 | 208 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) |
| 209 | 209 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r3115 | r3116 | |
|---|---|---|
| 105 | 105 | AM_RANGE(0x400000, 0x4001ff) AM_READ(suna16_paletteram16_r ) // Banked Palette |
| 106 | 106 | AM_RANGE(0x400200, 0x400fff) AM_READ(SMH_RAM ) // |
| 107 | 107 | AM_RANGE(0x600000, 0x61ffff) AM_READ(SMH_RAM ) // Sprites |
| 108 | AM_RANGE(0xa00000, 0xa00001) AM_READ(input_port_0_word_r ) // P1 (Inputs) | |
| 109 | AM_RANGE(0xa00002, 0xa00003) AM_READ(input_port_1_word_r ) // P2 | |
| 110 | AM_RANGE(0xa00004, 0xa00005) AM_READ(input_port_2_word_r ) // P3 | |
| 111 | AM_RANGE(0xa00006, 0xa00007) AM_READ(input_port_3_word_r ) // P4 | |
| 112 | AM_RANGE(0xa00008, 0xa00009) AM_READ(input_port_4_word_r ) // DSWs | |
| 113 | AM_RANGE(0xa0000a, 0xa0000b) AM_READ(input_port_5_word_r ) // Coins | |
| 108 | AM_RANGE(0xa00000, 0xa00001) AM_READ_PORT("P1") | |
| 109 | AM_RANGE(0xa00002, 0xa00003) AM_READ_PORT("P2") | |
| 110 | AM_RANGE(0xa00004, 0xa00005) AM_READ_PORT("P3") | |
| 111 | AM_RANGE(0xa00006, 0xa00007) AM_READ_PORT("P4") | |
| 112 | AM_RANGE(0xa00008, 0xa00009) AM_READ_PORT("DSW1") | |
| 113 | AM_RANGE(0xa0000a, 0xa0000b) AM_READ_PORT("DSW2") | |
| 114 | 114 | ADDRESS_MAP_END |
| 115 | 115 | |
| 116 | 116 | static ADDRESS_MAP_START( bssoccer_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r3115 | r3116 | |
| 142 | 142 | AM_RANGE(0x200000, 0x2001ff) AM_READ(suna16_paletteram16_r ) // Banked Palette |
| 143 | 143 | AM_RANGE(0x200200, 0x200fff) AM_READ(SMH_RAM ) // |
| 144 | 144 | AM_RANGE(0x400000, 0x41ffff) AM_READ(SMH_RAM ) // Sprites |
| 145 | AM_RANGE(0x600000, 0x600001) AM_READ(input_port_0_word_r ) // P1 + Coins(Inputs) | |
| 146 | AM_RANGE(0x600002, 0x600003) AM_READ(input_port_1_word_r ) // P2 + Coins | |
| 147 | AM_RANGE(0x600004, 0x600005) AM_READ(input_port_2_word_r ) // DSW 1 | |
| 148 | AM_RANGE(0x600006, 0x600007) AM_READ(input_port_3_word_r ) // DSW 2 | |
| 145 | AM_RANGE(0x600000, 0x600001) AM_READ_PORT("P1") | |
| 146 | AM_RANGE(0x600002, 0x600003) AM_READ_PORT("P2") | |
| 147 | AM_RANGE(0x600004, 0x600005) AM_READ_PORT("DSW1") | |
| 148 | AM_RANGE(0x600006, 0x600007) AM_READ_PORT("DSW2") | |
| 149 | 149 | AM_RANGE(0xa00000, 0xa0ffff) AM_READ(SMH_NOP ) // Protection |
| 150 | 150 | ADDRESS_MAP_END |
| 151 | 151 | |
| r3115 | r3116 | |
| 171 | 171 | |
| 172 | 172 | static ADDRESS_MAP_START( sunaq_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 173 | 173 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM ) // ROM |
| 174 | AM_RANGE(0x500000, 0x500001) AM_READ(input_port_0_word_r ) // P1 + Coins | |
| 175 | AM_RANGE(0x500002, 0x500003) AM_READ(input_port_1_word_r ) // P2 + Coins | |
| 176 | AM_RANGE(0x500004, 0x500005) AM_READ(input_port_2_word_r ) // DSW | |
| 177 | AM_RANGE(0x500006, 0x500007) AM_READ(input_port_3_word_r ) // (unused?) | |
| 174 | AM_RANGE(0x500000, 0x500001) AM_READ_PORT("P1") | |
| 175 | AM_RANGE(0x500002, 0x500003) AM_READ_PORT("P2") | |
| 176 | AM_RANGE(0x500004, 0x500005) AM_READ_PORT("DSW1") | |
| 177 | AM_RANGE(0x500006, 0x500007) AM_READ_PORT("DSW2") // (unused?) | |
| 178 | 178 | AM_RANGE(0x540000, 0x5401ff) AM_READ(suna16_paletteram16_r ) // Banked Palette |
| 179 | 179 | AM_RANGE(0x540200, 0x540fff) AM_READ(SMH_RAM ) // RAM |
| 180 | 180 | AM_RANGE(0x580000, 0x583fff) AM_READ(SMH_RAM ) // RAM |
| r3115 | r3116 | |
| 219 | 219 | |
| 220 | 220 | |
| 221 | 221 | static ADDRESS_MAP_START( bestbest_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 222 | AM_RANGE( 0x000000, 0x03ffff ) AM_ROM AM_MIRROR(0xc0000) // ROM | |
| 223 | AM_RANGE( 0x200000, 0x2fffff ) AM_ROM AM_REGION("user1", 0) // ROM | |
| 224 | AM_RANGE( 0x500000, 0x500001 ) AM_READWRITE( input_port_0_word_r, suna16_soundlatch_w ) // P1 + Coins, To Sound CPU | |
| 225 | AM_RANGE( 0x500002, 0x500003 ) AM_READWRITE( input_port_1_word_r, bestbest_flipscreen_w ) // P2 + Coins, Flip Screen | |
| 226 | AM_RANGE( 0x500004, 0x500005 ) AM_READWRITE( input_port_2_word_r, bestbest_coin_w ) // Coin Counter | |
| 227 | AM_RANGE( 0x500008, 0x500009 ) AM_WRITE( bestbest_prot_w ) // Protection | |
| 228 | AM_RANGE( 0x500018, 0x500019 ) AM_READ ( bestbest_prot_r ) // | |
| 222 | AM_RANGE( 0x000000, 0x03ffff ) AM_ROM AM_MIRROR(0xc0000) // ROM | |
| 223 | AM_RANGE( 0x200000, 0x2fffff ) AM_ROM AM_REGION("user1", 0) // ROM | |
| 224 | AM_RANGE( 0x500000, 0x500001 ) AM_READ_PORT("P1") AM_WRITE(suna16_soundlatch_w) // To Sound CPU | |
| 225 | AM_RANGE( 0x500002, 0x500003 ) AM_READ_PORT("P2") AM_WRITE(bestbest_flipscreen_w) // P2 + Coins, Flip Screen | |
| 226 | AM_RANGE( 0x500004, 0x500005 ) AM_READ_PORT("DSW") AM_WRITE(bestbest_coin_w) // Coin Counter | |
| 227 | AM_RANGE( 0x500008, 0x500009 ) AM_WRITE( bestbest_prot_w ) // Protection | |
| 228 | AM_RANGE( 0x500018, 0x500019 ) AM_READ ( bestbest_prot_r ) // | |
| 229 | 229 | AM_RANGE( 0x540000, 0x540fff ) AM_READWRITE( suna16_paletteram16_r, suna16_paletteram16_w ) // Banked(?) Palette |
| 230 | 230 | AM_RANGE( 0x541000, 0x54ffff ) AM_RAM // |
| 231 | 231 | AM_RANGE( 0x580000, 0x58ffff ) AM_RAM // RAM |
| r3115 | r3116 | |
| 475 | 475 | ***************************************************************************/ |
| 476 | 476 | |
| 477 | 477 | #define JOY(_n_) \ |
| 478 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(_n_) \ | |
| 479 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(_n_) \ | |
| 480 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(_n_) \ | |
| 481 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(_n_) \ | |
| 482 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(_n_) \ | |
| 483 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(_n_) \ | |
| 484 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(_n_) \ | |
| 485 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START##_n_ ) | |
| 478 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(_n_) \ | |
| 479 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(_n_) \ | |
| 480 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(_n_) \ | |
| 481 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(_n_) \ | |
| 482 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(_n_) \ | |
| 483 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(_n_) \ | |
| 484 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(_n_) \ | |
| 485 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START##_n_ ) | |
| 486 | 486 | |
| 487 | 487 | |
| 488 | 488 | /*************************************************************************** |
| r3115 | r3116 | |
| 490 | 490 | ***************************************************************************/ |
| 491 | 491 | |
| 492 | 492 | static INPUT_PORTS_START( bssoccer ) |
| 493 | ||
| 494 | PORT_START("P1") // IN0 - $a00001.b - Player 1 | |
| 493 | PORT_START("P1") /* $a00001.b */ | |
| 495 | 494 | JOY(1) |
| 496 | 495 | |
| 497 | PORT_START("P2") / | |
| 496 | PORT_START("P2") /* | |
| 498 | 497 | JOY(2) |
| 499 | 498 | |
| 500 | PORT_START("P3") / | |
| 499 | PORT_START("P3") /* | |
| 501 | 500 | JOY(3) |
| 502 | 501 | |
| 503 | PORT_START("P4") / | |
| 502 | PORT_START("P4") /* | |
| 504 | 503 | JOY(4) |
| 505 | 504 | |
| 506 | PORT_START("DSW1") / | |
| 505 | PORT_START("DSW1") /* | |
| 507 | 506 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) |
| 508 | 507 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 509 | 508 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 514 | 513 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 515 | 514 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_5C ) ) |
| 516 | 515 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) |
| 517 | PORT_DIPSETTING( 0x0010, DEF_STR( Easy ) ) | |
| 518 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) | |
| 519 | PORT_DIPSETTING( 0x0008, DEF_STR( Hard ) ) | |
| 516 | PORT_DIPSETTING( 0x0010, DEF_STR( Easy ) ) | |
| 517 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) | |
| 518 | PORT_DIPSETTING( 0x0008, DEF_STR( Hard ) ) | |
| 520 | 519 | PORT_DIPSETTING( 0x0000, "Hardest?" ) |
| 521 | 520 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) |
| 522 | 521 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 547 | 546 | PORT_DIPSETTING( 0x4000, "2:00" ) |
| 548 | 547 | PORT_DIPSETTING( 0x0000, "2:15" ) |
| 549 | 548 | |
| 550 | PORT_START("DSW2") / | |
| 549 | PORT_START("DSW2") /* | |
| 551 | 550 | PORT_DIPNAME( 0x0001, 0x0001, "Copyright" ) // these 4 are shown in test mode |
| 552 | 551 | PORT_DIPSETTING( 0x0001, "Distributer Unico" ) |
| 553 | 552 | PORT_DIPSETTING( 0x0000, "All Rights Reserved" ) |
| r3115 | r3116 | |
| 560 | 559 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) |
| 561 | 560 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 562 | 561 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 563 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 564 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 565 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 566 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 567 | ||
| 562 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 563 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 564 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 565 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 568 | 566 | INPUT_PORTS_END |
| 569 | 567 | |
| 570 | 568 | |
| r3115 | r3116 | |
| 573 | 571 | ***************************************************************************/ |
| 574 | 572 | |
| 575 | 573 | static INPUT_PORTS_START( uballoon ) |
| 574 | PORT_START("P1") /* $600000.w */ | |
| 575 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 576 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 577 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 578 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 579 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 580 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 581 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 582 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 583 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 584 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 585 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 586 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 587 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 588 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 589 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 590 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 576 | 591 | |
| 577 | PORT_START("P1") // IN0 - $600000.w - Player 1 | |
| 578 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 579 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 580 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 581 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 582 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 583 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 584 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 585 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 586 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 587 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 588 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 589 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 590 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 591 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 592 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 593 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 594 | ||
| 595 | PORT_START("P2") // IN1 - $600002.w - Player 2 | |
| 596 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 597 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 598 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 599 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 600 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 601 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 602 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 603 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 604 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 605 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 606 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 607 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 592 | PORT_START("P2") /* $600002.w */ | |
| 593 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 594 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 595 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 596 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 597 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 598 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 599 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 600 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 601 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 602 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 603 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 604 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 608 | 605 | PORT_DIPNAME( 0x3000, 0x3000, "Copyright" ) // Jumpers |
| 609 | 606 | PORT_DIPSETTING( 0x3000, "Distributer Unico" ) |
| 610 | 607 | PORT_DIPSETTING( 0x2000, "All Rights Reserved" ) |
| 611 | 608 | // PORT_DIPSETTING( 0x1000, "Distributer Unico" ) |
| 612 | 609 | // PORT_DIPSETTING( 0x0000, "All Rights Reserved" ) |
| 613 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 614 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 610 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 611 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 615 | 612 | |
| 616 | PORT_START("DSW1") / | |
| 613 | PORT_START("DSW1") /* | |
| 617 | 614 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) |
| 618 | 615 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 619 | 616 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 629 | 626 | PORT_DIPSETTING( 0x0008, "4" ) |
| 630 | 627 | PORT_DIPSETTING( 0x0000, "5" ) |
| 631 | 628 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) |
| 632 | PORT_DIPSETTING( 0x0040, DEF_STR( Easy ) | |
| 629 | PORT_DIPSETTING( 0x0040, DEF_STR( Easy ) | |
| 633 | 630 | PORT_DIPSETTING( 0x0060, DEF_STR( Normal ) ) |
| 634 | PORT_DIPSETTING( 0x0020, DEF_STR( Hard ) | |
| 631 | PORT_DIPSETTING( 0x0020, DEF_STR( Hard ) | |
| 635 | 632 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 636 | 633 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) |
| 637 | 634 | |
| 638 | PORT_START("DSW2") / | |
| 635 | PORT_START("DSW2") /* | |
| 639 | 636 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) |
| 640 | 637 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 641 | 638 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 660 | 657 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 661 | 658 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 662 | 659 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 663 | ||
| 664 | 660 | INPUT_PORTS_END |
| 665 | 661 | |
| 666 | 662 | /*************************************************************************** |
| r3115 | r3116 | |
| 668 | 664 | ***************************************************************************/ |
| 669 | 665 | |
| 670 | 666 | static INPUT_PORTS_START( sunaq ) |
| 671 | PORT_START("P1") // Player 1 | |
| 672 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 673 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 674 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 675 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 676 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 677 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 678 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START1 ) | |
| 679 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 667 | PORT_START("P1") | |
| 668 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 669 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 670 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 671 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 672 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 673 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 674 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START1 ) | |
| 675 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 680 | 676 | |
| 681 | 677 | |
| 682 | PORT_START("P2") // Player 2 | |
| 683 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 684 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 685 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 686 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 687 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 688 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 689 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START2 ) | |
| 690 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 678 | PORT_START("P2") | |
| 679 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 680 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 681 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 682 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 683 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 684 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 685 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START2 ) | |
| 686 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 691 | 687 | |
| 692 | PORT_START("DSW1") | |
| 688 | PORT_START("DSW1") | |
| 693 | 689 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) |
| 694 | 690 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 695 | 691 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 713 | 709 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) |
| 714 | 710 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 715 | 711 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 712 | ||
| 713 | PORT_START("DSW2") /* Unused? */ | |
| 716 | 714 | INPUT_PORTS_END |
| 717 | 715 | |
| 718 | 716 | /*************************************************************************** |
| r3115 | r3116 | |
| 720 | 718 | ***************************************************************************/ |
| 721 | 719 | |
| 722 | 720 | static INPUT_PORTS_START( bestbest ) |
| 723 | PORT_START("P1") // IN0 - 500000.w - Player 1 | |
| 724 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 725 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 726 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 727 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 728 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 729 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 730 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 731 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 732 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 733 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 734 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) | |
| 735 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) | |
| 736 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 737 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 738 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 739 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 721 | PORT_START("P1") /* 500000.w */ | |
| 722 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 723 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 724 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 725 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 726 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 727 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 728 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 729 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 730 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 731 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 732 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) | |
| 733 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) | |
| 734 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 735 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 736 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 737 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 740 | 738 | |
| 741 | PORT_START("P2") // IN1 - 500002.w - Player 2 | |
| 742 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 743 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 744 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 745 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 746 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 747 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 748 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 749 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 750 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 751 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 752 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 753 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 754 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 755 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 756 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 757 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 739 | PORT_START("P2") /* 500002.w */ | |
| 740 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 741 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 742 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 743 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 744 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 745 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 746 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 747 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 748 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 749 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 750 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) | |
| 751 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) | |
| 752 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 753 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 754 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 755 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 758 | 756 | |
| 759 | PORT_START("DSW | |
| 757 | PORT_START("DSW | |
| 760 | 758 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) |
| 761 | 759 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 762 | 760 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 767 | 765 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 768 | 766 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 769 | 767 | PORT_DIPNAME( 0x0018, 0x0010, DEF_STR( Difficulty ) ) |
| 770 | PORT_DIPSETTING( 0x0018, DEF_STR( Easy ) ) | |
| 771 | PORT_DIPSETTING( 0x0010, DEF_STR( Normal ) ) | |
| 772 | PORT_DIPSETTING( 0x0008, DEF_STR( Hard ) ) | |
| 773 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 768 | PORT_DIPSETTING( 0x0018, DEF_STR( Easy ) ) | |
| 769 | PORT_DIPSETTING( 0x0010, DEF_STR( Normal ) ) | |
| 770 | PORT_DIPSETTING( 0x0008, DEF_STR( Hard ) ) | |
| 771 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 774 | 772 | PORT_DIPNAME( 0x0020, 0x0020, "Display Combos" ) |
| 775 | 773 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 776 | 774 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) |
| r3115 | r3116 | |
|---|---|---|
| 83 | 83 | |
| 84 | 84 | static ADDRESS_MAP_START( main_cpu_io_map, ADDRESS_SPACE_IO, 8 ) |
| 85 | 85 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 86 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) | |
| 87 | AM_RANGE(0x10, 0x10) AM_READ(input_port_1_r) | |
| 88 | AM_RANGE(0x20, 0x20) AM_READ(input_port_2_r) | |
| 89 | AM_RANGE(0x30, 0x30) AM_READ(input_port_3_r) | |
| 86 | AM_RANGE(0x00, 0x00) AM_READ_PORT("DSW2") | |
| 87 | AM_RANGE(0x10, 0x10) AM_READ_PORT("DSW1") | |
| 88 | AM_RANGE(0x20, 0x20) AM_READ_PORT("P1") | |
| 89 | AM_RANGE(0x30, 0x30) AM_READ_PORT("P2") | |
| 90 | 90 | AM_RANGE(0x40, 0x40) AM_WRITE(speedbal_coincounter_w) |
| 91 | 91 | AM_RANGE(0x50, 0x50) AM_WRITENOP |
| 92 | 92 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 110 | 110 | |
| 111 | 111 | |
| 112 | 112 | static INPUT_PORTS_START( speedbal ) |
| 113 | PORT_START("DSW2") /* DSW2 */ | |
| 113 | PORT_START("DSW1") | |
| 114 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) ) | |
| 115 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_2C ) ) | |
| 116 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) | |
| 117 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_4C ) ) | |
| 118 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 119 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_A ) ) | |
| 120 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 121 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) | |
| 122 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 123 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) | |
| 124 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) | |
| 125 | PORT_DIPSETTING( 0x00, "2" ) | |
| 126 | PORT_DIPSETTING( 0x30, "3" ) | |
| 127 | PORT_DIPSETTING( 0x20, "4" ) | |
| 128 | PORT_DIPSETTING( 0x10, "5" ) | |
| 129 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 130 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 131 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 132 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) | |
| 133 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 134 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 135 | ||
| 136 | PORT_START("DSW2") | |
| 114 | 137 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Bonus_Life ) ) |
| 115 | 138 | PORT_DIPSETTING( 0x06, "70000 200000 1M" ) |
| 116 | 139 | PORT_DIPSETTING( 0x07, "70000 200000" ) |
| r3115 | r3116 | |
| 134 | 157 | PORT_DIPSETTING( 0x40, "Difficult" ) |
| 135 | 158 | PORT_DIPSETTING( 0x00, "Very Difficult" ) |
| 136 | 159 | |
| 137 | PORT_START("DSW1") /* DSW1 */ | |
| 138 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) ) | |
| 139 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_2C ) ) | |
| 140 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) | |
| 141 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_4C ) ) | |
| 142 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 143 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_A ) ) | |
| 144 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 145 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) | |
| 146 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 147 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) | |
| 148 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) | |
| 149 | PORT_DIPSETTING( 0x00, "2" ) | |
| 150 | PORT_DIPSETTING( 0x30, "3" ) | |
| 151 | PORT_DIPSETTING( 0x20, "4" ) | |
| 152 | PORT_DIPSETTING( 0x10, "5" ) | |
| 153 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 154 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 155 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 156 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) | |
| 157 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 158 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 159 | ||
| 160 | 160 | PORT_START("P1") |
| 161 | 161 | PORT_BIT( 0x01, IP_ACTIVE_LOW , IPT_BUTTON1 ) |
| 162 | 162 | PORT_BIT( 0x02, IP_ACTIVE_LOW , IPT_BUTTON2 ) |
| r3115 | r3116 | |
|---|---|---|
| 53 | 53 | |
| 54 | 54 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 55 | 55 | AM_RANGE(0x0000, 0x07ff) AM_RAM |
| 56 | AM_RANGE(0x2000, 0x2000) AM_READWRITE(input_port_1_r, tagteam_flipscreen_w) | |
| 57 | AM_RANGE(0x2001, 0x2001) AM_READWRITE(input_port_0_r, tagteam_control_w) | |
| 58 | AM_RANGE(0x2002, 0x2002) AM_READWRITE(input_port_2_r, sound_command_w) | |
| 59 | AM_RANGE(0x2003, 0x2003) AM_READ(input_port_3_r) /* DSW1 */ | |
| 56 | AM_RANGE(0x2000, 0x2000) AM_READ_PORT("P2") AM_WRITE(tagteam_flipscreen_w) | |
| 57 | AM_RANGE(0x2001, 0x2001) AM_READ_PORT("P1") AM_WRITE(tagteam_control_w) | |
| 58 | AM_RANGE(0x2002, 0x2002) AM_READ_PORT("DSW1") AM_WRITE(sound_command_w) | |
| 59 | AM_RANGE(0x2003, 0x2003) AM_READ_PORT("DSW2") | |
| 60 | 60 | // AM_RANGE(0x2003, 0x2003) AM_WRITE(SMH_NOP) /* Appears to increment when you're out of the ring */ |
| 61 | 61 | AM_RANGE(0x4000, 0x43ff) AM_READWRITE(tagteam_mirrorvideoram_r, tagteam_mirrorvideoram_w) |
| 62 | 62 | AM_RANGE(0x4400, 0x47ff) AM_READWRITE(tagteam_mirrorcolorram_r, tagteam_mirrorcolorram_w) |
| r3115 | r3116 | |
| 84 | 84 | static int coin; |
| 85 | 85 | int port; |
| 86 | 86 | |
| 87 | port = input_port_read(machine, " | |
| 87 | port = input_port_read(machine, "P1 | |
| 88 | 88 | |
| 89 | 89 | if (port != 0xc0) /* Coin */ |
| 90 | 90 | { |
| r3115 | r3116 | |
| 97 | 97 | else coin = 0; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | #define TAGTEAM_PLAYERS\ | |
| 101 | PORT_START("IN0")\ | |
| 102 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY\ | |
| 103 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY\ | |
| 104 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY\ | |
| 105 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY\ | |
| 106 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )\ | |
| 107 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )\ | |
| 108 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )\ | |
| 109 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )\ | |
| 110 | PORT_START("IN1")\ | |
| 111 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL\ | |
| 112 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL\ | |
| 113 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL\ | |
| 114 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL\ | |
| 115 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 116 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL\ | |
| 117 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )\ | |
| 118 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 119 | ||
| 120 | 100 | static INPUT_PORTS_START( bigprowr ) |
| 121 | TAGTEAM_PLAYERS | |
| 101 | PORT_START("P1") | |
| 102 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 103 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 104 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 105 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 106 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 107 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 108 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 109 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 122 | 110 | |
| 111 | PORT_START("P2") | |
| 112 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 113 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 114 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 115 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 116 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 117 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 118 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) | |
| 119 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 120 | ||
| 123 | 121 | PORT_START("DSW1") |
| 124 | 122 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 125 | 123 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 170 | 168 | |
| 171 | 169 | /* Same as 'bigprowr', but additional "Coin Mode" Dip Switch */ |
| 172 | 170 | static INPUT_PORTS_START( tagteam ) |
| 173 | TAGTEAM_PLAYERS | |
| 174 | PORT_START("DSW1") | |
| 171 | PORT_INCLUDE( bigprowr ) | |
| 172 | ||
| 173 | PORT_MODIFY("DSW1") | |
| 175 | 174 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 176 | 175 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 177 | 176 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| 178 | 177 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) |
| 179 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) )PORT_CONDITION("DSW2",0xe0,PORTCOND_NOTEQUALS,0x80) //Mode 1 | |
| 180 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_6C ) )PORT_CONDITION("DSW2",0xe0,PORTCOND_EQUALS,0x80) //Mode 2 | |
| 178 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2", 0xe0, PORTCOND_NOTEQUALS, 0x80) //Mode 1 | |
| 179 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2", 0xe0, PORTCOND_EQUALS, 0x80) //Mode 2 | |
| 181 | 180 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) |
| 182 | 181 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 183 | 182 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) |
| 184 | 183 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) |
| 185 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_3C ) )PORT_CONDITION("DSW2",0xe0,PORTCOND_NOTEQUALS,0x80) //Mode 1 | |
| 186 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_6C ) )PORT_CONDITION("DSW2",0xe0,PORTCOND_EQUALS,0x80) //Mode 2 | |
| 187 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) ) | |
| 188 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 189 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 190 | PORT_DIPNAME( 0x60, 0x00, DEF_STR( Cabinet ) ) | |
| 191 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) // "Upright, Single Controls" | |
| 192 | PORT_DIPSETTING( 0x40, "Upright, Dual Controls" ) | |
| 193 | // PORT_DIPSETTING( 0x20, "Cocktail, Single Controls" ) // IMPOSSIBLE ! | |
| 194 | PORT_DIPSETTING( 0x60, DEF_STR( Cocktail ) ) // "Cocktail, Dual Controls" | |
| 195 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 184 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW2", 0xe0, PORTCOND_NOTEQUALS, 0x80) //Mode 1 | |
| 185 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW2", 0xe0, PORTCOND_EQUALS, 0x80) //Mode 2 | |
| 196 | 186 | |
| 197 | PORT_START("DSW2") | |
| 198 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Difficulty ) ) | |
| 199 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) | |
| 200 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 201 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 202 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 203 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 204 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 205 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 206 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 207 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 208 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 209 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 210 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) ) | |
| 211 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 212 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 187 | PORT_MODIFY("DSW2") | |
| 213 | 188 | PORT_DIPNAME( 0xe0, 0x00, "Coin Mode" ) // Check code at 0xff5c |
| 214 | 189 | PORT_DIPSETTING( 0x00, "Mode 1" ) |
| 215 | 190 | PORT_DIPSETTING( 0x80, "Mode 2" ) |
| r3115 | r3116 | |
|---|---|---|
| 276 | 276 | INPUT_PORTS_END |
| 277 | 277 | |
| 278 | 278 | static ADDRESS_MAP_START( hikaru_map, ADDRESS_SPACE_PROGRAM, 64 ) |
| 279 | AM_RANGE(0x00000000, 0x001fffff) AM_ROM | |
| 280 | AM_RANGE(0x0C000000, 0x0C00ffff) AM_RAM | |
| 279 | AM_RANGE(0x00000000, 0x001FFFFF) AM_ROM AM_SHARE(1) | |
| 280 | AM_RANGE(0x00400000, 0x004000FF) AM_NOP // unknown | |
| 281 | AM_RANGE(0x00800000, 0x008000FF) AM_NOP // unknown | |
| 282 | AM_RANGE(0x00830000, 0x00831FFF) AM_NOP // unknown | |
| 283 | AM_RANGE(0x00838000, 0x008380ff) AM_NOP // unknown | |
| 284 | AM_RANGE(0x0082F000, 0x0082F0ff) AM_NOP // unknown | |
| 285 | AM_RANGE(0x00C00000, 0x00C002FF) AM_RAM // unknown nvram? | |
| 286 | AM_RANGE(0x01000000, 0x010001FF) AM_NOP // unknown | |
| 287 | AM_RANGE(0x02000000, 0x020000FF) AM_NOP // unknown | |
| 288 | AM_RANGE(0x02710000, 0x027100FF) AM_NOP // unknown | |
| 289 | AM_RANGE(0x03000000, 0x030000FF) AM_NOP // unknown | |
| 290 | AM_RANGE(0x04000000, 0x040000FF) AM_NOP // unknown | |
| 291 | AM_RANGE(0x0C000000, 0x0DFFFFFF) AM_RAM | |
| 292 | AM_RANGE(0x14000000, 0x140000FF) AM_NOP // unknown | |
| 293 | AM_RANGE(0x14004000, 0x140041FF) AM_RAM // unknown | |
| 294 | AM_RANGE(0x15000000, 0x150000FF) AM_NOP // unknown | |
| 295 | AM_RANGE(0x16001000, 0x160010FF) AM_RAM // unknown | |
| 296 | AM_RANGE(0x1A000000, 0x1A0000FF) AM_NOP // unknown | |
| 281 | 297 | ADDRESS_MAP_END |
| 282 | 298 | |
| 299 | static ADDRESS_MAP_START( hikaru_map_slave, ADDRESS_SPACE_PROGRAM, 64 ) | |
| 300 | ADDRESS_MAP_UNMAP_HIGH | |
| 301 | AM_RANGE(0x00000000, 0x001FFFFF) AM_ROM AM_SHARE(1) | |
| 302 | AM_RANGE(0x0C000000, 0x0DFFFFFF) AM_RAM | |
| 303 | AM_RANGE(0x10000000, 0x100000FF) AM_RAM | |
| 304 | AM_RANGE(0x1A800000, 0x1A8000FF) AM_RAM | |
| 305 | AM_RANGE(0x1B000000, 0x1B0001FF) AM_RAM | |
| 306 | ADDRESS_MAP_END | |
| 283 | 307 | |
| 308 | ||
| 284 | 309 | static MACHINE_DRIVER_START( hikaru ) |
| 285 | 310 | /* basic machine hardware */ |
| 286 | 311 | MDRV_CPU_ADD("main", SH4, CPU_CLOCK) |
| r3115 | r3116 | |
| 288 | 313 | MDRV_CPU_PROGRAM_MAP(hikaru_map,0) |
| 289 | 314 | // MDRV_CPU_IO_MAP(hikaru_port,0) |
| 290 | 315 | // MDRV_CPU_VBLANK_INT("main", hikaru,vblank) |
| 316 | MDRV_CPU_ADD("slave", SH4, CPU_CLOCK) | |
| 317 | MDRV_CPU_PROGRAM_MAP(hikaru_map_slave,0) | |
| 291 | 318 | |
| 292 | 319 | // MDRV_MACHINE_START( hikaru ) |
| 293 | 320 | // MDRV_MACHINE_RESET( hikaru ) |
| r3115 | r3116 | |
|---|---|---|
| 831 | 831 | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 832 | 832 | AM_RANGE(0x080000, 0x08ffff) AM_READWRITE( sharedram_sub_r, sharedram_sub_w ) |
| 833 | 833 | AM_RANGE(0x280000, 0x287fff) AM_READWRITE( c352_0_r, c352_0_w ) |
| 834 | AM_RANGE(0x300000, 0x300001) AM_READNOP //( input_port_1_word_r ) | |
| 835 | AM_RANGE(0x300002, 0x300003) AM_READNOP //( input_port_2_word_r ) | |
| 834 | AM_RANGE(0x300000, 0x300001) AM_READNOP //AM_READ_PORT("IN1") | |
| 835 | AM_RANGE(0x300002, 0x300003) AM_READNOP //AM_READ_PORT("IN2") | |
| 836 | 836 | AM_RANGE(0x300010, 0x300011) AM_NOP |
| 837 | 837 | AM_RANGE(0x300030, 0x300031) AM_NOP |
| 838 | 838 | ADDRESS_MAP_END |
| r3115 | r3116 | |
|---|---|---|
| 56 | 56 | AM_RANGE(0x0000, 0x0fff) AM_ROM |
| 57 | 57 | // AM_RANGE(0x4000, 0x4000) AM_READNOP $315 |
| 58 | 58 | AM_RANGE(0x5000, 0x53ff) AM_RAM AM_BASE(&videoram) |
| 59 | AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE(&colorram) //color map ? something else .. only bits 1-3 are used | |
| 60 | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_2_r) | |
| 61 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_1_r) //dsw ? something else ? | |
| 62 | AM_RANGE(0xc000, 0xc000) AM_READ(input_port_0_r) AM_WRITENOP | |
| 63 | AM_RANGE(0xc001, 0xc002) AM_WRITENOP //bit 7 = strobe ($302) | |
| 59 | AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE(&colorram) // color map ? something else .. only bits 1-3 are used | |
| 60 | AM_RANGE(0x6000, 0x6000) AM_READ_PORT("DSW2") | |
| 61 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("DSW1") // dsw ? something else ? | |
| 62 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("INPUTS") AM_WRITENOP | |
| 63 | AM_RANGE(0xc001, 0xc002) AM_WRITENOP // bit 7 = strobe ($302) | |
| 64 | 64 | AM_RANGE(0xc005, 0xc007) AM_WRITENOP |
| 65 | 65 | AM_RANGE(0xe000, 0xe3ff) AM_RAM |
| 66 | 66 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 137 | 137 | PORT_DIPNAME( 0x80, 0x00, "DSW2 8" ) |
| 138 | 138 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 139 | 139 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 140 | ||
| 141 | 140 | INPUT_PORTS_END |
| 142 | 141 | |
| 143 | 142 |
| r3115 | r3116 | |
|---|---|---|
| 199 | 199 | AM_RANGE(0x1008, 0x100b) AM_MIRROR(0x47f0) AM_WRITE(skydiver_whistle_w) |
| 200 | 200 | AM_RANGE(0x100c, 0x100d) AM_MIRROR(0x47f0) AM_WRITE(skydiver_nmion_w) |
| 201 | 201 | AM_RANGE(0x100e, 0x100f) AM_MIRROR(0x47f0) AM_WRITE(skydiver_width_w) |
| 202 | AM_RANGE(0x1800, 0x1800) AM_MIRROR(0x47e0) AM_READ(input_port_0_r) | |
| 203 | AM_RANGE(0x1801, 0x1801) AM_MIRROR(0x47e0) AM_READ(input_port_1_r) | |
| 204 | AM_RANGE(0x1802, 0x1802) AM_MIRROR(0x47e0) AM_READ(input_port_2_r) | |
| 205 | AM_RANGE(0x1803, 0x1803) AM_MIRROR(0x47e0) AM_READ(input_port_3_r) | |
| 206 | AM_RANGE(0x1804, 0x1804) AM_MIRROR(0x47e0) AM_READ(input_port_4_r) | |
| 207 | AM_RANGE(0x1805, 0x1805) AM_MIRROR(0x47e0) AM_READ(input_port_5_r) | |
| 208 | AM_RANGE(0x1806, 0x1806) AM_MIRROR(0x47e0) AM_READ(input_port_6_r) | |
| 209 | AM_RANGE(0x1807, 0x1807) AM_MIRROR(0x47e0) AM_READ(input_port_7_r) | |
| 210 | AM_RANGE(0x1808, 0x1808) AM_MIRROR(0x47e4) AM_READ(input_port_8_r) | |
| 211 | AM_RANGE(0x1809, 0x1809) AM_MIRROR(0x47e4) AM_READ(input_port_9_r) | |
| 212 | AM_RANGE(0x180a, 0x180a) AM_MIRROR(0x47e4) AM_READ(input_port_10_r) | |
| 213 | AM_RANGE(0x180b, 0x180b) AM_MIRROR(0x47e4) AM_READ(input_port_11_r) | |
| 214 | AM_RANGE(0x1810, 0x1810) AM_MIRROR(0x47e4) AM_READ(input_port_12_r) | |
| 215 | AM_RANGE(0x1811, 0x1811) AM_MIRROR(0x47e4) AM_READ(input_port_13_r) | |
| 202 | AM_RANGE(0x1800, 0x1800) AM_MIRROR(0x47e0) AM_READ_PORT("IN0") | |
| 203 | AM_RANGE(0x1801, 0x1801) AM_MIRROR(0x47e0) AM_READ_PORT("IN1") | |
| 204 | AM_RANGE(0x1802, 0x1802) AM_MIRROR(0x47e0) AM_READ_PORT("IN2") | |
| 205 | AM_RANGE(0x1803, 0x1803) AM_MIRROR(0x47e0) AM_READ_PORT("IN3") | |
| 206 | AM_RANGE(0x1804, 0x1804) AM_MIRROR(0x47e0) AM_READ_PORT("IN4") | |
| 207 | AM_RANGE(0x1805, 0x1805) AM_MIRROR(0x47e0) AM_READ_PORT("IN5") | |
| 208 | AM_RANGE(0x1806, 0x1806) AM_MIRROR(0x47e0) AM_READ_PORT("IN6") | |
| 209 | AM_RANGE(0x1807, 0x1807) AM_MIRROR(0x47e0) AM_READ_PORT("IN7") | |
| 210 | AM_RANGE(0x1808, 0x1808) AM_MIRROR(0x47e4) AM_READ_PORT("IN8") | |
| 211 | AM_RANGE(0x1809, 0x1809) AM_MIRROR(0x47e4) AM_READ_PORT("IN9") | |
| 212 | AM_RANGE(0x180a, 0x180a) AM_MIRROR(0x47e4) AM_READ_PORT("IN10") | |
| 213 | AM_RANGE(0x180b, 0x180b) AM_MIRROR(0x47e4) AM_READ_PORT("IN11") | |
| 214 | AM_RANGE(0x1810, 0x1810) AM_MIRROR(0x47e4) AM_READ_PORT("IN12") | |
| 215 | AM_RANGE(0x1811, 0x1811) AM_MIRROR(0x47e4) AM_READ_PORT("IN13") | |
| 216 | 216 | AM_RANGE(0x2000, 0x201f) AM_MIRROR(0x47e0) AM_READWRITE(watchdog_reset_r, skydiver_2000_201F_w) |
| 217 | 217 | AM_RANGE(0x2800, 0x2fff) AM_MIRROR(0x4000) AM_READ(SMH_ROM) |
| 218 | 218 | AM_RANGE(0x3000, 0x37ff) AM_MIRROR(0x4000) AM_READ(SMH_ROM) |
| r3115 | r3116 | |
| 229 | 229 | *************************************/ |
| 230 | 230 | |
| 231 | 231 | static INPUT_PORTS_START( skydiver ) |
| 232 | PORT_START("IN0") | |
| 232 | PORT_START("IN0") | |
| 233 | 233 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 234 | 234 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| 235 | 235 | PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 236 | 236 | |
| 237 | PORT_START("IN1") | |
| 237 | PORT_START("IN1") | |
| 238 | 238 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 239 | 239 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 240 | 240 | PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 241 | 241 | |
| 242 | PORT_START("IN2") | |
| 242 | PORT_START("IN2") | |
| 243 | 243 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 244 | 244 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* Jump 1 */ |
| 245 | 245 | PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* Chute 1 */ |
| 246 | 246 | |
| 247 | PORT_START("IN3") | |
| 247 | PORT_START("IN3") | |
| 248 | 248 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 249 | 249 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) /* Jump 2 */ |
| 250 | 250 | PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) /* Chute 2 */ |
| 251 | 251 | |
| 252 | PORT_START("IN4") | |
| 252 | PORT_START("IN4") | |
| 253 | 253 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 254 | 254 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("(D) OPT SW NEXT TEST") PORT_CODE(KEYCODE_D) |
| 255 | 255 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("(F) OPT SW") PORT_CODE(KEYCODE_F) |
| 256 | 256 | |
| 257 | PORT_START("IN5") | |
| 257 | PORT_START("IN5") | |
| 258 | 258 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 259 | 259 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("(E) OPT SW") PORT_CODE(KEYCODE_E) |
| 260 | 260 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("(H) OPT SW DIAGNOSTICS") PORT_CODE(KEYCODE_H) |
| 261 | 261 | |
| 262 | PORT_START("IN6") | |
| 262 | PORT_START("IN6") | |
| 263 | 263 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 264 | 264 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 265 | 265 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) |
| 266 | 266 | |
| 267 | PORT_START("IN7") | |
| 267 | PORT_START("IN7") | |
| 268 | 268 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 269 | 269 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 270 | 270 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(1) |
| 271 | 271 | |
| 272 | PORT_START("IN8") | |
| 272 | PORT_START("IN8") | |
| 273 | 273 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 274 | 274 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Lives ) ) |
| 275 | 275 | PORT_DIPSETTING( 0x00, "3" ) |
| r3115 | r3116 | |
| 277 | 277 | PORT_DIPSETTING( 0x80, "5" ) |
| 278 | 278 | PORT_DIPSETTING( 0xc0, "6" ) |
| 279 | 279 | |
| 280 | PORT_START("IN9") | |
| 280 | PORT_START("IN9") | |
| 281 | 281 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 282 | 282 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) ) |
| 283 | 283 | PORT_DIPSETTING( 0xc0, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 285 | 285 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) |
| 286 | 286 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 287 | 287 | |
| 288 | PORT_START("IN10") | |
| 288 | PORT_START("IN10") | |
| 289 | 289 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 290 | 290 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Difficulty ) ) |
| 291 | 291 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) |
| r3115 | r3116 | |
| 294 | 294 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) |
| 295 | 295 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 296 | 296 | |
| 297 | PORT_START("IN11") | |
| 297 | PORT_START("IN11") | |
| 298 | 298 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 299 | 299 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Language ) ) |
| 300 | 300 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| r3115 | r3116 | |
| 302 | 302 | PORT_DIPSETTING( 0x80, DEF_STR( Spanish ) ) |
| 303 | 303 | PORT_DIPSETTING( 0xc0, DEF_STR( German ) ) |
| 304 | 304 | |
| 305 | PORT_START("IN12") | |
| 305 | PORT_START("IN12") | |
| 306 | 306 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 307 | 307 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) |
| 308 | 308 | PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 309 | 309 | |
| 310 | PORT_START("IN13") | |
| 310 | PORT_START("IN13") | |
| 311 | 311 | PORT_BIT (0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 312 | 312 | PORT_BIT (0x40, IP_ACTIVE_LOW, IPT_TILT ) |
| 313 | 313 | PORT_BIT (0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
|---|---|---|
| 106 | 106 | |
| 107 | 107 | #include "driver.h" |
| 108 | 108 | #include "spacefb.h" |
| 109 | #include "cpu/ | |
| 109 | #include "cpu/mcs48 | |
| 110 | 110 | #include "sound/dac.h" |
| 111 | 111 | |
| 112 | 112 | |
| r3115 | r3116 | |
| 213 | 213 | |
| 214 | 214 | static ADDRESS_MAP_START( spacefb_main_io_map, ADDRESS_SPACE_IO, 8 ) |
| 215 | 215 | ADDRESS_MAP_GLOBAL_MASK(0x7) |
| 216 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) | |
| 217 | AM_RANGE(0x01, 0x01) AM_READ(input_port_1_r) | |
| 218 | AM_RANGE(0x02, 0x02) AM_READ(input_port_2_r) | |
| 219 | AM_RANGE(0x03, 0x03) AM_READ(input_port_3_r) | |
| 216 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") | |
| 217 | AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") | |
| 218 | AM_RANGE(0x02, 0x02) AM_READ_PORT("SYSTEM") | |
| 219 | AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW") | |
| 220 | 220 | AM_RANGE(0x04, 0x07) AM_READNOP /* yes, this is correct (1-of-8 decoder) */ |
| 221 | 221 | |
| 222 | 222 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x04) AM_WRITE(spacefb_port_0_w) |
| r3115 | r3116 | |
| 227 | 227 | |
| 228 | 228 | |
| 229 | 229 | static ADDRESS_MAP_START( spacefb_audio_io_map, ADDRESS_SPACE_IO, 8 ) |
| 230 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(dac_0_data_w) | |
| 231 | AM_RANGE(I8039_p2, I8039_p2) AM_READ(spacefb_audio_p2_r) | |
| 232 | AM_RANGE(I8039_t0, I8039_t0) AM_READ(spacefb_audio_t0_r) | |
| 233 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(spacefb_audio_t1_r) | |
| 230 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(dac_0_data_w) | |
| 231 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READ(spacefb_audio_p2_r) | |
| 232 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_READ(spacefb_audio_t0_r) | |
| 233 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(spacefb_audio_t1_r) | |
| 234 | 234 | ADDRESS_MAP_END |
| 235 | 235 | |
| 236 | 236 | |
| r3115 | r3116 | |
| 242 | 242 | *************************************/ |
| 243 | 243 | |
| 244 | 244 | static INPUT_PORTS_START( spacefb ) |
| 245 | PORT_START("P1") | |
| 245 | PORT_START("P1") | |
| 246 | 246 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 247 | 247 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 248 | 248 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 252 | 252 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 253 | 253 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 254 | 254 | |
| 255 | PORT_START("P2") | |
| 255 | PORT_START("P2") | |
| 256 | 256 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL |
| 257 | 257 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL |
| 258 | 258 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 262 | 262 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 263 | 263 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 264 | 264 | |
| 265 | PORT_START("SYSTEM") | |
| 265 | PORT_START("SYSTEM") | |
| 266 | 266 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 267 | 267 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 268 | 268 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| r3115 | r3116 | |
| 272 | 272 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SERVICE ) /* Test ? */ |
| 273 | 273 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 274 | 274 | |
| 275 | PORT_START("DSW") | |
| 275 | PORT_START("DSW") | |
| 276 | 276 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW:1,2") |
| 277 | 277 | PORT_DIPSETTING( 0x00, "3" ) |
| 278 | 278 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
| 295 | 295 | |
| 296 | 296 | /* same as Space Firebird, except for the difficulty switch */ |
| 297 | 297 | static INPUT_PORTS_START( spacedem ) |
| 298 | PORT_START("P1") /* IN0 */ | |
| 299 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 300 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 301 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 302 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 303 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 304 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 305 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 306 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 298 | PORT_INCLUDE( spacefb ) | |
| 307 | 299 | |
| 308 | PORT_START("P2") /* IN1 */ | |
| 309 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 310 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 311 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 312 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 313 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 314 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 315 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 316 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 317 | ||
| 318 | PORT_START("SYSTEM") /* Coin - Start */ | |
| 319 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 320 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 321 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 322 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 323 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 324 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 325 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SERVICE ) /* Test ? */ | |
| 326 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 327 | ||
| 328 | PORT_START("DSW") /* DSW0 */ | |
| 300 | PORT_MODIFY("DSW") | |
| 329 | 301 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) |
| 330 | 302 | PORT_DIPSETTING( 0x00, "3" ) |
| 331 | 303 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
|---|---|---|
| 116 | 116 | |
| 117 | 117 | static ADDRESS_MAP_START( main_cpu_io, ADDRESS_SPACE_IO, 8 ) |
| 118 | 118 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 119 | AM_RANGE(0x00, 0x00) AM_READWRITE(input_port_0_r, onetwo_coin_counters_w) | |
| 120 | AM_RANGE(0x01, 0x01) AM_READWRITE(input_port_1_r, onetwo_soundlatch_w) | |
| 121 | AM_RANGE(0x02, 0x02) AM_READWRITE(input_port_2_r, onetwo_cpubank_w) | |
| 122 | AM_RANGE(0x03, 0x03) AM_READ(input_port_3_r) | |
| 123 | AM_RANGE(0x04, 0x04) AM_READ(input_port_4_r) | |
| 119 | AM_RANGE(0x00, 0x00) AM_READ_PORT("DSW1") AM_WRITE(onetwo_coin_counters_w) | |
| 120 | AM_RANGE(0x01, 0x01) AM_READ_PORT("DSW2") AM_WRITE(onetwo_soundlatch_w) | |
| 121 | AM_RANGE(0x02, 0x02) AM_READ_PORT("P1") AM_WRITE(onetwo_cpubank_w) | |
| 122 | AM_RANGE(0x03, 0x03) AM_READ_PORT("P2") | |
| 123 | AM_RANGE(0x04, 0x04) AM_READ_PORT("SYSTEM") | |
| 124 | 124 | ADDRESS_MAP_END |
| 125 | 125 | |
| 126 | 126 | /* Sound CPU */ |
| r3115 | r3116 | |
| 206 | 206 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 207 | 207 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 208 | 208 | |
| 209 | PORT_START(" | |
| 209 | PORT_START("P1 | |
| 210 | 210 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 211 | 211 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 212 | 212 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 216 | 216 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 217 | 217 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 218 | 218 | |
| 219 | PORT_START(" | |
| 219 | PORT_START("P2 | |
| 220 | 220 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 221 | 221 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 222 | 222 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 226 | 226 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 227 | 227 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 228 | 228 | |
| 229 | PORT_START(" | |
| 229 | PORT_START("SYSTEM") | |
| 230 | 230 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 231 | 231 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 232 | 232 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) |
| r3115 | r3116 | |
|---|---|---|
| 282 | 282 | |
| 283 | 283 | static ADDRESS_MAP_START( readport_ojankohs, ADDRESS_SPACE_IO, 8 ) |
| 284 | 284 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 285 | AM_RANGE(0x00, 0x00) AM_READ | |
| 285 | AM_RANGE(0x00, 0x00) AM_READ | |
| 286 | 286 | AM_RANGE(0x01, 0x01) AM_READ(ojankohs_keymatrix_r) |
| 287 | AM_RANGE(0x02, 0x02) AM_READ | |
| 287 | AM_RANGE(0x02, 0x02) AM_READ | |
| 288 | 288 | AM_RANGE(0x06, 0x06) AM_READ(ay8910_read_port_0_r) |
| 289 | 289 | ADDRESS_MAP_END |
| 290 | 290 | |
| r3115 | r3116 | |
| 315 | 315 | |
| 316 | 316 | static ADDRESS_MAP_START( readport_ccasino, ADDRESS_SPACE_IO, 8 ) |
| 317 | 317 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 318 | AM_RANGE(0x00, 0x00) AM_READ | |
| 318 | AM_RANGE(0x00, 0x00) AM_READ | |
| 319 | 319 | AM_RANGE(0x01, 0x01) AM_READ(ojankohs_keymatrix_r) |
| 320 | AM_RANGE(0x02, 0x02) AM_READ | |
| 320 | AM_RANGE(0x02, 0x02) AM_READ | |
| 321 | 321 | AM_RANGE(0x03, 0x03) AM_READ(ccasino_dipsw3_r) |
| 322 | 322 | AM_RANGE(0x04, 0x04) AM_READ(ccasino_dipsw4_r) |
| 323 | 323 | AM_RANGE(0x06, 0x06) AM_READ(ay8910_read_port_0_r) |
| r3115 | r3116 | |
| 355 | 355 | ADDRESS_MAP_END |
| 356 | 356 | |
| 357 | 357 | static INPUT_PORTS_START( mahjong_p1 ) |
| 358 | PORT_START("KEY0") /* | |
| 358 | PORT_START("KEY0") /* | |
| 359 | 359 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) |
| 360 | 360 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E ) |
| 361 | 361 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_I ) |
| r3115 | r3116 | |
| 365 | 365 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 366 | 366 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 367 | 367 | |
| 368 | PORT_START("KEY1") /* | |
| 368 | PORT_START("KEY1") /* | |
| 369 | 369 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_B ) |
| 370 | 370 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F ) |
| 371 | 371 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_J ) |
| r3115 | r3116 | |
| 375 | 375 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 376 | 376 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 377 | 377 | |
| 378 | PORT_START("KEY2") /* | |
| 378 | PORT_START("KEY2") /* | |
| 379 | 379 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_C ) |
| 380 | 380 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_G ) |
| 381 | 381 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K ) |
| r3115 | r3116 | |
| 385 | 385 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 386 | 386 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 387 | 387 | |
| 388 | PORT_START("KEY3") /* | |
| 388 | PORT_START("KEY3") /* | |
| 389 | 389 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_D ) |
| 390 | 390 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_H ) |
| 391 | 391 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_L ) |
| r3115 | r3116 | |
| 395 | 395 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 396 | 396 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 397 | 397 | |
| 398 | PORT_START("KEY4") /* | |
| 398 | PORT_START("KEY4") /* | |
| 399 | 399 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_LAST_CHANCE ) |
| 400 | 400 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_SCORE ) |
| 401 | 401 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_DOUBLE_UP ) |
| r3115 | r3116 | |
| 407 | 407 | INPUT_PORTS_END |
| 408 | 408 | |
| 409 | 409 | static INPUT_PORTS_START( ojankohs ) |
| 410 | PORT_START("IN0") /* | |
| 410 | PORT_START("IN0") /* | |
| 411 | 411 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 412 | 412 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 413 | 413 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| 414 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW) // TEST | |
| 414 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW) // TEST | |
| 415 | 415 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 416 | 416 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 417 | 417 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 418 | 418 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 419 | 419 | |
| 420 | PORT_START("IN1") /* | |
| 420 | PORT_START("IN1") /* | |
| 421 | 421 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 422 | 422 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 423 | 423 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 427 | 427 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 |
| 428 | 428 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 429 | 429 | |
| 430 | PORT_START("DSW1") | |
| 430 | PORT_START("DSW1") | |
| 431 | 431 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 432 | 432 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 433 | 433 | PORT_DIPSETTING( 0x03, "2" ) |
| r3115 | r3116 | |
| 452 | 452 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 453 | 453 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 454 | 454 | |
| 455 | PORT_START("DSW2") | |
| 455 | PORT_START("DSW2") | |
| 456 | 456 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 457 | 457 | PORT_DIPNAME( 0x02, 0x02, "Opponent's initial score" ) |
| 458 | 458 | PORT_DIPSETTING ( 0x02, "2000" ) |
| r3115 | r3116 | |
| 468 | 468 | INPUT_PORTS_END |
| 469 | 469 | |
| 470 | 470 | static INPUT_PORTS_START( ojankoy ) |
| 471 | PORT_START("IN0") /* | |
| 471 | PORT_START("IN0") /* | |
| 472 | 472 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 473 | 473 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 474 | 474 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| 475 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW) // TEST | |
| 475 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW) // TEST | |
| 476 | 476 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 477 | 477 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 478 | 478 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 479 | 479 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 480 | 480 | |
| 481 | PORT_START("IN1") /* | |
| 481 | PORT_START("IN1") /* | |
| 482 | 482 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 483 | 483 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 484 | 484 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 488 | 488 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 |
| 489 | 489 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 490 | 490 | |
| 491 | PORT_START("DSW1") | |
| 491 | PORT_START("DSW1") | |
| 492 | 492 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 493 | 493 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 494 | 494 | PORT_DIPSETTING( 0x03, "2" ) |
| r3115 | r3116 | |
| 512 | 512 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 513 | 513 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 514 | 514 | |
| 515 | PORT_START("DSW2") | |
| 515 | PORT_START("DSW2") | |
| 516 | 516 | PORT_DIPNAME( 0x03, 0x02, "Number of ending chance" ) |
| 517 | 517 | PORT_DIPSETTING( 0x03, "0" ) |
| 518 | 518 | PORT_DIPSETTING( 0x01, "3" ) |
| r3115 | r3116 | |
| 539 | 539 | INPUT_PORTS_END |
| 540 | 540 | |
| 541 | 541 | static INPUT_PORTS_START( ccasino ) |
| 542 | PORT_START("IN0") /* | |
| 542 | PORT_START("IN0") /* | |
| 543 | 543 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 544 | 544 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 545 | 545 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| 546 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW) // TEST | |
| 546 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW) // TEST | |
| 547 | 547 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 548 | 548 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 549 | 549 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 550 | 550 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 551 | 551 | |
| 552 | PORT_START("IN1") /* | |
| 552 | PORT_START("IN1") /* | |
| 553 | 553 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 554 | 554 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 555 | 555 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 559 | 559 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) // COIN1 |
| 560 | 560 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 561 | 561 | |
| 562 | PORT_START("DSW1") | |
| 562 | PORT_START("DSW1") | |
| 563 | 563 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 564 | 564 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 565 | 565 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 585 | 585 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 586 | 586 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 587 | 587 | |
| 588 | PORT_START("DSW2") | |
| 588 | PORT_START("DSW2") | |
| 589 | 589 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 590 | 590 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 591 | 591 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 613 | 613 | |
| 614 | 614 | PORT_INCLUDE( mahjong_p1 ) |
| 615 | 615 | |
| 616 | PORT_START("DSW3") | |
| 616 | PORT_START("DSW3") | |
| 617 | 617 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 3-1" ) |
| 618 | 618 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 619 | 619 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 639 | 639 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 640 | 640 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 641 | 641 | |
| 642 | PORT_START("DSW4") | |
| 642 | PORT_START("DSW4") | |
| 643 | 643 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 4-1" ) |
| 644 | 644 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 645 | 645 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 667 | 667 | INPUT_PORTS_END |
| 668 | 668 | |
| 669 | 669 | static INPUT_PORTS_START( ojankoc ) |
| 670 | PORT_START("DSW1") | |
| 670 | PORT_START("DSW1") | |
| 671 | 671 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 672 | 672 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 673 | 673 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 691 | 691 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 692 | 692 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 693 | 693 | |
| 694 | PORT_START("DSW2") | |
| 694 | PORT_START("DSW2") | |
| 695 | 695 | PORT_DIPNAME( 0x01, 0x01, "2-1" ) |
| 696 | 696 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 697 | 697 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 717 | 717 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 718 | 718 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 719 | 719 | |
| 720 | PORT_START("KEY0") /* | |
| 720 | PORT_START("KEY0") /* | |
| 721 | 721 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_A ) |
| 722 | 722 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_E ) |
| 723 | 723 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_I ) |
| r3115 | r3116 | |
| 727 | 727 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 728 | 728 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 729 | 729 | |
| 730 | PORT_START("KEY1") /* | |
| 730 | PORT_START("KEY1") /* | |
| 731 | 731 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_B ) |
| 732 | 732 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_F ) |
| 733 | 733 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_J ) |
| r3115 | r3116 | |
| 737 | 737 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 738 | 738 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 739 | 739 | |
| 740 | PORT_START("KEY2") /* | |
| 740 | PORT_START("KEY2") /* | |
| 741 | 741 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_C ) |
| 742 | 742 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_G ) |
| 743 | 743 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_K ) |
| r3115 | r3116 | |
| 747 | 747 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 748 | 748 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 749 | 749 | |
| 750 | PORT_START("KEY3") /* | |
| 750 | PORT_START("KEY3") /* | |
| 751 | 751 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_D ) |
| 752 | 752 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_H ) |
| 753 | 753 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_L ) |
| r3115 | r3116 | |
| 757 | 757 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 758 | 758 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 759 | 759 | |
| 760 | PORT_START("KEY4") /* | |
| 760 | PORT_START("KEY4") /* | |
| 761 | 761 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_LAST_CHANCE ) |
| 762 | 762 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_SCORE ) |
| 763 | 763 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_DOUBLE_UP ) |
| r3115 | r3116 | |
| 767 | 767 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 768 | 768 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 769 | 769 | |
| 770 | PORT_START("KEY5") /* (7) PORT 2-0 */ | |
| 771 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_A )PORT_PLAYER(2) | |
| 772 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_E )PORT_PLAYER(2) | |
| 773 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_I )PORT_PLAYER(2) | |
| 774 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_M )PORT_PLAYER(2) | |
| 775 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_MAHJONG_KAN )PORT_PLAYER(2) | |
| 770 | PORT_START("KEY5") /* PORT 2-0 */ | |
| 771 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_A ) PORT_PLAYER(2) | |
| 772 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_E ) PORT_PLAYER(2) | |
| 773 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_I ) PORT_PLAYER(2) | |
| 774 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_M ) PORT_PLAYER(2) | |
| 775 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_MAHJONG_KAN ) PORT_PLAYER(2) | |
| 776 | 776 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START2 ) |
| 777 | 777 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 778 | 778 | |
| 779 | PORT_START("KEY6") /* (8) PORT 2-1 */ | |
| 780 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_B )PORT_PLAYER(2) | |
| 781 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_F )PORT_PLAYER(2) | |
| 782 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_J )PORT_PLAYER(2) | |
| 783 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_N )PORT_PLAYER(2) | |
| 784 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_MAHJONG_REACH )PORT_PLAYER(2) | |
| 785 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_MAHJONG_BET )PORT_PLAYER(2) | |
| 779 | PORT_START("KEY6") /* PORT 2-1 */ | |
| 780 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_B ) PORT_PLAYER(2) | |
| 781 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_F ) PORT_PLAYER(2) | |
| 782 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_J ) PORT_PLAYER(2) | |
| 783 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_N ) PORT_PLAYER(2) | |
| 784 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_MAHJONG_REACH ) PORT_PLAYER(2) | |
| 785 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_MAHJONG_BET ) PORT_PLAYER(2) | |
| 786 | 786 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 787 | 787 | |
| 788 | PORT_START("KEY7") /* (9) PORT 2-2 */ | |
| 789 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_C )PORT_PLAYER(2) | |
| 790 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_G )PORT_PLAYER(2) | |
| 791 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_K )PORT_PLAYER(2) | |
| 792 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_CHI )PORT_PLAYER(2) | |
| 793 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_MAHJONG_RON )PORT_PLAYER(2) | |
| 788 | PORT_START("KEY7") /* PORT 2-2 */ | |
| 789 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_C ) PORT_PLAYER(2) | |
| 790 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_G ) PORT_PLAYER(2) | |
| 791 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_K ) PORT_PLAYER(2) | |
| 792 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_CHI ) PORT_PLAYER(2) | |
| 793 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_MAHJONG_RON ) PORT_PLAYER(2) | |
| 794 | 794 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 795 | 795 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 796 | 796 | |
| 797 | PORT_START("KEY8") /* (10) PORT 2-3 */ | |
| 798 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_D )PORT_PLAYER(2) | |
| 799 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_H )PORT_PLAYER(2) | |
| 800 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_L )PORT_PLAYER(2) | |
| 801 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_PON )PORT_PLAYER(2) | |
| 797 | PORT_START("KEY8") /* PORT 2-3 */ | |
| 798 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_D ) PORT_PLAYER(2) | |
| 799 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_H ) PORT_PLAYER(2) | |
| 800 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_L ) PORT_PLAYER(2) | |
| 801 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_PON ) PORT_PLAYER(2) | |
| 802 | 802 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 803 | 803 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 804 | 804 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 805 | 805 | |
| 806 | PORT_START("KEY9") /* (11) PORT 2-4 */ | |
| 807 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_LAST_CHANCE )PORT_PLAYER(2) | |
| 808 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_SCORE )PORT_PLAYER(2) | |
| 809 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_DOUBLE_UP )PORT_PLAYER(2) | |
| 810 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_FLIP_FLOP )PORT_PLAYER(2) | |
| 811 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_MAHJONG_BIG )PORT_PLAYER(2) | |
| 812 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_MAHJONG_SMALL )PORT_PLAYER(2) | |
| 806 | PORT_START("KEY9") /* PORT 2-4 */ | |
| 807 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_MAHJONG_LAST_CHANCE ) PORT_PLAYER(2) | |
| 808 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_MAHJONG_SCORE ) PORT_PLAYER(2) | |
| 809 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_MAHJONG_DOUBLE_UP ) PORT_PLAYER(2) | |
| 810 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_MAHJONG_FLIP_FLOP ) PORT_PLAYER(2) | |
| 811 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_MAHJONG_BIG ) PORT_PLAYER(2) | |
| 812 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_MAHJONG_SMALL ) PORT_PLAYER(2) | |
| 813 | 813 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 814 | 814 | |
| 815 | PORT_START("IN0") | |
| 815 | PORT_START("IN0") | |
| 816 | 816 | PORT_BIT( 0x3f, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 817 | 817 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 818 | 818 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 819 | 819 | |
| 820 | PORT_START("IN1") | |
| 820 | PORT_START("IN1") | |
| 821 | 821 | PORT_BIT( 0x3f, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 822 | 822 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 823 | 823 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 824 | ||
| 825 | 824 | INPUT_PORTS_END |
| 826 | 825 | |
| 827 | 826 |
| r3115 | r3116 | |
|---|---|---|
| 689 | 689 | AM_RANGE(0x90, 0x90) AM_READ(nb1413m3_inputport0_r) |
| 690 | 690 | AM_RANGE(0xa0, 0xa0) AM_READ(nb1413m3_inputport1_r) |
| 691 | 691 | AM_RANGE(0xb0, 0xb0) AM_READ(nb1413m3_inputport2_r) |
| 692 | AM_RANGE(0xc0, 0xc0) AM_READ | |
| 692 | AM_RANGE(0xc0, 0xc0) AM_READ | |
| 693 | 693 | AM_RANGE(0xf0, 0xf0) AM_READ(nb1413m3_dipsw1_r) |
| 694 | 694 | AM_RANGE(0xf1, 0xf1) AM_READ(nb1413m3_dipsw2_r) |
| 695 | 695 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 717 | 717 | AM_RANGE(0x90, 0x90) AM_READ(nb1413m3_inputport0_r) |
| 718 | 718 | AM_RANGE(0xa0, 0xa0) AM_READ(nb1413m3_inputport1_r) |
| 719 | 719 | AM_RANGE(0xb0, 0xb0) AM_READ(nb1413m3_inputport2_r) |
| 720 | AM_RANGE(0xc0, 0xc0) AM_READ | |
| 720 | AM_RANGE(0xc0, 0xc0) AM_READ | |
| 721 | 721 | AM_RANGE(0xf0, 0xf0) AM_READ(nb1413m3_dipsw1_r) |
| 722 | 722 | AM_RANGE(0xf1, 0xf1) AM_READ(nb1413m3_dipsw2_r) |
| 723 | 723 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 768 | 768 | |
| 769 | 769 | |
| 770 | 770 | static INPUT_PORTS_START( hanamomo ) |
| 771 | PORT_START("DSWA") | |
| 771 | PORT_START("DSWA") | |
| 772 | 772 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 773 | 773 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 774 | 774 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 794 | 794 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 795 | 795 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 796 | 796 | |
| 797 | PORT_START("DSWB") | |
| 797 | PORT_START("DSWB") | |
| 798 | 798 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 799 | 799 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 800 | 800 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 820 | 820 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 821 | 821 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 822 | 822 | |
| 823 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 824 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 823 | PORT_START("SYSTEM") | |
| 824 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 825 | 825 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 826 | 826 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 827 | 827 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 834 | 834 | INPUT_PORTS_END |
| 835 | 835 | |
| 836 | 836 | static INPUT_PORTS_START( mjcamerb ) |
| 837 | PORT_START("DSWA") | |
| 837 | PORT_START("DSWA") | |
| 838 | 838 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 839 | 839 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 840 | 840 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 860 | 860 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 861 | 861 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 862 | 862 | |
| 863 | PORT_START("DSWB") | |
| 863 | PORT_START("DSWB") | |
| 864 | 864 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 865 | 865 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 866 | 866 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 886 | 886 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 887 | 887 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 888 | 888 | |
| 889 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 890 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 889 | PORT_START("SYSTEM") | |
| 890 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 891 | 891 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 892 | 892 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 893 | 893 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 900 | 900 | INPUT_PORTS_END |
| 901 | 901 | |
| 902 | 902 | static INPUT_PORTS_START( mmcamera ) |
| 903 | PORT_START("DSWA") | |
| 903 | PORT_START("DSWA") | |
| 904 | 904 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 905 | 905 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 906 | 906 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 926 | 926 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 927 | 927 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 928 | 928 | |
| 929 | PORT_START("DSWB") | |
| 929 | PORT_START("DSWB") | |
| 930 | 930 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 931 | 931 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 932 | 932 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 952 | 952 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 953 | 953 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 954 | 954 | |
| 955 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 956 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 955 | PORT_START("SYSTEM") | |
| 956 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 957 | 957 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 958 | 958 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 959 | 959 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 966 | 966 | INPUT_PORTS_END |
| 967 | 967 | |
| 968 | 968 | static INPUT_PORTS_START( msjiken ) |
| 969 | PORT_START("DSWA") | |
| 969 | PORT_START("DSWA") | |
| 970 | 970 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 971 | 971 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 972 | 972 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 992 | 992 | PORT_DIPSETTING( 0x80, "ROYAL" ) |
| 993 | 993 | PORT_DIPSETTING( 0x00, "JAMMA" ) |
| 994 | 994 | |
| 995 | PORT_START("DSWB") | |
| 995 | PORT_START("DSWB") | |
| 996 | 996 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 997 | 997 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 998 | 998 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1018 | 1018 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1019 | 1019 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1020 | 1020 | |
| 1021 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1022 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1021 | PORT_START("SYSTEM") | |
| 1022 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1023 | 1023 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1024 | 1024 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1025 | 1025 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1030 | 1030 | |
| 1031 | 1031 | PORT_INCLUDE( nbmjcontrols ) |
| 1032 | 1032 | |
| 1033 | PORT_START("JAMMA1") | |
| 1033 | PORT_START("JAMMA1") | |
| 1034 | 1034 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1035 | 1035 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1036 | 1036 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1040 | 1040 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1041 | 1041 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1042 | 1042 | |
| 1043 | PORT_START("JAMMA2") | |
| 1043 | PORT_START("JAMMA2") | |
| 1044 | 1044 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1045 | 1045 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1046 | 1046 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_4WAY |
| r3115 | r3116 | |
| 1052 | 1052 | INPUT_PORTS_END |
| 1053 | 1053 | |
| 1054 | 1054 | static INPUT_PORTS_START( telmahjn ) |
| 1055 | PORT_START("DSWA") | |
| 1055 | PORT_START("DSWA") | |
| 1056 | 1056 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1057 | 1057 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1058 | 1058 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1078 | 1078 | PORT_DIPSETTING( 0x80, "ROYAL" ) |
| 1079 | 1079 | PORT_DIPSETTING( 0x00, "JAMMA" ) |
| 1080 | 1080 | |
| 1081 | PORT_START("DSWB") | |
| 1081 | PORT_START("DSWB") | |
| 1082 | 1082 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1083 | 1083 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1084 | 1084 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1104 | 1104 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1105 | 1105 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1106 | 1106 | |
| 1107 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1108 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1107 | PORT_START("SYSTEM") | |
| 1108 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1109 | 1109 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1110 | 1110 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1111 | 1111 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1116 | 1116 | |
| 1117 | 1117 | PORT_INCLUDE( nbmjcontrols ) |
| 1118 | 1118 | |
| 1119 | PORT_START("JAMMA1") | |
| 1119 | PORT_START("JAMMA1") | |
| 1120 | 1120 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1121 | 1121 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1122 | 1122 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 1126 | 1126 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1127 | 1127 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1128 | 1128 | |
| 1129 | PORT_START("JAMMA2") | |
| 1129 | PORT_START("JAMMA2") | |
| 1130 | 1130 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1131 | 1131 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1132 | 1132 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_4WAY |
| r3115 | r3116 | |
| 1138 | 1138 | INPUT_PORTS_END |
| 1139 | 1139 | |
| 1140 | 1140 | static INPUT_PORTS_START( gionbana ) |
| 1141 | PORT_START("DSWA") | |
| 1141 | PORT_START("DSWA") | |
| 1142 | 1142 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1143 | 1143 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1144 | 1144 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1163 | 1163 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1164 | 1164 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1165 | 1165 | |
| 1166 | PORT_START("DSWB") | |
| 1166 | PORT_START("DSWB") | |
| 1167 | 1167 | PORT_DIPNAME( 0x01, 0x00, "Oyaken" ) |
| 1168 | 1168 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1169 | 1169 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1189 | 1189 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1190 | 1190 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1191 | 1191 | |
| 1192 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1193 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1192 | PORT_START("SYSTEM") | |
| 1193 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1194 | 1194 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1195 | 1195 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1196 | 1196 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1203 | 1203 | INPUT_PORTS_END |
| 1204 | 1204 | |
| 1205 | 1205 | static INPUT_PORTS_START( mgion ) |
| 1206 | PORT_START("DSWA") | |
| 1206 | PORT_START("DSWA") | |
| 1207 | 1207 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1208 | 1208 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1209 | 1209 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1229 | 1229 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1230 | 1230 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1231 | 1231 | |
| 1232 | PORT_START("DSWB") | |
| 1232 | PORT_START("DSWB") | |
| 1233 | 1233 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1234 | 1234 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1235 | 1235 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1255 | 1255 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1256 | 1256 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1257 | 1257 | |
| 1258 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1259 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1258 | PORT_START("SYSTEM") | |
| 1259 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1260 | 1260 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1261 | 1261 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1262 | 1262 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1269 | 1269 | INPUT_PORTS_END |
| 1270 | 1270 | |
| 1271 | 1271 | static INPUT_PORTS_START( omotesnd ) |
| 1272 | PORT_START("DSWA") | |
| 1272 | PORT_START("DSWA") | |
| 1273 | 1273 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1274 | 1274 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1275 | 1275 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1295 | 1295 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1296 | 1296 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1297 | 1297 | |
| 1298 | PORT_START("DSWB") | |
| 1298 | PORT_START("DSWB") | |
| 1299 | 1299 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1300 | 1300 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1301 | 1301 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1321 | 1321 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1322 | 1322 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1323 | 1323 | |
| 1324 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1325 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1324 | PORT_START("SYSTEM") | |
| 1325 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1326 | 1326 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1327 | 1327 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1328 | 1328 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1335 | 1335 | INPUT_PORTS_END |
| 1336 | 1336 | |
| 1337 | 1337 | static INPUT_PORTS_START( abunai ) |
| 1338 | PORT_START("DSWA") | |
| 1338 | PORT_START("DSWA") | |
| 1339 | 1339 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1340 | 1340 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1341 | 1341 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1360 | 1360 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1361 | 1361 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1362 | 1362 | |
| 1363 | PORT_START("DSWB") | |
| 1363 | PORT_START("DSWB") | |
| 1364 | 1364 | PORT_DIPNAME( 0x01, 0x00, "Oyaken" ) |
| 1365 | 1365 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1366 | 1366 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1386 | 1386 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1387 | 1387 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1388 | 1388 | |
| 1389 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1390 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1389 | PORT_START("SYSTEM") | |
| 1390 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1391 | 1391 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1392 | 1392 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1393 | 1393 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1400 | 1400 | INPUT_PORTS_END |
| 1401 | 1401 | |
| 1402 | 1402 | static INPUT_PORTS_START( mgmen89 ) |
| 1403 | PORT_START("DSWA") | |
| 1403 | PORT_START("DSWA") | |
| 1404 | 1404 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1405 | 1405 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1406 | 1406 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1426 | 1426 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1427 | 1427 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1428 | 1428 | |
| 1429 | PORT_START("DSWB") | |
| 1429 | PORT_START("DSWB") | |
| 1430 | 1430 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1431 | 1431 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1432 | 1432 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1452 | 1452 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1453 | 1453 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1454 | 1454 | |
| 1455 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1456 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1455 | PORT_START("SYSTEM") | |
| 1456 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1457 | 1457 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1458 | 1458 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1459 | 1459 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1469 | 1469 | |
| 1470 | 1470 | // I don't have manual for this game. |
| 1471 | 1471 | |
| 1472 | PORT_START("DSWA") | |
| 1472 | PORT_START("DSWA") | |
| 1473 | 1473 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1474 | 1474 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1475 | 1475 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1495 | 1495 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1496 | 1496 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1497 | 1497 | |
| 1498 | PORT_START("DSWB") | |
| 1498 | PORT_START("DSWB") | |
| 1499 | 1499 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1500 | 1500 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1501 | 1501 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1521 | 1521 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1522 | 1522 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1523 | 1523 | |
| 1524 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1525 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1524 | PORT_START("SYSTEM") | |
| 1525 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1526 | 1526 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1527 | 1527 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1528 | 1528 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1535 | 1535 | INPUT_PORTS_END |
| 1536 | 1536 | |
| 1537 | 1537 | static INPUT_PORTS_START( mjfocusm ) |
| 1538 | PORT_START("DSWA") | |
| 1538 | PORT_START("DSWA") | |
| 1539 | 1539 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 1540 | 1540 | PORT_DIPSETTING( 0x07, "95% (Easy)" ) |
| 1541 | 1541 | PORT_DIPSETTING( 0x06, "90%" ) |
| r3115 | r3116 | |
| 1561 | 1561 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1562 | 1562 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1563 | 1563 | |
| 1564 | PORT_START("DSWB") | |
| 1564 | PORT_START("DSWB") | |
| 1565 | 1565 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Coinage ) ) |
| 1566 | 1566 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) |
| 1567 | 1567 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) |
| r3115 | r3116 | |
| 1585 | 1585 | PORT_DIPSETTING( 0x80, "A" ) |
| 1586 | 1586 | PORT_DIPSETTING( 0x00, "B" ) |
| 1587 | 1587 | |
| 1588 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1589 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1588 | PORT_START("SYSTEM") | |
| 1589 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1590 | 1590 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1591 | 1591 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1592 | 1592 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1599 | 1599 | INPUT_PORTS_END |
| 1600 | 1600 | |
| 1601 | 1601 | static INPUT_PORTS_START( peepshow ) |
| 1602 | PORT_START("DSWA") | |
| 1602 | PORT_START("DSWA") | |
| 1603 | 1603 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1604 | 1604 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1605 | 1605 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1625 | 1625 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1626 | 1626 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1627 | 1627 | |
| 1628 | PORT_START("DSWB") | |
| 1628 | PORT_START("DSWB") | |
| 1629 | 1629 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1630 | 1630 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1631 | 1631 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1651 | 1651 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1652 | 1652 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1653 | 1653 | |
| 1654 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1655 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1654 | PORT_START("SYSTEM") | |
| 1655 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1656 | 1656 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1657 | 1657 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1658 | 1658 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1665 | 1665 | INPUT_PORTS_END |
| 1666 | 1666 | |
| 1667 | 1667 | static INPUT_PORTS_START( scandal ) |
| 1668 | PORT_START("DSWA") | |
| 1668 | PORT_START("DSWA") | |
| 1669 | 1669 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1670 | 1670 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1671 | 1671 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1691 | 1691 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1692 | 1692 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1693 | 1693 | |
| 1694 | PORT_START("DSWB") | |
| 1694 | PORT_START("DSWB") | |
| 1695 | 1695 | PORT_DIPNAME( 0x01, 0x01, "Character Display Test" ) |
| 1696 | 1696 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1697 | 1697 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1717 | 1717 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1718 | 1718 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1719 | 1719 | |
| 1720 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1721 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1720 | PORT_START("SYSTEM") | |
| 1721 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1722 | 1722 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1723 | 1723 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1724 | 1724 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1731 | 1731 | INPUT_PORTS_END |
| 1732 | 1732 | |
| 1733 | 1733 | static INPUT_PORTS_START( scandalm ) |
| 1734 | PORT_START("DSWA") | |
| 1734 | PORT_START("DSWA") | |
| 1735 | 1735 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 1736 | 1736 | PORT_DIPSETTING( 0x07, "90% (Easy)" ) |
| 1737 | 1737 | PORT_DIPSETTING( 0x06, "85%" ) |
| r3115 | r3116 | |
| 1757 | 1757 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1758 | 1758 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1759 | 1759 | |
| 1760 | PORT_START("DSWB") | |
| 1760 | PORT_START("DSWB") | |
| 1761 | 1761 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Coinage ) ) |
| 1762 | 1762 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) |
| 1763 | 1763 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) |
| r3115 | r3116 | |
| 1781 | 1781 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1782 | 1782 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1783 | 1783 | |
| 1784 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1785 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1784 | PORT_START("SYSTEM") | |
| 1785 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1786 | 1786 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1787 | 1787 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1788 | 1788 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1795 | 1795 | INPUT_PORTS_END |
| 1796 | 1796 | |
| 1797 | 1797 | static INPUT_PORTS_START( mjnanpas ) |
| 1798 | PORT_START("DSWA") | |
| 1798 | PORT_START("DSWA") | |
| 1799 | 1799 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1800 | 1800 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1801 | 1801 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1821 | 1821 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1822 | 1822 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1823 | 1823 | |
| 1824 | PORT_START("DSWB") | |
| 1824 | PORT_START("DSWB") | |
| 1825 | 1825 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1826 | 1826 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1827 | 1827 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1847 | 1847 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1848 | 1848 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1849 | 1849 | |
| 1850 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1851 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1850 | PORT_START("SYSTEM") | |
| 1851 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1852 | 1852 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1853 | 1853 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1854 | 1854 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1861 | 1861 | INPUT_PORTS_END |
| 1862 | 1862 | |
| 1863 | 1863 | static INPUT_PORTS_START( mjnanpaa ) |
| 1864 | PORT_START("DSWA") | |
| 1864 | PORT_START("DSWA") | |
| 1865 | 1865 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1866 | 1866 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1867 | 1867 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1887 | 1887 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1888 | 1888 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1889 | 1889 | |
| 1890 | PORT_START("DSWB") | |
| 1890 | PORT_START("DSWB") | |
| 1891 | 1891 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1892 | 1892 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1893 | 1893 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1913 | 1913 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1914 | 1914 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1915 | 1915 | |
| 1916 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1917 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1916 | PORT_START("SYSTEM") | |
| 1917 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1918 | 1918 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1919 | 1919 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1920 | 1920 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1930 | 1930 | |
| 1931 | 1931 | // I don't have manual for this game. |
| 1932 | 1932 | |
| 1933 | PORT_START("DSWA") | |
| 1933 | PORT_START("DSWA") | |
| 1934 | 1934 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1935 | 1935 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1936 | 1936 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1956 | 1956 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1957 | 1957 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1958 | 1958 | |
| 1959 | PORT_START("DSWB") | |
| 1959 | PORT_START("DSWB") | |
| 1960 | 1960 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1961 | 1961 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1962 | 1962 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1982 | 1982 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1983 | 1983 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1984 | 1984 | |
| 1985 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1986 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1985 | PORT_START("SYSTEM") | |
| 1986 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1987 | 1987 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1988 | 1988 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1989 | 1989 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1996 | 1996 | INPUT_PORTS_END |
| 1997 | 1997 | |
| 1998 | 1998 | static INPUT_PORTS_START( club90s ) |
| 1999 | PORT_START("DSWA") | |
| 1999 | PORT_START("DSWA") | |
| 2000 | 2000 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2001 | 2001 | PORT_DIPSETTING( 0x03, "1" ) |
| 2002 | 2002 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 2021 | 2021 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2022 | 2022 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2023 | 2023 | |
| 2024 | PORT_START("DSWB") | |
| 2024 | PORT_START("DSWB") | |
| 2025 | 2025 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2026 | 2026 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2027 | 2027 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2047 | 2047 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2048 | 2048 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2049 | 2049 | |
| 2050 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2051 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2050 | PORT_START("SYSTEM") | |
| 2051 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2052 | 2052 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2053 | 2053 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2054 | 2054 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2064 | 2064 | |
| 2065 | 2065 | // I don't have manual for this game. |
| 2066 | 2066 | |
| 2067 | PORT_START("DSWA") | |
| 2067 | PORT_START("DSWA") | |
| 2068 | 2068 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 2069 | 2069 | PORT_DIPSETTING( 0x07, "90% (Easy)" ) |
| 2070 | 2070 | PORT_DIPSETTING( 0x06, "85%" ) |
| r3115 | r3116 | |
| 2090 | 2090 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2091 | 2091 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2092 | 2092 | |
| 2093 | PORT_START("DSWB") | |
| 2093 | PORT_START("DSWB") | |
| 2094 | 2094 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 2095 | 2095 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2096 | 2096 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2114 | 2114 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2115 | 2115 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2116 | 2116 | |
| 2117 | PORT_START("SYSTEM") /* (2) PORT 0-1 */ | |
| 2118 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2117 | PORT_START("SYSTEM") | |
| 2118 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2119 | 2119 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2120 | 2120 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2121 | 2121 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 2126 | 2126 | |
| 2127 | 2127 | PORT_INCLUDE( nbmjcontrols ) |
| 2128 | 2128 | |
| 2129 | PORT_START("PORT0-2") | |
| 2129 | PORT_START("PORT0-2") | |
| 2130 | 2130 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2131 | PORT_BIT( 0x02, IP_ACTIVE_ | |
| 2131 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_ | |
| 2132 | 2132 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2133 | 2133 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| 2134 | 2134 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 2138 | 2138 | INPUT_PORTS_END |
| 2139 | 2139 | |
| 2140 | 2140 | static INPUT_PORTS_START( mladyhtr ) |
| 2141 | PORT_START("DSWA") | |
| 2141 | PORT_START("DSWA") | |
| 2142 | 2142 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2143 | 2143 | PORT_DIPSETTING( 0x03, "1" ) |
| 2144 | 2144 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 2163 | 2163 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2164 | 2164 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2165 | 2165 | |
| 2166 | PORT_START("DSWB") | |
| 2166 | PORT_START("DSWB") | |
| 2167 | 2167 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2168 | 2168 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2169 | 2169 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2189 | 2189 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2190 | 2190 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2191 | 2191 | |
| 2192 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2193 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2192 | PORT_START("SYSTEM") | |
| 2193 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2194 | 2194 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2195 | 2195 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2196 | 2196 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2203 | 2203 | INPUT_PORTS_END |
| 2204 | 2204 | |
| 2205 | 2205 | static INPUT_PORTS_START( chinmoku ) |
| 2206 | PORT_START("DSWA") | |
| 2206 | PORT_START("DSWA") | |
| 2207 | 2207 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2208 | 2208 | PORT_DIPSETTING( 0x03, "1" ) |
| 2209 | 2209 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 2228 | 2228 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2229 | 2229 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2230 | 2230 | |
| 2231 | PORT_START("DSWB") | |
| 2231 | PORT_START("DSWB") | |
| 2232 | 2232 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2233 | 2233 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2234 | 2234 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2254 | 2254 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2255 | 2255 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2256 | 2256 | |
| 2257 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2258 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2257 | PORT_START("SYSTEM") | |
| 2258 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2259 | 2259 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2260 | 2260 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2261 | 2261 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2268 | 2268 | INPUT_PORTS_END |
| 2269 | 2269 | |
| 2270 | 2270 | static INPUT_PORTS_START( maiko ) |
| 2271 | PORT_START("DSWA") | |
| 2271 | PORT_START("DSWA") | |
| 2272 | 2272 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 2273 | 2273 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 2274 | 2274 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 2294 | 2294 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2295 | 2295 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2296 | 2296 | |
| 2297 | PORT_START("DSWB") | |
| 2297 | PORT_START("DSWB") | |
| 2298 | 2298 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2299 | 2299 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2300 | 2300 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2320 | 2320 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2321 | 2321 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2322 | 2322 | |
| 2323 | PORT_START("SYSTEM") /* (2) PORT 0-1 */ | |
| 2324 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2323 | PORT_START("SYSTEM") | |
| 2324 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2325 | 2325 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2326 | 2326 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2327 | 2327 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| r3115 | r3116 | |
| 2332 | 2332 | |
| 2333 | 2333 | PORT_INCLUDE( nbmjcontrols ) |
| 2334 | 2334 | |
| 2335 | PORT_START("PORT0-2") | |
| 2335 | PORT_START("PORT0-2") | |
| 2336 | 2336 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2337 | PORT_BIT( 0x02, IP_ACTIVE_ | |
| 2337 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_ | |
| 2338 | 2338 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2339 | 2339 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| 2340 | 2340 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| r3115 | r3116 | |
| 2347 | 2347 | |
| 2348 | 2348 | // I don't have manual for this game. |
| 2349 | 2349 | |
| 2350 | PORT_START("DSWA") | |
| 2350 | PORT_START("DSWA") | |
| 2351 | 2351 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 2352 | 2352 | PORT_DIPSETTING( 0x07, "90% (Easy)" ) |
| 2353 | 2353 | PORT_DIPSETTING( 0x06, "85%" ) |
| r3115 | r3116 | |
| 2371 | 2371 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2372 | 2372 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2373 | 2373 | |
| 2374 | PORT_START("DSWB") | |
| 2374 | PORT_START("DSWB") | |
| 2375 | 2375 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 2376 | 2376 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| 2377 | 2377 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) |
| r3115 | r3116 | |
| 2396 | 2396 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2397 | 2397 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2398 | 2398 | |
| 2399 | PORT_START("SYSTEM") /* (2) PORT 0-1 */ | |
| 2400 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2399 | PORT_START("SYSTEM") | |
| 2400 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2401 | 2401 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2402 | 2402 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2403 | 2403 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 2408 | 2408 | |
| 2409 | 2409 | PORT_INCLUDE( nbmjcontrols ) |
| 2410 | 2410 | |
| 2411 | PORT_START("PORT0-2") | |
| 2411 | PORT_START("PORT0-2") | |
| 2412 | 2412 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2413 | PORT_BIT( 0x02, IP_ACTIVE_ | |
| 2413 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_ | |
| 2414 | 2414 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2415 | 2415 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| 2416 | 2416 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 2420 | 2420 | INPUT_PORTS_END |
| 2421 | 2421 | |
| 2422 | 2422 | static INPUT_PORTS_START( hanaoji ) |
| 2423 | PORT_START("DSWA") | |
| 2423 | PORT_START("DSWA") | |
| 2424 | 2424 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2425 | 2425 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2426 | 2426 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2446 | 2446 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2447 | 2447 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2448 | 2448 | |
| 2449 | PORT_START("DSWB") | |
| 2449 | PORT_START("DSWB") | |
| 2450 | 2450 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2451 | 2451 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2452 | 2452 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2472 | 2472 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2473 | 2473 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 2474 | 2474 | |
| 2475 | PORT_START("SYSTEM") /* (2) PORT 0-1 */ | |
| 2476 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2475 | PORT_START("SYSTEM") | |
| 2476 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2477 | 2477 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2478 | 2478 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2479 | 2479 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| r3115 | r3116 | |
| 2484 | 2484 | |
| 2485 | 2485 | PORT_INCLUDE( nbmjcontrols ) |
| 2486 | 2486 | |
| 2487 | PORT_START("PORT0-2") | |
| 2487 | PORT_START("PORT0-2") | |
| 2488 | 2488 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2489 | PORT_BIT( 0x02, IP_ACTIVE_ | |
| 2489 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_ | |
| 2490 | 2490 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2491 | 2491 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| 2492 | 2492 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| r3115 | r3116 | |
| 2496 | 2496 | INPUT_PORTS_END |
| 2497 | 2497 | |
| 2498 | 2498 | static INPUT_PORTS_START( pairsnb ) |
| 2499 | PORT_START("DSWA") | |
| 2499 | PORT_START("DSWA") | |
| 2500 | 2500 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 2501 | 2501 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) // Hearts : 10 - Time : 60/60 |
| 2502 | 2502 | PORT_DIPSETTING( 0x02, DEF_STR( Medium ) ) // Hearts : 7 - Time : 44/60 |
| r3115 | r3116 | |
| 2521 | 2521 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2522 | 2522 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2523 | 2523 | |
| 2524 | PORT_START("DSWB") | |
| 2524 | PORT_START("DSWB") | |
| 2525 | 2525 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) |
| 2526 | 2526 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2527 | 2527 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2547 | 2547 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2548 | 2548 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2549 | 2549 | |
| 2550 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2551 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2550 | PORT_START("SYSTEM") | |
| 2551 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2552 | 2552 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2553 | 2553 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2554 | 2554 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 2557 | 2557 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2558 | 2558 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) // not in "test mode" |
| 2559 | 2559 | |
| 2560 | PORT_START("P1") | |
| 2560 | PORT_START("P1") | |
| 2561 | 2561 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 2562 | 2562 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 2563 | 2563 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_4WAY |
| r3115 | r3116 | |
| 2567 | 2567 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2568 | 2568 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2569 | 2569 | |
| 2570 | PORT_START("P2") | |
| 2570 | PORT_START("P2") | |
| 2571 | 2571 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 2572 | 2572 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 2573 | 2573 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) PORT_4WAY |
| r3115 | r3116 | |
| 2579 | 2579 | INPUT_PORTS_END |
| 2580 | 2580 | |
| 2581 | 2581 | static INPUT_PORTS_START( taiwanmb ) |
| 2582 | PORT_START("DSWA") | |
| 2582 | PORT_START("DSWA") | |
| 2583 | 2583 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 2584 | 2584 | PORT_DIPSETTING( 0x07, "95% (Easy)" ) |
| 2585 | 2585 | PORT_DIPSETTING( 0x06, "90%" ) |
| r3115 | r3116 | |
| 2603 | 2603 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2604 | 2604 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2605 | 2605 | |
| 2606 | PORT_START("DSWB") | |
| 2606 | PORT_START("DSWB") | |
| 2607 | 2607 | PORT_DIPNAME( 0x01, 0x00, "Last Chance" ) |
| 2608 | 2608 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2609 | 2609 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2627 | 2627 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2628 | 2628 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2629 | 2629 | |
| 2630 | PORT_START("DSWC") | |
| 2630 | PORT_START("DSWC") | |
| 2631 | 2631 | PORT_DIPNAME( 0x03, 0x03, "?? cut" ) |
| 2632 | 2632 | PORT_DIPSETTING( 0x03, DEF_STR( Off ) ) |
| 2633 | 2633 | PORT_DIPSETTING( 0x02, "16 - ?H??" ) |
| r3115 | r3116 | |
| 2650 | 2650 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2651 | 2651 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2652 | 2652 | |
| 2653 | PORT_START("SYSTEM") /* (3) PORT 0 */ | |
| 2654 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2653 | PORT_START("SYSTEM") | |
| 2654 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2655 | 2655 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // COIN OUT |
| 2656 | 2656 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2657 | 2657 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
|---|---|---|
| 41 | 41 | /* private globals */ |
| 42 | 42 | static int toggle=0;//, soundcode = 0; |
| 43 | 43 | static int adpcm_pos[2],adpcm_end[2],adpcm_idle[2]; |
| 44 | static int adpcm_data[2]; | |
| 45 | static int mcu63701_command; | |
| 46 | static int inputs[4]; | |
| 47 | ||
| 48 | static UINT8 tapc[4] = {0,0,0,0}; // R1, R2, L1, L2 | |
| 49 | static UINT8 last_port[2] = {0,0}; | |
| 50 | static UINT8 last_dash[2] = {0,0}; | |
| 44 | 51 | /* end of private globals */ |
| 45 | 52 | |
| 46 | 53 | |
| r3115 | r3116 | |
| 78 | 85 | |
| 79 | 86 | static void spd_adpcm_int(running_machine *machine, int chip) |
| 80 | 87 | { |
| 81 | static int adpcm_data[2] = { -1, -1 }; | |
| 82 | ||
| 83 | 88 | if (adpcm_pos[chip] >= adpcm_end[chip] || adpcm_pos[chip] >= 0x10000) |
| 84 | 89 | { |
| 85 | 90 | adpcm_idle[chip] = 1; |
| r3115 | r3116 | |
| 100 | 105 | } |
| 101 | 106 | |
| 102 | 107 | |
| 103 | static int mcu63701_command; | |
| 104 | static int inputs[4]; | |
| 105 | ||
| 106 | 108 | #if 0 // default - more sensitive (state change and timing measured on real board?) |
| 107 | 109 | static void mcu63705_update_inputs(running_machine *machine) |
| 108 | 110 | { |
| r3115 | r3116 | |
| 178 | 180 | #define A 0x10 |
| 179 | 181 | #define D 0x20 |
| 180 | 182 | |
| 181 | static UINT8 tapc[4] = {0,0,0,0}; // R1, R2, L1, L2 | |
| 182 | static UINT8 last_port[2] = {0,0}; | |
| 183 | static UINT8 last_dash[2] = {0,0}; | |
| 184 | 183 | UINT8 curr_port[2]; |
| 185 | 184 | UINT8 curr_dash[2]; |
| 186 | 185 | int p; |
| r3115 | r3116 | |
| 429 | 428 | }; |
| 430 | 429 | |
| 431 | 430 | |
| 431 | static MACHINE_RESET( spdodgeb ) | |
| 432 | { | |
| 433 | toggle = 0; | |
| 434 | adpcm_pos[0] = adpcm_pos[1] = 0; | |
| 435 | adpcm_end[0] = adpcm_end[0] = 0; | |
| 436 | adpcm_idle[0] = adpcm_data[1] = 0; | |
| 437 | adpcm_data[0] = adpcm_data[1] = -1; | |
| 438 | mcu63701_command = 0; | |
| 439 | memset(inputs, 0, sizeof(inputs)); | |
| 440 | memset(tapc, 0, sizeof(tapc)); | |
| 441 | last_port[0] = last_port[1] = 0; | |
| 442 | last_dash[0] = last_dash[1] = 0; | |
| 443 | } | |
| 432 | 444 | |
| 433 | 445 | static MACHINE_DRIVER_START( spdodgeb ) |
| 434 | 446 | |
| r3115 | r3116 | |
| 455 | 467 | MDRV_VIDEO_START(spdodgeb) |
| 456 | 468 | MDRV_VIDEO_UPDATE(spdodgeb) |
| 457 | 469 | |
| 470 | MDRV_MACHINE_RESET( spdodgeb ) | |
| 471 | ||
| 458 | 472 | /* sound hardware */ |
| 459 | 473 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") |
| 460 | 474 |
| r3115 | r3116 | |
|---|---|---|
| 43 | 43 | { |
| 44 | 44 | gameplan_state *state = machine->driver_data; |
| 45 | 45 | |
| 46 | return memory_region(machine, "u | |
| 46 | return memory_region(machine, "qu | |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | static WRITE8_HANDLER( trvquest_coin_w ) |
| r3115 | r3116 | |
| 203 | 203 | |
| 204 | 204 | MDRV_DRIVER_DATA(gameplan_state) |
| 205 | 205 | |
| 206 | MDRV_CPU_ADD("main", M6809,6 | |
| 206 | MDRV_CPU_ADD("main", M6809,XTAL_6MHz/4 | |
| 207 | 207 | MDRV_CPU_PROGRAM_MAP(cpu_map,0) |
| 208 | 208 | MDRV_CPU_VBLANK_INT("main", trvquest_interrupt) |
| 209 | 209 | |
| r3115 | r3116 | |
| 217 | 217 | /* sound hardware */ |
| 218 | 218 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 219 | 219 | |
| 220 | MDRV_SOUND_ADD("ay1", AY8910, | |
| 220 | MDRV_SOUND_ADD("ay1", AY8910, XTAL_6MHz/2) | |
| 221 | 221 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 222 | 222 | |
| 223 | MDRV_SOUND_ADD("ay2", AY8910, | |
| 223 | MDRV_SOUND_ADD("ay2", AY8910, XTAL_6MHz/2) | |
| 224 | 224 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 225 | 225 | MACHINE_DRIVER_END |
| 226 | 226 | |
| r3115 | r3116 | |
| 232 | 232 | ROM_LOAD( "rom6", 0xe000, 0x1000, CRC(fabf4846) SHA1(862cac32de78f2ff4afef398b864d5533d302a4f) ) |
| 233 | 233 | ROM_LOAD( "rom7", 0xf000, 0x1000, CRC(a9f56551) SHA1(fb6fc3b17a6e66571a5ba837befbfac1ac26cc39) ) |
| 234 | 234 | |
| 235 | ROM_REGION( 0x18000, "u | |
| 235 | ROM_REGION( 0x18000, "qu | |
| 236 | 236 | /* 0x00000 - 0x07fff empty */ |
| 237 | 237 | ROM_LOAD( "romi", 0x06000, 0x2000, CRC(c8368f69) SHA1(c1dfb701482c5ae922df0a93665a519995a2f4f1) ) |
| 238 | 238 | ROM_LOAD( "romh", 0x08000, 0x2000, CRC(f3aa8a08) SHA1(2bf8f878cc1df84806a6fb8e7be2656c422d61b9) ) |
| r3115 | r3116 | |
|---|---|---|
| 740 | 740 | COMMON_COIN1(IP_ACTIVE_HIGH) |
| 741 | 741 | COMMON_COIN2(IP_ACTIVE_HIGH) |
| 742 | 742 | |
| 743 | PORT_START("AN1") /* spinner 1 - read at f000/1 */\ | |
| 744 | PORT_BIT ( 0x0fff, 0x0000, IPT_DIAL ) PORT_SENSITIVITY(70) PORT_KEYDELTA(15)\ | |
| 745 | PORT_BIT ( 0x1000, IP_ACTIVE_LOW, IPT_COIN2 ) /* Mirrored for service mode */\ | |
| 746 | PORT_BIT ( 0x2000, IP_ACTIVE_HIGH, IPT_SERVICE1 ) /* Mirrored for service mode */\ | |
| 747 | PORT_BIT ( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 ) /* Mirrored for service mode */\ | |
| 748 | PORT_BIT ( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )\ | |
| 743 | PORT_START("AN1") /* spinner 1 - read at f000/1 */ | |
| 744 | PORT_BIT ( 0x0fff, 0x0000, IPT_DIAL ) PORT_SENSITIVITY(70) PORT_KEYDELTA(15) | |
| 745 | PORT_BIT ( 0x1000, IP_ACTIVE_LOW, IPT_COIN2 ) /* Mirrored for service mode */ | |
| 746 | PORT_BIT ( 0x2000, IP_ACTIVE_HIGH, IPT_SERVICE1 ) /* Mirrored for service mode */ | |
| 747 | PORT_BIT ( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 ) /* Mirrored for service mode */ | |
| 748 | PORT_BIT ( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 749 | 749 | |
| 750 | PORT_START("AN2") /* spinner 2 - read at f002/3 */\ | |
| 751 | PORT_BIT ( 0x0fff, 0x0000, IPT_DIAL ) PORT_SENSITIVITY(70) PORT_KEYDELTA(15) PORT_PLAYER(2)\ | |
| 750 | PORT_START("AN2") /* spinner 2 - read at f002/3 */ | |
| 751 | PORT_BIT ( 0x0fff, 0x0000, IPT_DIAL ) PORT_SENSITIVITY(70) PORT_KEYDELTA(15) PORT_PLAYER(2) | |
| 752 | 752 | PORT_BIT ( 0xf000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 753 | 753 | INPUT_PORTS_END |
| 754 | 754 |
| r3115 | r3116 | |
|---|---|---|
| 135 | 135 | |
| 136 | 136 | static ADDRESS_MAP_START( tp84_cpu1_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 137 | 137 | AM_RANGE(0x2000, 0x2000) AM_WRITE(watchdog_reset_w) |
| 138 | AM_RANGE(0x2800, 0x2800) AM_READWRITE(input_port_0_r, SMH_RAM) AM_BASE(&tp84_palette_bank) | |
| 139 | AM_RANGE(0x2820, 0x2820) AM_READ(input_port_1_r) | |
| 140 | AM_RANGE(0x2840, 0x2840) AM_READ(input_port_2_r) | |
| 141 | AM_RANGE(0x2860, 0x2860) AM_READ(input_port_3_r) | |
| 142 | AM_RANGE(0x3000, 0x3000) AM_READWRITE(input_port_4_r, SMH_RAM) | |
| 138 | AM_RANGE(0x2800, 0x2800) AM_READ_PORT("SYSTEM") AM_WRITEONLY AM_BASE(&tp84_palette_bank) | |
| 139 | AM_RANGE(0x2820, 0x2820) AM_READ_PORT("P1") | |
| 140 | AM_RANGE(0x2840, 0x2840) AM_READ_PORT("P2") | |
| 141 | AM_RANGE(0x2860, 0x2860) AM_READ_PORT("DSW1") | |
| 142 | AM_RANGE(0x3000, 0x3000) AM_READ_PORT("DSW2") AM_WRITEONLY | |
| 143 | 143 | AM_RANGE(0x3004, 0x3004) AM_WRITE(SMH_RAM) AM_BASE(&tp84_flipscreen_x) |
| 144 | 144 | AM_RANGE(0x3005, 0x3005) AM_WRITE(SMH_RAM) AM_BASE(&tp84_flipscreen_y) |
| 145 | 145 | AM_RANGE(0x3800, 0x3800) AM_WRITE(tp84_sh_irqtrigger_w) |
| r3115 | r3116 | |
| 161 | 161 | AM_RANGE(0x0c00, 0x0fff) AM_RAM AM_BASE(&tp84_fg_colorram) |
| 162 | 162 | AM_RANGE(0x1000, 0x17ff) AM_RAM AM_SHARE(1) |
| 163 | 163 | AM_RANGE(0x1800, 0x1800) AM_WRITE(watchdog_reset_w) |
| 164 | AM_RANGE(0x1a00, 0x1a00) AM_READWRITE(input_port_0_r, SMH_RAM) AM_BASE(&tp84_palette_bank) | |
| 165 | AM_RANGE(0x1a20, 0x1a20) AM_READ(input_port_1_r) | |
| 166 | AM_RANGE(0x1a40, 0x1a40) AM_READ(input_port_2_r) | |
| 167 | AM_RANGE(0x1a60, 0x1a60) AM_READ(input_port_3_r) | |
| 168 | AM_RANGE(0x1c00, 0x1c00) AM_READWRITE(input_port_4_r, SMH_NOP) | |
| 164 | AM_RANGE(0x1a00, 0x1a00) AM_READ_PORT("SYSTEM") AM_WRITEONLY AM_BASE(&tp84_palette_bank) | |
| 165 | AM_RANGE(0x1a20, 0x1a20) AM_READ_PORT("P1") | |
| 166 | AM_RANGE(0x1a40, 0x1a40) AM_READ_PORT("P2") | |
| 167 | AM_RANGE(0x1a60, 0x1a60) AM_READ_PORT("DSW1") | |
| 168 | AM_RANGE(0x1c00, 0x1c00) AM_READ_PORT("DSW2") AM_WRITENOP | |
| 169 | 169 | AM_RANGE(0x1c04, 0x1c04) AM_WRITE(SMH_RAM) AM_BASE(&tp84_flipscreen_x) |
| 170 | 170 | AM_RANGE(0x1c05, 0x1c05) AM_WRITE(SMH_RAM) AM_BASE(&tp84_flipscreen_y) |
| 171 | 171 | AM_RANGE(0x1e00, 0x1e00) AM_WRITE(tp84_sh_irqtrigger_w) |
| r3115 | r3116 | |
| 202 | 202 | |
| 203 | 203 | |
| 204 | 204 | static INPUT_PORTS_START( tp84 ) |
| 205 | PORT_START("SYSTEM") | |
| 205 | PORT_START("SYSTEM") | |
| 206 | 206 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 207 | 207 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 208 | 208 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 212 | 212 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 213 | 213 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 214 | 214 | |
| 215 | PORT_START("P1") | |
| 215 | PORT_START("P1") | |
| 216 | 216 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 217 | 217 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 218 | 218 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 222 | 222 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 223 | 223 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 224 | 224 | |
| 225 | PORT_START("P2") | |
| 225 | PORT_START("P2") | |
| 226 | 226 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 227 | 227 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 228 | 228 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 232 | 232 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 233 | 233 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 234 | 234 | |
| 235 | PORT_START("DSW1") | |
| 235 | PORT_START("DSW1") | |
| 236 | 236 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 237 | 237 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 238 | 238 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 268 | 268 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 269 | 269 | PORT_DIPSETTING( 0x00, "Invalid" ) |
| 270 | 270 | |
| 271 | PORT_START("DSW2") | |
| 271 | PORT_START("DSW2") | |
| 272 | 272 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 273 | 273 | PORT_DIPSETTING( 0x03, "2" ) |
| 274 | 274 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 293 | 293 | INPUT_PORTS_END |
| 294 | 294 | |
| 295 | 295 | static INPUT_PORTS_START( tp84a ) |
| 296 | PORT_START("SYSTEM") | |
| 296 | PORT_START("SYSTEM") | |
| 297 | 297 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 298 | 298 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 299 | 299 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 303 | 303 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 304 | 304 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 305 | 305 | |
| 306 | PORT_START("P1") | |
| 306 | PORT_START("P1") | |
| 307 | 307 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 308 | 308 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 309 | 309 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 313 | 313 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 314 | 314 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 315 | 315 | |
| 316 | PORT_START("P2") | |
| 316 | PORT_START("P2") | |
| 317 | 317 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 318 | 318 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 319 | 319 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 323 | 323 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 324 | 324 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 325 | 325 | |
| 326 | PORT_START("DSW1") | |
| 326 | PORT_START("DSW1") | |
| 327 | 327 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 328 | 328 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 329 | 329 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 359 | 359 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 360 | 360 | PORT_DIPSETTING( 0x00, "Invalid" ) |
| 361 | 361 | |
| 362 | PORT_START("DSW2") | |
| 362 | PORT_START("DSW2") | |
| 363 | 363 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 364 | 364 | PORT_DIPSETTING( 0x03, "3" ) |
| 365 | 365 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
|---|---|---|
| 124 | 124 | VIDEO_UPDATE( nitrobal ); |
| 125 | 125 | WRITE16_HANDLER( rohga_buffer_spriteram16_w ); |
| 126 | 126 | |
| 127 | static READ16_HANDLER( rohga_dip3_r ) { return input_port_read(machine, "DSW3"); } | |
| 128 | static READ16_HANDLER( nitrobal_control_r ) { return input_port_read(machine, "DSW3"); } | |
| 129 | static READ16_HANDLER( schmeisr_control_r ) { return input_port_read(machine, "IN1"); } | |
| 130 | ||
| 131 | 127 | /**********************************************************************************/ |
| 132 | 128 | |
| 133 | 129 | static ADDRESS_MAP_START( rohga_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 134 | 130 | AM_RANGE(0x000000, 0x1fffff) AM_READ(SMH_ROM) |
| 135 | 131 | AM_RANGE(0x280000, 0x2807ff) AM_MIRROR(0x800) AM_READ(deco16_104_rohga_prot_r) /* Protection device */ |
| 136 | AM_RANGE(0x2c0000, 0x2c0001) AM_READ | |
| 132 | AM_RANGE(0x2c0000, 0x2c0001) AM_READ | |
| 137 | 133 | AM_RANGE(0x321100, 0x321101) AM_READ(SMH_NOP) /* Irq ack? Value not used */ |
| 138 | 134 | AM_RANGE(0x3c0000, 0x3c1fff) AM_READ(SMH_RAM) |
| 139 | 135 | AM_RANGE(0x3c2000, 0x3c2fff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 234 | 230 | |
| 235 | 231 | AM_RANGE(0x300000, 0x30000f) AM_READ(SMH_RAM) |
| 236 | 232 | AM_RANGE(0x310000, 0x31000f) AM_READ(SMH_RAM) |
| 237 | AM_RANGE(0x320000, 0x320001) AM_READ | |
| 233 | AM_RANGE(0x320000, 0x320001) AM_READ | |
| 238 | 234 | |
| 239 | 235 | AM_RANGE(0x340000, 0x3407ff) AM_READ(SMH_RAM) |
| 240 | 236 | AM_RANGE(0x360000, 0x3607ff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 281 | 277 | static ADDRESS_MAP_START( schmeisr_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 282 | 278 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 283 | 279 | AM_RANGE(0x280000, 0x2807ff) AM_READ(deco16_104_rohga_prot_r) /* Protection device */ |
| 284 | AM_RANGE(0x2c0000, 0x2c0001) AM_READ(rohga_dip3_r) | |
| 285 | AM_RANGE(0x300000, 0x300001) AM_READ(nitrobal_control_r) | |
| 286 | AM_RANGE(0x310002, 0x310003) AM_READ(schmeisr_control_r) | |
| 280 | AM_RANGE(0x2c0000, 0x2c0001) AM_READ_PORT("DSW3") | |
| 281 | AM_RANGE(0x300000, 0x300001) AM_READ_PORT("DSW3") | |
| 282 | AM_RANGE(0x310002, 0x310003) AM_READ_PORT("IN1") | |
| 287 | 283 | AM_RANGE(0x321100, 0x321101) AM_READ(SMH_NOP) /* Irq ack? Value not used */ |
| 288 | 284 | AM_RANGE(0x3c0000, 0x3c1fff) AM_READ(SMH_RAM) |
| 289 | 285 | AM_RANGE(0x3c2000, 0x3c2fff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 373 | 369 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 374 | 370 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 375 | 371 | |
| 376 | PORT_START("DSW1_2") | |
| 372 | PORT_START("DSW1_2") | |
| 377 | 373 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 378 | 374 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| 379 | 375 | PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 471 | 467 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 472 | 468 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 473 | 469 | |
| 474 | PORT_START("DSW1_2") | |
| 470 | PORT_START("DSW1_2") | |
| 475 | 471 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 476 | 472 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| 477 | 473 | PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 544 | 540 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 545 | 541 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 546 | 542 | |
| 547 | PORT_START("DSW1_2") | |
| 543 | PORT_START("DSW1_2") | |
| 548 | 544 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 549 | 545 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| 550 | 546 | PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 593 | 589 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 594 | 590 | |
| 595 | 591 | PORT_START("DSW3") /* Not really a DSW, but this way it's easier to read by tag */ |
| 596 | PORT_BIT( 0x1, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 597 | PORT_BIT( 0x2, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 598 | PORT_BIT( 0x4, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 599 | PORT_BIT( 0x8, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 592 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) | |
| 593 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) | |
| 594 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) | |
| 595 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) | |
| 600 | 596 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) |
| 601 | 597 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) |
| 602 | 598 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 628 | 624 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 629 | 625 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 630 | 626 | |
| 631 | PORT_START("DSW1_2") | |
| 627 | PORT_START("DSW1_2") | |
| 632 | 628 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 633 | 629 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| 634 | 630 | PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 168 | 168 | |
| 169 | 169 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 170 | 170 | AM_RANGE(0x0000, 0x0fff) AM_READ(SMH_RAM) |
| 171 | AM_RANGE(0x1000, 0x1000) AM_READ(input_port_0_r) | |
| 172 | AM_RANGE(0x1001, 0x1001) AM_READ(input_port_1_r) | |
| 173 | AM_RANGE(0x1002, 0x1002) AM_READ(input_port_2_r) | |
| 174 | AM_RANGE(0x1003, 0x1003) AM_READ(input_port_3_r) | |
| 175 | AM_RANGE(0x1004, 0x1004) AM_READ(input_port_4_r) | |
| 176 | AM_RANGE(0x1005, 0x1005) AM_READ(input_port_5_r) | |
| 177 | AM_RANGE(0x1006, 0x1006) AM_READ(input_port_6_r) | |
| 171 | AM_RANGE(0x1000, 0x1000) AM_READ_PORT("P1") | |
| 172 | AM_RANGE(0x1001, 0x1001) AM_READ_PORT("P2") | |
| 173 | AM_RANGE(0x1002, 0x1002) AM_READ_PORT("SYSTEM") | |
| 174 | AM_RANGE(0x1003, 0x1003) AM_READ_PORT("DSW1") | |
| 175 | AM_RANGE(0x1004, 0x1004) AM_READ_PORT("DSW2") | |
| 176 | AM_RANGE(0x1005, 0x1005) AM_READ_PORT("P3") | |
| 177 | AM_RANGE(0x1006, 0x1006) AM_READ_PORT("P4") | |
| 178 | 178 | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK1) |
| 179 | 179 | AM_RANGE(0x8000, 0xffff) AM_READ(SMH_ROM) |
| 180 | 180 | ADDRESS_MAP_END |
| 181 | 181 | |
| 182 | 182 | static ADDRESS_MAP_START( vball2pj_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 183 | 183 | AM_RANGE(0x0000, 0x0fff) AM_READ(SMH_RAM) |
| 184 | AM_RANGE(0x1000, 0x1000) AM_READ(input_port_0_r) | |
| 185 | AM_RANGE(0x1001, 0x1001) AM_READ(input_port_1_r) | |
| 186 | AM_RANGE(0x1002, 0x1002) AM_READ(input_port_2_r) | |
| 187 | AM_RANGE(0x1003, 0x1003) AM_READ(input_port_3_r) | |
| 188 | AM_RANGE(0x1004, 0x1004) AM_READ(input_port_4_r) | |
| 184 | AM_RANGE(0x1000, 0x1000) AM_READ_PORT("P1") | |
| 185 | AM_RANGE(0x1001, 0x1001) AM_READ_PORT("P2") | |
| 186 | AM_RANGE(0x1002, 0x1002) AM_READ_PORT("SYSTEM") | |
| 187 | AM_RANGE(0x1003, 0x1003) AM_READ_PORT("DSW1") | |
| 188 | AM_RANGE(0x1004, 0x1004) AM_READ_PORT("DSW2") | |
| 189 | 189 | AM_RANGE(0x1005, 0x1005) AM_READ(SMH_RAM) //Strange, that these are read! |
| 190 | 190 | AM_RANGE(0x1006, 0x1006) AM_READ(SMH_RAM) //Strange, that these are read! |
| 191 | 191 | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK1) |
| r3115 | r3116 | |
| 230 | 230 | AM_RANGE(0x9800, 0x9803) AM_WRITE(okim6295_data_0_w) |
| 231 | 231 | ADDRESS_MAP_END |
| 232 | 232 | |
| 233 | #define COMMON_PORTS_BEFORE \ | |
| 234 | PORT_START("P1") \ | |
| 235 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) \ | |
| 236 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) \ | |
| 237 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) \ | |
| 238 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) \ | |
| 239 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) \ | |
| 240 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) \ | |
| 241 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 242 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) \ | |
| 243 | PORT_START("P2") \ | |
| 244 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) \ | |
| 245 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) \ | |
| 246 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) \ | |
| 247 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) \ | |
| 248 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) \ | |
| 249 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) \ | |
| 250 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 251 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) \ | |
| 252 | PORT_START("SYSTEM") \ | |
| 253 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) \ | |
| 254 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) \ | |
| 255 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ | |
| 256 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) \ | |
| 257 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) \ | |
| 258 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) \ | |
| 259 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) \ | |
| 260 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) \ | |
| 261 | 233 | |
| 262 | #define COMMON_PORTS_COINS \ | |
| 263 | PORT_START("DSW2") \ | |
| 264 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A )) \ | |
| 265 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C )) \ | |
| 266 | PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C )) \ | |
| 267 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C )) \ | |
| 268 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C )) \ | |
| 269 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C )) \ | |
| 270 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C )) \ | |
| 271 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C )) \ | |
| 272 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_5C )) \ | |
| 273 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B )) \ | |
| 274 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C )) \ | |
| 275 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C )) \ | |
| 276 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C )) \ | |
| 277 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C )) \ | |
| 278 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C )) \ | |
| 279 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C )) \ | |
| 280 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C )) \ | |
| 281 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C )) \ | |
| 282 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Flip_Screen )) \ | |
| 283 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) \ | |
| 284 | PORT_DIPSETTING( 0x40, DEF_STR( On )) \ | |
| 285 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds )) \ | |
| 286 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) \ | |
| 287 | PORT_DIPSETTING( 0x80, DEF_STR( On )) \ | |
| 234 | static INPUT_PORTS_START( common ) | |
| 235 | PORT_START("P1") | |
| 236 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 237 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 238 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 239 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 240 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 241 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 242 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 243 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 288 | 244 | |
| 289 | static INPUT_PORTS_START (vball) | |
| 290 | COMMON_PORTS_BEFORE | |
| 245 | PORT_START("P2") | |
| 246 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 247 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 248 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 249 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 250 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 251 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 252 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 253 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 254 | ||
| 255 | PORT_START("SYSTEM") | |
| 256 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 257 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 258 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 259 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 260 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 261 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 262 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 263 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 264 | ||
| 265 | PORT_START("DSW2") | |
| 266 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) | |
| 267 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 268 | PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C ) ) | |
| 269 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) | |
| 270 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 271 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 272 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 273 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 274 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_5C ) ) | |
| 275 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) | |
| 276 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 277 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) | |
| 278 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 279 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 280 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 281 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 282 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 283 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) | |
| 284 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Flip_Screen ) ) | |
| 285 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 286 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 287 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) | |
| 288 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 289 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 290 | INPUT_PORTS_END | |
| 291 | ||
| 292 | static INPUT_PORTS_START( vball ) | |
| 293 | PORT_INCLUDE( common ) | |
| 294 | ||
| 291 | 295 | /* The dipswitch instructions in naz's dump (vball) don't quite sync here) */ |
| 292 | 296 | /* Looks like the pins from the dips to the board were mixed up a little. */ |
| 293 | 297 | |
| 294 | 298 | PORT_START("DSW1") |
| 295 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty )) | |
| 299 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 296 | 300 | // I've adjusted these to what I think is correct from gameplay testing - SJE - 03/28/03 |
| 297 | PORT_DIPSETTING( 0x02, DEF_STR( Easy )) | |
| 298 | PORT_DIPSETTING( 0x03, DEF_STR( Medium )) | |
| 299 | PORT_DIPSETTING( 0x01, DEF_STR( Hard )) | |
| 300 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard )) | |
| 301 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 302 | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) | |
| 303 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 304 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) | |
| 301 | 305 | PORT_DIPNAME( 0x0c, 0x00, "Single Player Game Time") |
| 302 | 306 | PORT_DIPSETTING( 0x00, "1:15") |
| 303 | 307 | PORT_DIPSETTING( 0x04, "1:30") |
| 304 | 308 | PORT_DIPSETTING( 0x0c, "1:45") |
| 305 | 309 | PORT_DIPSETTING( 0x08, "2:00") |
| 306 | 310 | PORT_DIPNAME( 0x30, 0x00, "Start Buttons (4-player)") |
| 307 | PORT_DIPSETTING( 0x00, DEF_STR( Normal )) | |
| 311 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) | |
| 308 | 312 | PORT_DIPSETTING( 0x20, "Button A") |
| 309 | 313 | PORT_DIPSETTING( 0x10, "Button B") |
| 310 | PORT_DIPSETTING( 0x30, DEF_STR( Normal )) | |
| 314 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 311 | 315 | PORT_DIPNAME( 0x40, 0x40, "PL 1&4 (4-player)") |
| 312 | PORT_DIPSETTING( 0x40, DEF_STR( Normal )) | |
| 316 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) | |
| 313 | 317 | PORT_DIPSETTING( 0x00, "Rot 90") |
| 314 | 318 | PORT_DIPNAME( 0x80, 0x00, "Player Mode") |
| 315 | 319 | PORT_DIPSETTING( 0x80, "2") |
| 316 | 320 | PORT_DIPSETTING( 0x00, "4") |
| 317 | 321 | |
| 318 | COMMON_PORTS_COINS | |
| 319 | ||
| 320 | 322 | PORT_START("P3") |
| 321 | 323 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) |
| 322 | 324 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) |
| r3115 | r3116 | |
| 339 | 341 | INPUT_PORTS_END |
| 340 | 342 | |
| 341 | 343 | static INPUT_PORTS_START (vball2pj) |
| 342 | | |
| 344 | | |
| 343 | 345 | |
| 344 | 346 | /* The 2-player roms have the game-time in the difficulty spot, and |
| 345 | 347 | I've assumed vice-versa. (VS the instructions scanned in Naz's dump) */ |
| r3115 | r3116 | |
| 350 | 352 | PORT_DIPSETTING( 0x01, "1:45") |
| 351 | 353 | PORT_DIPSETTING( 0x03, "2:00") |
| 352 | 354 | PORT_DIPSETTING( 0x02, "2:15") |
| 353 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty )) | |
| 355 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) | |
| 354 | 356 | // This ordering is assumed. Someone has to play it a lot and find out. |
| 355 | PORT_DIPSETTING( 0x04, DEF_STR( Easy )) | |
| 356 | PORT_DIPSETTING( 0x00, DEF_STR( Medium )) | |
| 357 | PORT_DIPSETTING( 0x08, DEF_STR( Hard )) | |
| 358 | PORT_DIPSETTING( 0x0c, DEF_STR( Very_Hard )) | |
| 359 | ||
| 360 | COMMON_PORTS_COINS | |
| 357 | PORT_DIPSETTING( 0x04, DEF_STR( Easy ) ) | |
| 358 | PORT_DIPSETTING( 0x00, DEF_STR( Medium ) ) | |
| 359 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) | |
| 360 | PORT_DIPSETTING( 0x0c, DEF_STR( Very_Hard ) ) | |
| 361 | 361 | INPUT_PORTS_END |
| 362 | 362 | |
| 363 | 363 |
| r3115 | r3116 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | static void update_interrupts(running_machine *machine) |
| 44 | 44 | { |
| 45 | int newstate = 0; | |
| 46 | ||
| 47 | if (atarigen_scanline_int_state) | |
| 48 | newstate |= 4; | |
| 49 | if (atarigen_sound_int_state) | |
| 50 | newstate |= 6; | |
| 51 | ||
| 52 | if (newstate) | |
| 53 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 54 | else | |
| 55 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 45 | cpunum_set_input_line(machine, 0, 4, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 46 | cpunum_set_input_line(machine, 0, 6, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 56 | 47 | } |
| 57 | 48 | |
| 58 | 49 |
| r3115 | r3116 | |
|---|---|---|
| 278 | 278 | AM_RANGE(0x056000, 0x056fff) AM_READ(SMH_RAM) |
| 279 | 279 | AM_RANGE(0x05a000, 0x05afff) AM_READ(SMH_RAM) |
| 280 | 280 | |
| 281 | AM_RANGE(0x05c400, 0x05c401) AM_READ_PORT("DSW0") /* DSW0 */ | |
| 282 | AM_RANGE(0x05c402, 0x05c403) AM_READ_PORT("DSW1") /* DSW1 */ | |
| 281 | AM_RANGE(0x05c400, 0x05c401) AM_READ_PORT("DSW0") | |
| 282 | AM_RANGE(0x05c402, 0x05c403) AM_READ_PORT("DSW1") | |
| 283 | 283 | |
| 284 | AM_RANGE(0x05cc00, 0x05cc01) AM_READ_PORT("IN0") /* IN0 */ | |
| 285 | AM_RANGE(0x05cc02, 0x05cc03) AM_READ_PORT("IN1") /* IN1 */ | |
| 286 | AM_RANGE(0x05cc04, 0x05cc05) AM_READ_PORT("IN2") /* IN2 */ | |
| 287 | AM_RANGE(0x05cc06, 0x05cc07) AM_READ_PORT("TEST") /* TEST */ | |
| 284 | AM_RANGE(0x05cc00, 0x05cc01) AM_READ_PORT("IN0") | |
| 285 | AM_RANGE(0x05cc02, 0x05cc03) AM_READ_PORT("IN1") | |
| 286 | AM_RANGE(0x05cc04, 0x05cc05) AM_READ_PORT("IN2") | |
| 287 | AM_RANGE(0x05cc06, 0x05cc07) AM_READ_PORT("TEST") | |
| 288 | 288 | |
| 289 | 289 | AM_RANGE(0x060000, 0x067fff) AM_READ(SMH_RAM) |
| 290 | 290 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 386 | 386 | AM_RANGE(0x056000, 0x056fff) AM_READ(SMH_RAM) |
| 387 | 387 | AM_RANGE(0x05a000, 0x05afff) AM_READ(SMH_RAM) |
| 388 | 388 | |
| 389 | AM_RANGE(0x05c400, 0x05c401) AM_READ_PORT("DSW0") /* DSW0 */ | |
| 390 | AM_RANGE(0x05c402, 0x05c403) AM_READ_PORT("DSW1") /* DSW1 */ | |
| 389 | AM_RANGE(0x05c400, 0x05c401) AM_READ_PORT("DSW0") | |
| 390 | AM_RANGE(0x05c402, 0x05c403) AM_READ_PORT("DSW1") | |
| 391 | 391 | |
| 392 | AM_RANGE(0x05cc00, 0x05cc01) AM_READ_PORT("IN0") /* IN0 */ | |
| 393 | AM_RANGE(0x05cc02, 0x05cc03) AM_READ_PORT("IN1") /* IN1 */ | |
| 394 | AM_RANGE(0x05cc04, 0x05cc05) AM_READ_PORT("IN2") /* IN2 */ | |
| 395 | AM_RANGE(0x05cc06, 0x05cc07) AM_READ_PORT("TEST") /* TEST */ | |
| 392 | AM_RANGE(0x05cc00, 0x05cc01) AM_READ_PORT("IN0") | |
| 393 | AM_RANGE(0x05cc02, 0x05cc03) AM_READ_PORT("IN1") | |
| 394 | AM_RANGE(0x05cc04, 0x05cc05) AM_READ_PORT("IN2") | |
| 395 | AM_RANGE(0x05cc06, 0x05cc07) AM_READ_PORT("TEST") | |
| 396 | 396 | |
| 397 | 397 | AM_RANGE(0x060000, 0x067fff) AM_READ(SMH_RAM) |
| 398 | 398 | AM_RANGE(0x070000, 0x070001) AM_READ(konamigt_input_word_r) |
| r3115 | r3116 | |
| 443 | 443 | AM_RANGE(0x056000, 0x056fff) AM_READ(SMH_RAM) |
| 444 | 444 | AM_RANGE(0x057000, 0x057fff) AM_READ(SMH_RAM) |
| 445 | 445 | AM_RANGE(0x05a000, 0x05afff) AM_READ(SMH_RAM) |
| 446 | AM_RANGE(0x05c402, 0x05c403) AM_READ_PORT("DSW0") /* DSW0 */ | |
| 447 | AM_RANGE(0x05c404, 0x05c405) AM_READ_PORT("DSW1") /* DSW1 */ | |
| 448 | AM_RANGE(0x05c406, 0x05c407) AM_READ_PORT("TEST") /* TEST */ | |
| 449 | AM_RANGE(0x05cc00, 0x05cc01) AM_READ_PORT("IN0") /* IN0 */ | |
| 450 | AM_RANGE(0x05cc02, 0x05cc03) AM_READ_PORT("IN1") /* IN1 */ | |
| 451 | AM_RANGE(0x05cc04, 0x05cc05) AM_READ_PORT("IN2") /* IN2 */ | |
| 446 | AM_RANGE(0x05c402, 0x05c403) AM_READ_PORT("DSW0") | |
| 447 | AM_RANGE(0x05c404, 0x05c405) AM_READ_PORT("DSW1") | |
| 448 | AM_RANGE(0x05c406, 0x05c407) AM_READ_PORT("TEST") | |
| 449 | AM_RANGE(0x05cc00, 0x05cc01) AM_READ_PORT("IN0") | |
| 450 | AM_RANGE(0x05cc02, 0x05cc03) AM_READ_PORT("IN1") | |
| 451 | AM_RANGE(0x05cc04, 0x05cc05) AM_READ_PORT("IN2") | |
| 452 | 452 | AM_RANGE(0x060000, 0x07ffff) AM_READ(SMH_RAM) |
| 453 | 453 | AM_RANGE(0x080000, 0x0bffff) AM_READ(SMH_ROM) |
| 454 | 454 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 497 | 497 | AM_RANGE(0x055000, 0x055fff) AM_READ(SMH_RAM) |
| 498 | 498 | AM_RANGE(0x056000, 0x056fff) AM_READ(SMH_RAM) |
| 499 | 499 | AM_RANGE(0x05a000, 0x05afff) AM_READ(SMH_RAM) |
| 500 | AM_RANGE(0x05c402, 0x05c403) AM_READ_PORT("DSW0") /* DSW0 */ | |
| 501 | AM_RANGE(0x05c404, 0x05c405) AM_READ_PORT("DSW1") /* DSW1 */ | |
| 502 | AM_RANGE(0x05c406, 0x05c407) AM_READ_PORT("TEST") /* TEST */ | |
| 503 | AM_RANGE(0x05cc00, 0x05cc01) AM_READ_PORT("IN0") /* IN0 */ | |
| 504 | AM_RANGE(0x05cc02, 0x05cc03) AM_READ_PORT("IN1") /* IN1 */ | |
| 505 | AM_RANGE(0x05cc04, 0x05cc05) AM_READ_PORT("IN2") /* IN2 */ | |
| 500 | AM_RANGE(0x05c402, 0x05c403) AM_READ_PORT("DSW0") | |
| 501 | AM_RANGE(0x05c404, 0x05c405) AM_READ_PORT("DSW1") | |
| 502 | AM_RANGE(0x05c406, 0x05c407) AM_READ_PORT("TEST") | |
| 503 | AM_RANGE(0x05cc00, 0x05cc01) AM_READ_PORT("IN0") | |
| 504 | AM_RANGE(0x05cc02, 0x05cc03) AM_READ_PORT("IN1") | |
| 505 | AM_RANGE(0x05cc04, 0x05cc05) AM_READ_PORT("IN2") | |
| 506 | 506 | AM_RANGE(0x060000, 0x067fff) AM_READ(SMH_RAM) |
| 507 | 507 | AM_RANGE(0x070000, 0x070001) AM_READ(konamigt_input_word_r) |
| 508 | 508 | AM_RANGE(0x080000, 0x0bffff) AM_READ(SMH_ROM) |
| r3115 | r3116 | |
| 565 | 565 | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) /* ROM BIOS */ |
| 566 | 566 | AM_RANGE(0x080000, 0x087fff) AM_READ(SMH_RAM) |
| 567 | 567 | AM_RANGE(0x090000, 0x091fff) AM_READ(SMH_RAM) |
| 568 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ_PORT("DSW0") | |
| 568 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ_PORT("DSW0") | |
| 569 | 569 | AM_RANGE(0x0c2000, 0x0c2001) AM_READ_PORT("IN0") /* Coins, start buttons, test mode */ |
| 570 | AM_RANGE(0x0c2002, 0x0c2003) AM_READ_PORT("IN1") /* IN1 */ | |
| 571 | AM_RANGE(0x0c2004, 0x0c2005) AM_READ_PORT("IN2") /* IN2 */ | |
| 572 | AM_RANGE(0x0c2006, 0x0c2007) AM_READ_PORT("DSW1") /* DSW1 */ | |
| 570 | AM_RANGE(0x0c2002, 0x0c2003) AM_READ_PORT("IN1") | |
| 571 | AM_RANGE(0x0c2004, 0x0c2005) AM_READ_PORT("IN2") | |
| 572 | AM_RANGE(0x0c2006, 0x0c2007) AM_READ_PORT("DSW1") | |
| 573 | 573 | AM_RANGE(0x100000, 0x100fff) AM_READ(SMH_RAM) |
| 574 | 574 | AM_RANGE(0x101000, 0x101fff) AM_READ(SMH_RAM) |
| 575 | 575 | AM_RANGE(0x102000, 0x102fff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 609 | 609 | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) /* ROM BIOS */ |
| 610 | 610 | AM_RANGE(0x080000, 0x081fff) AM_READ(SMH_RAM) |
| 611 | 611 | AM_RANGE(0x090000, 0x097fff) AM_READ(SMH_RAM) |
| 612 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ_PORT("DSW0") | |
| 612 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ_PORT("DSW0") | |
| 613 | 613 | AM_RANGE(0x0c2000, 0x0c2001) AM_READ_PORT("IN0") /* Coins, start buttons, test mode */ |
| 614 | AM_RANGE(0x0c2002, 0x0c2003) AM_READ_PORT("IN1") /* IN1 */ | |
| 615 | AM_RANGE(0x0c2004, 0x0c2005) AM_READ_PORT("IN2") /* IN2 */ | |
| 616 | AM_RANGE(0x0c2006, 0x0c2007) AM_READ_PORT("DSW1") /* DSW1 */ | |
| 614 | AM_RANGE(0x0c2002, 0x0c2003) AM_READ_PORT("IN1") | |
| 615 | AM_RANGE(0x0c2004, 0x0c2005) AM_READ_PORT("IN2") | |
| 616 | AM_RANGE(0x0c2006, 0x0c2007) AM_READ_PORT("DSW1") | |
| 617 | 617 | AM_RANGE(0x100000, 0x100fff) AM_READ(SMH_RAM) |
| 618 | 618 | AM_RANGE(0x101000, 0x101fff) AM_READ(SMH_RAM) |
| 619 | 619 | AM_RANGE(0x102000, 0x102fff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 653 | 653 | AM_RANGE(0x000000, 0x01ffff) AM_READ(SMH_ROM) /* ROM BIOS */ |
| 654 | 654 | AM_RANGE(0x080000, 0x087fff) AM_READ(SMH_RAM) |
| 655 | 655 | AM_RANGE(0x0e0000, 0x0e1fff) AM_READ(SMH_RAM) |
| 656 | AM_RANGE(0x0f0000, 0x0f0001) AM_READ_PORT("DSW1") /* DSW1 */ | |
| 657 | AM_RANGE(0x0f0002, 0x0f0003) AM_READ_PORT("IN2") /* IN2 */ | |
| 658 | AM_RANGE(0x0f0004, 0x0f0005) AM_READ_PORT("IN1") /* IN1 */ | |
| 656 | AM_RANGE(0x0f0000, 0x0f0001) AM_READ_PORT("DSW1") | |
| 657 | AM_RANGE(0x0f0002, 0x0f0003) AM_READ_PORT("IN2") | |
| 658 | AM_RANGE(0x0f0004, 0x0f0005) AM_READ_PORT("IN1") | |
| 659 | 659 | AM_RANGE(0x0f0006, 0x0f0007) AM_READ_PORT("IN0") /* Coins, start buttons, test mode */ |
| 660 | AM_RANGE(0x0f0008, 0x0f0009) AM_READ_PORT("DSW0") | |
| 660 | AM_RANGE(0x0f0008, 0x0f0009) AM_READ_PORT("DSW0") | |
| 661 | 661 | AM_RANGE(0x0f0020, 0x0f0021) AM_READ(SMH_NOP) /* Analog device */ |
| 662 | 662 | AM_RANGE(0x100000, 0x1bffff) AM_READ(SMH_ROM) /* ROM BIOS */ |
| 663 | 663 | AM_RANGE(0x200000, 0x20ffff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 702 | 702 | AM_RANGE(0x040000, 0x047fff) AM_READ(SMH_RAM) |
| 703 | 703 | AM_RANGE(0x060000, 0x061fff) AM_READ(SMH_RAM) |
| 704 | 704 | AM_RANGE(0x100000, 0x13ffff) AM_READ(SMH_ROM) /* ROM BIOS */ |
| 705 | AM_RANGE(0x070000, 0x070001) AM_READ_PORT("DSW1") /* DSW1 */ | |
| 706 | AM_RANGE(0x070002, 0x070003) AM_READ_PORT("IN2") /* IN2 */ | |
| 707 | AM_RANGE(0x070004, 0x070005) AM_READ_PORT("IN1") /* IN1 */ | |
| 705 | AM_RANGE(0x070000, 0x070001) AM_READ_PORT("DSW1") | |
| 706 | AM_RANGE(0x070002, 0x070003) AM_READ_PORT("IN2") | |
| 707 | AM_RANGE(0x070004, 0x070005) AM_READ_PORT("IN1") | |
| 708 | 708 | AM_RANGE(0x070006, 0x070007) AM_READ_PORT("IN0") /* Coins, start buttons, test mode */ |
| 709 | AM_RANGE(0x070008, 0x070009) AM_READ_PORT("DSW0") | |
| 709 | AM_RANGE(0x070008, 0x070009) AM_READ_PORT("DSW0") | |
| 710 | 710 | AM_RANGE(0x200000, 0x200fff) AM_READ(SMH_RAM) |
| 711 | 711 | AM_RANGE(0x201000, 0x201fff) AM_READ(SMH_RAM) |
| 712 | 712 | AM_RANGE(0x202000, 0x202fff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 814 | 814 | AM_RANGE(0x0c2800, 0x0c2801) AM_WRITENOP |
| 815 | 815 | AM_RANGE(0x0c2802, 0x0c2803) AM_WRITE(gx400_irq2_enable_word_w) // or at 0x0c2804 ? |
| 816 | 816 | AM_RANGE(0x0c2804, 0x0c2805) AM_WRITENOP |
| 817 | AM_RANGE(0x0c4000, 0x0c4001) AM_WRITE(selected_ip_w | |
| 817 | AM_RANGE(0x0c4000, 0x0c4001) AM_READ_PORT("IN1") AM_WRITE(selected_ip_w | |
| 818 | 818 | AM_RANGE(0x0c4002, 0x0c4003) AM_READ(selected_ip_r) /* WEC Le Mans 24 control */ AM_WRITENOP /* latches the value read previously */ |
| 819 | 819 | AM_RANGE(0x100000, 0x100fff) AM_READ(SMH_RAM) AM_WRITE(nemesis_videoram1b_word_w) AM_BASE(&nemesis_videoram1b) /* VRAM 1 */ |
| 820 | 820 | AM_RANGE(0x101000, 0x101fff) AM_READ(SMH_RAM) AM_WRITE(nemesis_videoram1f_word_w) AM_BASE(&nemesis_videoram1f) /* VRAM 1 */ |
| r3115 | r3116 | |
| 870 | 870 | |
| 871 | 871 | |
| 872 | 872 | static INPUT_PORTS_START( nemesis ) |
| 873 | PORT_START("IN0") | |
| 873 | PORT_START("IN0") | |
| 874 | 874 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 875 | 875 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 876 | 876 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 880 | 880 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 881 | 881 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 882 | 882 | |
| 883 | PORT_START("IN1") | |
| 883 | PORT_START("IN1") | |
| 884 | 884 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 885 | 885 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 886 | 886 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 890 | 890 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) // missile |
| 891 | 891 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 892 | 892 | |
| 893 | PORT_START("IN2") | |
| 893 | PORT_START("IN2") | |
| 894 | 894 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 895 | 895 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 896 | 896 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 900 | 900 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 901 | 901 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 902 | 902 | |
| 903 | PORT_START("TEST") | |
| 903 | PORT_START("TEST") | |
| 904 | 904 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWT:1") |
| 905 | 905 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 906 | 906 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 914 | 914 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 915 | 915 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 916 | 916 | |
| 917 | PORT_START("DSW0") | |
| 917 | PORT_START("DSW0") | |
| 918 | 918 | GX400_COINAGE_DIP |
| 919 | 919 | |
| 920 | PORT_START("DSW1") | |
| 920 | PORT_START("DSW1") | |
| 921 | 921 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 922 | 922 | PORT_DIPSETTING( 0x03, "3" ) |
| 923 | 923 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
| 943 | 943 | |
| 944 | 944 | |
| 945 | 945 | static INPUT_PORTS_START( nemesuk ) |
| 946 | PORT_START("IN0") | |
| 946 | PORT_START("IN0") | |
| 947 | 947 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 948 | 948 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 949 | 949 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 953 | 953 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 954 | 954 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 955 | 955 | |
| 956 | PORT_START("IN1") | |
| 956 | PORT_START("IN1") | |
| 957 | 957 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 958 | 958 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 959 | 959 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 963 | 963 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) // missile |
| 964 | 964 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 965 | 965 | |
| 966 | PORT_START("IN2") | |
| 966 | PORT_START("IN2") | |
| 967 | 967 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 968 | 968 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 969 | 969 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 973 | 973 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 974 | 974 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 975 | 975 | |
| 976 | PORT_START("TEST") | |
| 976 | PORT_START("TEST") | |
| 977 | 977 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWT:1") |
| 978 | 978 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 979 | 979 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 987 | 987 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 988 | 988 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 989 | 989 | |
| 990 | PORT_START("DSW0") | |
| 990 | PORT_START("DSW0") | |
| 991 | 991 | GX400_COINAGE_DIP |
| 992 | 992 | |
| 993 | PORT_START("DSW1") | |
| 993 | PORT_START("DSW1") | |
| 994 | 994 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 995 | 995 | PORT_DIPSETTING( 0x03, "2" ) |
| 996 | 996 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 1017 | 1017 | |
| 1018 | 1018 | /* This needs to be sorted */ |
| 1019 | 1019 | static INPUT_PORTS_START( konamigt ) |
| 1020 | PORT_START("IN0") | |
| 1020 | PORT_START("IN0") | |
| 1021 | 1021 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1022 | 1022 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 1023 | 1023 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1027 | 1027 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1028 | 1028 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1029 | 1029 | |
| 1030 | PORT_START("IN1") | |
| 1030 | PORT_START("IN1") | |
| 1031 | 1031 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON3 ) /* gear */ |
| 1032 | 1032 | PORT_BIT( 0xef, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1033 | 1033 | |
| 1034 | PORT_START("IN2") | |
| 1034 | PORT_START("IN2") | |
| 1035 | 1035 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1036 | 1036 | |
| 1037 | PORT_START("TEST") | |
| 1037 | PORT_START("TEST") | |
| 1038 | 1038 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWT:1") |
| 1039 | 1039 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1040 | 1040 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1048 | 1048 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1049 | 1049 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1050 | 1050 | |
| 1051 | PORT_START("DSW0") | |
| 1051 | PORT_START("DSW0") | |
| 1052 | 1052 | GX400_COINAGE_DIP |
| 1053 | 1053 | |
| 1054 | PORT_START("DSW1") | |
| 1054 | PORT_START("DSW1") | |
| 1055 | 1055 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:1") |
| 1056 | 1056 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1057 | 1057 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1076 | 1076 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1077 | 1077 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1078 | 1078 | |
| 1079 | PORT_START("PADDLE") | |
| 1079 | PORT_START("PADDLE") | |
| 1080 | 1080 | PORT_BIT( 0x7f, 0x40, IPT_PADDLE ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 1081 | 1081 | |
| 1082 | PORT_START("IN3") | |
| 1082 | PORT_START("IN3") | |
| 1083 | 1083 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 1084 | 1084 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1085 | 1085 | // PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON4 ) |
| r3115 | r3116 | |
| 1088 | 1088 | |
| 1089 | 1089 | /* This needs to be sorted */ |
| 1090 | 1090 | static INPUT_PORTS_START( rf2 ) |
| 1091 | PORT_START("IN0") | |
| 1091 | PORT_START("IN0") | |
| 1092 | 1092 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1093 | 1093 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1094 | 1094 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1098 | 1098 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1099 | 1099 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1100 | 1100 | |
| 1101 | PORT_START("IN1") | |
| 1101 | PORT_START("IN1") | |
| 1102 | 1102 | PORT_BIT( 0x70, IP_ACTIVE_LOW, IPT_BUTTON3 ) /* gear (0-7) */ |
| 1103 | 1103 | PORT_BIT( 0x8f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1104 | 1104 | |
| 1105 | PORT_START("IN2") | |
| 1105 | PORT_START("IN2") | |
| 1106 | 1106 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1107 | 1107 | |
| 1108 | PORT_START("TEST") | |
| 1108 | PORT_START("TEST") | |
| 1109 | 1109 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWT:1") |
| 1110 | 1110 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1111 | 1111 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1119 | 1119 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1120 | 1120 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1121 | 1121 | |
| 1122 | PORT_START("DSW0") | |
| 1122 | PORT_START("DSW0") | |
| 1123 | 1123 | GX400_COINAGE_DIP |
| 1124 | 1124 | |
| 1125 | PORT_START("DSW1") | |
| 1125 | PORT_START("DSW1") | |
| 1126 | 1126 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:1") |
| 1127 | 1127 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1128 | 1128 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1147 | 1147 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1148 | 1148 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1149 | 1149 | |
| 1150 | PORT_START("PADDLE") | |
| 1150 | PORT_START("PADDLE") | |
| 1151 | 1151 | PORT_BIT( 0x7f, 0x40, IPT_PADDLE ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 1152 | 1152 | |
| 1153 | PORT_START("IN3") | |
| 1153 | PORT_START("IN3") | |
| 1154 | 1154 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 1155 | 1155 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1156 | 1156 | // PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON4 ) |
| 1157 | ||
| 1158 | 1157 | INPUT_PORTS_END |
| 1159 | 1158 | |
| 1160 | 1159 | |
| 1161 | 1160 | static INPUT_PORTS_START( gwarrior ) |
| 1162 | PORT_START("IN0") | |
| 1161 | PORT_START("IN0") | |
| 1163 | 1162 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1164 | 1163 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1165 | 1164 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1169 | 1168 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1170 | 1169 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1171 | 1170 | |
| 1172 | PORT_START("IN1") | |
| 1171 | PORT_START("IN1") | |
| 1173 | 1172 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1174 | 1173 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1175 | 1174 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1179 | 1178 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1180 | 1179 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1181 | 1180 | |
| 1182 | PORT_START("IN2") | |
| 1181 | PORT_START("IN2") | |
| 1183 | 1182 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1184 | 1183 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 1185 | 1184 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 1189 | 1188 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1190 | 1189 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1191 | 1190 | |
| 1192 | PORT_START("TEST") | |
| 1191 | PORT_START("TEST") | |
| 1193 | 1192 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWT:1") |
| 1194 | 1193 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1195 | 1194 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1203 | 1202 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1204 | 1203 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1205 | 1204 | |
| 1206 | PORT_START("DSW0") | |
| 1205 | PORT_START("DSW0") | |
| 1207 | 1206 | GX400_COINAGE_DIP |
| 1208 | 1207 | |
| 1209 | PORT_START("DSW1") | |
| 1208 | PORT_START("DSW1") | |
| 1210 | 1209 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1211 | 1210 | PORT_DIPSETTING( 0x03, "1" ) |
| 1212 | 1211 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 1232 | 1231 | |
| 1233 | 1232 | |
| 1234 | 1233 | static INPUT_PORTS_START( twinbee ) |
| 1235 | PORT_START("IN0") | |
| 1234 | PORT_START("IN0") | |
| 1236 | 1235 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1237 | 1236 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1238 | 1237 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1242 | 1241 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1243 | 1242 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1244 | 1243 | |
| 1245 | PORT_START("IN1") | |
| 1244 | PORT_START("IN1") | |
| 1246 | 1245 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1247 | 1246 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1248 | 1247 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1252 | 1251 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1253 | 1252 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1254 | 1253 | |
| 1255 | PORT_START("IN2") | |
| 1254 | PORT_START("IN2") | |
| 1256 | 1255 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1257 | 1256 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 1258 | 1257 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 1262 | 1261 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1263 | 1262 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1264 | 1263 | |
| 1265 | PORT_START("TEST") | |
| 1264 | PORT_START("TEST") | |
| 1266 | 1265 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWT:1") |
| 1267 | 1266 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1268 | 1267 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1276 | 1275 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1277 | 1276 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1278 | 1277 | |
| 1279 | PORT_START("DSW0") | |
| 1278 | PORT_START("DSW0") | |
| 1280 | 1279 | GX400_COINAGE_DIP |
| 1281 | 1280 | |
| 1282 | PORT_START("DSW1") | |
| 1281 | PORT_START("DSW1") | |
| 1283 | 1282 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1284 | 1283 | PORT_DIPSETTING( 0x03, "2" ) |
| 1285 | 1284 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 1305 | 1304 | |
| 1306 | 1305 | |
| 1307 | 1306 | static INPUT_PORTS_START( gradius ) |
| 1308 | PORT_START("IN0") | |
| 1307 | PORT_START("IN0") | |
| 1309 | 1308 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1310 | 1309 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1311 | 1310 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1315 | 1314 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1316 | 1315 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1317 | 1316 | |
| 1318 | PORT_START("IN1") | |
| 1317 | PORT_START("IN1") | |
| 1319 | 1318 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1320 | 1319 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1321 | 1320 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1325 | 1324 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) // missile |
| 1326 | 1325 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1327 | 1326 | |
| 1328 | PORT_START("IN2") | |
| 1327 | PORT_START("IN2") | |
| 1329 | 1328 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1330 | 1329 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 1331 | 1330 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 1335 | 1334 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 1336 | 1335 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1337 | 1336 | |
| 1338 | PORT_START("TEST") | |
| 1337 | PORT_START("TEST") | |
| 1339 | 1338 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWT:1") |
| 1340 | 1339 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1341 | 1340 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1349 | 1348 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1350 | 1349 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1351 | 1350 | |
| 1352 | PORT_START("DSW0") | |
| 1351 | PORT_START("DSW0") | |
| 1353 | 1352 | GX400_COINAGE_DIP |
| 1354 | 1353 | |
| 1355 | PORT_START("DSW1") | |
| 1354 | PORT_START("DSW1") | |
| 1356 | 1355 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1357 | 1356 | PORT_DIPSETTING( 0x03, "3" ) |
| 1358 | 1357 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
| 1378 | 1377 | |
| 1379 | 1378 | |
| 1380 | 1379 | static INPUT_PORTS_START( salamand ) |
| 1381 | PORT_START("IN0") | |
| 1380 | PORT_START("IN0") | |
| 1382 | 1381 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1383 | 1382 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 1384 | 1383 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1392 | 1391 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1393 | 1392 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWT:3" ) |
| 1394 | 1393 | |
| 1395 | PORT_START("IN1") | |
| 1394 | PORT_START("IN1") | |
| 1396 | 1395 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1397 | 1396 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1398 | 1397 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1404 | 1403 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1405 | 1404 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 1406 | 1405 | |
| 1407 | PORT_START("IN2") | |
| 1406 | PORT_START("IN2") | |
| 1408 | 1407 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1409 | 1408 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 1410 | 1409 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 1414 | 1413 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1415 | 1414 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1416 | 1415 | |
| 1417 | PORT_START("DSW0") | |
| 1416 | PORT_START("DSW0") | |
| 1418 | 1417 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW0:1,2,3,4") |
| 1419 | 1418 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 1420 | 1419 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1445 | 1444 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1446 | 1445 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1447 | 1446 | |
| 1448 | PORT_START("DSW1") | |
| 1447 | PORT_START("DSW1") | |
| 1449 | 1448 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1450 | 1449 | PORT_DIPSETTING( 0x03, "2" ) |
| 1451 | 1450 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 1471 | 1470 | |
| 1472 | 1471 | |
| 1473 | 1472 | static INPUT_PORTS_START( lifefrcj ) |
| 1474 | PORT_START("IN0") | |
| 1473 | PORT_START("IN0") | |
| 1475 | 1474 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1476 | 1475 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 1477 | 1476 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1485 | 1484 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1486 | 1485 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWT:3" ) |
| 1487 | 1486 | |
| 1488 | PORT_START("IN1") | |
| 1487 | PORT_START("IN1") | |
| 1489 | 1488 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1490 | 1489 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1491 | 1490 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1497 | 1496 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1498 | 1497 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 1499 | 1498 | |
| 1500 | PORT_START("IN2") | |
| 1499 | PORT_START("IN2") | |
| 1501 | 1500 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1502 | 1501 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 1503 | 1502 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 1507 | 1506 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 1508 | 1507 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1509 | 1508 | |
| 1510 | PORT_START("DSW0") | |
| 1509 | PORT_START("DSW0") | |
| 1511 | 1510 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW0:1,2,3,4") |
| 1512 | 1511 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 1513 | 1512 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1543 | 1542 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 1544 | 1543 | PORT_DIPSETTING( 0x00, "Disabled" ) |
| 1545 | 1544 | |
| 1546 | PORT_START("DSW1") | |
| 1545 | PORT_START("DSW1") | |
| 1547 | 1546 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1548 | 1547 | PORT_DIPSETTING( 0x03, "3" ) |
| 1549 | 1548 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
| 1568 | 1567 | INPUT_PORTS_END |
| 1569 | 1568 | |
| 1570 | 1569 | static INPUT_PORTS_START( blkpnthr ) |
| 1571 | PORT_START("IN0") | |
| 1570 | PORT_START("IN0") | |
| 1572 | 1571 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1573 | 1572 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 1574 | 1573 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1583 | 1582 | PORT_DIPSETTING( 0x40, "3 Areas" ) |
| 1584 | 1583 | PORT_DIPSETTING( 0x00, "4 Areas" ) |
| 1585 | 1584 | |
| 1586 | PORT_START("IN1") | |
| 1585 | PORT_START("IN1") | |
| 1587 | 1586 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1588 | 1587 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1589 | 1588 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1593 | 1592 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1594 | 1593 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWT:3" ) |
| 1595 | 1594 | |
| 1596 | PORT_START("IN2") | |
| 1595 | PORT_START("IN2") | |
| 1597 | 1596 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1598 | 1597 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 1599 | 1598 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 1603 | 1602 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1604 | 1603 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1605 | 1604 | |
| 1606 | PORT_START("DSW0") | |
| 1605 | PORT_START("DSW0") | |
| 1607 | 1606 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW0:1,2,3,4") |
| 1608 | 1607 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 1609 | 1608 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1639 | 1638 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 1640 | 1639 | PORT_DIPSETTING( 0x00, "Disabled" ) |
| 1641 | 1640 | |
| 1642 | PORT_START("DSW1") | |
| 1641 | PORT_START("DSW1") | |
| 1643 | 1642 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1644 | 1643 | PORT_DIPSETTING( 0x03, "3" ) |
| 1645 | 1644 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
| 1664 | 1663 | INPUT_PORTS_END |
| 1665 | 1664 | |
| 1666 | 1665 | static INPUT_PORTS_START( citybomb ) |
| 1667 | PORT_START("IN0") | |
| 1666 | PORT_START("IN0") | |
| 1668 | 1667 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1669 | 1668 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1670 | 1669 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1678 | 1677 | PORT_DIPSETTING( 0x00, DEF_STR( Dual ) ) |
| 1679 | 1678 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWT:3" ) |
| 1680 | 1679 | |
| 1681 | PORT_START("IN1") | |
| 1680 | PORT_START("IN1") | |
| 1682 | 1681 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1683 | 1682 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1684 | 1683 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1690 | 1689 | PORT_DIPSETTING( 0x00, "Handle" ) |
| 1691 | 1690 | PORT_DIPSETTING( 0x80, DEF_STR( Joystick ) ) |
| 1692 | 1691 | |
| 1693 | PORT_START("IN2") | |
| 1692 | PORT_START("IN2") | |
| 1694 | 1693 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1695 | 1694 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 1696 | 1695 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 1700 | 1699 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 1701 | 1700 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1702 | 1701 | |
| 1703 | PORT_START("DSW0") | |
| 1702 | PORT_START("DSW0") | |
| 1704 | 1703 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW0:1,2,3,4") |
| 1705 | 1704 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 1706 | 1705 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1736 | 1735 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 1737 | 1736 | PORT_DIPSETTING( 0x00, "Disabled" ) |
| 1738 | 1737 | |
| 1739 | PORT_START("DSW1") | |
| 1738 | PORT_START("DSW1") | |
| 1740 | 1739 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:1") |
| 1741 | 1740 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1742 | 1741 | PORT_DIPSETTING( 0x04, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1756 | 1755 | INPUT_PORTS_END |
| 1757 | 1756 | |
| 1758 | 1757 | static INPUT_PORTS_START( nyanpani ) |
| 1759 | PORT_START("IN0") | |
| 1758 | PORT_START("IN0") | |
| 1760 | 1759 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1761 | 1760 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1762 | 1761 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1768 | 1767 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1769 | 1768 | PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWT:2" ) |
| 1770 | 1769 | |
| 1771 | PORT_START("IN1") | |
| 1770 | PORT_START("IN1") | |
| 1772 | 1771 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1773 | 1772 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1774 | 1773 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1778 | 1777 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1779 | 1778 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1780 | 1779 | |
| 1781 | PORT_START("IN2") | |
| 1780 | PORT_START("IN2") | |
| 1782 | 1781 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1783 | 1782 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 1784 | 1783 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 1788 | 1787 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1789 | 1788 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1790 | 1789 | |
| 1791 | PORT_START("DSW0") | |
| 1790 | PORT_START("DSW0") | |
| 1792 | 1791 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW0:1,2,3,4") |
| 1793 | 1792 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 1794 | 1793 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1824 | 1823 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 1825 | 1824 | PORT_DIPSETTING( 0x00, "Disabled" ) |
| 1826 | 1825 | |
| 1827 | PORT_START("DSW1") | |
| 1826 | PORT_START("DSW1") | |
| 1828 | 1827 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1829 | 1828 | PORT_DIPSETTING( 0x03, "2" ) |
| 1830 | 1829 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 1841 | 1840 | INPUT_PORTS_END |
| 1842 | 1841 | |
| 1843 | 1842 | static INPUT_PORTS_START( hcrash ) |
| 1844 | PORT_START("IN0") | |
| 1843 | PORT_START("IN0") | |
| 1845 | 1844 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1846 | 1845 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1847 | 1846 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1851 | 1850 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1852 | 1851 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1853 | 1852 | |
| 1854 | PORT_START("IN1") | |
| 1853 | PORT_START("IN1") | |
| 1855 | 1854 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1856 | 1855 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1857 | 1856 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1861 | 1860 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1862 | 1861 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1863 | 1862 | |
| 1864 | PORT_START("IN2") | |
| 1863 | PORT_START("IN2") | |
| 1865 | 1864 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1866 | 1865 | |
| 1867 | PORT_START("TEST") | |
| 1866 | PORT_START("TEST") | |
| 1868 | 1867 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWT:1") |
| 1869 | 1868 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1870 | 1869 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1888 | 1887 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1889 | 1888 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1890 | 1889 | |
| 1891 | PORT_START("DSW0") | |
| 1890 | PORT_START("DSW0") | |
| 1892 | 1891 | GX400_COINAGE_DIP |
| 1893 | 1892 | |
| 1894 | PORT_START("DSW1") | |
| 1893 | PORT_START("DSW1") | |
| 1895 | 1894 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1896 | 1895 | PORT_DIPSETTING( 0x03, "Konami GT without brake" ) |
| 1897 | 1896 | PORT_DIPSETTING( 0x02, "WEC Le Mans 24 Upright" ) |
| r3115 | r3116 | |
| 1916 | 1915 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1917 | 1916 | |
| 1918 | 1917 | /* Konami GT specific control */ |
| 1919 | PORT_START("PADDLE") | |
| 1918 | PORT_START("PADDLE") | |
| 1920 | 1919 | PORT_BIT( 0x7f, 0x40, IPT_PADDLE ) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 1921 | 1920 | |
| 1922 | PORT_START("IN3") | |
| 1921 | PORT_START("IN3") | |
| 1923 | 1922 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Brake (Konami GT cabinet)") |
| 1924 | 1923 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1925 | 1924 | // PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON4 ) |
| 1926 | 1925 | |
| 1927 | 1926 | /* WEC Le Mans 24 specific control */ |
| 1928 | PORT_START("ACCEL") /* | |
| 1927 | PORT_START("ACCEL") /* | |
| 1929 | 1928 | PORT_BIT( 0xff, 0, IPT_PEDAL ) PORT_MINMAX(0,0x80) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) |
| 1930 | 1929 | |
| 1931 | PORT_START("WHEEL") /* | |
| 1930 | PORT_START("WHEEL") /* | |
| 1932 | 1931 | PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(50) PORT_KEYDELTA(5) |
| 1933 | 1932 | INPUT_PORTS_END |
| 1934 | 1933 |
| r3115 | r3116 | |
|---|---|---|
| 265 | 265 | static ADDRESS_MAP_START( llander_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 266 | 266 | ADDRESS_MAP_GLOBAL_MASK(0x7fff) |
| 267 | 267 | AM_RANGE(0x0000, 0x00ff) AM_RAM AM_MIRROR(0x1f00) |
| 268 | AM_RANGE(0x2000, 0x2000) AM_READ | |
| 268 | AM_RANGE(0x2000, 0x2000) AM_READ | |
| 269 | 269 | AM_RANGE(0x2400, 0x2407) AM_READ(asteroid_IN1_r) /* IN1 */ |
| 270 | 270 | AM_RANGE(0x2800, 0x2803) AM_READ(asteroid_DSW1_r) /* DSW1 */ |
| 271 | 271 | AM_RANGE(0x2c00, 0x2c00) AM_READ_PORT("PADDLE") |
| r3115 | r3116 | |
| 287 | 287 | * |
| 288 | 288 | *************************************/ |
| 289 | 289 | |
| 290 | static CUSTOM_INPUT( clock_r ) | |
| 291 | { | |
| 292 | return (cpunum_gettotalcycles(0) & 0x100) ? 1 : 0; | |
| 293 | } | |
| 294 | ||
| 290 | 295 | static INPUT_PORTS_START( asteroid ) |
| 291 | 296 | PORT_START("IN0") |
| 292 | 297 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 293 | /* Bit 2 and 3 are handled in the machine dependent part. */ | |
| 294 | 298 | /* Bit 2 is the 3 KHz source and Bit 3 the VG_HALT bit */ |
| 295 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 296 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 299 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(clock_r, NULL) | |
| 300 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(avgdvg_done_r, NULL) | |
| 297 | 301 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_CODE(KEYCODE_SPACE) PORT_CODE(JOYCODE_BUTTON3) /* hyperspace */ |
| 298 | 302 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(JOYCODE_BUTTON1) /* fire */ |
| 299 | 303 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Diagnostic Step") PORT_CODE(KEYCODE_F1) |
| r3115 | r3116 | |
| 346 | 350 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 347 | 351 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 348 | 352 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 349 | /* Bit 7 is VG_HALT, handled in the machine dependent part */ | |
| 350 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 353 | /* Bit 7 is VG_HALT */ | |
| 354 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(avgdvg_done_r, NULL) | |
| 351 | 355 | |
| 352 | 356 | PORT_MODIFY("IN1") |
| 353 | 357 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| r3115 | r3116 | |
| 371 | 375 | PORT_INCLUDE( asteroid ) |
| 372 | 376 | |
| 373 | 377 | PORT_MODIFY("IN0") |
| 374 | /* Bit 0 is VG_HALT, handled in the machine dependent part */ | |
| 375 | /* Bit 2 is the 3 KHz source */ | |
| 378 | /* Bit 0 is VG_HALT and Bit 2 is the 3 KHz source */ | |
| 379 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(avgdvg_done_r, NULL) | |
| 380 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 381 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(clock_r, NULL) | |
| 376 | 382 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_SPACE) PORT_CODE(JOYCODE_BUTTON3) /* hyperspace */ |
| 377 | 383 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(JOYCODE_BUTTON1) /* fire */ |
| 378 | 384 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Diagnostic Step") PORT_CODE(KEYCODE_F1) |
| r3115 | r3116 | |
| 411 | 417 | static INPUT_PORTS_START( astdelux ) |
| 412 | 418 | PORT_START("IN0") |
| 413 | 419 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) /* According to schematics */ |
| 414 | /* Bit 2 and 3 are handled in the machine dependent part. */ | |
| 415 | 420 | /* Bit 2 is the 3 KHz source and Bit 3 the VG_HALT bit */ |
| 416 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 417 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 421 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(clock_r, NULL) | |
| 422 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(avgdvg_done_r, NULL) | |
| 418 | 423 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_CODE(KEYCODE_SPACE) PORT_CODE(JOYCODE_BUTTON3) /* hyperspace */ |
| 419 | 424 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(JOYCODE_BUTTON1) /* fire */ |
| 420 | 425 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Diagnostic Step") PORT_CODE(KEYCODE_F1) |
| r3115 | r3116 | |
| 494 | 499 | |
| 495 | 500 | static INPUT_PORTS_START( llander ) |
| 496 | 501 | PORT_START("IN0") |
| 497 | /* Bit 0 is VG_HALT, handled in the machine dependent part */ | |
| 498 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 502 | /* Bit 0 is VG_HALT */ | |
| 503 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(avgdvg_done_r, NULL) | |
| 499 | 504 | PORT_SERVICE( 0x02, IP_ACTIVE_LOW ) |
| 500 | 505 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) |
| 501 | 506 | /* Of the rest, Bit 6 is the 3KHz source. 3,4 and 5 are unknown */ |
| 502 | PORT_BIT( 0x78, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 507 | PORT_BIT( 0x38, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 508 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(clock_r, NULL) | |
| 503 | 509 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Diagnostic Step") PORT_CODE(KEYCODE_F1) |
| 504 | 510 | |
| 505 | 511 | PORT_START("IN1") |
| r3115 | r3116 | |
| 873 | 879 | |
| 874 | 880 | static DRIVER_INIT( asteroib ) |
| 875 | 881 | { |
| 876 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x2000, 0x2000, 0, 0, | |
| 882 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x2000, 0x2000, 0, 0, input_port_read_handler8(machine->portconfig, "IN0")); | |
| 877 | 883 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x2003, 0x2003, 0, 0, input_port_read_handler8(machine->portconfig, "HS")); |
| 878 | 884 | } |
| 879 | 885 |
| r3115 | r3116 | |
|---|---|---|
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | static READ16_HANDLER( magicstk_port2_r ) | |
| 65 | { | |
| 66 | return (input_port_read(machine, "IN2") & 0xfe) | eeprom_read_bit(); | |
| 67 | } | |
| 68 | ||
| 69 | 64 | static WRITE16_HANDLER( magicstk_coin_eeprom_w ) |
| 70 | 65 | { |
| 71 | 66 | if (ACCESSING_BITS_0_7) |
| r3115 | r3116 | |
| 113 | 108 | AM_RANGE(0x098180, 0x09917f) AM_RAM_WRITE(magicstk_bgvideoram_w) AM_BASE(&magicstk_videoram) |
| 114 | 109 | AM_RANGE(0x0c2010, 0x0c2011) AM_READ_PORT("IN0") |
| 115 | 110 | AM_RANGE(0x0c2012, 0x0c2013) AM_READ_PORT("IN1") |
| 116 | AM_RANGE(0x0c2014, 0x0c2015) AM_READWRITE( | |
| 111 | AM_RANGE(0x0c2014, 0x0c2015) AM_READ_PORT("IN2") AM_WRITE( | |
| 117 | 112 | AM_RANGE(0x0c2016, 0x0c2017) AM_READ_PORT("DSW1") |
| 118 | 113 | AM_RANGE(0x0c2018, 0x0c2019) AM_READ_PORT("DSW2") |
| 119 | 114 | AM_RANGE(0x0c201c, 0x0c201d) AM_WRITE(oki_banking) |
| r3115 | r3116 | |
| 250 | 245 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 251 | 246 | |
| 252 | 247 | PORT_START("IN2") |
| 253 | PORT_BIT( 0x01, IP_ACTIVE_ | |
| 248 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 254 | 249 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 255 | 250 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 256 | 251 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
|---|---|---|
| 2056 | 2056 | AM_RANGE(0x100000, 0x100fff) AM_READWRITE(scsp_0_r, scsp_0_w) |
| 2057 | 2057 | ADDRESS_MAP_END |
| 2058 | 2058 | |
| 2059 | #define STV_PLAYER_INPUTS(_n_, _b1_, _b2_, _b3_, _b4_) \ | |
| 2060 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_##_b1_ ) PORT_PLAYER(_n_) \ | |
| 2061 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_##_b2_ ) PORT_PLAYER(_n_) \ | |
| 2062 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_##_b3_ ) PORT_PLAYER(_n_) \ | |
| 2063 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_##_b4_ ) PORT_PLAYER(_n_) \ | |
| 2064 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(_n_) \ | |
| 2065 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(_n_) \ | |
| 2066 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(_n_) \ | |
| 2067 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(_n_) | |
| 2059 | #define STV_PLAYER_INPUTS(_n_, _b1_, _b2_, _b3_) \ | |
| 2060 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_##_b1_ ) PORT_PLAYER(_n_) \ | |
| 2061 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_##_b2_ ) PORT_PLAYER(_n_) \ | |
| 2062 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_##_b3_ ) PORT_PLAYER(_n_) \ | |
| 2063 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 2064 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(_n_) \ | |
| 2065 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(_n_) \ | |
| 2066 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(_n_) \ | |
| 2067 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(_n_) | |
| 2068 | 2068 | |
| 2069 | 2069 | static INPUT_PORTS_START( stv ) |
| 2070 | 2070 | PORT_START("DSW1") |
| r3115 | r3116 | |
| 2120 | 2120 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2121 | 2121 | |
| 2122 | 2122 | PORT_START("P1") |
| 2123 | STV_PLAYER_INPUTS(1, BUTTON1, BUTTON2, BUTTON3 | |
| 2123 | STV_PLAYER_INPUTS(1, BUTTON1, BUTTON2, BUTTON3 | |
| 2124 | 2124 | |
| 2125 | 2125 | PORT_START("P2") |
| 2126 | STV_PLAYER_INPUTS(2, BUTTON1, BUTTON2, BUTTON3 | |
| 2126 | STV_PLAYER_INPUTS(2, BUTTON1, BUTTON2, BUTTON3 | |
| 2127 | 2127 | /* |
| 2128 | 2128 | PORT_START("P3") |
| 2129 | STV_PLAYER_INPUTS(3, BUTTON1, BUTTON2, BUTTON3 | |
| 2129 | STV_PLAYER_INPUTS(3, BUTTON1, BUTTON2, BUTTON3 | |
| 2130 | 2130 | |
| 2131 | 2131 | PORT_START("P4") |
| 2132 | STV_PLAYER_INPUTS(4, BUTTON1, BUTTON2, BUTTON3 | |
| 2132 | STV_PLAYER_INPUTS(4, BUTTON1, BUTTON2, BUTTON3 | |
| 2133 | 2133 | */ |
| 2134 | 2134 | |
| 2135 | 2135 | PORT_START("SYSTEM") |
| r3115 | r3116 | |
| 2146 | 2146 | PORT_START("UNUSED") |
| 2147 | 2147 | PORT_BIT ( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2148 | 2148 | |
| 2149 | /* Extra button layout,used by Power Instinct 3 | |
| 2149 | /* Extra button layout, used by Power Instinct 3, | |
| 2150 | 2150 | PORT_START("EXTRA") |
| 2151 | 2151 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| 2152 | 2152 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2199 | 2199 | /* IN 8 */ |
| 2200 | 2200 | PORT_START("LIGHTY") |
| 2201 | 2201 | PORT_BIT( 0x3f, 0x00, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX(0x0,0x3f) PORT_SENSITIVITY(50) PORT_KEYDELTA(1) PORT_PLAYER(1) |
| 2202 | INPUT_PORTS_END | |
| 2202 | 2203 | |
| 2204 | static INPUT_PORTS_START( batmanfr ) | |
| 2205 | PORT_INCLUDE( stv ) | |
| 2206 | ||
| 2207 | PORT_MODIFY("P1") | |
| 2208 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 2209 | ||
| 2210 | PORT_MODIFY("P2") | |
| 2211 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 2212 | ||
| 2213 | PORT_MODIFY("EXTRA") | |
| 2214 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 2203 | 2215 | INPUT_PORTS_END |
| 2204 | 2216 | |
| 2205 | /* Same as the regular one,but with an additional & optional mahjong panel */ | |
| 2217 | /* Same as the regular one, but with an additional & optional mahjong panel */ | |
| 2206 | 2218 | static INPUT_PORTS_START( stvmp ) |
| 2207 | 2219 | PORT_INCLUDE( stv ) |
| 2208 | 2220 | |
| r3115 | r3116 | |
| 3703 | 3715 | |
| 3704 | 3716 | GAME( 1996, stvbios, 0, stv, stv, stv, ROT0, "Sega", "ST-V Bios", GAME_IS_BIOS_ROOT ) |
| 3705 | 3717 | |
| 3706 | //G | |
| 3718 | //GAME | |
| 3707 | 3719 | /* Playable */ |
| 3708 | 3720 | GAME( 1998, astrass, stvbios, stv, stv, astrass, ROT0, "Sunsoft", "Astra SuperStars (J 980514 V1.002)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 3709 | 3721 | GAME( 1995, bakubaku, stvbios, stv, stv, bakubaku, ROT0, "Sega", "Baku Baku Animal (J 950407 V1.000)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| 3710 | GAME( 1996, batmanfr, stvbios, stv, | |
| 3722 | GAME( 1996, batmanfr, stvbios, stv, batmanfr, | |
| 3711 | 3723 | GAME( 1996, colmns97, stvbios, stv, stv, colmns97, ROT0, "Sega", "Columns '97 (JET 961209 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| 3712 | 3724 | GAME( 1997, cotton2, stvbios, stv, stv, cotton2, ROT0, "Success", "Cotton 2 (JUET 970902 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| 3713 | 3725 | GAME( 1998, cottonbm, stvbios, stv, stv, cottonbm, ROT0, "Success", "Cotton Boomerang (JUET 980709 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| 3714 | GAME( 1995, critcrsh, stvbios, stv, critcrsh, ic13, ROT0, "Sega", "Critter Crusher (EA 951204 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3726 | GAME( 1995, critcrsh, stvbios, stv, critcrsh, ic13, ROT0, "Sega", "Critter Crusher (EA 951204 V1.000)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 3715 | 3727 | GAME( 1999, danchih, stvbios, stv, stvmp,danchih, ROT0, "Altron (Tecmo license)", "Danchi de Hanafuda (J 990607 V1.400)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| 3716 | 3728 | GAME( 1996, diehard, stvbios, stv, stv, diehard, ROT0, "Sega", "Die Hard Arcade (UET 960515 V1.000)", GAME_IMPERFECT_SOUND ) |
| 3717 | 3729 | GAME( 1996, dnmtdeka, diehard, stv, stv, dnmtdeka, ROT0, "Sega", "Dynamite Deka (J 960515 V1.000)", GAME_IMPERFECT_SOUND ) |
| r3115 | r3116 | |
|---|---|---|
| 59 | 59 | AM_RANGE(0x8800, 0x8bff) AM_READ(SMH_RAM) /* video ram */ |
| 60 | 60 | AM_RANGE(0x9000, 0x97ff) AM_READ(SMH_RAM) /* background ram */ |
| 61 | 61 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) /* sprite ram */ |
| 62 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r)/* input port */ | |
| 63 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r)/* input port */ | |
| 64 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r)/* DSW */ | |
| 62 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("INPUTS") | |
| 63 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("SYSTEM") | |
| 64 | AM_RANGE(0xb000, 0xb000) AM_READ_PORT("DSW") | |
| 65 | 65 | AM_RANGE(0xb800, 0xb800) AM_READ(SMH_NOP) /* NMI ack? */ |
| 66 | 66 | ADDRESS_MAP_END |
| 67 | 67 | |
| r3115 | r3116 | |
| 114 | 114 | /***************************************************************************/ |
| 115 | 115 | |
| 116 | 116 | static INPUT_PORTS_START( timelimt ) |
| 117 | PORT_START("IN | |
| 117 | PORT_START("INPUTS") | |
| 118 | 118 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 119 | 119 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 120 | 120 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| r3115 | r3116 | |
| 124 | 124 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 125 | 125 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 126 | 126 | |
| 127 | PORT_START(" | |
| 127 | PORT_START("SYSTEM") | |
| 128 | 128 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 129 | 129 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 130 | 130 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| r3115 | r3116 | |
| 134 | 134 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 135 | 135 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 136 | 136 | |
| 137 | PORT_START("DSW | |
| 137 | PORT_START("DSW | |
| 138 | 138 | PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coinage ) ) |
| 139 | 139 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 140 | 140 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 159 | 159 | INPUT_PORTS_END |
| 160 | 160 | |
| 161 | 161 | static INPUT_PORTS_START( progress ) |
| 162 | PORT_START("IN | |
| 162 | PORT_START("INPUTS") | |
| 163 | 163 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) |
| 164 | 164 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) |
| 165 | 165 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) |
| r3115 | r3116 | |
| 169 | 169 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 170 | 170 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) |
| 171 | 171 | |
| 172 | PORT_START(" | |
| 172 | PORT_START("SYSTEM") | |
| 173 | 173 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 174 | 174 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 175 | 175 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| r3115 | r3116 | |
| 179 | 179 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 180 | 180 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* probably unused */ |
| 181 | 181 | |
| 182 | PORT_START("DSW | |
| 182 | PORT_START("DSW | |
| 183 | 183 | PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coinage ) ) |
| 184 | 184 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 185 | 185 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 426 | 426 | UINT16 x = src[i]; |
| 427 | 427 | |
| 428 | 428 | if ((i & 0x1100) != 0x0100) |
| 429 | x ^= 0x000 | |
| 429 | x ^= 0x0200 | |
| 430 | 430 | |
| 431 | 431 | if ((i & 0x0150) != 0x0000 && (i & 0x0152) != 0x0010) |
| 432 | x ^= 0x0 | |
| 432 | x ^= 0x0 | |
| 433 | 433 | |
| 434 | 434 | if ((i & 0x2084) != 0x2084 && (i & 0x2094) != 0x2014) |
| 435 | x ^= 0x | |
| 435 | x ^= 0x | |
| 436 | 436 | |
| 437 | src[i] = | |
| 437 | src[i] = | |
| 438 | 438 | } |
| 439 | 439 | } |
| 440 | 440 | |
| r3115 | r3116 | |
| 509 | 509 | UINT16 x = src[i]; |
| 510 | 510 | |
| 511 | 511 | if ((i & 0x0054) != 0x0000 && (i & 0x0056) != 0x0010) |
| 512 | x ^= 0x0 | |
| 512 | x ^= 0x0 | |
| 513 | 513 | |
| 514 | 514 | if ((i & 0x0204) == 0x0000) |
| 515 | x ^= 0x0 | |
| 515 | x ^= 0x0 | |
| 516 | 516 | |
| 517 | 517 | if ((i & 0x3080) != 0x3080 && (i & 0x3090) != 0x3010) |
| 518 | x ^= 0x | |
| 518 | x ^= 0x | |
| 519 | 519 | |
| 520 | 520 | j = BITSWAP24(i, 23,22,21,20,19,18,17,16,15,14,13, 8, 11,10, 9, 2, 7,6,5,4,3, 12, 1,0); |
| 521 | 521 | |
| 522 | result_data[j] = | |
| 522 | result_data[j] = | |
| 523 | 523 | } |
| 524 | 524 | |
| 525 | 525 | memcpy(src,result_data,rom_size); |
| r3115 | r3116 | |
| 540 | 540 | UINT16 x = src[i]; |
| 541 | 541 | |
| 542 | 542 | if((i & 0x4100) == 0x0100) |
| 543 | x ^= 0x000 | |
| 543 | x ^= 0x0200 | |
| 544 | 544 | |
| 545 | 545 | if((i & 0x4000) == 0x4000 && (i & 0x0300) != 0x0100) |
| 546 | x ^= 0x000 | |
| 546 | x ^= 0x0200 | |
| 547 | 547 | |
| 548 | 548 | if((i & 0x5700) == 0x5100) |
| 549 | x ^= 0x000 | |
| 549 | x ^= 0x0200 | |
| 550 | 550 | |
| 551 | 551 | if((i & 0x5500) == 0x1000) |
| 552 | x ^= 0x000 | |
| 552 | x ^= 0x0200 | |
| 553 | 553 | |
| 554 | 554 | if((i & 0x0140) != 0x0000 || (i & 0x0012) == 0x0012) |
| 555 | x ^= 0x0 | |
| 555 | x ^= 0x0 | |
| 556 | 556 | |
| 557 | 557 | if((i & 0x2004) != 0x2004 || (i & 0x0090) == 0x0000) |
| 558 | x ^= 0x | |
| 558 | x ^= 0x | |
| 559 | 559 | |
| 560 | src[i] = | |
| 560 | src[i] = | |
| 561 | 561 | } |
| 562 | 562 | } |
| 563 | 563 | |
| r3115 | r3116 | |
| 576 | 576 | if( i & 0x1000/2 ) |
| 577 | 577 | { |
| 578 | 578 | if( ~i & 0x400/2 ) |
| 579 | x ^= 0x000 | |
| 579 | x ^= 0x0200 | |
| 580 | 580 | } |
| 581 | 581 | |
| 582 | 582 | if( i & 0x4000/2 ) |
| r3115 | r3116 | |
| 584 | 584 | if( i & 0x100/2 ) |
| 585 | 585 | { |
| 586 | 586 | if( ~i & 0x08/2 ) |
| 587 | x ^= 0x | |
| 587 | x ^= 0x | |
| 588 | 588 | } |
| 589 | 589 | else |
| 590 | 590 | { |
| 591 | 591 | if( ~i & 0x28/2 ) |
| 592 | x ^= 0x | |
| 592 | x ^= 0x | |
| 593 | 593 | } |
| 594 | 594 | } |
| 595 | 595 | else |
| 596 | 596 | { |
| 597 | x ^= 0x | |
| 597 | x ^= 0x | |
| 598 | 598 | } |
| 599 | 599 | |
| 600 | 600 | if( i & 0x200/2 ) |
| 601 | 601 | { |
| 602 | x ^= 0x0 | |
| 602 | x ^= 0x0 | |
| 603 | 603 | } |
| 604 | 604 | else |
| 605 | 605 | { |
| 606 | 606 | if( (i & 0x80/2) == 0x80/2 || (i & 0x24/2) == 0x24/2 ) |
| 607 | x ^= 0x0 | |
| 607 | x ^= 0x0 | |
| 608 | 608 | } |
| 609 | 609 | |
| 610 | src[i] = | |
| 610 | src[i] = | |
| 611 | 611 | } |
| 612 | 612 | } |
| 613 | 613 | |
| r3115 | r3116 | |
| 2896 | 2896 | |
| 2897 | 2897 | ROM_START( chmplst2 ) |
| 2898 | 2898 | ROM_REGION( 0x80000, "main", 0 ) |
| 2899 | ROM_LOAD( "maj2v185h.u29", 0x00000, 0x80000, CRC(2572d59a) SHA1(1d5362e209dadf8b21c10d1351d4bb038bfcaaef) ) | |
| 2899 | ROM_LOAD16_WORD_SWAP( "maj2v185h.u29", 0x00000, 0x80000, CRC(2572d59a) SHA1(1d5362e209dadf8b21c10d1351d4bb038bfcaaef) ) | |
| 2900 | 2900 | |
| 2901 | 2901 | ROM_REGION( 0x200000, "gfx1", 0 ) |
| 2902 | 2902 | ROM_LOAD( "igsm0501.u7", 0x00000, 0x200000, CRC(1c952bd6) SHA1(a6b6f1cdfb29647e81c032ffe59c94f1a10ceaf8) ) |
| r3115 | r3116 | |
| 3135 | 3135 | ROM_START( lhb ) |
| 3136 | 3136 | ROM_REGION( 0x80000, "main", 0 ) |
| 3137 | 3137 | // identical to LHB-4096 |
| 3138 | ROM_LOAD( "v305j-409", 0x00000, 0x80000, CRC(701de8ef) SHA1(4a77160f642f4de02fa6fbacf595b75c0d4a505d) ) | |
| 3138 | ROM_LOAD16_WORD_SWAP( "v305j-409", 0x00000, 0x80000, CRC(701de8ef) SHA1(4a77160f642f4de02fa6fbacf595b75c0d4a505d) ) | |
| 3139 | 3139 | |
| 3140 | 3140 | ROM_REGION( 0x200000, "gfx1", 0 ) |
| 3141 | 3141 | ROM_LOAD( "m0201-ig.160", 0x000000, 0x200000, CRC(ec54452c) SHA1(0ee7ffa3d4845af083944e64faf5a1c78247aaa2) ) |
| r3115 | r3116 | |
| 3197 | 3197 | |
| 3198 | 3198 | ROM_START( lhba ) |
| 3199 | 3199 | ROM_REGION( 0x80000, "main", 0 ) |
| 3200 | ROM_LOAD( "maj_v-033c.u30", 0x00000, 0x80000, CRC(02a0b716) SHA1(cd0ee32ea69f66768196b0e9b4df0fae3af84ed3) ) | |
| 3200 | ROM_LOAD16_WORD_SWAP( "maj_v-033c.u30", 0x00000, 0x80000, CRC(02a0b716) SHA1(cd0ee32ea69f66768196b0e9b4df0fae3af84ed3) ) | |
| 3201 | 3201 | |
| 3202 | 3202 | ROM_REGION( 0x200000, "gfx1", 0 ) |
| 3203 | 3203 | ROM_LOAD( "igs_m0201.u15", 0x000000, 0x200000, CRC(ec54452c) SHA1(0ee7ffa3d4845af083944e64faf5a1c78247aaa2) ) |
| r3115 | r3116 | |
| 3259 | 3259 | |
| 3260 | 3260 | ROM_START( dbc ) |
| 3261 | 3261 | ROM_REGION( 0x80000, "main", 0 ) |
| 3262 | ROM_LOAD( "maj-h_v027h.u30", 0x00000, 0x80000, CRC(5d5ccd5b) SHA1(7a1223923f9a5825fd919ae9a36912284e705382) ) | |
| 3262 | ROM_LOAD16_WORD_SWAP( "maj-h_v027h.u30", 0x00000, 0x80000, CRC(5d5ccd5b) SHA1(7a1223923f9a5825fd919ae9a36912284e705382) ) | |
| 3263 | 3263 | |
| 3264 | 3264 | ROM_REGION( 0x280000, "gfx1", 0 ) |
| 3265 | 3265 | ROM_LOAD( "igs_m0201.u15", 0x000000, 0x200000, CRC(ec54452c) SHA1(0ee7ffa3d4845af083944e64faf5a1c78247aaa2) ) |
| r3115 | r3116 | |
| 3295 | 3295 | |
| 3296 | 3296 | ROM_START( vbowl ) |
| 3297 | 3297 | ROM_REGION( 0x80000, "main", 0 ) |
| 3298 | ROM_LOAD( "bowlingv101xcm.u45", 0x00000, 0x80000, BAD_DUMP CRC(ab8e3f1f) SHA1(69159e22559d6a26fe2afafd770aa640c192ba4b) ) | |
| 3298 | ROM_LOAD16_WORD_SWAP( "bowlingv101xcm.u45", 0x00000, 0x80000, BAD_DUMP CRC(ab8e3f1f) SHA1(69159e22559d6a26fe2afafd770aa640c192ba4b) ) | |
| 3299 | 3299 | |
| 3300 | 3300 | ROM_REGION( 0x400000 * 2, "gfx1", 0) |
| 3301 | 3301 | ROM_LOAD( "vrbowlng.u69", 0x000000, 0x400000, CRC(b0d339e8) SHA1(a26a5e0202a78e8cdc562b10d64e14eadfa4e115) ) |
| r3115 | r3116 | |
| 3314 | 3314 | |
| 3315 | 3315 | ROM_START( vbowlj ) |
| 3316 | 3316 | ROM_REGION( 0x80000, "main", 0 ) |
| 3317 | ROM_LOAD( "vrbowlng.u45", 0x00000, 0x80000, CRC(091c19c1) SHA1(5a7bfbee357122e9061b38dfe988c3853b0984b0) ) // second half all 00 | |
| 3317 | ROM_LOAD16_WORD_SWAP( "vrbowlng.u45", 0x00000, 0x80000, CRC(091c19c1) SHA1(5a7bfbee357122e9061b38dfe988c3853b0984b0) ) // second half all 00 | |
| 3318 | 3318 | |
| 3319 | 3319 | ROM_REGION( 0x400000 * 2, "gfx1", 0) |
| 3320 | 3320 | ROM_LOAD( "vrbowlng.u69", 0x000000, 0x400000, CRC(b0d339e8) SHA1(a26a5e0202a78e8cdc562b10d64e14eadfa4e115) ) |
| r3115 | r3116 | |
| 3346 | 3346 | |
| 3347 | 3347 | ROM_START( xymg ) |
| 3348 | 3348 | ROM_REGION( 0x80000, "main", 0 ) |
| 3349 | ROM_LOAD( "u30-ebac.rom", 0x00000, 0x80000, CRC(7d272b6f) SHA1(15fd1be23cabdc77b747541f5cd9fed6b08be4ad) ) | |
| 3349 | ROM_LOAD16_WORD_SWAP( "u30-ebac.rom", 0x00000, 0x80000, CRC(7d272b6f) SHA1(15fd1be23cabdc77b747541f5cd9fed6b08be4ad) ) | |
| 3350 | 3350 | |
| 3351 | 3351 | ROM_REGION( 0x280000, "gfx1", 0 ) |
| 3352 | 3352 | ROM_LOAD( "m0201-ig.160", 0x000000, 0x200000, CRC(ec54452c) SHA1(0ee7ffa3d4845af083944e64faf5a1c78247aaa2) ) |
| r3115 | r3116 | |
| 3365 | 3365 | |
| 3366 | 3366 | ***************************************************************************/ |
| 3367 | 3367 | |
| 3368 | GAME( 1995, lhb, 0, lhb, lhb, lhb, ROT0, "IGS", "Long Hu Bang (V035C)", 0 ) | |
| 3369 | GAME( 1995, lhba, lhb, lhb, lhb, lhba, ROT0, "IGS", "Long Hu Bang (V033C)", 0 ) | |
| 3370 | GAME( 1995, dbc, 0, lhb, lhb, dbc, ROT0, "IGS", "Da Ban Cheng (V027H)", 0 ) | |
| 3371 | GAME( 1996, chmplst2, 0, chmplst2, chmplst2, chmplst2, ROT0, "IGS", "Long Hu Bang II (V185H)", 0 ) | |
| 3372 | GAME( 1996, xymg, 0, xymg, xymg, xymg, ROT0, "IGS", "PinYin: Xing Yun Man Guan (V651C)", 0 ) | |
| 3373 | GAME( 1996, grtwall, xymg, grtwall, grtwall, grtwall, ROT0, "IGS", "Wan Li Chang Cheng (V638C)", 0 ) | |
| 3374 | GAME( 1996, vbowl, 0, vbowl, vbowl, vbowl, ROT0, "IGS", "Virtua Bowling (World, V101XCM)", GAME_IMPERFECT_SOUND ) | |
| 3375 | GAME( 1996, vbowlj, vbowl, vbowl, vbowlj, vbowlj, ROT0, "IGS / Alta", "Virtua Bowling (Japan, V100JCM)", GAME_IMPERFECT_SOUND ) | |
| 3376 | GAME( 1997, drgnwrld, 0, chindrag, drgnwrld, drgnwrld, ROT0, "IGS", "Dragon World (World, V0400)", 0 ) | |
| 3377 | GAME( 1995, drgwrld3, drgnwrld, chindrag, drgnwrld, drgwrld3, ROT0, "IGS", "Dragon World (World, V0300)", 0 ) | |
| 3378 | GAME( 1995, chindrag, drgnwrld, chindrag, chindrag, chindrag, ROT0, "IGS / Alta", "Zhong Guo Long (Japan, V021J)", 0 ) | |
| 3379 | GAME( 1995, chugokur, drgnwrld, chindrag, chindrag, chugokur, ROT0, "IGS / Alta", "Zhong Guo Long (Japan, V020J)", 0 ) | |
| 3380 | GAME( 1995, chindrac, drgnwrld, chindrag, chindrac, chindrac, ROT0, "IGS", "Zhong Guo Long (China, V010C)", 0 ) | |
| 3381 | GAME( 1995, chindrah, drgnwrld, chindrag, chindrac, chindrah, ROT0, "IGS", "Zhong Guo Long? (Hong Kong, V011H)", 0 ) | |
| 3368 | GAME( 1995, lhb, 0, lhb, lhb, lhb, ROT0, "IGS", "Long Hu Bang (V035C)", 0 ) | |
| 3369 | GAME( 1995, lhba, lhb, lhb, lhb, lhba, ROT0, "IGS", "Long Hu Bang (V033C)", 0 ) | |
| 3370 | GAME( 1995, dbc, 0, lhb, lhb, dbc, ROT0, "IGS", "Da Ban Cheng (V027H)", 0 ) | |
| 3371 | GAME( 1996, chmplst2, 0, chmplst2, chmplst2, chmplst2, ROT0, "IGS", "Long Hu Bang II (V185H)", 0 ) | |
| 3372 | GAME( 1996, xymg, 0, xymg, xymg, xymg, ROT0, "IGS", "Xing Yun Man Guan (V651C)", 0 ) | |
| 3373 | GAME( 1996, grtwall, xymg, grtwall, grtwall, grtwall, ROT0, "IGS", "Wan Li Chang Cheng (V638C)", 0 ) | |
| 3374 | GAME( 1996, vbowl, 0, vbowl, vbowl, vbowl, ROT0, "IGS", "Virtua Bowling (World, V101XCM)", GAME_IMPERFECT_SOUND ) | |
| 3375 | GAME( 1996, vbowlj, vbowl, vbowl, vbowlj, vbowlj, ROT0, "IGS / Alta", "Virtua Bowling (Japan, V100JCM)", GAME_IMPERFECT_SOUND ) | |
| 3376 | GAME( 1997, drgnwrld, 0, chindrag, drgnwrld, drgnwrld, ROT0, "IGS", "Dragon World (World, V0400)", 0 ) | |
| 3377 | GAME( 1995, drgwrld3, drgnwrld, chindrag, drgnwrld, drgwrld3, ROT0, "IGS", "Dragon World (World, V0300)", 0 ) | |
| 3378 | GAME( 1995, chindrag, drgnwrld, chindrag, chindrag, chindrag, ROT0, "IGS / Alta", "Zhong Guo Long (Japan, V021J)", 0 ) | |
| 3379 | GAME( 1995, chugokur, drgnwrld, chindrag, chindrag, chugokur, ROT0, "IGS / Alta", "Zhong Guo Long (Japan, V020J)", 0 ) | |
| 3380 | GAME( 1995, chindrac, drgnwrld, chindrag, chindrac, chindrac, ROT0, "IGS", "Zhong Guo Long (China, V010C)", 0 ) | |
| 3381 | GAME( 1995, chindrah, drgnwrld, chindrag, chindrac, chindrah, ROT0, "IGS", "Dong Fang Zhi Zhu (Hong Kong, V011H)", 0 ) |
| r3115 | r3116 | |
|---|---|---|
| 200 | 200 | semicom_prot_idx = 8; |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | static READ32_HANDLER( finalgdr_input0_r ) | |
| 204 | { | |
| 205 | return input_port_read(machine, "P1_P2") << 16; | |
| 206 | } | |
| 207 | ||
| 208 | static READ32_HANDLER( finalgdr_input1_r ) | |
| 209 | { | |
| 210 | return input_port_read(machine, "SYSTEM") << 16; | |
| 211 | } | |
| 212 | ||
| 213 | 203 | static WRITE32_HANDLER( finalgdr_oki_bank_w ) |
| 214 | 204 | { |
| 215 | 205 | okim6295_set_bank_base(0, 0x40000 * ((data & 0x300) >> 8)); |
| r3115 | r3116 | |
| 318 | 308 | AM_RANGE(0x2c00, 0x2dff) AM_READWRITE(finalgdr_backupram_r, finalgdr_backupram_w) |
| 319 | 309 | AM_RANGE(0x3000, 0x3003) AM_WRITE(ym2151_register32_w) |
| 320 | 310 | AM_RANGE(0x3004, 0x3007) AM_READWRITE(ym2151_status32_r, ym2151_data32_w) |
| 321 | AM_RANGE(0x3800, 0x3803) AM_READ( | |
| 311 | AM_RANGE(0x3800, 0x3803) AM_READ_PORT("P1 | |
| 322 | 312 | AM_RANGE(0x3400, 0x3403) AM_READWRITE(oki32_r, oki32_w) |
| 323 | AM_RANGE(0x3c00, 0x3c03) AM_READ | |
| 313 | AM_RANGE(0x3c00, 0x3c03) AM_READ | |
| 324 | 314 | AM_RANGE(0x4400, 0x4403) AM_READ(eeprom32_r) |
| 325 | 315 | AM_RANGE(0x6000, 0x6003) AM_READNOP //? |
| 326 | 316 | AM_RANGE(0x6000, 0x6003) AM_WRITE(finalgdr_eeprom_w) |
| r3115 | r3116 | |
| 436 | 426 | |
| 437 | 427 | static INPUT_PORTS_START( common ) |
| 438 | 428 | PORT_START("P1_P2") |
| 439 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 440 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 441 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 429 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 430 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 431 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 442 | 432 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 443 | 433 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 444 | 434 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 445 | 435 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 446 | 436 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) |
| 447 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 448 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 449 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 437 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 438 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 439 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 450 | 440 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 451 | 441 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 452 | 442 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 466 | 456 | INPUT_PORTS_END |
| 467 | 457 | |
| 468 | 458 | static INPUT_PORTS_START( finalgdr ) |
| 469 | PORT_INCLUDE( common ) | |
| 459 | PORT_START("P1_P2") | |
| 460 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 461 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 462 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 463 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 464 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 465 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 466 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 467 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 468 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 469 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 470 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 471 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 472 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 473 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 474 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 475 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 470 | 476 | |
| 471 | PORT_MODIFY("P1_P2") | |
| 472 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 473 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 474 | ||
| 475 | PORT_MODIFY("SYSTEM") | |
| 476 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 477 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 478 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 479 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 480 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 481 | PORT_SERVICE_NO_TOGGLE( 0x0080, IP_ACTIVE_LOW ) | |
| 477 | PORT_START("SYSTEM") | |
| 478 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 479 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 480 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 481 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 482 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 483 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 484 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 485 | PORT_SERVICE_NO_TOGGLE( 0x00800000, IP_ACTIVE_LOW ) | |
| 482 | 486 | INPUT_PORTS_END |
| 483 | 487 | |
| 484 | 488 |
| r3115 | r3116 | |
|---|---|---|
| 197 | 197 | PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 198 | 198 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 199 | 199 | |
| 200 | PORT_START("KEY5") /* P2 IN0 (7) */ | |
| 200 | PORT_START("KEY5") /* P2 IN0 (7) */ | |
| 201 | 201 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_A ) PORT_PLAYER(2) |
| 202 | 202 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_E ) PORT_PLAYER(2) |
| 203 | 203 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_I ) PORT_PLAYER(2) |
| r3115 | r3116 | |
|---|---|---|
| 31 | 31 | There are also strings for Spanish, Greece, Mexico, Middle & |
| 32 | 32 | South America though it's not clear if they are used. |
| 33 | 33 | |
| 34 | Todo: add support for Coin Mode B | |
| 35 | ||
| 36 | 34 | One of the boards is SEI8904 with SEI9008 subboard. |
| 37 | 35 | |
| 38 | 36 | ***************************************************************************/ |
| r3115 | r3116 | |
| 61 | 59 | AM_RANGE(0x00000, 0x06fff) AM_RAM |
| 62 | 60 | AM_RANGE(0x07000, 0x07fff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 63 | 61 | AM_RANGE(0x0a000, 0x0afff) AM_RAM AM_SHARE(1) AM_BASE(&raiden_shared_ram) |
| 64 | AM_RANGE(0x0b000, 0x0b001) AM_READ(input_port_1_word_r) | |
| 65 | AM_RANGE(0x0b002, 0x0b003) AM_READ(input_port_2_word_r) | |
| 62 | AM_RANGE(0x0b000, 0x0b001) AM_READ_PORT("P1_P2") | |
| 63 | AM_RANGE(0x0b002, 0x0b003) AM_READ_PORT("DSW") | |
| 66 | 64 | AM_RANGE(0x0b000, 0x0b007) AM_WRITE(raiden_control_w) |
| 67 | 65 | AM_RANGE(0x0c000, 0x0c7ff) AM_WRITE(raiden_text_w) AM_BASE(&videoram16) |
| 68 | 66 | AM_RANGE(0x0d000, 0x0d00d) AM_READWRITE(seibu_main_word_r, seibu_main_word_w) |
| r3115 | r3116 | |
| 88 | 86 | AM_RANGE(0x08000, 0x08fff) AM_RAM AM_SHARE(1) AM_BASE(&raiden_shared_ram) |
| 89 | 87 | AM_RANGE(0x0a000, 0x0a00d) AM_READWRITE(seibu_main_word_r, seibu_main_word_w) |
| 90 | 88 | AM_RANGE(0x0c000, 0x0c7ff) AM_WRITE(raiden_text_w) AM_BASE(&videoram16) |
| 91 | AM_RANGE(0x0e000, 0x0e001) AM_READ | |
| 89 | AM_RANGE(0x0e000, 0x0e001) AM_READ | |
| 92 | 90 | AM_RANGE(0x0e000, 0x0e007) AM_WRITE(raidena_control_w) |
| 93 | AM_RANGE(0x0e002, 0x0e003) AM_READ | |
| 91 | AM_RANGE(0x0e002, 0x0e003) AM_READ | |
| 94 | 92 | AM_RANGE(0x0f000, 0x0f035) AM_WRITE(SMH_RAM) AM_BASE(&raiden_scroll_ram) |
| 95 | 93 | AM_RANGE(0xa0000, 0xfffff) AM_ROM |
| 96 | 94 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 100 | 98 | static INPUT_PORTS_START( raiden ) |
| 101 | 99 | SEIBU_COIN_INPUTS /* coin inputs read through sound cpu */ |
| 102 | 100 | |
| 103 | PORT_START("P1_P2") | |
| 101 | PORT_START("P1_P2") | |
| 104 | 102 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 105 | 103 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 106 | 104 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 118 | 116 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 119 | 117 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) |
| 120 | 118 | |
| 121 | PORT_START("DSW") /* Dip switch A */ | |
| 122 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Mode" ) | |
| 119 | PORT_START("DSW") | |
| 120 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Mode" ) PORT_DIPLOCATION("SW1:1") | |
| 123 | 121 | PORT_DIPSETTING( 0x0001, "A" ) |
| 124 | 122 | PORT_DIPSETTING( 0x0000, "B" ) |
| 125 | 123 | /* Coin Mode A */ |
| 126 | PORT_DIPNAME( 0x001e, 0x001e, DEF_STR( Coinage ) ) | |
| 124 | PORT_DIPNAME( 0x001e, 0x001e, DEF_STR( Coinage ) ) PORT_CONDITION("DSW", 0x0001, PORTCOND_EQUALS, 0x0001) PORT_DIPLOCATION("SW1:2,3,4,5") | |
| 127 | 125 | PORT_DIPSETTING( 0x0014, DEF_STR( 6C_1C ) ) |
| 128 | 126 | PORT_DIPSETTING( 0x0016, DEF_STR( 5C_1C ) ) |
| 129 | 127 | PORT_DIPSETTING( 0x0018, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 140 | 138 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_5C ) ) |
| 141 | 139 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) |
| 142 | 140 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 143 | /* PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Coin_A ) ) | |
| 141 | /* Coin Mode B */ | |
| 142 | PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW", 0x0001, PORTCOND_NOTEQUALS, 0x0001) PORT_DIPLOCATION("SW1:2,3") | |
| 144 | 143 | PORT_DIPSETTING( 0x0000, "5C/1C or Free if Coin B too" ) |
| 145 | 144 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| 146 | 145 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) |
| 147 | 146 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_1C ) ) |
| 148 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Coin_B ) ) | |
| 147 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW", 0x0001, PORTCOND_NOTEQUALS, 0x0001) PORT_DIPLOCATION("SW1:4,5") | |
| 149 | 148 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) |
| 150 | 149 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) |
| 151 | 150 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) |
| 152 | PORT_DIPSETTING( 0x0000, "1C/6C or Free if Coin A too" ) */ | |
| 153 | PORT_DIPNAME( 0x0020, 0x0020, "Credits to Start" ) | |
| 151 | PORT_DIPSETTING( 0x0000, "1C/6C or Free if Coin A too" ) | |
| 152 | ||
| 153 | PORT_DIPNAME( 0x0020, 0x0020, "Credits to Start" ) PORT_DIPLOCATION("SW1:6") | |
| 154 | 154 | PORT_DIPSETTING( 0x0020, "1" ) |
| 155 | 155 | PORT_DIPSETTING( 0x0000, "2" ) |
| 156 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 157 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 158 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 159 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 156 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW1:7") | |
| 157 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:8") | |
| 160 | 158 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 161 | 159 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 162 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 160 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 163 | 161 | PORT_DIPSETTING( 0x0200, "1" ) |
| 164 | 162 | PORT_DIPSETTING( 0x0100, "2" ) |
| 165 | 163 | PORT_DIPSETTING( 0x0300, "3" ) |
| 166 | 164 | PORT_DIPSETTING( 0x0000, "5" ) |
| 167 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) | |
| 165 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 168 | 166 | PORT_DIPSETTING( 0x0800, "80000 300000" ) |
| 169 | 167 | PORT_DIPSETTING( 0x0c00, "150000 400000" ) |
| 170 | 168 | PORT_DIPSETTING( 0x0400, "300000 1000000" ) |
| 171 | 169 | PORT_DIPSETTING( 0x0000, "1000000 5000000" ) |
| 172 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) | |
| 170 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 173 | 171 | PORT_DIPSETTING( 0x2000, DEF_STR( Easy ) ) |
| 174 | 172 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) |
| 175 | 173 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) |
| 176 | 174 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) |
| 177 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Allow_Continue ) ) | |
| 175 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7") | |
| 178 | 176 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 179 | 177 | PORT_DIPSETTING( 0x4000, DEF_STR( Yes ) ) |
| 180 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Demo_Sounds ) ) | |
| 178 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:8") | |
| 181 | 179 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 182 | 180 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) |
| 183 | 181 | INPUT_PORTS_END |
| r3115 | r3116 | |
|---|---|---|
| 83 | 83 | static ADDRESS_MAP_START( vega_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| 84 | 84 | AM_RANGE(0x00000000, 0x001fffff) AM_RAM |
| 85 | 85 | AM_RANGE(0x80000000, 0x80013fff) AM_READWRITE(vega_vram_r, vega_vram_w) |
| 86 | AM_RANGE(0xfc000000, 0xfc0000ff) AM_READWRITE8(at28c16_ | |
| 86 | AM_RANGE(0xfc000000, 0xfc0000ff) AM_DEVREADWRITE8(AT28C16, "at28c16", at28c16_ | |
| 87 | 87 | AM_RANGE(0xfc200000, 0xfc2003ff) AM_RAM_WRITE(vega_palette_w) AM_BASE(&paletteram32) |
| 88 | 88 | AM_RANGE(0xfc400000, 0xfc40005b) AM_WRITENOP // crt registers ? |
| 89 | 89 | AM_RANGE(0xfc600000, 0xfc600003) AM_WRITENOP // soundlatch |
| r3115 | r3116 | |
| 102 | 102 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_START2 ) |
| 103 | 103 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 104 | 104 | PORT_SERVICE_NO_TOGGLE( 0x00000020, IP_ACTIVE_LOW ) |
| 105 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(eolith_speedup_getvblank, | |
| 105 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(eolith_speedup_getvblank, NULL) | |
| 106 | 106 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 107 | 107 | PORT_BIT( 0xffffff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 108 | 108 | |
| r3115 | r3116 | |
| 168 | 168 | |
| 169 | 169 | /* sound cpu */ |
| 170 | 170 | |
| 171 | MDRV_NVRAM_HANDLER(at28c16_0) | |
| 172 | ||
| 173 | 171 | /* video hardware */ |
| 174 | 172 | MDRV_SCREEN_ADD("main", RASTER) |
| 175 | 173 | MDRV_SCREEN_REFRESH_RATE(60) |
| r3115 | r3116 | |
| 184 | 182 | MDRV_VIDEO_UPDATE(vega) |
| 185 | 183 | |
| 186 | 184 | /* sound hardware */ |
| 185 | MDRV_DEVICE_ADD( "at28c16", AT28C16 ) | |
| 187 | 186 | MACHINE_DRIVER_END |
| 188 | 187 | |
| 189 | 188 | /* |
| r3115 | r3116 | |
| 267 | 266 | static DRIVER_INIT( vegaeo ) |
| 268 | 267 | { |
| 269 | 268 | init_eolith_speedup(machine); |
| 270 | ||
| 271 | at28c16_init( 0, NULL, NULL ); | |
| 272 | 269 | } |
| 273 | 270 | |
| 274 | 271 | GAME( 2002, crazywar, 0, vega, crazywar, vegaeo, ROT0, "Eolith", "Crazy War", GAME_NO_SOUND ) |
| r3115 | r3116 | |
|---|---|---|
| 318 | 318 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 319 | 319 | AM_RANGE(0x8000, 0x8fff) AM_RAM_WRITE(rallyx_videoram_w) AM_BASE(&rallyx_videoram) |
| 320 | 320 | AM_RANGE(0x9800, 0x9fff) AM_RAM |
| 321 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 322 | AM_RANGE(0xa080, 0xa080) AM_READ(input_port_1_r) | |
| 323 | AM_RANGE(0xa100, 0xa100) AM_READ(input_port_2_r) | |
| 321 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("P1") | |
| 322 | AM_RANGE(0xa080, 0xa080) AM_READ_PORT("P2") | |
| 323 | AM_RANGE(0xa100, 0xa100) AM_READ_PORT("DSW") | |
| 324 | 324 | AM_RANGE(0xa000, 0xa00f) AM_WRITE(SMH_RAM) AM_BASE(&rallyx_radarattr) |
| 325 | 325 | AM_RANGE(0xa080, 0xa080) AM_WRITE(watchdog_reset_w) |
| 326 | 326 | AM_RANGE(0xa100, 0xa11f) AM_WRITE(pacman_sound_w) AM_BASE(&namco_soundregs) |
| r3115 | r3116 | |
| 340 | 340 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 341 | 341 | AM_RANGE(0x8000, 0x8fff) AM_RAM_WRITE(rallyx_videoram_w) AM_BASE(&rallyx_videoram) |
| 342 | 342 | AM_RANGE(0x9800, 0x9fff) AM_RAM |
| 343 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 344 | AM_RANGE(0xa080, 0xa080) AM_READ(input_port_1_r) | |
| 345 | AM_RANGE(0xa100, 0xa100) AM_READ(input_port_2_r) | |
| 346 | AM_RANGE(0xa180, 0xa180) AM_READ(input_port_3_r) | |
| 343 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("P1") | |
| 344 | AM_RANGE(0xa080, 0xa080) AM_READ_PORT("P2") | |
| 345 | AM_RANGE(0xa100, 0xa100) AM_READ_PORT("DSW1") | |
| 346 | AM_RANGE(0xa180, 0xa180) AM_READ_PORT("DSW2") | |
| 347 | 347 | AM_RANGE(0xa000, 0xa00f) AM_MIRROR(0x00f0) AM_WRITE(SMH_RAM) AM_BASE(&rallyx_radarattr) // jungler writes to a03x |
| 348 | 348 | AM_RANGE(0xa080, 0xa080) AM_WRITE(watchdog_reset_w) |
| 349 | 349 | AM_RANGE(0xa100, 0xa100) AM_WRITE(soundlatch_w) |
| r3115 | r3116 | |
| 355 | 355 | |
| 356 | 356 | |
| 357 | 357 | static INPUT_PORTS_START( rallyx ) |
| 358 | PORT_START(" | |
| 358 | PORT_START("P1 | |
| 359 | 359 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 360 | 360 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 361 | 361 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r3115 | r3116 | |
| 365 | 365 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 366 | 366 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 367 | 367 | |
| 368 | PORT_START(" | |
| 368 | PORT_START("P2 | |
| 369 | 369 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) |
| 370 | 370 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| 371 | 371 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 377 | 377 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 378 | 378 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 379 | 379 | |
| 380 | PORT_START("DSW | |
| 380 | PORT_START("DSW | |
| 381 | 381 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coinage ) ) |
| 382 | 382 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) |
| 383 | 383 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 393 | 393 | PORT_DIPSETTING( 0x20, "3 Cars, Medium" ) |
| 394 | 394 | PORT_DIPSETTING( 0x38, "3 Cars, Hard" ) |
| 395 | 395 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Bonus_Life ) ) |
| 396 | PORT_DIPSETTING( 0x02, "10000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x10) | |
| 397 | PORT_DIPSETTING( 0x02, "10000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x28) | |
| 398 | PORT_DIPSETTING( 0x02, "15000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x00) | |
| 399 | PORT_DIPSETTING( 0x02, "15000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x18) | |
| 400 | PORT_DIPSETTING( 0x02, "15000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x30) | |
| 401 | PORT_DIPSETTING( 0x02, "20000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x08) | |
| 402 | PORT_DIPSETTING( 0x02, "20000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x20) | |
| 403 | PORT_DIPSETTING( 0x02, "20000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x38) | |
| 404 | PORT_DIPSETTING( 0x04, "20000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x10) | |
| 405 | PORT_DIPSETTING( 0x04, "20000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x28) | |
| 406 | PORT_DIPSETTING( 0x04, "30000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x00) | |
| 407 | PORT_DIPSETTING( 0x04, "30000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x18) | |
| 408 | PORT_DIPSETTING( 0x04, "30000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x30) | |
| 409 | PORT_DIPSETTING( 0x04, "40000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x08) | |
| 410 | PORT_DIPSETTING( 0x04, "40000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x20) | |
| 411 | PORT_DIPSETTING( 0x04, "40000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x38) | |
| 412 | PORT_DIPSETTING( 0x06, "30000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x10) | |
| 413 | PORT_DIPSETTING( 0x06, "30000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x28) | |
| 414 | PORT_DIPSETTING( 0x06, "40000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x00) | |
| 415 | PORT_DIPSETTING( 0x06, "40000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x18) | |
| 416 | PORT_DIPSETTING( 0x06, "40000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x30) | |
| 417 | PORT_DIPSETTING( 0x06, "60000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x08) | |
| 418 | PORT_DIPSETTING( 0x06, "60000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x20) | |
| 419 | PORT_DIPSETTING( 0x06, "60000" ) PORT_CONDITION("DSW0",0x38,PORTCOND_EQUALS,0x38) | |
| 396 | PORT_DIPSETTING( 0x02, "15000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x00) | |
| 397 | PORT_DIPSETTING( 0x04, "30000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x00) | |
| 398 | PORT_DIPSETTING( 0x06, "40000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x00) | |
| 399 | ||
| 400 | PORT_DIPSETTING( 0x02, "20000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x08) | |
| 401 | PORT_DIPSETTING( 0x04, "40000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x08) | |
| 402 | PORT_DIPSETTING( 0x06, "60000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x08) | |
| 403 | ||
| 404 | PORT_DIPSETTING( 0x02, "10000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x10) | |
| 405 | PORT_DIPSETTING( 0x04, "20000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x10) | |
| 406 | PORT_DIPSETTING( 0x06, "30000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x10) | |
| 407 | ||
| 408 | PORT_DIPSETTING( 0x02, "15000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x18) | |
| 409 | PORT_DIPSETTING( 0x04, "30000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x18) | |
| 410 | PORT_DIPSETTING( 0x06, "40000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x18) | |
| 411 | ||
| 412 | PORT_DIPSETTING( 0x02, "20000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x20) | |
| 413 | PORT_DIPSETTING( 0x04, "40000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x20) | |
| 414 | PORT_DIPSETTING( 0x06, "60000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x20) | |
| 415 | ||
| 416 | PORT_DIPSETTING( 0x02, "10000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x28) | |
| 417 | PORT_DIPSETTING( 0x04, "20000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x28) | |
| 418 | PORT_DIPSETTING( 0x06, "30000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x28) | |
| 419 | ||
| 420 | PORT_DIPSETTING( 0x02, "15000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x30) | |
| 421 | PORT_DIPSETTING( 0x04, "30000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x30) | |
| 422 | PORT_DIPSETTING( 0x06, "40000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x30) | |
| 423 | ||
| 424 | PORT_DIPSETTING( 0x02, "20000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x38) | |
| 425 | PORT_DIPSETTING( 0x04, "40000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x38) | |
| 426 | PORT_DIPSETTING( 0x06, "60000" ) PORT_CONDITION("DSW", 0x38, PORTCOND_EQUALS, 0x38) | |
| 420 | 427 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 421 | 428 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 422 | 429 | INPUT_PORTS_END |
| 423 | 430 | |
| 424 | 431 | static INPUT_PORTS_START( nrallyx ) |
| 425 | PORT_START(" | |
| 432 | PORT_START("P1 | |
| 426 | 433 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 427 | 434 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 428 | 435 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| r3115 | r3116 | |
| 432 | 439 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 433 | 440 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 434 | 441 | |
| 435 | PORT_START(" | |
| 442 | PORT_START("P2 | |
| 436 | 443 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) |
| 437 | 444 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| 438 | 445 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 470 | 477 | |
| 471 | 478 | |
| 472 | 479 | static INPUT_PORTS_START( jungler ) |
| 473 | PORT_START(" | |
| 480 | PORT_START("P1 | |
| 474 | 481 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 475 | 482 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 476 | 483 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 480 | 487 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 481 | 488 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 482 | 489 | |
| 483 | PORT_START(" | |
| 490 | PORT_START("P2 | |
| 484 | 491 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 485 | 492 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 486 | 493 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 490 | 497 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 491 | 498 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 492 | 499 | |
| 493 | PORT_START("DSW | |
| 500 | PORT_START("DSW1") /* Sound board */ | |
| 494 | 501 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 495 | 502 | PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 496 | 503 | |
| 497 | PORT_START("DSW | |
| 504 | PORT_START("DSW2") /* CPU board */ | |
| 498 | 505 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 499 | 506 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) |
| 500 | 507 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 523 | 530 | |
| 524 | 531 | |
| 525 | 532 | static INPUT_PORTS_START( locomotn ) |
| 526 | PORT_START(" | |
| 533 | PORT_START("P1 | |
| 527 | 534 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 528 | 535 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 529 | 536 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 533 | 540 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 534 | 541 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 535 | 542 | |
| 536 | PORT_START(" | |
| 543 | PORT_START("P2 | |
| 537 | 544 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 538 | 545 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 539 | 546 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 543 | 550 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 544 | 551 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 545 | 552 | |
| 546 | PORT_START("DSW | |
| 553 | PORT_START("DSW1") /* Sound board */ | |
| 547 | 554 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 548 | 555 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 549 | 556 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) |
| r3115 | r3116 | |
| 564 | 571 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 565 | 572 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 566 | 573 | |
| 567 | PORT_START("DSW | |
| 574 | PORT_START("DSW2") /* CPU board */ | |
| 568 | 575 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 569 | 576 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 570 | 577 | PORT_DIPSETTING( 0x0a, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 603 | 610 | |
| 604 | 611 | |
| 605 | 612 | static INPUT_PORTS_START( tactcian ) |
| 606 | PORT_START(" | |
| 613 | PORT_START("P1 | |
| 607 | 614 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 608 | 615 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 609 | 616 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 613 | 620 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 614 | 621 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 615 | 622 | |
| 616 | PORT_START(" | |
| 623 | PORT_START("P2 | |
| 617 | 624 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 618 | 625 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 619 | 626 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| r3115 | r3116 | |
| 623 | 630 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 624 | 631 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 625 | 632 | |
| 626 | PORT_START("DSW | |
| 633 | PORT_START("DSW1") /* Sound board */ | |
| 627 | 634 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 628 | 635 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 629 | 636 | PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) |
| r3115 | r3116 | |
| 650 | 657 | PORT_DIPSETTING( 0x00, "10k, 80k then every 100k" ) |
| 651 | 658 | PORT_DIPSETTING( 0x01, "20k, 80k then every 100k" ) |
| 652 | 659 | |
| 653 | PORT_START("DSW | |
| 660 | PORT_START("DSW2") /* CPU board */ | |
| 654 | 661 | PORT_DIPNAME( 0x01, 0x00, "Coin Mode" ) |
| 655 | 662 | PORT_DIPSETTING( 0x00, "Mode 1" ) |
| 656 | 663 | PORT_DIPSETTING( 0x01, "Mode 2" ) |
| r3115 | r3116 | |
| 679 | 686 | |
| 680 | 687 | |
| 681 | 688 | static INPUT_PORTS_START( commsega ) |
| 682 | PORT_START(" | |
| 689 | PORT_START("P1 | |
| 683 | 690 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 684 | 691 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 685 | 692 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 689 | 696 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 690 | 697 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 691 | 698 | |
| 692 | PORT_START(" | |
| 699 | PORT_START("P2 | |
| 693 | 700 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY |
| 694 | 701 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL |
| 695 | 702 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| r3115 | r3116 | |
| 699 | 706 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 700 | 707 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 701 | 708 | |
| 702 | PORT_START("DSW | |
| 709 | PORT_START("DSW1") /* (sound board) */ | |
| 703 | 710 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 704 | 711 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 705 | 712 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) |
| r3115 | r3116 | |
| 721 | 728 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) |
| 722 | 729 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 723 | 730 | |
| 724 | PORT_START("DSW | |
| 731 | PORT_START("DSW2") /* (CPU board) */ | |
| 725 | 732 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 726 | 733 | PORT_DIPSETTING( 0x03, "3" ) |
| 727 | 734 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
|---|---|---|
| 91 | 91 | AM_RANGE(0x4400, 0x47ff) AM_RAM_WRITE(trucocl_colorram_w) AM_BASE(&colorram) |
| 92 | 92 | AM_RANGE(0x4c00, 0x4fff) AM_RAM |
| 93 | 93 | AM_RANGE(0x5000, 0x5000) AM_WRITE(irq_enable_w) |
| 94 | AM_RANGE(0x5000, 0x503f) AM_READ | |
| 94 | AM_RANGE(0x5000, 0x503f) AM_READ | |
| 95 | 95 | AM_RANGE(0x5080, 0x5080) AM_WRITE(audio_dac_w) |
| 96 | 96 | AM_RANGE(0x50c0, 0x50c0) AM_WRITE(watchdog_reset_w) |
| 97 | 97 | AM_RANGE(0x8000, 0xffff) AM_ROM |
| r3115 | r3116 | |
|---|---|---|
| 11 | 11 | IGS017 |
| 12 | 12 | IGS029 |
| 13 | 13 | |
| 14 | All of these have encrypted program roms, which will need decrypting | |
| 15 | ||
| 16 | 14 | */ |
| 17 | 15 | |
| 18 | 16 | #include "driver.h" |
| r3115 | r3116 | |
| 30 | 28 | |
| 31 | 29 | static ADDRESS_MAP_START( igs_m68_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 32 | 30 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 31 | AM_RANGE(0x100000, 0x103fff) AM_RAM //to test the decryption | |
| 32 | AM_RANGE(0x300000, 0x303fff) AM_RAM //to test the decryption | |
| 33 | AM_RANGE(0x500000, 0x503fff) AM_RAM //to test the decryption | |
| 33 | 34 | ADDRESS_MAP_END |
| 34 | 35 | |
| 35 | 36 | static INPUT_PORTS_START( igs_m68 ) |
| r3115 | r3116 | |
| 112 | 113 | |
| 113 | 114 | ROM_START( lhzb2 ) |
| 114 | 115 | ROM_REGION( 0x80000, "main", 0 ) /* 68000 Code */ |
| 115 | ROM_LOAD( "p1100.u30", 0x00000, 0x80000, CRC(68102b25) SHA1(6c1e8d204be0efda0e9b6c2f49b5c6760712475f) ) | |
| 116 | ROM_LOAD16_WORD_SWAP( "p1100.u30", 0x00000, 0x80000, CRC(68102b25) SHA1(6c1e8d204be0efda0e9b6c2f49b5c6760712475f) ) | |
| 116 | 117 | |
| 117 | 118 | ROM_REGION( 0x80000, "oki", 0 ) /* Samples */ |
| 118 | 119 | ROM_LOAD( "s1102.u23", 0x00000, 0x80000, CRC(51ffe245) SHA1(849011b186096add657ab20d49d260ec23363ef3) ) |
| r3115 | r3116 | |
| 127 | 128 | |
| 128 | 129 | ROM_START( lhzb2a ) |
| 129 | 130 | ROM_REGION( 0x80000, "main", 0 ) /* 68000 Code */ |
| 130 | ROM_LOAD( "p-4096", 0x00000, 0x80000, CRC(41293f32) SHA1(df4e993f4a458729ade13981e58f32d8116c0082) ) | |
| 131 | ROM_LOAD16_WORD_SWAP( "p-4096", 0x00000, 0x80000, CRC(41293f32) SHA1(df4e993f4a458729ade13981e58f32d8116c0082) ) | |
| 131 | 132 | |
| 132 | 133 | ROM_REGION( 0x80000, "oki", 0 ) /* Samples */ |
| 133 | 134 | ROM_LOAD( "s1102.u23", 0x00000, 0x80000, CRC(51ffe245) SHA1(849011b186096add657ab20d49d260ec23363ef3) ) |
| r3115 | r3116 | |
| 184 | 185 | |
| 185 | 186 | ROM_START( mgcs ) |
| 186 | 187 | ROM_REGION( 0x80000, "main", 0 ) /* 68000 Code */ |
| 187 | ROM_LOAD( "p1500.u8", 0x00000, 0x80000, CRC(a8cb5905) SHA1(37be7d926a1352869632d43943763accd4dec4b7) ) | |
| 188 | ROM_LOAD16_WORD_SWAP( "p1500.u8", 0x00000, 0x80000, CRC(a8cb5905) SHA1(37be7d926a1352869632d43943763accd4dec4b7) ) | |
| 188 | 189 | |
| 189 | 190 | ROM_REGION( 0x80000, "oki", 0 ) /* Samples */ |
| 190 | 191 | ROM_LOAD( "s1502.u10", 0x00000, 0x80000, CRC(a8a6ba58) SHA1(59276a8ab4a31812600816c2a43b74bd71394419) ) |
| r3115 | r3116 | |
| 239 | 240 | |
| 240 | 241 | ROM_START( slqz2 ) |
| 241 | 242 | ROM_REGION( 0x80000, "main", 0 ) /* 68000 Code */ |
| 242 | ROM_LOAD( "p1100.u28", 0x00000, 0x80000, CRC(0b8e5c9e) SHA1(16572bd1163bba4da8a76b10649d2f71e50ad369) ) | |
| 243 | ROM_LOAD16_WORD_SWAP( "p1100.u28", 0x00000, 0x80000, CRC(0b8e5c9e) SHA1(16572bd1163bba4da8a76b10649d2f71e50ad369) ) | |
| 243 | 244 | |
| 244 | 245 | ROM_REGION( 0x80000, "oki", 0 ) /* Samples */ |
| 245 | 246 | ROM_LOAD( "s1102.u20", 0x00000, 0x80000, CRC(51ffe245) SHA1(849011b186096add657ab20d49d260ec23363ef3) ) // = s1102.u23 Mahjong Long Hu Zheng Ba 2 |
| r3115 | r3116 | |
| 261 | 262 | |
| 262 | 263 | IGS PCB NO-0147-6 |
| 263 | 264 | |---------------------------------------| |
| 264 | | UPC1242H S0903.U15 BATTERY| | |
| 265 | | UPC1242H S0903.U15 BATTERY | | |
| 265 | 266 | | VOL SPDT_SW | |
| 266 | 267 | | | |
| 267 | 268 | | K668 6264 | |
| r3115 | r3116 | |
| 297 | 298 | |
| 298 | 299 | ROM_START( sdmg2 ) |
| 299 | 300 | ROM_REGION( 0x80000, "main", 0 ) /* 68000 Code */ |
| 300 | ROM_LOAD( "p0900.u25", 0x00000, 0x80000,CRC(43366f51) SHA1(48dd965dceff7de15b43c2140226a8b17a792dbc) ) | |
| 301 | ROM_LOAD16_WORD_SWAP( "p0900.u25", 0x00000, 0x80000,CRC(43366f51) SHA1(48dd965dceff7de15b43c2140226a8b17a792dbc) ) | |
| 301 | 302 | |
| 302 | 303 | ROM_REGION( 0x80000, "oki", 0 ) /* Samples */ |
| 303 | 304 | ROM_LOAD( "s0903.u15", 0x00000, 0x80000, CRC(ae5a441c) SHA1(923774ef73ab0f70e0db1738a4292dcbd70d2384) ) |
| r3115 | r3116 | |
| 309 | 310 | ROM_END |
| 310 | 311 | |
| 311 | 312 | |
| 312 | GAME( 1998, lhzb2, 0, igs_m68, igs_m68, 0, ROT0, "IGS", "Mahjong Long Hu Zheng Ba 2 (set 1)", GAME_NOT_WORKING ) | |
| 313 | GAME( 1998, lhzb2a, lhzb2, igs_m68, igs_m68, 0, ROT0, "IGS", "Mahjong Long Hu Zheng Ba 2 (set 2)", GAME_NOT_WORKING ) | |
| 314 | GAME( 1998, mgcs, 0, igs_m68, igs_m68, 0, ROT0, "IGS", "Mahjong Man Guan Cai Shen", GAME_NOT_WORKING ) | |
| 315 | GAME( 1998, slqz2, 0, igs_m68, igs_m68, 0, ROT0, "IGS", "Mahjong Shuang Long Qiang Zhu 2", GAME_NOT_WORKING ) | |
| 316 | GAME( 1997, sdmg2, 0, igs_m68, igs_m68, 0, ROT0, "IGS", "Mahjong Super Da Man Guan 2", GAME_NOT_WORKING ) | |
| 313 | static DRIVER_INIT( lhzb2 ) | |
| 314 | { | |
| 315 | int i; | |
| 316 | UINT16 *src = (UINT16 *) (memory_region(machine, "main")); | |
| 317 | 317 | |
| 318 | int rom_size = 0x80000; | |
| 319 | ||
| 320 | for (i=0; i<rom_size/2; i++) | |
| 321 | { | |
| 322 | UINT16 x = src[i]; | |
| 323 | ||
| 324 | /* bit 0 xor layer */ | |
| 325 | ||
| 326 | if( i & 0x20/2 ) | |
| 327 | { | |
| 328 | if( i & 0x02/2 ) | |
| 329 | { | |
| 330 | x ^= 0x0001; | |
| 331 | } | |
| 332 | } | |
| 333 | ||
| 334 | if( !(i & 0x4000/2) ) | |
| 335 | { | |
| 336 | if( !(i & 0x300/2) ) | |
| 337 | { | |
| 338 | x ^= 0x0001; | |
| 339 | } | |
| 340 | } | |
| 341 | ||
| 342 | /* bit 13 xor layer */ | |
| 343 | ||
| 344 | if( !(i & 0x1000/2) ) | |
| 345 | { | |
| 346 | if( i & 0x2000/2 ) | |
| 347 | { | |
| 348 | if( i & 0x8000/2 ) | |
| 349 | { | |
| 350 | if( !(i & 0x100/2) ) | |
| 351 | { | |
| 352 | if( i & 0x200/2 ) | |
| 353 | { | |
| 354 | if( !(i & 0x40/2) ) | |
| 355 | { | |
| 356 | x ^= 0x2000; | |
| 357 | } | |
| 358 | } | |
| 359 | else | |
| 360 | { | |
| 361 | x ^= 0x2000; | |
| 362 | } | |
| 363 | } | |
| 364 | } | |
| 365 | else | |
| 366 | { | |
| 367 | if( !(i & 0x100/2) ) | |
| 368 | { | |
| 369 | x ^= 0x2000; | |
| 370 | } | |
| 371 | } | |
| 372 | } | |
| 373 | else | |
| 374 | { | |
| 375 | if( i & 0x8000/2 ) | |
| 376 | { | |
| 377 | if( i & 0x200/2 ) | |
| 378 | { | |
| 379 | if( !(i & 0x40/2) ) | |
| 380 | { | |
| 381 | x ^= 0x2000; | |
| 382 | } | |
| 383 | } | |
| 384 | else | |
| 385 | { | |
| 386 | x ^= 0x2000; | |
| 387 | } | |
| 388 | } | |
| 389 | else | |
| 390 | { | |
| 391 | x ^= 0x2000; | |
| 392 | } | |
| 393 | } | |
| 394 | } | |
| 395 | ||
| 396 | src[i] = x; | |
| 397 | } | |
| 398 | ||
| 399 | ||
| 400 | } | |
| 401 | ||
| 402 | static DRIVER_INIT( lhzb2a ) | |
| 403 | { | |
| 404 | int i; | |
| 405 | UINT16 *src = (UINT16 *) (memory_region(machine, "main")); | |
| 406 | ||
| 407 | int rom_size = 0x80000; | |
| 408 | ||
| 409 | for (i=0; i<rom_size/2; i++) | |
| 410 | { | |
| 411 | UINT16 x = src[i]; | |
| 412 | ||
| 413 | /* bit 0 xor layer */ | |
| 414 | ||
| 415 | if( i & 0x20/2 ) | |
| 416 | { | |
| 417 | if( i & 0x02/2 ) | |
| 418 | { | |
| 419 | x ^= 0x0001; | |
| 420 | } | |
| 421 | } | |
| 422 | ||
| 423 | if( !(i & 0x4000/2) ) | |
| 424 | { | |
| 425 | if( !(i & 0x300/2) ) | |
| 426 | { | |
| 427 | x ^= 0x0001; | |
| 428 | } | |
| 429 | } | |
| 430 | ||
| 431 | /* bit 5 xor layer */ | |
| 432 | ||
| 433 | if( i & 0x4000/2 ) | |
| 434 | { | |
| 435 | if( i & 0x8000/2 ) | |
| 436 | { | |
| 437 | if( i & 0x2000/2 ) | |
| 438 | { | |
| 439 | if( i & 0x200/2 ) | |
| 440 | { | |
| 441 | if( !(i & 0x40/2) || (i & 0x800/2) ) | |
| 442 | { | |
| 443 | x ^= 0x0020; | |
| 444 | } | |
| 445 | } | |
| 446 | } | |
| 447 | } | |
| 448 | else | |
| 449 | { | |
| 450 | if( !(i & 0x40/2) || (i & 0x800/2) ) | |
| 451 | { | |
| 452 | x ^= 0x0020; | |
| 453 | } | |
| 454 | } | |
| 455 | } | |
| 456 | ||
| 457 | src[i] = x; | |
| 458 | } | |
| 459 | ||
| 460 | } | |
| 461 | ||
| 462 | static DRIVER_INIT( mgcs ) | |
| 463 | { | |
| 464 | int i; | |
| 465 | UINT16 *src = (UINT16 *) (memory_region(machine, "main")); | |
| 466 | ||
| 467 | int rom_size = 0x80000; | |
| 468 | ||
| 469 | for (i=0; i<rom_size/2; i++) | |
| 470 | { | |
| 471 | UINT16 x = src[i]; | |
| 472 | ||
| 473 | /* bit 0 xor layer */ | |
| 474 | ||
| 475 | if( i & 0x20/2 ) | |
| 476 | { | |
| 477 | if( i & 0x02/2 ) | |
| 478 | { | |
| 479 | x ^= 0x0001; | |
| 480 | } | |
| 481 | } | |
| 482 | ||
| 483 | if( !(i & 0x4000/2) ) | |
| 484 | { | |
| 485 | if( !(i & 0x300/2) ) | |
| 486 | { | |
| 487 | x ^= 0x0001; | |
| 488 | } | |
| 489 | } | |
| 490 | ||
| 491 | /* bit 8 xor layer */ | |
| 492 | ||
| 493 | if( (i & 0x2000/2) || !(i & 0x80/2) ) | |
| 494 | { | |
| 495 | if( i & 0x100/2 ) | |
| 496 | { | |
| 497 | if( !(i & 0x20/2) || (i & 0x400/2) ) | |
| 498 | { | |
| 499 | x ^= 0x0100; | |
| 500 | } | |
| 501 | } | |
| 502 | } | |
| 503 | else | |
| 504 | { | |
| 505 | x ^= 0x0100; | |
| 506 | } | |
| 507 | ||
| 508 | src[i] = x; | |
| 509 | } | |
| 510 | } | |
| 511 | ||
| 512 | static DRIVER_INIT( slqz2 ) | |
| 513 | { | |
| 514 | int i; | |
| 515 | UINT16 *src = (UINT16 *) (memory_region(machine, "main")); | |
| 516 | ||
| 517 | int rom_size = 0x80000; | |
| 518 | ||
| 519 | for (i=0; i<rom_size/2; i++) | |
| 520 | { | |
| 521 | UINT16 x = src[i]; | |
| 522 | ||
| 523 | /* bit 0 xor layer */ | |
| 524 | ||
| 525 | if( i & 0x20/2 ) | |
| 526 | { | |
| 527 | if( i & 0x02/2 ) | |
| 528 | { | |
| 529 | x ^= 0x0001; | |
| 530 | } | |
| 531 | } | |
| 532 | ||
| 533 | if( !(i & 0x4000/2) ) | |
| 534 | { | |
| 535 | if( !(i & 0x300/2) ) | |
| 536 | { | |
| 537 | x ^= 0x0001; | |
| 538 | } | |
| 539 | } | |
| 540 | ||
| 541 | /* bit 14 xor layer */ | |
| 542 | ||
| 543 | if( i & 0x1000/2 ) | |
| 544 | { | |
| 545 | if( i & 0x800/2 ) | |
| 546 | { | |
| 547 | x ^= 0x4000; | |
| 548 | } | |
| 549 | else | |
| 550 | { | |
| 551 | if( i & 0x200/2 ) | |
| 552 | { | |
| 553 | if( !(i & 0x100/2) ) | |
| 554 | { | |
| 555 | if( i & 0x40/2 ) | |
| 556 | { | |
| 557 | x ^= 0x4000; | |
| 558 | } | |
| 559 | } | |
| 560 | } | |
| 561 | else | |
| 562 | { | |
| 563 | x ^= 0x4000; | |
| 564 | } | |
| 565 | } | |
| 566 | } | |
| 567 | else | |
| 568 | { | |
| 569 | if( i & 0x800/2 ) | |
| 570 | { | |
| 571 | x ^= 0x4000; | |
| 572 | } | |
| 573 | else | |
| 574 | { | |
| 575 | if( !(i & 0x100/2) ) | |
| 576 | { | |
| 577 | if( i & 0x40/2 ) | |
| 578 | { | |
| 579 | x ^= 0x4000; | |
| 580 | } | |
| 581 | } | |
| 582 | } | |
| 583 | } | |
| 584 | ||
| 585 | src[i] = x; | |
| 586 | } | |
| 587 | } | |
| 588 | ||
| 589 | static DRIVER_INIT( sdmg2 ) | |
| 590 | { | |
| 591 | int i; | |
| 592 | UINT16 *src = (UINT16 *) (memory_region(machine, "main")); | |
| 593 | ||
| 594 | int rom_size = 0x80000; | |
| 595 | ||
| 596 | for (i=0; i<rom_size/2; i++) | |
| 597 | { | |
| 598 | UINT16 x = src[i]; | |
| 599 | ||
| 600 | /* bit 0 xor layer */ | |
| 601 | ||
| 602 | if( i & 0x20/2 ) | |
| 603 | { | |
| 604 | if( i & 0x02/2 ) | |
| 605 | { | |
| 606 | x ^= 0x0001; | |
| 607 | } | |
| 608 | } | |
| 609 | ||
| 610 | if( !(i & 0x4000/2) ) | |
| 611 | { | |
| 612 | if( !(i & 0x300/2) ) | |
| 613 | { | |
| 614 | x ^= 0x0001; | |
| 615 | } | |
| 616 | } | |
| 617 | ||
| 618 | /* bit 9 xor layer */ | |
| 619 | ||
| 620 | if( i & 0x20000/2 ) | |
| 621 | { | |
| 622 | x ^= 0x0200; | |
| 623 | } | |
| 624 | else | |
| 625 | { | |
| 626 | if( !(i & 0x400/2) ) | |
| 627 | { | |
| 628 | x ^= 0x0200; | |
| 629 | } | |
| 630 | } | |
| 631 | ||
| 632 | /* bit 12 xor layer */ | |
| 633 | ||
| 634 | if( i & 0x20000/2 ) | |
| 635 | { | |
| 636 | x ^= 0x1000; | |
| 637 | } | |
| 638 | ||
| 639 | src[i] = x; | |
| 640 | } | |
| 641 | } | |
| 642 | ||
| 643 | GAME( 1998, lhzb2, 0, igs_m68, igs_m68, lhzb2, ROT0, "IGS", "Mahjong Long Hu Zheng Ba 2 (set 1)", GAME_NOT_WORKING ) | |
| 644 | GAME( 1998, lhzb2a, lhzb2, igs_m68, igs_m68, lhzb2a, ROT0, "IGS", "Mahjong Long Hu Zheng Ba 2 (set 2)", GAME_NOT_WORKING ) | |
| 645 | GAME( 1998, mgcs, 0, igs_m68, igs_m68, mgcs, ROT0, "IGS", "Mahjong Man Guan Cai Shen", GAME_NOT_WORKING ) | |
| 646 | GAME( 1998, slqz2, 0, igs_m68, igs_m68, slqz2, ROT0, "IGS", "Mahjong Shuang Long Qiang Zhu 2", GAME_NOT_WORKING ) | |
| 647 | GAME( 1997, sdmg2, 0, igs_m68, igs_m68, sdmg2, ROT0, "IGS", "Mahjong Super Da Man Guan 2", GAME_NOT_WORKING ) | |
| 648 |
| r3115 | r3116 | |
|---|---|---|
| 64 | 64 | static ADDRESS_MAP_START( readmem_burglarx, ADDRESS_SPACE_PROGRAM, 16 ) |
| 65 | 65 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM ) // ROM |
| 66 | 66 | AM_RANGE(0xff0000, 0xffffff) AM_READ(SMH_RAM ) // RAM |
| 67 | AM_RANGE(0x800000, 0x800001) AM_READ(input_port_0_word_r ) // P1 + P2 | |
| 68 | AM_RANGE(0x800018, 0x800019) AM_READ(input_port_1_word_r ) // Buttons | |
| 69 | AM_RANGE(0x80001a, 0x80001b) AM_READ(input_port_2_word_r ) // DSW | |
| 70 | AM_RANGE(0x80001c, 0x80001d) AM_READ(input_port_3_word_r ) // DSW | |
| 67 | AM_RANGE(0x800000, 0x800001) AM_READ_PORT("INPUTS") | |
| 68 | AM_RANGE(0x800018, 0x800019) AM_READ_PORT("SYSTEM") | |
| 69 | AM_RANGE(0x80001a, 0x80001b) AM_READ_PORT("DSW1") | |
| 70 | AM_RANGE(0x80001c, 0x80001d) AM_READ_PORT("DSW2") | |
| 71 | 71 | AM_RANGE(0x800188, 0x800189) AM_READ(okim6295_status_0_lsb_r ) // Sound |
| 72 | 72 | AM_RANGE(0x80018c, 0x80018d) AM_READ(YM3812_status_port_0_msb_r ) // |
| 73 | 73 | /**/AM_RANGE(0x904000, 0x907fff) AM_READ(SMH_RAM ) // Layers |
| r3115 | r3116 | |
| 169 | 169 | static ADDRESS_MAP_START( readmem_zeropnt, ADDRESS_SPACE_PROGRAM, 16 ) |
| 170 | 170 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM ) // ROM |
| 171 | 171 | AM_RANGE(0xef0000, 0xefffff) AM_READ(SMH_RAM ) // RAM |
| 172 | AM_RANGE(0x800018, 0x800019) AM_READ(input_port_0_word_r ) // Buttons | |
| 173 | AM_RANGE(0x80001a, 0x80001b) AM_READ(input_port_1_word_r ) // DSW | |
| 174 | AM_RANGE(0x80001c, 0x80001d) AM_READ(input_port_2_word_r ) // DSW | |
| 172 | AM_RANGE(0x800018, 0x800019) AM_READ_PORT("INPUTS") | |
| 173 | AM_RANGE(0x80001a, 0x80001b) AM_READ_PORT("DSW1") | |
| 174 | AM_RANGE(0x80001c, 0x80001d) AM_READ_PORT("DSW2") | |
| 175 | 175 | AM_RANGE(0x800170, 0x800171) AM_READ(unico_guny_0_msb_r ) // Light Guns |
| 176 | 176 | AM_RANGE(0x800174, 0x800175) AM_READ(unico_gunx_0_msb_r ) // |
| 177 | 177 | AM_RANGE(0x800178, 0x800179) AM_READ(unico_guny_1_msb_r ) // |
| r3115 | r3116 | |
| 214 | 214 | Zero Point 2 |
| 215 | 215 | ***************************************************************************/ |
| 216 | 216 | |
| 217 | static READ32_HANDLER( zeropnt2_coins_r ) { return (input_port_read(machine, "IN0") << 16) | 0xffff; } | |
| 218 | static READ32_HANDLER( zeropnt2_dsw1_r ) { return (input_port_read(machine, "DSW1") << 16) | 0xffff; } | |
| 219 | static READ32_HANDLER( zeropnt2_dsw2_r ) { return (input_port_read(machine, "DSW2") << 16) | 0xffff; } | |
| 220 | static READ32_HANDLER( zeropnt2_buttons_r ) { return ((input_port_read(machine, "IN7") | ((eeprom_read_bit() & 0x01) << 7)) << 16) | 0xffff; } | |
| 221 | ||
| 222 | 217 | static READ32_HANDLER( zeropnt2_gunx_0_msb_r ) { return (unico_gunx_0_msb_r(machine,0,0xffff)-0x0800) << 16; } |
| 223 | 218 | static READ32_HANDLER( zeropnt2_guny_0_msb_r ) { return (unico_guny_0_msb_r(machine,0,0xffff)+0x0800) << 16; } |
| 224 | 219 | static READ32_HANDLER( zeropnt2_gunx_1_msb_r ) { return (unico_gunx_1_msb_r(machine,0,0xffff)-0x0800) << 16; } |
| r3115 | r3116 | |
| 274 | 269 | |
| 275 | 270 | static ADDRESS_MAP_START( readmem_zeropnt2, ADDRESS_SPACE_PROGRAM, 32 ) |
| 276 | 271 | AM_RANGE(0x000000, 0x1fffff) AM_READ(SMH_ROM ) // ROM |
| 277 | AM_RANGE(0x800018, 0x80001b) AM_READ | |
| 272 | AM_RANGE(0x800018, 0x80001b) AM_READ | |
| 278 | 273 | AM_RANGE(0x800024, 0x800027) AM_READ(zeropnt2_oki0_r ) // Sound |
| 279 | 274 | AM_RANGE(0x80002c, 0x80002f) AM_READ(zeropnt2_ym2151_status_r ) // |
| 280 | 275 | AM_RANGE(0x800030, 0x800033) AM_READ(zeropnt2_oki1_r ) // |
| r3115 | r3116 | |
| 282 | 277 | AM_RANGE(0x800144, 0x800147) AM_READ(zeropnt2_gunx_0_msb_r ) // |
| 283 | 278 | AM_RANGE(0x800148, 0x80014b) AM_READ(zeropnt2_guny_1_msb_r ) // |
| 284 | 279 | AM_RANGE(0x80014c, 0x80014f) AM_READ(zeropnt2_gunx_1_msb_r ) // |
| 285 | AM_RANGE(0x800150, 0x800153) AM_READ(zeropnt2_dsw1_r ) // DSW | |
| 286 | AM_RANGE(0x800154, 0x800157) AM_READ(zeropnt2_dsw2_r ) // DSW | |
| 287 | AM_RANGE(0x80015c, 0x80015f) AM_READ(zeropnt2_buttons_r ) // Buttons | |
| 280 | AM_RANGE(0x800150, 0x800153) AM_READ_PORT("DSW1") | |
| 281 | AM_RANGE(0x800154, 0x800157) AM_READ_PORT("DSW2") | |
| 282 | AM_RANGE(0x80015c, 0x80015f) AM_READ_PORT("BUTTONS") | |
| 288 | 283 | /**/AM_RANGE(0x904000, 0x907fff) AM_READ(SMH_RAM ) // Layers |
| 289 | 284 | /**/AM_RANGE(0x908000, 0x90bfff) AM_READ(SMH_RAM ) // |
| 290 | 285 | /**/AM_RANGE(0x90c000, 0x90ffff) AM_READ(SMH_RAM ) // |
| r3115 | r3116 | |
| 328 | 323 | ***************************************************************************/ |
| 329 | 324 | |
| 330 | 325 | static INPUT_PORTS_START( burglarx ) |
| 326 | PORT_START("INPUTS") /* $800000.w */ | |
| 327 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 328 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 329 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 330 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 331 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 332 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 333 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 334 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 331 | 335 | |
| 332 | PORT_START("IN0") //$800000.w | |
| 333 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 334 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 335 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 336 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 337 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 338 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 339 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 340 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 336 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 337 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 338 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 339 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 340 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 341 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 342 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 343 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 341 | 344 | |
| 342 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 343 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 344 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 345 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 346 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 347 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 348 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 349 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 345 | PORT_START("SYSTEM") /* $800019.b */ | |
| 346 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 347 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 348 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 349 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_SERVICE2 ) | |
| 350 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 ) | |
| 351 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_START2 ) | |
| 352 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 353 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 354 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 350 | 355 | |
| 351 | PORT_START("IN1") //$800019.b | |
| 352 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 353 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 354 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 355 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_SERVICE2 ) | |
| 356 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 ) | |
| 357 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_START2 ) | |
| 358 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 359 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 360 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 361 | ||
| 362 | PORT_START("DSW1") //$80001a.b | |
| 363 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 356 | PORT_START("DSW1") /* $80001a.b */ | |
| 357 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 364 | 358 | PORT_SERVICE( 0x0100, IP_ACTIVE_LOW ) |
| 365 | 359 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Free_Play ) ) |
| 366 | 360 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 384 | 378 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_3C ) ) |
| 385 | 379 | PORT_DIPSETTING( 0x8000, DEF_STR( 1C_4C ) ) |
| 386 | 380 | |
| 387 | PORT_START("DSW2") //$80001c.b | |
| 388 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 381 | PORT_START("DSW2") /* $80001c.b */ | |
| 382 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 389 | 383 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Bonus_Life ) ) |
| 390 | 384 | PORT_DIPSETTING( 0x0200, DEF_STR( None ) ) |
| 391 | 385 | PORT_DIPSETTING( 0x0300, "A" ) |
| r3115 | r3116 | |
| 407 | 401 | PORT_DIPSETTING( 0xc000, "3" ) |
| 408 | 402 | PORT_DIPSETTING( 0x4000, "4" ) |
| 409 | 403 | PORT_DIPSETTING( 0x0000, "5" ) |
| 410 | ||
| 411 | 404 | INPUT_PORTS_END |
| 412 | 405 | |
| 413 | 406 | |
| r3115 | r3116 | |
| 417 | 410 | ***************************************************************************/ |
| 418 | 411 | |
| 419 | 412 | static INPUT_PORTS_START( zeropnt ) |
| 413 | PORT_START("INPUTS") /* $800018.w */ | |
| 414 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 415 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 416 | PORT_SERVICE_NO_TOGGLE( 0x0004, IP_ACTIVE_HIGH ) | |
| 417 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 418 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 419 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 420 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 421 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 420 | 422 | |
| 421 | PORT_START("IN0") //$800018.w | |
| 422 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 423 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 424 | PORT_SERVICE_NO_TOGGLE( 0x0004, IP_ACTIVE_HIGH) | |
| 425 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 426 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 427 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 428 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 429 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 423 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 424 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 425 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 426 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 427 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 428 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 429 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 430 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 430 | 431 | |
| 431 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 432 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 433 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 434 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 435 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 436 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 437 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 438 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 439 | 432 | |
| 440 | ||
| 441 | PORT_START("DSW1") //$80001a.b | |
| 442 | PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 433 | PORT_START("DSW1") /* $80001a.b */ | |
| 434 | PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 443 | 435 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Unused ) ) |
| 444 | 436 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 445 | 437 | PORT_DIPSETTING( 0x0100, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 465 | 457 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_3C ) ) |
| 466 | 458 | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_4C ) ) |
| 467 | 459 | |
| 468 | PORT_START("DSW2") //$80001c.b | |
| 469 | PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 460 | PORT_START("DSW2") /* $80001c.b */ | |
| 461 | PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 470 | 462 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Unused ) ) |
| 471 | 463 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 472 | 464 | PORT_DIPSETTING( 0x0100, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 489 | 481 | PORT_DIPSETTING( 0x8000, "4" ) |
| 490 | 482 | PORT_DIPSETTING( 0xc000, "5" ) |
| 491 | 483 | |
| 492 | PORT_START("Y0") / | |
| 484 | PORT_START("Y0") /* $800170.b */ | |
| 493 | 485 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2) |
| 494 | 486 | |
| 495 | PORT_START("X0") / | |
| 487 | PORT_START("X0") /* $800174.b */ | |
| 496 | 488 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2) |
| 497 | 489 | |
| 498 | PORT_START("Y1") / | |
| 490 | PORT_START("Y1") /* $800178.b */ | |
| 499 | 491 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(1) |
| 500 | 492 | |
| 501 | PORT_START("X1") / | |
| 493 | PORT_START("X1") /* $80017c.b */ | |
| 502 | 494 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(1) |
| 503 | ||
| 504 | 495 | INPUT_PORTS_END |
| 505 | 496 | |
| 506 | 497 | |
| r3115 | r3116 | |
| 510 | 501 | ***************************************************************************/ |
| 511 | 502 | |
| 512 | 503 | static INPUT_PORTS_START( zeropnt2 ) |
| 513 | PORT_START("IN0") //$800019.b | |
| 514 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 515 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 516 | PORT_SERVICE_NO_TOGGLE( 0x0004, IP_ACTIVE_HIGH) | |
| 517 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 518 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 519 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 520 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 521 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 522 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 504 | PORT_START("SYSTEM") /* $800019.b */ | |
| 505 | PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 506 | PORT_BIT( 0x00010000, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 507 | PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 508 | PORT_SERVICE_NO_TOGGLE( 0x00040000, IP_ACTIVE_HIGH ) | |
| 509 | PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 510 | PORT_BIT( 0x00100000, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 511 | PORT_BIT( 0x00200000, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 512 | PORT_BIT( 0x00400000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 513 | PORT_BIT( 0x00800000, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 514 | PORT_BIT( 0xff000000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 523 | 515 | |
| 524 | PORT_START("DSW1") //$80001a.b | |
| 525 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 526 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Free_Play ) ) | |
| 527 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 528 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 529 | PORT_DIPNAME( 0x0200, 0x0200, "? Coins To Continue ?" ) | |
| 530 | PORT_DIPSETTING( 0x0000, "1" ) | |
| 531 | PORT_DIPSETTING( 0x0200, "2" ) | |
| 532 | PORT_DIPNAME( 0x0c00, 0x0c00, "Gun Reloading" ) | |
| 533 | PORT_DIPSETTING( 0x0800, DEF_STR(No) ) | |
| 534 | PORT_DIPSETTING( 0x0400, DEF_STR(Yes) ) | |
| 535 | PORT_DIPSETTING( 0x0c00, "Factory Setting" ) | |
| 536 | // PORT_DIPSETTING( 0x0000, "unused?" ) | |
| 537 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Language ) ) | |
| 538 | PORT_DIPSETTING( 0x1000, DEF_STR( English ) ) | |
| 539 | PORT_DIPSETTING( 0x0000, DEF_STR( Japanese ) ) | |
| 540 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) ) | |
| 541 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 542 | PORT_DIPSETTING( 0x2000, DEF_STR( 4C_1C ) ) | |
| 543 | PORT_DIPSETTING( 0x4000, DEF_STR( 3C_1C ) ) | |
| 544 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 545 | PORT_DIPSETTING( 0xe000, DEF_STR( 1C_1C ) ) | |
| 546 | PORT_DIPSETTING( 0xc000, DEF_STR( 1C_2C ) ) | |
| 547 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_3C ) ) | |
| 548 | PORT_DIPSETTING( 0x8000, DEF_STR( 1C_4C ) ) | |
| 516 | PORT_START("DSW1") /* $80001a.b */ | |
| 517 | PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 518 | PORT_BIT( 0x00ff0000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 519 | PORT_DIPNAME( 0x01000000, 0x01000000, DEF_STR( Free_Play ) ) | |
| 520 | PORT_DIPSETTING( 0x01000000, DEF_STR( Off ) ) | |
| 521 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 522 | PORT_DIPNAME( 0x02000000, 0x02000000, "? Coins To Continue ?" ) | |
| 523 | PORT_DIPSETTING( 0x00000000, "1" ) | |
| 524 | PORT_DIPSETTING( 0x02000000, "2" ) | |
| 525 | PORT_DIPNAME( 0x0c000000, 0x0c000000, "Gun Reloading" ) | |
| 526 | PORT_DIPSETTING( 0x08000000, DEF_STR(No) ) | |
| 527 | PORT_DIPSETTING( 0x04000000, DEF_STR(Yes) ) | |
| 528 | PORT_DIPSETTING( 0x0c000000, "Factory Setting" ) | |
| 529 | // PORT_DIPSETTING( 0x00000000, "unused?" ) | |
| 530 | PORT_DIPNAME( 0x10000000, 0x10000000, DEF_STR( Language ) ) | |
| 531 | PORT_DIPSETTING( 0x10000000, DEF_STR( English ) ) | |
| 532 | PORT_DIPSETTING( 0x00000000, DEF_STR( Japanese ) ) | |
| 533 | PORT_DIPNAME( 0xe0000000, 0xe0000000, DEF_STR( Coinage ) ) | |
| 534 | PORT_DIPSETTING( 0x00000000, DEF_STR( 5C_1C ) ) | |
| 535 | PORT_DIPSETTING( 0x20000000, DEF_STR( 4C_1C ) ) | |
| 536 | PORT_DIPSETTING( 0x40000000, DEF_STR( 3C_1C ) ) | |
| 537 | PORT_DIPSETTING( 0x60000000, DEF_STR( 2C_1C ) ) | |
| 538 | PORT_DIPSETTING( 0xe0000000, DEF_STR( 1C_1C ) ) | |
| 539 | PORT_DIPSETTING( 0xc0000000, DEF_STR( 1C_2C ) ) | |
| 540 | PORT_DIPSETTING( 0xa0000000, DEF_STR( 1C_3C ) ) | |
| 541 | PORT_DIPSETTING( 0x80000000, DEF_STR( 1C_4C ) ) | |
| 549 | 542 | |
| 550 | PORT_START("DSW2") //$80001c.b | |
| 551 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 552 | PORT_DIPNAME( 0x0100, 0x0100, "Korean Language" ) | |
| 553 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 554 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 555 | PORT_DIPNAME( 0x0200, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 556 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 557 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 558 | PORT_DIPNAME( 0x1c00, 0x1c00, DEF_STR( Lives ) ) | |
| 559 | PORT_DIPSETTING( 0x1000, "2" ) | |
| 560 | PORT_DIPSETTING( 0x0c00, "3" ) | |
| 561 | PORT_DIPSETTING( 0x1c00, "4" ) | |
| 562 | PORT_DIPSETTING( 0x1800, "5" ) | |
| 563 | PORT_DIPSETTING( 0x1400, "6" ) | |
| 564 | // PORT_DIPSETTING( 0x0800, "4" ) | |
| 565 | // PORT_DIPSETTING( 0x0400, "4" ) | |
| 566 | // PORT_DIPSETTING( 0x0000, "4" ) | |
| 567 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) | |
| 568 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 569 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 570 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Difficulty ) ) | |
| 571 | PORT_DIPSETTING( 0x8000, DEF_STR( Easy ) ) | |
| 572 | PORT_DIPSETTING( 0xc000, DEF_STR( Normal ) ) | |
| 573 | PORT_DIPSETTING( 0x4000, DEF_STR( Harder ) ) | |
| 574 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 543 | PORT_START("DSW2") /* $80001c.b */ | |
| 544 | PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 545 | PORT_BIT( 0x00ff0000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 546 | PORT_DIPNAME( 0x01000000, 0x01000000, "Korean Language" ) | |
| 547 | PORT_DIPSETTING( 0x01000000, DEF_STR( Off ) ) | |
| 548 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 549 | PORT_DIPNAME( 0x02000000, 0x00000000, DEF_STR( Demo_Sounds ) ) | |
| 550 | PORT_DIPSETTING( 0x02000000, DEF_STR( Off ) ) | |
| 551 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 552 | PORT_DIPNAME( 0x1c000000, 0x1c000000, DEF_STR( Lives ) ) | |
| 553 | PORT_DIPSETTING( 0x10000000, "2" ) | |
| 554 | PORT_DIPSETTING( 0x0c000000, "3" ) | |
| 555 | PORT_DIPSETTING( 0x1c000000, "4" ) | |
| 556 | PORT_DIPSETTING( 0x18000000, "5" ) | |
| 557 | PORT_DIPSETTING( 0x14000000, "6" ) | |
| 558 | // PORT_DIPSETTING( 0x08000000, "4" ) | |
| 559 | // PORT_DIPSETTING( 0x04000000, "4" ) | |
| 560 | // PORT_DIPSETTING( 0x00000000, "4" ) | |
| 561 | PORT_DIPNAME( 0x20000000, 0x20000000, DEF_STR( Unknown ) ) | |
| 562 | PORT_DIPSETTING( 0x20000000, DEF_STR( Off ) ) | |
| 563 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 564 | PORT_DIPNAME( 0xc0000000, 0xc0000000, DEF_STR( Difficulty ) ) | |
| 565 | PORT_DIPSETTING( 0x80000000, DEF_STR( Easy ) ) | |
| 566 | PORT_DIPSETTING( 0xc0000000, DEF_STR( Normal ) ) | |
| 567 | PORT_DIPSETTING( 0x40000000, DEF_STR( Harder ) ) | |
| 568 | PORT_DIPSETTING( 0x00000000, DEF_STR( Hardest ) ) | |
| 575 | 569 | |
| 576 | PORT_START("Y0") //$800140.b | |
| 570 | PORT_START("BUTTONS") /* $80015c.b */ | |
| 571 | PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 572 | PORT_BIT( 0x00ff0000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 573 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 574 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 575 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 576 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 577 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 578 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 579 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 580 | PORT_BIT( 0x80000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) // EEPROM | |
| 581 | ||
| 582 | PORT_START("Y0") /* $800140.b */ | |
| 577 | 583 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2) |
| 578 | 584 | |
| 579 | PORT_START("X0") / | |
| 585 | PORT_START("X0") /* $800144.b */ | |
| 580 | 586 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(2) |
| 581 | 587 | |
| 582 | PORT_START("Y1") / | |
| 588 | PORT_START("Y1") /* $800148.b */ | |
| 583 | 589 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(1) |
| 584 | 590 | |
| 585 | PORT_START("X1") / | |
| 591 | PORT_START("X1") /* $80014c.b */ | |
| 586 | 592 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(35) PORT_KEYDELTA(15) PORT_PLAYER(1) |
| 587 | ||
| 588 | PORT_START("IN7") //$80015c.b | |
| 589 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 590 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 591 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 592 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 593 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 594 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 595 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 596 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 597 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL ) // EEPROM | |
| 598 | 593 | INPUT_PORTS_END |
| 599 | 594 | |
| 600 | 595 | |
| r3115 | r3116 | |
| 1135 | 1130 | GAME( 1998, zeropnt, 0, zeropnt, zeropnt, 0, ROT0, "Unico", "Zero Point (set 1)", 0 ) |
| 1136 | 1131 | GAME( 1998, zeropnta, zeropnt, zeropnt, zeropnt, 0, ROT0, "Unico", "Zero Point (set 2)", 0 ) |
| 1137 | 1132 | GAME( 1999, zeropnt2, 0, zeropnt2, zeropnt2, 0, ROT0, "Unico", "Zero Point 2", 0 ) |
| 1138 |
| r3115 | r3116 | |
|---|---|---|
| 579 | 579 | PORT_INCLUDE( g80v_generic ) |
| 580 | 580 | |
| 581 | 581 | PORT_MODIFY("D7D6") |
| 582 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(elim4_joint_coin_r, | |
| 582 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(elim4_joint_coin_r, NULL) /* combination of all four coin inputs */ | |
| 583 | 583 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 584 | 584 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 585 | 585 |
| r3115 | r3116 | |
|---|---|---|
| 1 | 1 | /****************************************************************************** |
| 2 | 2 | |
| 3 | GAME-A-TRON gaming hardware | |
| 4 | --------------------------- | |
| 3 | GAME-A-TRON gambling hardware | |
| 4 | ----------------------------- | |
| 5 | 5 | |
| 6 | 6 | Driver by Roberto Fresca. |
| 7 | 7 | |
| r3115 | r3116 | |
| 12 | 12 | * Pull Tabs, 1983, Game-A-Tron. |
| 13 | 13 | |
| 14 | 14 | |
| 15 | The names of both games are not confirmed. We are calling them "Poker 4-1" | |
| 16 | and "Pull Tabs" till we can find some evidence of the real names. | |
| 17 | ||
| 18 | ||
| 19 | 15 | ******************************************************************************* |
| 20 | 16 | |
| 21 | 17 | |
| r3115 | r3116 | |
| 73 | 69 | U30 VRAM HM6116LP-3 (2Kx8) |
| 74 | 70 | |
| 75 | 71 | 1x 16MHz Crystal |
| 76 | ||
| 77 | 72 | 1x Duracell PX-2 I, 4.5V battery. |
| 78 | 73 | |
| 79 | 74 | |
| 75 | Identified the unknown writes as a init sequence for 1x PSG sound device. | |
| 76 | The type/class is unknown due to almost all devices are plastic covered. | |
| 77 | ||
| 78 | ||
| 80 | 79 | ******************************************************************************* |
| 81 | 80 | |
| 82 | 81 | |
| r3115 | r3116 | |
| 88 | 87 | The first time the machine is turned on, will show the legend "DATA ERROR". |
| 89 | 88 | You must to RESET (F3) the machine to initialize the NVRAM properly. |
| 90 | 89 | |
| 90 | NOTE: These games are intended to be for amusement only. | |
| 91 | There is not such a payout system, so...Dont ask about it! | |
| 91 | 92 | |
| 93 | ||
| 92 | 94 | * Poker 4-1: |
| 93 | 95 | |
| 94 | 96 | Pressing SERVICE 1 (key 9) you enter the Test/Setting Mode. You can test |
| r3115 | r3116 | |
| 143 | 145 | |
| 144 | 146 | ******************************************************************************* |
| 145 | 147 | |
| 148 | ||
| 146 | 149 | -------------------- |
| 147 | 150 | *** Memory Map *** |
| 148 | 151 | -------------------- |
| r3115 | r3116 | |
| 150 | 153 | 0x0000 - 0x5FFF ; ROM space. |
| 151 | 154 | 0x6000 - 0x67FF ; Video RAM (only the first 0x300 bytes are used). |
| 152 | 155 | 0x8000 - 0x87FF ; Main RAM. |
| 153 | 0xA000 - 0xA000 ; Unknown Writes. | |
| 154 | 0xE000 - 0xE000 ; Unknown Writes (watchdog?). | |
| 156 | 0xA000 - 0xA000 ; Sound (PSG). | |
| 157 | 0xE000 - 0xE000 ; Output Port 0 (lamps). | |
| 155 | 158 | |
| 156 | 159 | |
| 160 | * Z80 I/O ports * | |
| 161 | ||
| 162 | 0x00 - 0x03 ; PPI 8255 (ports A & B as input, port C as output). | |
| 163 | ||
| 164 | ||
| 165 | * 8255 I/O ports * | |
| 166 | ||
| 167 | Port A (input) ; Input Port 0 (player buttons). | |
| 168 | Port B (input) ; Input Port 1 (player & service buttons). | |
| 169 | Port C (output) ; Output Port 1 (lamps & counters). | |
| 170 | ||
| 171 | ||
| 157 | 172 | ******************************************************************************* |
| 158 | 173 | |
| 159 | 174 | |
| 160 | 175 | DRIVER UPDATES: |
| 161 | 176 | |
| 162 | 177 | |
| 178 | [2008-08-21] | |
| 179 | ||
| 180 | After an exhaustive analysis to the unknown writes, finally figured out the missing sound device. | |
| 181 | ||
| 182 | - Added sound support to "Poker 4-1" and "Pull Tabs". | |
| 183 | - Figured out the output ports. Documented each bit accessed. | |
| 184 | - Added button lamps support. Created layouts for both games. | |
| 185 | - Switched the 8255 port C to be used as output port. | |
| 186 | - Adjusted the coin pulse timing. | |
| 187 | - Updated technical notes. | |
| 188 | - Splitted the driver to driver + video. | |
| 189 | - Final clean-up. | |
| 190 | ||
| 191 | ||
| 163 | 192 | [2008-05-31] |
| 164 | 193 | |
| 165 | - Renamed the games to "Poker 4-1" and "Pull Tabs" | |
| 194 | - Renamed the games to "Poker 4-1" and "Pull Tabs". | |
| 166 | 195 | as shown in the ROMs stickers. |
| 167 | 196 | - Renamed the ROMs in each set according to their own stickers. |
| 168 | 197 | - Moved the driver into gametron.a group. |
| r3115 | r3116 | |
| 170 | 199 | Poker41 and pulltabs don't make use of it, but is present in the Test/Setting Mode. |
| 171 | 200 | - Updated technical notes. |
| 172 | 201 | |
| 202 | ||
| 173 | 203 | [2008-05-10] |
| 174 | 204 | |
| 175 | 205 | - Initial release. |
| r3115 | r3116 | |
| 183 | 213 | |
| 184 | 214 | TODO: |
| 185 | 215 | |
| 186 | - Outputs. | |
| 187 | - Sound. | |
| 216 | - Nothing... :) | |
| 188 | 217 | |
| 189 | 218 | |
| 190 | 219 | *******************************************************************************/ |
| r3115 | r3116 | |
| 193 | 222 | #define MASTER_CLOCK XTAL_16MHz |
| 194 | 223 | |
| 195 | 224 | #include "driver.h" |
| 225 | #include "sound/sn76496.h" | |
| 196 | 226 | #include "machine/8255ppi.h" |
| 197 | 227 | |
| 228 | #include "poker41.lh" | |
| 229 | #include "pulltabs.lh" | |
| 198 | 230 | |
| 199 | /************************* | |
| 200 | * Video Hardware * | |
| 201 | *************************/ | |
| 231 | /* from video */ | |
| 232 | WRITE8_HANDLER( gat_videoram_w ); | |
| 233 | PALETTE_INIT( gat ); | |
| 234 | VIDEO_START( gat ); | |
| 235 | VIDEO_UPDATE( gat ); | |
| 202 | 236 | |
| 203 | static tilemap *bg_tilemap; | |
| 204 | 237 | |
| 238 | /**************************** | |
| 239 | * Read/Write Handlers * | |
| 240 | ****************************/ | |
| 205 | 241 | |
| 206 | static WRITE8_HANDLER( | |
| 242 | static WRITE8_HANDLER( output_p | |
| 207 | 243 | { |
| 208 | videoram[offset] = data; | |
| 209 | tilemap_mark_tile_dirty(bg_tilemap, offset); | |
| 210 | } | |
| 244 | /* --------------- | |
| 245 | Pull Tabs lamps | |
| 246 | --------------- | |
| 211 | 247 | |
| 248 | 0x00 - Default State. | |
| 249 | 0x01 - Hold3. | |
| 250 | 0x04 - Hold5. | |
| 251 | 0x08 - Ante/Bet. | |
| 212 | 252 | |
| 213 | static TILE_GET_INFO( get_bg_tile_info ) | |
| 214 | { | |
| 215 | /* - bits - | |
| 253 | - bits - | |
| 216 | 254 | 7654 3210 |
| 217 | xxxx xxxx tiles code. | |
| 255 | --------- | |
| 256 | .... ...x ---> Hold3. | |
| 257 | .... .x.. ---> Hold5. | |
| 258 | .... x... ---> Ante/Bet. | |
| 218 | 259 | |
| 219 | only one color code | |
| 220 | */ | |
| 260 | Tab1 = Hold1 | |
| 261 | Tab2 = Hold3 | |
| 262 | Tab3 = Hold5 | |
| 221 | 263 | |
| 222 | int code = videoram[tile_index]; | |
| 223 | 264 | |
| 224 | SET_TILE_INFO(0, code, 0, 0); | |
| 225 | } | |
| 265 | --------------- | |
| 266 | Poker 4-1 lamps | |
| 267 | --------------- | |
| 226 | 268 | |
| 269 | 0x00 - Default State. | |
| 270 | 0x01 - Hold3. | |
| 271 | 0x02 - Hold4. | |
| 272 | 0x04 - Hold5/DDown. | |
| 273 | 0x08 - Ante/Bet. | |
| 274 | 0x10 - Start. | |
| 275 | 0x20 - Deal/Hit. | |
| 276 | 0x40 - Stand/FreeBonusDraw. | |
| 227 | 277 | |
| 228 | static VIDEO_START( gat ) | |
| 229 | { | |
| 230 | bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_cols, 8, 16, 48, 16); | |
| 278 | - bits - | |
| 279 | 7654 3210 | |
| 280 | --------- | |
| 281 | .... ...x --> Hold3. | |
| 282 | .... ..x. --> Hold4. | |
| 283 | .... .x.. --> Hold5/DDown. | |
| 284 | .... x... --> Ante/Bet. | |
| 285 | ...x .... --> Start. | |
| 286 | ..x. .... --> Deal/Hit. | |
| 287 | .x.. .... --> Stand/FreeBonusDraw. | |
| 288 | ||
| 289 | */ | |
| 290 | output_set_lamp_value(0, (data) & 1); /* hold3 lamp */ | |
| 291 | output_set_lamp_value(1, (data >> 1) & 1); /* hold4 lamp */ | |
| 292 | output_set_lamp_value(2, (data >> 2) & 1); /* hold5 lamp */ | |
| 293 | output_set_lamp_value(3, (data >> 3) & 1); /* ante/bet lamp */ | |
| 294 | output_set_lamp_value(4, (data >> 4) & 1); /* start lamp */ | |
| 295 | output_set_lamp_value(5, (data >> 5) & 1); /* deal/hit lamp */ | |
| 296 | output_set_lamp_value(6, (data >> 6) & 1); /* stand/fbdraw lamp */ | |
| 231 | 297 | } |
| 232 | 298 | |
| 233 | 299 | |
| 234 | static | |
| 300 | static WRITE8_H | |
| 235 | 301 | { |
| 236 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 237 | return 0; | |
| 238 | } | |
| 302 | /* ---------------- | |
| 303 | Lamps & Counters | |
| 304 | ---------------- | |
| 239 | 305 | |
| 306 | - bits - | |
| 307 | 7654 3210 | |
| 308 | --------- | |
| 309 | .... ...x --> Hold2 lamp. | |
| 310 | .... ..x. --> Hold1 lamp. | |
| 311 | .x.. .... --> Coin counter (inverted). | |
| 312 | x... .... --> Inverted pulse. Related to counters. | |
| 240 | 313 | |
| 241 | static PALETTE_INIT( gat ) | |
| 242 | { | |
| 243 | ||
| 314 | */ | |
| 315 | output_set_lamp_value(7, (data) & 1); /* hold2 lamp */ | |
| 316 | output_set_lamp_value(8, (data >> 1) & 1); /* hold1 lamp */ | |
| 244 | 317 | } |
| 245 | 318 | |
| 246 | 319 | |
| r3115 | r3116 | |
| 250 | 323 | |
| 251 | 324 | static const ppi8255_interface ppi8255_intf = |
| 252 | 325 | { |
| 253 | input_port_0_r, /* Port A read */ | |
| 254 | input_port_1_r, /* Port B read */ | |
| 255 | input_port_2_r, /* Port C read */ | |
| 256 | NULL, /* Port A write */ | |
| 257 | NULL, /* Port B write */ | |
| 258 | NULL, /* Port C write */ | |
| 326 | input_port_0_r, /* Port A read */ | |
| 327 | input_port_1_r, /* Port B read */ | |
| 328 | NULL, /* Port C read */ | |
| 329 | NULL, /* Port A write */ | |
| 330 | NULL, /* Port B write */ | |
| 331 | output_port_1_w, /* Port C write */ | |
| 259 | 332 | }; |
| 260 | 333 | |
| 261 | 334 | |
| r3115 | r3116 | |
| 267 | 340 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 268 | 341 | AM_RANGE(0x6000, 0x63ff) AM_RAM_WRITE(gat_videoram_w) AM_BASE(&videoram) |
| 269 | 342 | AM_RANGE(0x8000, 0x87ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) /* battery backed RAM */ |
| 270 | AM_RANGE(0xa000, 0xa000) AM_NOP /* unknown writes */ | |
| 271 | AM_RANGE(0xe000, 0xe000) AM_NOP /* watchdog? */ | |
| 343 | AM_RANGE(0xa000, 0xa000) AM_WRITE(sn76496_0_w) /* PSG */ | |
| 344 | AM_RANGE(0xe000, 0xe000) AM_WRITE(output_port_0_w) /* lamps */ | |
| 272 | 345 | ADDRESS_MAP_END |
| 273 | 346 | |
| 274 | 347 | static ADDRESS_MAP_START( gat_portmap, ADDRESS_SPACE_IO, 8 ) |
| r3115 | r3116 | |
| 276 | 349 | AM_RANGE(0x00, 0x03) AM_DEVREADWRITE(PPI8255, "ppi8255", ppi8255_r, ppi8255_w) |
| 277 | 350 | ADDRESS_MAP_END |
| 278 | 351 | |
| 279 | /* I/O byte R/W | |
| 280 | 352 | |
| 281 | 0x0200 ;R ???! | |
| 282 | ||
| 283 | 0x9200 ;R | |
| 284 | 0x9201 ;R | |
| 285 | 0x9203 ;W (0x92) | |
| 286 | ||
| 287 | 0xC002 ;W (0xC0) | |
| 288 | 0xC202 ;W (0xC2) | |
| 289 | ||
| 290 | 0xFF01 ;R | |
| 291 | ||
| 292 | ----------------- | |
| 293 | ||
| 294 | unknown writes: | |
| 295 | ||
| 296 | 0xA000 ;W (3 consecutive writes: 8x - Cx - 93) | |
| 297 | 0xE000 ;W (0x04) | |
| 298 | ||
| 299 | */ | |
| 300 | ||
| 301 | 353 | /************************* |
| 302 | 354 | * Input Ports * |
| 303 | 355 | *************************/ |
| r3115 | r3116 | |
| 305 | 357 | static INPUT_PORTS_START( poker41 ) |
| 306 | 358 | PORT_START("IN0") |
| 307 | 359 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Discard 4") PORT_CODE(KEYCODE_V) |
| 308 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Bet/Ante") PORT_CODE(KEYCODE_N) | |
| 309 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Deal/Hit") PORT_CODE(KEYCODE_2) | |
| 310 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 311 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Stand") PORT_CODE(KEYCODE_A) | |
| 360 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Bet / Ante") PORT_CODE(KEYCODE_N) | |
| 361 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Deal / Hit") PORT_CODE(KEYCODE_2) | |
| 362 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) /* Coin A */ | |
| 363 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Free Bonus Draw / Stand") PORT_CODE(KEYCODE_3) | |
| 312 | 364 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Start") PORT_CODE(KEYCODE_1) |
| 313 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Discard 5") PORT_CODE(KEYCODE_B) | |
| 365 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Discard 5 / High / Double Down") PORT_CODE(KEYCODE_B) | |
| 314 | 366 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Discard 3") PORT_CODE(KEYCODE_C) |
| 315 | 367 | |
| 316 | 368 | PORT_START("IN1") |
| r3115 | r3116 | |
| 321 | 373 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 322 | 374 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Service 1 (Test/Settings)") PORT_CODE(KEYCODE_9) |
| 323 | 375 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 324 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Discard 1") PORT_CODE(KEYCODE_Z) | |
| 325 | ||
| 326 | PORT_START("IN2") /* disabled */ | |
| 327 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 328 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 329 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 330 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 331 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 332 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 333 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 334 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 376 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Discard 1 / Low") PORT_CODE(KEYCODE_Z) | |
| 335 | 377 | INPUT_PORTS_END |
| 336 | 378 | |
| 337 | 379 | static INPUT_PORTS_START( pulltabs ) |
| r3115 | r3116 | |
| 339 | 381 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 340 | 382 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Ante") PORT_CODE(KEYCODE_1) |
| 341 | 383 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 342 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 384 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) /* Coin A */ | |
| 343 | 385 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 344 | 386 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 345 | 387 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Big Bar Ticket") PORT_CODE(KEYCODE_C) |
| r3115 | r3116 | |
| 349 | 391 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 350 | 392 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 351 | 393 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Service 2 (Test Mode Out / Coin Stuck)") PORT_CODE(KEYCODE_0) |
| 352 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 394 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 353 | 395 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 354 | 396 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Service 1 (Test/Settings)") PORT_CODE(KEYCODE_9) |
| 355 | 397 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 356 | 398 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Super Star Ticket") PORT_CODE(KEYCODE_Z) |
| 357 | ||
| 358 | PORT_START("IN2") /* disabled */ | |
| 359 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 360 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 361 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 362 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 363 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 364 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 365 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 366 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 367 | 399 | INPUT_PORTS_END |
| 368 | 400 | |
| 369 | 401 | |
| r3115 | r3116 | |
| 402 | 434 | static MACHINE_DRIVER_START( gat ) |
| 403 | 435 | |
| 404 | 436 | /* basic machine hardware */ |
| 405 | MDRV_CPU_ADD("main", Z80, MASTER_CLOCK/24) /* guess */ | |
| 437 | MDRV_CPU_ADD("main", Z80, MASTER_CLOCK/24) /* 666.66 kHz, guess */ | |
| 406 | 438 | MDRV_CPU_PROGRAM_MAP(gat_map, 0) |
| 407 | 439 | MDRV_CPU_IO_MAP(gat_portmap,0) |
| 408 | 440 | MDRV_CPU_VBLANK_INT("main", nmi_line_pulse) |
| r3115 | r3116 | |
| 421 | 453 | MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 0*8, 16*16-1) |
| 422 | 454 | |
| 423 | 455 | MDRV_GFXDECODE(gat) |
| 424 | ||
| 425 | 456 | MDRV_PALETTE_INIT(gat) |
| 426 | 457 | MDRV_PALETTE_LENGTH(8) |
| 427 | ||
| 428 | 458 | MDRV_VIDEO_START(gat) |
| 429 | 459 | MDRV_VIDEO_UPDATE(gat) |
| 430 | 460 | |
| 461 | /* sound hardware */ | |
| 462 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 463 | MDRV_SOUND_ADD("sn1", SN76496, MASTER_CLOCK/8 ) /* 2 MHz, guess */ | |
| 464 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.00) | |
| 431 | 465 | MACHINE_DRIVER_END |
| 432 | 466 | |
| 433 | 467 | |
| r3115 | r3116 | |
| 461 | 495 | * Game Drivers * |
| 462 | 496 | *************************/ |
| 463 | 497 | |
| 464 | /* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS */ | |
| 465 | GAME( 1983, poker41, 0, gat, poker41, 0, ROT0, "Game-A-Tron", "Poker 4-1", GAME_NO_SOUND ) | |
| 466 | GAME( 1983, pulltabs, 0, gat, pulltabs, 0, ROT0, "Game-A-Tron", "Pull Tabs", GAME_NO_SOUND ) | |
| 498 | /* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS LAYOUT */ | |
| 499 | GAMEL( 1983, poker41, 0, gat, poker41, 0, ROT0, "Game-A-Tron", "Poker 4-1", 0, layout_poker41 ) | |
| 500 | GAMEL( 1983, pulltabs, 0, gat, pulltabs, 0, ROT0, "Game-A-Tron", "Pull Tabs", 0, layout_pulltabs ) |
| r3115 | r3116 | |
|---|---|---|
| 115 | 115 | switch (offset) |
| 116 | 116 | { |
| 117 | 117 | case 0x00: |
| 118 | return (input_port_read(machine, "SYSTEM") << 16) | input_port_read(machine, "INPUT") | | |
| 119 | (eeprom_read_bit() << 7); | |
| 118 | return input_port_read(machine, "INPUTS"); | |
| 120 | 119 | |
| 121 | 120 | case 0x01: |
| 122 | 121 | return coin_word<<16; |
| r3115 | r3116 | |
| 273 | 272 | /***********************************************************/ |
| 274 | 273 | |
| 275 | 274 | static INPUT_PORTS_START( superchs ) |
| 276 | PORT_START("SYSTEM") /* IN0 */ | |
| 277 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 278 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 279 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 280 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(1) /* Freeze input */ | |
| 281 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_LOW ) | |
| 282 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 283 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 284 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 285 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 286 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 287 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 288 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 289 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 290 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 291 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 292 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 275 | PORT_START("INPUTS") | |
| 276 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 277 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 278 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 279 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 280 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 281 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 282 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 283 | PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* reserved for EEROM */ | |
| 284 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) /* seat center (cockpit only) */ | |
| 285 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 286 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 287 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 288 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Nitro") | |
| 289 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Gear Shift") | |
| 290 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake") | |
| 291 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 293 | 292 | |
| 294 | PORT_START("INPUT") /* IN1 */ | |
| 295 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 296 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 297 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 298 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 299 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 300 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 301 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 302 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* reserved for EEROM */ | |
| 303 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) /* seat center (cockpit only) */ | |
| 304 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 305 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 306 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 307 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Nitro") | |
| 308 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Gear Shift") | |
| 309 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake") | |
| 310 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 293 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 294 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 295 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 296 | PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(1) /* Freeze input */ | |
| 297 | PORT_SERVICE_NO_TOGGLE( 0x00100000, IP_ACTIVE_LOW ) | |
| 298 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 299 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 300 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 301 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 302 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 303 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 304 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 305 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 306 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 307 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 308 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 311 | 309 | |
| 312 | PORT_START("WHEEL") /* | |
| 310 | PORT_START("WHEEL") /* | |
| 313 | 311 | PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(1) |
| 314 | 312 | |
| 315 | PORT_START("ACCEL") /* | |
| 313 | PORT_START("ACCEL") /* | |
| 316 | 314 | PORT_BIT( 0xff, 0x00, IPT_AD_STICK_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 317 | 315 | |
| 318 | PORT_START("SOUND") /* | |
| 316 | PORT_START("SOUND") /* | |
| 319 | 317 | PORT_BIT( 0xff, 0x00, IPT_AD_STICK_X ) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_REVERSE PORT_PLAYER(2) |
| 320 | 318 | |
| 321 | PORT_START("UNKNOWN") /* | |
| 319 | PORT_START("UNKNOWN") /* | |
| 322 | 320 | PORT_BIT( 0xff, 0x00, IPT_AD_STICK_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_PLAYER(2) |
| 323 | 321 | |
| 324 | PORT_START("FAKE") /* | |
| 322 | PORT_START("FAKE") /* | |
| 325 | 323 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 326 | 324 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 327 | 325 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
|---|---|---|
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "machine/konami1.h" |
| 11 | 11 | #include "cpu/m6809/m6809.h" |
| 12 | #include "cpu/ | |
| 12 | #include "cpu/mcs48 | |
| 13 | 13 | #include "cpu/z80/z80.h" |
| 14 | 14 | #include "sound/ay8910.h" |
| 15 | 15 | #include "sound/dac.h" |
| r3115 | r3116 | |
| 156 | 156 | ADDRESS_MAP_END |
| 157 | 157 | |
| 158 | 158 | static ADDRESS_MAP_START( i8039_writeport, ADDRESS_SPACE_IO, 8 ) |
| 159 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(dac_0_data_w) | |
| 160 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(i8039_irqen_and_status_w) | |
| 159 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(dac_0_data_w) | |
| 160 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(i8039_irqen_and_status_w) | |
| 161 | 161 | ADDRESS_MAP_END |
| 162 | 162 | |
| 163 | 163 | static INPUT_PORTS_START( megazone ) |
| r3115 | r3116 | |
|---|---|---|
| 127 | 127 | AM_RANGE(0x200000, 0x200fff) AM_READ(SMH_RAM) |
| 128 | 128 | AM_RANGE(0x210000, 0x213fff) AM_READ(SMH_RAM) |
| 129 | 129 | AM_RANGE(0x220000, 0x2203ff) AM_READ(SMH_RAM) |
| 130 | AM_RANGE(0x230100, 0x230101) AM_READ(input_port_0_word_r) | |
| 131 | AM_RANGE(0x230200, 0x230201) AM_READ(input_port_1_word_r) | |
| 130 | AM_RANGE(0x230100, 0x230101) AM_READ_PORT("DSW") | |
| 131 | AM_RANGE(0x230200, 0x230201) AM_READ_PORT("INPUTS") | |
| 132 | 132 | ADDRESS_MAP_END |
| 133 | 133 | |
| 134 | 134 | static ADDRESS_MAP_START( pass_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r3115 | r3116 | |
| 170 | 170 | |
| 171 | 171 | /* todo : work out function of unknown but used dsw */ |
| 172 | 172 | static INPUT_PORTS_START( pass ) |
| 173 | PORT_START("DSW") | |
| 173 | PORT_START("DSW") | |
| 174 | 174 | PORT_DIPNAME( 0x0001, 0x0001, "Unknown SW 0-0" ) // USED ! Check code at 0x0046ea |
| 175 | 175 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 176 | 176 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
|---|---|---|
| 115 | 115 | AM_RANGE(0x06f800, 0x06ffff) AM_RAM_WRITE(toki_foreground_videoram16_w) AM_BASE(&videoram16) |
| 116 | 116 | AM_RANGE(0x080000, 0x08000d) AM_READWRITE(seibu_main_word_r, seibu_main_word_w) |
| 117 | 117 | AM_RANGE(0x0a0000, 0x0a005f) AM_WRITE(toki_control_w) AM_BASE(&toki_scrollram16) |
| 118 | AM_RANGE(0x0c0000, 0x0c0001) AM_READ(input_port_1_word_r) | |
| 119 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ(input_port_2_word_r) | |
| 120 | AM_RANGE(0x0c0004, 0x0c0005) AM_READ(input_port_3_word_r) | |
| 118 | AM_RANGE(0x0c0000, 0x0c0001) AM_READ_PORT("DSW") | |
| 119 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ_PORT("INPUTS") | |
| 120 | AM_RANGE(0x0c0004, 0x0c0005) AM_READ_PORT("SYSTEM") | |
| 121 | 121 | ADDRESS_MAP_END |
| 122 | 122 | |
| 123 | 123 | /* In the bootleg, sound and sprites are remapped to 0x70000 */ |
| r3115 | r3116 | |
| 135 | 135 | AM_RANGE(0x072000, 0x072001) AM_READ(watchdog_reset16_r) /* probably */ |
| 136 | 136 | AM_RANGE(0x075000, 0x075001) AM_WRITE(tokib_soundcommand16_w) |
| 137 | 137 | AM_RANGE(0x075004, 0x07500b) AM_WRITE(SMH_RAM) AM_BASE(&toki_scrollram16) |
| 138 | AM_RANGE(0x0c0000, 0x0c0001) AM_READ(input_port_0_word_r) | |
| 139 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ(input_port_1_word_r) | |
| 140 | AM_RANGE(0x0c0004, 0x0c0005) AM_READ(input_port_2_word_r) | |
| 138 | AM_RANGE(0x0c0000, 0x0c0001) AM_READ_PORT("DSW") | |
| 139 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ_PORT("INPUTS") | |
| 140 | AM_RANGE(0x0c0004, 0x0c0005) AM_READ_PORT("SYSTEM") | |
| 141 | 141 | AM_RANGE(0x0c000e, 0x0c000f) AM_READ(pip16_r) /* sound related, if we return 0 the code writes */ |
| 142 | 142 | /* the sound command quickly followed by 0 and the */ |
| 143 | 143 | /* sound CPU often misses the command. */ |
| r3115 | r3116 | |
| 164 | 164 | static INPUT_PORTS_START( toki ) |
| 165 | 165 | SEIBU_COIN_INPUTS /* coin inputs read through sound cpu */ |
| 166 | 166 | |
| 167 | PORT_START("DSW | |
| 167 | PORT_START("DSW | |
| 168 | 168 | PORT_DIPNAME( 0x001f, 0x001f, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2,3,4,5") |
| 169 | 169 | PORT_DIPSETTING( 0x0015, DEF_STR( 6C_1C ) ) |
| 170 | 170 | PORT_DIPSETTING( 0x0017, DEF_STR( 5C_1C ) ) |
| r3115 | r3116 | |
| 217 | 217 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 218 | 218 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) |
| 219 | 219 | |
| 220 | PORT_START("IN | |
| 220 | PORT_START("INPUTS") | |
| 221 | 221 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 222 | 222 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 223 | 223 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r3115 | r3116 | |
| 235 | 235 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 236 | 236 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 237 | 237 | |
| 238 | PORT_START(" | |
| 238 | PORT_START("SYSTEM") | |
| 239 | 239 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 240 | 240 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 241 | 241 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 247 | 247 | INPUT_PORTS_END |
| 248 | 248 | |
| 249 | 249 | static INPUT_PORTS_START( tokib ) |
| 250 | PORT_START("DSW | |
| 250 | PORT_START("DSW | |
| 251 | 251 | PORT_DIPNAME( 0x001f, 0x001f, DEF_STR( Coinage ) ) |
| 252 | 252 | PORT_DIPSETTING( 0x0015, DEF_STR( 6C_1C ) ) |
| 253 | 253 | PORT_DIPSETTING( 0x0017, DEF_STR( 5C_1C ) ) |
| r3115 | r3116 | |
| 300 | 300 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 301 | 301 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) |
| 302 | 302 | |
| 303 | PORT_START("IN | |
| 303 | PORT_START("INPUTS") | |
| 304 | 304 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 305 | 305 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 306 | 306 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r3115 | r3116 | |
| 318 | 318 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 319 | 319 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 320 | 320 | |
| 321 | PORT_START(" | |
| 321 | PORT_START("SYSTEM") | |
| 322 | 322 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 323 | 323 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 324 | 324 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
|---|---|---|
| 81 | 81 | #include "tutankhm.h" |
| 82 | 82 | #include "machine/konami1.h" |
| 83 | 83 | #include "cpu/m6809/m6809.h" |
| 84 | #include "cpu/ | |
| 84 | #include "cpu/mcs48 | |
| 85 | 85 | #include "cpu/z80/z80.h" |
| 86 | 86 | #include "sound/ay8910.h" |
| 87 | 87 | #include "sound/dac.h" |
| r3115 | r3116 | |
| 220 | 220 | |
| 221 | 221 | static ADDRESS_MAP_START( mcu_io_map, ADDRESS_SPACE_IO, 8 ) |
| 222 | 222 | AM_RANGE(0x00, 0xff) AM_READ(soundlatch2_r) |
| 223 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(dac_0_data_w) | |
| 224 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(i8039_irqen_and_status_w) | |
| 223 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(dac_0_data_w) | |
| 224 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(i8039_irqen_and_status_w) | |
| 225 | 225 | ADDRESS_MAP_END |
| 226 | 226 | |
| 227 | 227 |
| r3115 | r3116 | |
|---|---|---|
| 139 | 139 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 140 | 140 | AM_RANGE(0xBE, 0xBE) AM_READ(TMS9928A_vram_r) |
| 141 | 141 | AM_RANGE(0xBF, 0xBF) AM_READ(TMS9928A_register_r) |
| 142 | AM_RANGE(0xDC, 0xDC) AM_READ(input_port_0_r) | |
| 143 | AM_RANGE(0xDD, 0xDD) AM_READ(input_port_1_r) | |
| 144 | AM_RANGE(0xDE, 0xDE) AM_READ(input_port_2_r) | |
| 142 | AM_RANGE(0xDC, 0xDC) AM_READ_PORT("P1") | |
| 143 | AM_RANGE(0xDD, 0xDD) AM_READ_PORT("P2") | |
| 144 | AM_RANGE(0xDE, 0xDE) AM_READ_PORT("DSW") | |
| 145 | 145 | ADDRESS_MAP_END |
| 146 | 146 | |
| 147 | 147 | static ADDRESS_MAP_START( writeport, ADDRESS_SPACE_IO, 8 ) |
| r3115 | r3116 | |
| 159 | 159 | *************************************/ |
| 160 | 160 | |
| 161 | 161 | static INPUT_PORTS_START( sg1000 ) |
| 162 | PORT_START(" | |
| 162 | PORT_START("P1 | |
| 163 | 163 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 164 | 164 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| 165 | 165 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r3115 | r3116 | |
| 169 | 169 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 170 | 170 | PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 171 | 171 | |
| 172 | PORT_START(" | |
| 172 | PORT_START("P2 | |
| 173 | 173 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 174 | 174 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 175 | 175 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 203 | 203 | static INPUT_PORTS_START( chwrestl ) |
| 204 | 204 | PORT_INCLUDE( sg1000 ) |
| 205 | 205 | |
| 206 | PORT_MODIFY(" | |
| 206 | PORT_MODIFY("P1 | |
| 207 | 207 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 208 | 208 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 209 | 209 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 211 | 211 | PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 212 | 212 | PORT_BIT ( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 213 | 213 | |
| 214 | PORT_MODIFY(" | |
| 214 | PORT_MODIFY("P2 | |
| 215 | 215 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 216 | 216 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| 217 | 217 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| r3115 | r3116 | |
|---|---|---|
| 177 | 177 | AM_RANGE(0x0d004, 0x0d004) AM_WRITE(t5182_sharedram_semaphore_main_acquire_w) |
| 178 | 178 | AM_RANGE(0x0d006, 0x0d006) AM_WRITE(t5182_sharedram_semaphore_main_release_w) |
| 179 | 179 | AM_RANGE(0x0d200, 0x0d2ff) AM_READWRITE(t5182shared_r, t5182shared_w) |
| 180 | AM_RANGE(0x0d400, 0x0d400) AM_READ(input_port_0_r) | |
| 181 | AM_RANGE(0x0d402, 0x0d402) AM_READ(input_port_1_r) | |
| 182 | AM_RANGE(0x0d404, 0x0d404) AM_READ(input_port_2_r) | |
| 183 | AM_RANGE(0x0d406, 0x0d406) AM_READ(input_port_3_r) | |
| 184 | AM_RANGE(0x0d407, 0x0d407) AM_READ(input_port_4_r) | |
| 180 | AM_RANGE(0x0d400, 0x0d400) AM_READ_PORT("P1") | |
| 181 | AM_RANGE(0x0d402, 0x0d402) AM_READ_PORT("P2") | |
| 182 | AM_RANGE(0x0d404, 0x0d404) AM_READ_PORT("START") | |
| 183 | AM_RANGE(0x0d406, 0x0d406) AM_READ_PORT("DSW1") | |
| 184 | AM_RANGE(0x0d407, 0x0d407) AM_READ_PORT("DSW2") | |
| 185 | 185 | AM_RANGE(0x0d800, 0x0d81f) AM_RAM AM_BASE (&scrollram) |
| 186 | 186 | AM_RANGE(0xf0000, 0xfffff) AM_ROM |
| 187 | 187 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | static INPUT_PORTS_START( panicr ) |
| 242 | PORT_START(" | |
| 242 | PORT_START("P1 | |
| 243 | 243 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) //left |
| 244 | 244 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) //right |
| 245 | 245 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) //shake 1 |
| 246 | 246 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) //shake 2 |
| 247 | 247 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 248 | 248 | |
| 249 | PORT_START(" | |
| 249 | PORT_START("P2 | |
| 250 | 250 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) //left |
| 251 | 251 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) //right |
| 252 | 252 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) //shake 1 |
| 253 | 253 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) //shake 2 |
| 254 | 254 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 255 | 255 | |
| 256 | PORT_START(" | |
| 256 | PORT_START("START") | |
| 257 | 257 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) |
| 258 | 258 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) |
| 259 | 259 | PORT_BIT( 0xe7, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 260 | 260 | |
| 261 | 261 | PORT_START("DSW1") |
| 262 | 262 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:8,7,6") |
| 263 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C )) | |
| 264 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C )) | |
| 265 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C )) | |
| 266 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_1C )) | |
| 267 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C )) | |
| 268 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_2C )) | |
| 269 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C )) | |
| 270 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_5C )) | |
| 263 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 264 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) | |
| 265 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 266 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_1C ) ) | |
| 267 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 268 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_2C ) ) | |
| 269 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 270 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_5C ) ) | |
| 271 | 271 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,4") |
| 272 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C )) | |
| 273 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_1C )) | |
| 274 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C )) | |
| 275 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C )) | |
| 272 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 273 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_1C ) ) | |
| 274 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) | |
| 275 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) | |
| 276 | 276 | PORT_SERVICE_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW1:3" ) |
| 277 | 277 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:2") |
| 278 | 278 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) |
| r3115 | r3116 | |
|---|---|---|
| 551 | 551 | |
| 552 | 552 | |
| 553 | 553 | static INPUT_PORTS_START( mjsikaku ) |
| 554 | PORT_START("DSWA") | |
| 554 | PORT_START("DSWA") | |
| 555 | 555 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 556 | 556 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 557 | 557 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 577 | 577 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 578 | 578 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 579 | 579 | |
| 580 | PORT_START("DSWB") | |
| 580 | PORT_START("DSWB") | |
| 581 | 581 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 582 | 582 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 583 | 583 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 603 | 603 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 604 | 604 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 605 | 605 | |
| 606 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 607 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 606 | PORT_START("SYSTEM") | |
| 607 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 608 | 608 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 609 | 609 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 610 | 610 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 618 | 618 | |
| 619 | 619 | static INPUT_PORTS_START( mmsikaku ) |
| 620 | 620 | #if 1 |
| 621 | PORT_START("DSWA") | |
| 621 | PORT_START("DSWA") | |
| 622 | 622 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 623 | 623 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 624 | 624 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 644 | 644 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 645 | 645 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 646 | 646 | |
| 647 | PORT_START("DSWB") | |
| 647 | PORT_START("DSWB") | |
| 648 | 648 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 649 | 649 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 650 | 650 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 671 | 671 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 672 | 672 | #else |
| 673 | 673 | |
| 674 | PORT_START("DSWA") | |
| 674 | PORT_START("DSWA") | |
| 675 | 675 | PORT_DIPNAME( 0x07, 0x00, "Game Out" ) |
| 676 | 676 | PORT_DIPSETTING( 0x07, "60% (Hard)" ) |
| 677 | 677 | PORT_DIPSETTING( 0x06, "65%" ) |
| r3115 | r3116 | |
| 695 | 695 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 696 | 696 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 697 | 697 | |
| 698 | PORT_START("DSWB") | |
| 698 | PORT_START("DSWB") | |
| 699 | 699 | PORT_DIPNAME( 0x01, 0x00, "Rate Up" ) |
| 700 | 700 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 701 | 701 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 708 | 708 | PORT_BIT( 0xf8, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 709 | 709 | #endif |
| 710 | 710 | |
| 711 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 712 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 711 | PORT_START("SYSTEM") | |
| 712 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 713 | 713 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 714 | 714 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 715 | 715 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 722 | 722 | INPUT_PORTS_END |
| 723 | 723 | |
| 724 | 724 | static INPUT_PORTS_START( otonano ) |
| 725 | PORT_START("DSWA") | |
| 725 | PORT_START("DSWA") | |
| 726 | 726 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 727 | 727 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 728 | 728 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 748 | 748 | PORT_DIPSETTING( 0x80, "100 Yen" ) |
| 749 | 749 | PORT_DIPSETTING( 0x00, "50 Yen" ) |
| 750 | 750 | |
| 751 | PORT_START("DSWB") | |
| 751 | PORT_START("DSWB") | |
| 752 | 752 | PORT_DIPNAME( 0x01, 0x01, "Character Display Test" ) |
| 753 | 753 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 754 | 754 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 774 | 774 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 775 | 775 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 776 | 776 | |
| 777 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 778 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 777 | PORT_START("SYSTEM") | |
| 778 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 779 | 779 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 780 | 780 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 781 | 781 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 788 | 788 | INPUT_PORTS_END |
| 789 | 789 | |
| 790 | 790 | static INPUT_PORTS_START( mjcamera ) |
| 791 | PORT_START("DSWA") | |
| 791 | PORT_START("DSWA") | |
| 792 | 792 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 793 | 793 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 794 | 794 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 814 | 814 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 815 | 815 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 816 | 816 | |
| 817 | PORT_START("DSWB") | |
| 817 | PORT_START("DSWB") | |
| 818 | 818 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 819 | 819 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 820 | 820 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 840 | 840 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 841 | 841 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 842 | 842 | |
| 843 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 844 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 843 | PORT_START("SYSTEM") | |
| 844 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 845 | 845 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 846 | 846 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 847 | 847 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 854 | 854 | INPUT_PORTS_END |
| 855 | 855 | |
| 856 | 856 | static INPUT_PORTS_START( kaguya ) |
| 857 | PORT_START("DSWA") | |
| 857 | PORT_START("DSWA") | |
| 858 | 858 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 859 | 859 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| 860 | 860 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) |
| r3115 | r3116 | |
| 879 | 879 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 880 | 880 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 881 | 881 | |
| 882 | PORT_START("DSWB") | |
| 882 | PORT_START("DSWB") | |
| 883 | 883 | PORT_DIPNAME( 0x01, 0x00, "Nudity graphic on bet" ) |
| 884 | 884 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 885 | 885 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 903 | 903 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 904 | 904 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 905 | 905 | |
| 906 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 907 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 906 | PORT_START("SYSTEM") | |
| 907 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 908 | 908 | // PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 909 | 909 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) // |
| 910 | 910 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r3115 | r3116 | |
| 918 | 918 | INPUT_PORTS_END |
| 919 | 919 | |
| 920 | 920 | static INPUT_PORTS_START( kaguya2 ) |
| 921 | PORT_START("DSWA") | |
| 921 | PORT_START("DSWA") | |
| 922 | 922 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 923 | 923 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 924 | 924 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 944 | 944 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 945 | 945 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 946 | 946 | |
| 947 | PORT_START("DSWB") | |
| 947 | PORT_START("DSWB") | |
| 948 | 948 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 949 | 949 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 950 | 950 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 970 | 970 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 971 | 971 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 972 | 972 | |
| 973 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 974 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 973 | PORT_START("SYSTEM") | |
| 974 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 975 | 975 | // PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 976 | 976 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 977 | 977 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r3115 | r3116 | |
| 985 | 985 | INPUT_PORTS_END |
| 986 | 986 | |
| 987 | 987 | static INPUT_PORTS_START( kanatuen ) |
| 988 | PORT_START("DSWA") | |
| 988 | PORT_START("DSWA") | |
| 989 | 989 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 990 | 990 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 991 | 991 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1011 | 1011 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1012 | 1012 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1013 | 1013 | |
| 1014 | PORT_START("DSWB") | |
| 1014 | PORT_START("DSWB") | |
| 1015 | 1015 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1016 | 1016 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1017 | 1017 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1037 | 1037 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1038 | 1038 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1039 | 1039 | |
| 1040 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1041 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1040 | PORT_START("SYSTEM") | |
| 1041 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1042 | 1042 | // PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1043 | 1043 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) // |
| 1044 | 1044 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r3115 | r3116 | |
| 1052 | 1052 | INPUT_PORTS_END |
| 1053 | 1053 | |
| 1054 | 1054 | static INPUT_PORTS_START( kyuhito ) |
| 1055 | PORT_START("DSWA") | |
| 1055 | PORT_START("DSWA") | |
| 1056 | 1056 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1057 | 1057 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1058 | 1058 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1078 | 1078 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1079 | 1079 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1080 | 1080 | |
| 1081 | PORT_START("DSWB") | |
| 1081 | PORT_START("DSWB") | |
| 1082 | 1082 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1083 | 1083 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1084 | 1084 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1104 | 1104 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1105 | 1105 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1106 | 1106 | |
| 1107 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1108 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1107 | PORT_START("SYSTEM") | |
| 1108 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1109 | 1109 | // PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1110 | 1110 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) // |
| 1111 | 1111 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r3115 | r3116 | |
| 1119 | 1119 | INPUT_PORTS_END |
| 1120 | 1120 | |
| 1121 | 1121 | static INPUT_PORTS_START( idhimitu ) |
| 1122 | PORT_START("DSWA") | |
| 1122 | PORT_START("DSWA") | |
| 1123 | 1123 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1124 | 1124 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1125 | 1125 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1145 | 1145 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1146 | 1146 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1147 | 1147 | |
| 1148 | PORT_START("DSWB") | |
| 1148 | PORT_START("DSWB") | |
| 1149 | 1149 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1150 | 1150 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1151 | 1151 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1171 | 1171 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1172 | 1172 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1173 | 1173 | |
| 1174 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1175 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1174 | PORT_START("SYSTEM") | |
| 1175 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1176 | 1176 | // PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1177 | 1177 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) // |
| 1178 | 1178 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| r3115 | r3116 | |
| 1186 | 1186 | INPUT_PORTS_END |
| 1187 | 1187 | |
| 1188 | 1188 | static INPUT_PORTS_START( secolove ) |
| 1189 | PORT_START("DSWA") | |
| 1189 | PORT_START("DSWA") | |
| 1190 | 1190 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1191 | 1191 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1192 | 1192 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1212 | 1212 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1213 | 1213 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1214 | 1214 | |
| 1215 | PORT_START("DSWB") | |
| 1215 | PORT_START("DSWB") | |
| 1216 | 1216 | PORT_DIPNAME( 0x03, 0x00, "Number of last chance" ) |
| 1217 | 1217 | PORT_DIPSETTING( 0x03, "0" ) |
| 1218 | 1218 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 1237 | 1237 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1238 | 1238 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1239 | 1239 | |
| 1240 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1241 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1240 | PORT_START("SYSTEM") | |
| 1241 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1242 | 1242 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1243 | 1243 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1244 | 1244 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1251 | 1251 | INPUT_PORTS_END |
| 1252 | 1252 | |
| 1253 | 1253 | static INPUT_PORTS_START( citylove ) |
| 1254 | PORT_START("DSWA") | |
| 1254 | PORT_START("DSWA") | |
| 1255 | 1255 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Difficulty ) ) |
| 1256 | 1256 | PORT_DIPSETTING( 0x0f, "1 (Easy)" ) |
| 1257 | 1257 | PORT_DIPSETTING( 0x0e, "2" ) |
| r3115 | r3116 | |
| 1281 | 1281 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1282 | 1282 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1283 | 1283 | |
| 1284 | PORT_START("DSWB") | |
| 1284 | PORT_START("DSWB") | |
| 1285 | 1285 | PORT_DIPNAME( 0x03, 0x00, "Number of last chance" ) |
| 1286 | 1286 | PORT_DIPSETTING( 0x03, "0" ) |
| 1287 | 1287 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 1305 | 1305 | PORT_DIPSETTING( 0x40, "TSUMO 7" ) |
| 1306 | 1306 | PORT_DIPSETTING( 0x00, "HAIPAI" ) |
| 1307 | 1307 | |
| 1308 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1309 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1308 | PORT_START("SYSTEM") | |
| 1309 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1310 | 1310 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1311 | 1311 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1312 | 1312 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1320 | 1320 | |
| 1321 | 1321 | static INPUT_PORTS_START( mcitylov ) |
| 1322 | 1322 | #if 1 |
| 1323 | PORT_START("DSWA") | |
| 1323 | PORT_START("DSWA") | |
| 1324 | 1324 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1325 | 1325 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1326 | 1326 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1346 | 1346 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1347 | 1347 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1348 | 1348 | |
| 1349 | PORT_START("DSWB") | |
| 1349 | PORT_START("DSWB") | |
| 1350 | 1350 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1351 | 1351 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1352 | 1352 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1373 | 1373 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1374 | 1374 | #else |
| 1375 | 1375 | |
| 1376 | PORT_START("DSWA") | |
| 1376 | PORT_START("DSWA") | |
| 1377 | 1377 | PORT_DIPNAME( 0x07, 0x00, "Game Out" ) |
| 1378 | 1378 | PORT_DIPSETTING( 0x07, "60% (Hard)" ) |
| 1379 | 1379 | PORT_DIPSETTING( 0x06, "65%" ) |
| r3115 | r3116 | |
| 1397 | 1397 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1398 | 1398 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1399 | 1399 | |
| 1400 | PORT_START("DSWB") | |
| 1400 | PORT_START("DSWB") | |
| 1401 | 1401 | PORT_DIPNAME( 0x01, 0x00, "Rate Up" ) |
| 1402 | 1402 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1403 | 1403 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1410 | 1410 | PORT_BIT( 0xf8, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1411 | 1411 | #endif |
| 1412 | 1412 | |
| 1413 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1414 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1413 | PORT_START("SYSTEM") | |
| 1414 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1415 | 1415 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1416 | 1416 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1417 | 1417 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1424 | 1424 | INPUT_PORTS_END |
| 1425 | 1425 | |
| 1426 | 1426 | static INPUT_PORTS_START( seiha ) |
| 1427 | PORT_START("DSWA") | |
| 1427 | PORT_START("DSWA") | |
| 1428 | 1428 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Difficulty ) ) |
| 1429 | 1429 | PORT_DIPSETTING( 0x07, "1 (Hard)" ) |
| 1430 | 1430 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1450 | 1450 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1451 | 1451 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1452 | 1452 | |
| 1453 | PORT_START("DSWB") | |
| 1453 | PORT_START("DSWB") | |
| 1454 | 1454 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1455 | 1455 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1456 | 1456 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1476 | 1476 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1477 | 1477 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1478 | 1478 | |
| 1479 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1480 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1479 | PORT_START("SYSTEM") | |
| 1480 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1481 | 1481 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1482 | 1482 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1483 | 1483 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1490 | 1490 | INPUT_PORTS_END |
| 1491 | 1491 | |
| 1492 | 1492 | static INPUT_PORTS_START( seiham ) |
| 1493 | PORT_START("DSWA") | |
| 1493 | PORT_START("DSWA") | |
| 1494 | 1494 | PORT_DIPNAME( 0x07, 0x00, "Game Out" ) |
| 1495 | 1495 | PORT_DIPSETTING( 0x07, "60% (Hard)" ) |
| 1496 | 1496 | PORT_DIPSETTING( 0x06, "65%" ) |
| r3115 | r3116 | |
| 1514 | 1514 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1515 | 1515 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1516 | 1516 | |
| 1517 | PORT_START("DSWB") | |
| 1517 | PORT_START("DSWB") | |
| 1518 | 1518 | PORT_DIPNAME( 0x01, 0x00, "Rate Up" ) |
| 1519 | 1519 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1520 | 1520 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1540 | 1540 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1541 | 1541 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1542 | 1542 | |
| 1543 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1544 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1543 | PORT_START("SYSTEM") | |
| 1544 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1545 | 1545 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1546 | 1546 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1547 | 1547 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1554 | 1554 | INPUT_PORTS_END |
| 1555 | 1555 | |
| 1556 | 1556 | static INPUT_PORTS_START( iemoto ) |
| 1557 | PORT_START("DSWA") | |
| 1557 | PORT_START("DSWA") | |
| 1558 | 1558 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Difficulty ) ) |
| 1559 | 1559 | PORT_DIPSETTING( 0x07, "1 (Hard)" ) |
| 1560 | 1560 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1580 | 1580 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1581 | 1581 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1582 | 1582 | |
| 1583 | PORT_START("DSWB") | |
| 1583 | PORT_START("DSWB") | |
| 1584 | 1584 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1585 | 1585 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1586 | 1586 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1606 | 1606 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1607 | 1607 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1608 | 1608 | |
| 1609 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1610 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1609 | PORT_START("SYSTEM") | |
| 1610 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1611 | 1611 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1612 | 1612 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1613 | 1613 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1620 | 1620 | INPUT_PORTS_END |
| 1621 | 1621 | |
| 1622 | 1622 | static INPUT_PORTS_START( iemotom ) |
| 1623 | PORT_START("DSWA") | |
| 1623 | PORT_START("DSWA") | |
| 1624 | 1624 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1625 | 1625 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1626 | 1626 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1646 | 1646 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1647 | 1647 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1648 | 1648 | |
| 1649 | PORT_START("DSWB") | |
| 1649 | PORT_START("DSWB") | |
| 1650 | 1650 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1651 | 1651 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1652 | 1652 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1672 | 1672 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1673 | 1673 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1674 | 1674 | |
| 1675 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1676 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1675 | PORT_START("SYSTEM") | |
| 1676 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1677 | 1677 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1678 | 1678 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1679 | 1679 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1686 | 1686 | INPUT_PORTS_END |
| 1687 | 1687 | |
| 1688 | 1688 | static INPUT_PORTS_START( ryuuha ) |
| 1689 | PORT_START("DSWA") | |
| 1689 | PORT_START("DSWA") | |
| 1690 | 1690 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1691 | 1691 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1692 | 1692 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1712 | 1712 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1713 | 1713 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1714 | 1714 | |
| 1715 | PORT_START("DSWB") | |
| 1715 | PORT_START("DSWB") | |
| 1716 | 1716 | PORT_DIPNAME( 0x01, 0x01, "Character Display Test" ) |
| 1717 | 1717 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1718 | 1718 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1738 | 1738 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1739 | 1739 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1740 | 1740 | |
| 1741 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1742 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1741 | PORT_START("SYSTEM") | |
| 1742 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1743 | 1743 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1744 | 1744 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1745 | 1745 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1752 | 1752 | INPUT_PORTS_END |
| 1753 | 1753 | |
| 1754 | 1754 | static INPUT_PORTS_START( bijokkoy ) |
| 1755 | PORT_START("DSWA") | |
| 1755 | PORT_START("DSWA") | |
| 1756 | 1756 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1757 | 1757 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1758 | 1758 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1778 | 1778 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1779 | 1779 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1780 | 1780 | |
| 1781 | PORT_START("DSWB") | |
| 1781 | PORT_START("DSWB") | |
| 1782 | 1782 | PORT_DIPNAME( 0x03, 0x00, "Number of last chance" ) |
| 1783 | 1783 | PORT_DIPSETTING( 0x03, "0" ) |
| 1784 | 1784 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 1803 | 1803 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1804 | 1804 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1805 | 1805 | |
| 1806 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1807 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1806 | PORT_START("SYSTEM") | |
| 1807 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1808 | 1808 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1809 | 1809 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1810 | 1810 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1817 | 1817 | INPUT_PORTS_END |
| 1818 | 1818 | |
| 1819 | 1819 | static INPUT_PORTS_START( bijokkog ) |
| 1820 | PORT_START("DSWA") | |
| 1820 | PORT_START("DSWA") | |
| 1821 | 1821 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1822 | 1822 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1823 | 1823 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1843 | 1843 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1844 | 1844 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1845 | 1845 | |
| 1846 | PORT_START("DSWB") | |
| 1846 | PORT_START("DSWB") | |
| 1847 | 1847 | PORT_DIPNAME( 0x03, 0x00, "Number of last chance" ) |
| 1848 | 1848 | PORT_DIPSETTING( 0x03, "0" ) |
| 1849 | 1849 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 1867 | 1867 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1868 | 1868 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1869 | 1869 | |
| 1870 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1871 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1870 | PORT_START("SYSTEM") | |
| 1871 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1872 | 1872 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1873 | 1873 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1874 | 1874 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1881 | 1881 | INPUT_PORTS_END |
| 1882 | 1882 | |
| 1883 | 1883 | static INPUT_PORTS_START( housemnq ) |
| 1884 | PORT_START("DSWA") | |
| 1884 | PORT_START("DSWA") | |
| 1885 | 1885 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1886 | 1886 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1887 | 1887 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1907 | 1907 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1908 | 1908 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1909 | 1909 | |
| 1910 | PORT_START("DSWB") | |
| 1910 | PORT_START("DSWB") | |
| 1911 | 1911 | PORT_DIPNAME( 0x03, 0x03, "Time" ) |
| 1912 | 1912 | PORT_DIPSETTING( 0x03, "120" ) |
| 1913 | 1913 | PORT_DIPSETTING( 0x02, "100" ) |
| r3115 | r3116 | |
| 1931 | 1931 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1932 | 1932 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1933 | 1933 | |
| 1934 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1935 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1934 | PORT_START("SYSTEM") | |
| 1935 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1936 | 1936 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1937 | 1937 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1938 | 1938 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1945 | 1945 | INPUT_PORTS_END |
| 1946 | 1946 | |
| 1947 | 1947 | static INPUT_PORTS_START( housemn2 ) |
| 1948 | PORT_START("DSWA") | |
| 1948 | PORT_START("DSWA") | |
| 1949 | 1949 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1950 | 1950 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1951 | 1951 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1971 | 1971 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1972 | 1972 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1973 | 1973 | |
| 1974 | PORT_START("DSWB") | |
| 1974 | PORT_START("DSWB") | |
| 1975 | 1975 | PORT_DIPNAME( 0x03, 0x03, "Time" ) |
| 1976 | 1976 | PORT_DIPSETTING( 0x03, "120" ) |
| 1977 | 1977 | PORT_DIPSETTING( 0x02, "100" ) |
| r3115 | r3116 | |
| 1994 | 1994 | // PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 1995 | 1995 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1996 | 1996 | |
| 1997 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1998 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1997 | PORT_START("SYSTEM") | |
| 1998 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1999 | 1999 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2000 | 2000 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2001 | 2001 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2008 | 2008 | INPUT_PORTS_END |
| 2009 | 2009 | |
| 2010 | 2010 | static INPUT_PORTS_START( orangec ) |
| 2011 | PORT_START("DSWA") | |
| 2011 | PORT_START("DSWA") | |
| 2012 | 2012 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2013 | 2013 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2014 | 2014 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2034 | 2034 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2035 | 2035 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2036 | 2036 | |
| 2037 | PORT_START("DSWB") | |
| 2037 | PORT_START("DSWB") | |
| 2038 | 2038 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 2039 | 2039 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2040 | 2040 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2060 | 2060 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2061 | 2061 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2062 | 2062 | |
| 2063 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2064 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2063 | PORT_START("SYSTEM") | |
| 2064 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2065 | 2065 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2066 | 2066 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2067 | 2067 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2074 | 2074 | INPUT_PORTS_END |
| 2075 | 2075 | |
| 2076 | 2076 | static INPUT_PORTS_START( orangeci ) |
| 2077 | PORT_START("DSWA") | |
| 2077 | PORT_START("DSWA") | |
| 2078 | 2078 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2079 | 2079 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2080 | 2080 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2100 | 2100 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2101 | 2101 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2102 | 2102 | |
| 2103 | PORT_START("DSWB") | |
| 2103 | PORT_START("DSWB") | |
| 2104 | 2104 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 2105 | 2105 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2106 | 2106 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2126 | 2126 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2127 | 2127 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2128 | 2128 | |
| 2129 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2130 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2129 | PORT_START("SYSTEM") | |
| 2130 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2131 | 2131 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2132 | 2132 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2133 | 2133 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2140 | 2140 | INPUT_PORTS_END |
| 2141 | 2141 | |
| 2142 | 2142 | static INPUT_PORTS_START( vipclub ) |
| 2143 | PORT_START("DSWA") | |
| 2143 | PORT_START("DSWA") | |
| 2144 | 2144 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 2145 | 2145 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2146 | 2146 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2166 | 2166 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2167 | 2167 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2168 | 2168 | |
| 2169 | PORT_START("DSWB") | |
| 2169 | PORT_START("DSWB") | |
| 2170 | 2170 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 2171 | 2171 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2172 | 2172 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2192 | 2192 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2193 | 2193 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2194 | 2194 | |
| 2195 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2196 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2195 | PORT_START("SYSTEM") | |
| 2196 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2197 | 2197 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2198 | 2198 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2199 | 2199 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2206 | 2206 | INPUT_PORTS_END |
| 2207 | 2207 | |
| 2208 | 2208 | static INPUT_PORTS_START( livegal ) |
| 2209 | PORT_START("DSWA") | |
| 2209 | PORT_START("DSWA") | |
| 2210 | 2210 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 2211 | 2211 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2212 | 2212 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2232 | 2232 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2233 | 2233 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2234 | 2234 | |
| 2235 | PORT_START("DSWB") | |
| 2235 | PORT_START("DSWB") | |
| 2236 | 2236 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 2237 | 2237 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2238 | 2238 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2258 | 2258 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2259 | 2259 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2260 | 2260 | |
| 2261 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2262 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2261 | PORT_START("SYSTEM") | |
| 2262 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2263 | 2263 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2264 | 2264 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2265 | 2265 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2284 | 2284 | INPUT_PORTS_END |
| 2285 | 2285 | |
| 2286 | 2286 | static INPUT_PORTS_START( ojousan ) |
| 2287 | PORT_START("DSWA") | |
| 2287 | PORT_START("DSWA") | |
| 2288 | 2288 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 2289 | 2289 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 2290 | 2290 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 2310 | 2310 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2311 | 2311 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2312 | 2312 | |
| 2313 | PORT_START("DSWB") | |
| 2313 | PORT_START("DSWB") | |
| 2314 | 2314 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2315 | 2315 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2316 | 2316 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2336 | 2336 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2337 | 2337 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2338 | 2338 | |
| 2339 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2340 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2339 | PORT_START("SYSTEM") | |
| 2340 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2341 | 2341 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2342 | 2342 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2343 | 2343 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2350 | 2350 | INPUT_PORTS_END |
| 2351 | 2351 | |
| 2352 | 2352 | static INPUT_PORTS_START( ojousanm ) |
| 2353 | PORT_START("DSWA") | |
| 2353 | PORT_START("DSWA") | |
| 2354 | 2354 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2355 | 2355 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2356 | 2356 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2376 | 2376 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2377 | 2377 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2378 | 2378 | |
| 2379 | PORT_START("DSWB") | |
| 2379 | PORT_START("DSWB") | |
| 2380 | 2380 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2381 | 2381 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2382 | 2382 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2402 | 2402 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2403 | 2403 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2404 | 2404 | |
| 2405 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2406 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2405 | PORT_START("SYSTEM") | |
| 2406 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2407 | 2407 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2408 | 2408 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2409 | 2409 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2416 | 2416 | INPUT_PORTS_END |
| 2417 | 2417 | |
| 2418 | 2418 | static INPUT_PORTS_START( korinai ) |
| 2419 | PORT_START("DSWA") | |
| 2419 | PORT_START("DSWA") | |
| 2420 | 2420 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2421 | 2421 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2422 | 2422 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2442 | 2442 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2443 | 2443 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2444 | 2444 | |
| 2445 | PORT_START("DSWB") | |
| 2445 | PORT_START("DSWB") | |
| 2446 | 2446 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2447 | 2447 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2448 | 2448 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2468 | 2468 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2469 | 2469 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2470 | 2470 | |
| 2471 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2472 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2471 | PORT_START("SYSTEM") | |
| 2472 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2473 | 2473 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2474 | 2474 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2475 | 2475 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2482 | 2482 | INPUT_PORTS_END |
| 2483 | 2483 | |
| 2484 | 2484 | static INPUT_PORTS_START( korinaim ) |
| 2485 | PORT_START("DSWA") | |
| 2485 | PORT_START("DSWA") | |
| 2486 | 2486 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2487 | 2487 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2488 | 2488 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2508 | 2508 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2509 | 2509 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2510 | 2510 | |
| 2511 | PORT_START("DSWB") | |
| 2511 | PORT_START("DSWB") | |
| 2512 | 2512 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2513 | 2513 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2514 | 2514 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2534 | 2534 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2535 | 2535 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2536 | 2536 | |
| 2537 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2538 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2537 | PORT_START("SYSTEM") | |
| 2538 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2539 | 2539 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2540 | 2540 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2541 | 2541 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2548 | 2548 | INPUT_PORTS_END |
| 2549 | 2549 | |
| 2550 | 2550 | static INPUT_PORTS_START( crystalg ) |
| 2551 | PORT_START("DSWA") | |
| 2551 | PORT_START("DSWA") | |
| 2552 | 2552 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 2553 | 2553 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2554 | 2554 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2574 | 2574 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2575 | 2575 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2576 | 2576 | |
| 2577 | PORT_START("DSWB") | |
| 2577 | PORT_START("DSWB") | |
| 2578 | 2578 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 2579 | 2579 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2580 | 2580 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2600 | 2600 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2601 | 2601 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2602 | 2602 | |
| 2603 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2604 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2603 | PORT_START("SYSTEM") | |
| 2604 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2605 | 2605 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2606 | 2606 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2607 | 2607 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2614 | 2614 | INPUT_PORTS_END |
| 2615 | 2615 | |
| 2616 | 2616 | static INPUT_PORTS_START( crystal2 ) |
| 2617 | PORT_START("DSWA") | |
| 2617 | PORT_START("DSWA") | |
| 2618 | 2618 | PORT_DIPNAME( 0x0f, 0x0d, DEF_STR( Difficulty ) ) |
| 2619 | 2619 | PORT_DIPSETTING( 0x0d, "1 (Easy)" ) |
| 2620 | 2620 | PORT_DIPSETTING( 0x0a, "2" ) |
| r3115 | r3116 | |
| 2638 | 2638 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2639 | 2639 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2640 | 2640 | |
| 2641 | PORT_START("DSWB") | |
| 2641 | PORT_START("DSWB") | |
| 2642 | 2642 | PORT_DIPNAME( 0x03, 0x00, "Number of last chance" ) |
| 2643 | 2643 | PORT_DIPSETTING( 0x03, "0" ) |
| 2644 | 2644 | PORT_DIPSETTING( 0x02, "1" ) |
| r3115 | r3116 | |
| 2662 | 2662 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2663 | 2663 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2664 | 2664 | |
| 2665 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2666 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2665 | PORT_START("SYSTEM") | |
| 2666 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2667 | 2667 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2668 | 2668 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2669 | 2669 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2676 | 2676 | INPUT_PORTS_END |
| 2677 | 2677 | |
| 2678 | 2678 | static INPUT_PORTS_START( apparel ) |
| 2679 | PORT_START("DSWA") | |
| 2679 | PORT_START("DSWA") | |
| 2680 | 2680 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 2681 | 2681 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2682 | 2682 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2702 | 2702 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2703 | 2703 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2704 | 2704 | |
| 2705 | PORT_START("DSWB") | |
| 2705 | PORT_START("DSWB") | |
| 2706 | 2706 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 2707 | 2707 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2708 | 2708 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2728 | 2728 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2729 | 2729 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2730 | 2730 | |
| 2731 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2732 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2731 | PORT_START("SYSTEM") | |
| 2732 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2733 | 2733 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2734 | 2734 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2735 | 2735 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 2742 | 2742 | INPUT_PORTS_END |
| 2743 | 2743 | |
| 2744 | 2744 | static INPUT_PORTS_START( nightlov ) |
| 2745 | PORT_START("DSWA") | |
| 2745 | PORT_START("DSWA") | |
| 2746 | 2746 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 2747 | 2747 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2748 | 2748 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2768 | 2768 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2769 | 2769 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2770 | 2770 | |
| 2771 | PORT_START("DSWB") | |
| 2771 | PORT_START("DSWB") | |
| 2772 | 2772 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 2773 | 2773 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2774 | 2774 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2794 | 2794 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2795 | 2795 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2796 | 2796 | |
| 2797 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 2798 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 2797 | PORT_START("SYSTEM") | |
| 2798 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 2799 | 2799 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 2800 | 2800 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 2801 | 2801 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | #include "driver.h" |
| 41 | 41 | #include "deprecat.h" |
| 42 | #include "cpu/ | |
| 42 | #include "cpu/mcs48 | |
| 43 | 43 | #include "video/resnet.h" |
| 44 | 44 | #include "sound/ay8910.h" |
| 45 | 45 |
| r3115 | r3116 | |
|---|---|---|
| 120 | 120 | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in1_control_r, NULL) |
| 121 | 121 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 122 | 122 | |
| 123 | PORT_START("IN2") /* referenced by invaders_io_map, used in several drivers; this is fairly hacky */ | |
| 124 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 125 | ||
| 126 | PORT_START("DSW0") | |
| 123 | PORT_START("IN2") | |
| 127 | 124 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 128 | 125 | PORT_DIPSETTING( 0x00, "3" ) |
| 129 | 126 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
| 177 | 174 | static INPUT_PORTS_START( invadrmr ) |
| 178 | 175 | PORT_INCLUDE( sicv ) |
| 179 | 176 | |
| 180 | PORT_MODIFY(" | |
| 177 | PORT_MODIFY("IN2 | |
| 181 | 178 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 182 | 179 | PORT_DIPSETTING( 0x00, "1500" ) |
| 183 | 180 | PORT_DIPSETTING( 0x08, "3000" ) /* This is different to invaders */ |
| r3115 | r3116 | |
| 192 | 189 | static ADDRESS_MAP_START( invadpt2_io_map, ADDRESS_SPACE_IO, 8 ) |
| 193 | 190 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") |
| 194 | 191 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 195 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 192 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 196 | 193 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, invadpt2_sh_port_1_w) |
| 197 | 194 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 198 | 195 | AM_RANGE(0x05, 0x05) AM_WRITE(invadpt2_sh_port_2_w) |
| r3115 | r3116 | |
| 209 | 206 | PORT_MODIFY("IN1") |
| 210 | 207 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 211 | 208 | |
| 212 | PORT_MODIFY(" | |
| 209 | PORT_MODIFY("IN2 | |
| 213 | 210 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 214 | 211 | PORT_DIPSETTING( 0x00, "3" ) |
| 215 | 212 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
| 249 | 246 | static ADDRESS_MAP_START( spcewars_io_map, ADDRESS_SPACE_IO, 8 ) |
| 250 | 247 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") |
| 251 | 248 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 252 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 249 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 253 | 250 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, spcewars_sh_port_w) |
| 254 | 251 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 255 | 252 | AM_RANGE(0x05, 0x05) AM_WRITE(invadpt2_sh_port_2_w) |
| r3115 | r3116 | |
| 262 | 259 | PORT_MODIFY("IN1") |
| 263 | 260 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 264 | 261 | |
| 265 | PORT_MODIFY(" | |
| 262 | PORT_MODIFY("IN2 | |
| 266 | 263 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 267 | 264 | PORT_DIPSETTING( 0x00, "3" ) |
| 268 | 265 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
| 309 | 306 | static ADDRESS_MAP_START( cosmo_io_map, ADDRESS_SPACE_IO, 8 ) |
| 310 | 307 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") AM_WRITENOP |
| 311 | 308 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") AM_WRITENOP |
| 312 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 309 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 313 | 310 | AM_RANGE(0x03, 0x03) AM_WRITE(invadpt2_sh_port_1_w) |
| 314 | 311 | AM_RANGE(0x05, 0x05) AM_WRITE(cosmo_sh_port_2_w) |
| 315 | 312 | AM_RANGE(0x06, 0x06) AM_WRITE(watchdog_reset_w) |
| r3115 | r3116 | |
| 323 | 320 | PORT_MODIFY("IN1") |
| 324 | 321 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 325 | 322 | |
| 326 | PORT_MODIFY(" | |
| 323 | PORT_MODIFY("IN2 | |
| 327 | 324 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 328 | 325 | PORT_DIPSETTING( 0x00, "3" ) |
| 329 | 326 | PORT_DIPSETTING( 0x01, "5" ) |
| r3115 | r3116 | |
| 361 | 358 | PORT_MODIFY("IN1") |
| 362 | 359 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 363 | 360 | |
| 364 | PORT_MODIFY(" | |
| 361 | PORT_MODIFY("IN2 | |
| 365 | 362 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 366 | 363 | PORT_DIPSETTING( 0x00, "2" ) |
| 367 | 364 | PORT_DIPSETTING( 0x01, "3" ) |
| r3115 | r3116 | |
| 385 | 382 | static INPUT_PORTS_START( spaceatt ) |
| 386 | 383 | PORT_INCLUDE( sicv ) |
| 387 | 384 | |
| 388 | PORT_MODIFY(" | |
| 385 | PORT_MODIFY("IN2 | |
| 389 | 386 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x00, "SW1:5" ) |
| 390 | 387 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x00, "SW1:6" ) |
| 391 | 388 | PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x00, "SW1:7" ) |
| r3115 | r3116 | |
| 408 | 405 | static ADDRESS_MAP_START( invrvnge_io_map, ADDRESS_SPACE_IO, 8 ) |
| 409 | 406 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") |
| 410 | 407 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 411 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 408 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 412 | 409 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, invrvnge_sh_port_w) |
| 413 | 410 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 414 | 411 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 435 | 432 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 436 | 433 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 437 | 434 | |
| 438 | PORT_START(" | |
| 435 | PORT_START("IN2 | |
| 439 | 436 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 440 | 437 | PORT_DIPSETTING( 0x00, "3" ) |
| 441 | 438 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
| 482 | 479 | //PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2) /* This is not 2 Player ??? */ |
| 483 | 480 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 484 | 481 | |
| 485 | PORT_START("IN2") /* referenced by invaders_io_map, used in several drivers; this is fairly hacky */ | |
| 486 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 482 | // PORT_START("IN2") /* referenced by invaders_io_map, used in several drivers; this is fairly hacky */ | |
| 483 | // PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 487 | 484 | |
| 488 | PORT_MODIFY(" | |
| 485 | PORT_MODIFY("IN2 | |
| 489 | 486 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "SW1:1" ) |
| 490 | 487 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "SW1:2" ) |
| 491 | 488 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| r3115 | r3116 | |
| 514 | 511 | PORT_MODIFY("IN1") |
| 515 | 512 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 516 | 513 | |
| 517 | PORT_MODIFY(" | |
| 514 | PORT_MODIFY("IN2 | |
| 518 | 515 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 519 | 516 | PORT_DIPSETTING( 0x00, "2" ) |
| 520 | 517 | PORT_DIPSETTING( 0x01, "3" ) |
| r3115 | r3116 | |
| 539 | 536 | static ADDRESS_MAP_START( lrescue_io_map, ADDRESS_SPACE_IO, 8 ) |
| 540 | 537 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") |
| 541 | 538 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 542 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 539 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 543 | 540 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, lrescue_sh_port_1_w) |
| 544 | 541 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 545 | 542 | AM_RANGE(0x05, 0x05) AM_WRITE(lrescue_sh_port_2_w) |
| r3115 | r3116 | |
| 552 | 549 | PORT_MODIFY("IN1") |
| 553 | 550 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 554 | 551 | |
| 555 | PORT_MODIFY(" | |
| 552 | PORT_MODIFY("IN2 | |
| 556 | 553 | /* SW1:3-8 Unused according to manual: "Factory Adjustments". Default is ON. */ |
| 557 | 554 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x00, "SW1:4" ) |
| 558 | 555 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x00, "SW1:8" ) |
| r3115 | r3116 | |
| 594 | 591 | PORT_MODIFY("IN1") |
| 595 | 592 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 596 | 593 | |
| 597 | PORT_MODIFY(" | |
| 594 | PORT_MODIFY("IN2 | |
| 598 | 595 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 599 | 596 | PORT_DIPSETTING( 0x00, "2" ) |
| 600 | 597 | PORT_DIPSETTING( 0x01, "3" ) |
| r3115 | r3116 | |
| 620 | 617 | PORT_MODIFY("IN1") |
| 621 | 618 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 622 | 619 | |
| 623 | PORT_MODIFY(" | |
| 620 | PORT_MODIFY("IN2 | |
| 624 | 621 | /* SW1:5-8 Unused according to manual. */ |
| 625 | 622 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:4,3") /* Default is OFF, OFF (6) */ |
| 626 | 623 | PORT_DIPSETTING( 0x00, "3" ) |
| r3115 | r3116 | |
| 651 | 648 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 652 | 649 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 653 | 650 | |
| 654 | PORT_MODIFY(" | |
| 651 | PORT_MODIFY("IN2 | |
| 655 | 652 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 656 | 653 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 657 | 654 | PORT_DIPSETTING( 0x08, "1500" ) |
| r3115 | r3116 | |
| 678 | 675 | static ADDRESS_MAP_START( rollingc_io_map, ADDRESS_SPACE_IO, 8 ) |
| 679 | 676 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") AM_WRITE(rollingc_sh_port_w) |
| 680 | 677 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 681 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 678 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 682 | 679 | AM_RANGE(0x03, 0x03) AM_READ(mb14241_0_shift_result_r) |
| 683 | 680 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 684 | 681 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 694 | 691 | PORT_MODIFY("IN1") |
| 695 | 692 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 696 | 693 | |
| 697 | PORT_MODIFY(" | |
| 694 | PORT_MODIFY("IN2 | |
| 698 | 695 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "SW1:4" ) |
| 699 | 696 | |
| 700 | 697 | /* Dummy port for cocktail mode (not used) */ |
| r3115 | r3116 | |
| 737 | 734 | static ADDRESS_MAP_START( schaser_io_map, ADDRESS_SPACE_IO, 8 ) |
| 738 | 735 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") |
| 739 | 736 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 740 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 737 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 741 | 738 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, schaser_sh_port_1_w) |
| 742 | 739 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 743 | 740 | AM_RANGE(0x05, 0x05) AM_WRITE(schaser_sh_port_2_w) |
| r3115 | r3116 | |
| 766 | 763 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START1 ) |
| 767 | 764 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 768 | 765 | |
| 769 | PORT_START(" | |
| 766 | PORT_START("IN2 | |
| 770 | 767 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 771 | 768 | PORT_DIPSETTING( 0x00, "3" ) |
| 772 | 769 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
| 838 | 835 | static ADDRESS_MAP_START( schasrcv_io_map, ADDRESS_SPACE_IO, 8 ) |
| 839 | 836 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") |
| 840 | 837 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 841 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 838 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 842 | 839 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, schasrcv_sh_port_1_w) |
| 843 | 840 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 844 | 841 | AM_RANGE(0x05, 0x05) AM_WRITE(schasrcv_sh_port_2_w) |
| r3115 | r3116 | |
| 854 | 851 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 855 | 852 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY |
| 856 | 853 | |
| 857 | PORT_MODIFY(" | |
| 854 | PORT_MODIFY("IN2 | |
| 858 | 855 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 859 | 856 | PORT_DIPSETTING( 0x00, "3" ) |
| 860 | 857 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
| 909 | 906 | AM_RANGE(0x4000, 0x5fff) AM_RAM AM_BASE(&mw8080bw_ram) AM_SIZE(&mw8080bw_ram_size) |
| 910 | 907 | AM_RANGE(0x8008, 0x8008) AM_READ_PORT("PADDLE") |
| 911 | 908 | AM_RANGE(0x8009, 0x8009) AM_READ(mb14241_0_shift_result_r) |
| 912 | AM_RANGE(0x800a, 0x800a) AM_READ_PORT(" | |
| 909 | AM_RANGE(0x800a, 0x800a) AM_READ_PORT("IN2 | |
| 913 | 910 | AM_RANGE(0x800b, 0x800b) AM_READ_PORT("IN0") |
| 914 | 911 | AM_RANGE(0x8018, 0x8018) AM_WRITE(mb14241_0_shift_data_w) |
| 915 | 912 | AM_RANGE(0x8019, 0x8019) AM_WRITE(mb14241_0_shift_count_w) |
| r3115 | r3116 | |
| 943 | 940 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 944 | 941 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 945 | 942 | |
| 946 | PORT_START(" | |
| 943 | PORT_START("IN2 | |
| 947 | 944 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 948 | 945 | PORT_DIPSETTING( 0x00, "3" ) |
| 949 | 946 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
| 972 | 969 | static ADDRESS_MAP_START( lupin3_io_map, ADDRESS_SPACE_IO, 8 ) |
| 973 | 970 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") |
| 974 | 971 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 975 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 972 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 976 | 973 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, lupin3_sh_port_1_w) |
| 977 | 974 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 978 | 975 | AM_RANGE(0x05, 0x05) AM_WRITE(lupin3_sh_port_2_w) |
| r3115 | r3116 | |
| 1000 | 997 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1001 | 998 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1002 | 999 | |
| 1003 | PORT_MODIFY(" | |
| 1000 | PORT_MODIFY("IN2 | |
| 1004 | 1001 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:3") |
| 1005 | 1002 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1006 | 1003 | PORT_DIPSETTING( 0x04, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
| 1076 | 1073 | static ADDRESS_MAP_START( polaris_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1077 | 1074 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") AM_WRITE(mb14241_0_shift_count_w) |
| 1078 | 1075 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 1079 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 1076 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 1080 | 1077 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, mb14241_0_shift_data_w) |
| 1081 | 1078 | AM_RANGE(0x04, 0x04) AM_WRITE(polaris_sh_port_2_w) |
| 1082 | 1079 | AM_RANGE(0x05, 0x05) AM_WRITE(watchdog_reset_w) |
| r3115 | r3116 | |
| 1107 | 1104 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1108 | 1105 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1109 | 1106 | |
| 1110 | PORT_MODIFY(" | |
| 1107 | PORT_MODIFY("IN2 | |
| 1111 | 1108 | /* 0x04 should be Cabinet - Upright/Cocktail, |
| 1112 | 1109 | but until the cocktail hack is changed, |
| 1113 | 1110 | this will have to do. */ |
| r3115 | r3116 | |
| 1173 | 1170 | PORT_MODIFY("IN1") |
| 1174 | 1171 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1175 | 1172 | |
| 1176 | PORT_MODIFY(" | |
| 1173 | PORT_MODIFY("IN2 | |
| 1177 | 1174 | PORT_DIPNAME( 0x03, 0x00, "Energy" ) PORT_DIPLOCATION("SW1:1,2") |
| 1178 | 1175 | PORT_DIPSETTING( 0x00, "15000" ) |
| 1179 | 1176 | PORT_DIPSETTING( 0x01, "20000" ) |
| r3115 | r3116 | |
| 1210 | 1207 | PORT_MODIFY("IN1") |
| 1211 | 1208 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1212 | 1209 | |
| 1213 | PORT_MODIFY(" | |
| 1210 | PORT_MODIFY("IN2 | |
| 1214 | 1211 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 1215 | 1212 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 1216 | 1213 | PORT_DIPSETTING( 0x08, "2000" ) |
| r3115 | r3116 | |
| 1231 | 1228 | PORT_MODIFY("IN1") |
| 1232 | 1229 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY //typo? declared twice |
| 1233 | 1230 | |
| 1234 | PORT_MODIFY(" | |
| 1231 | PORT_MODIFY("IN2 | |
| 1235 | 1232 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 1236 | 1233 | INPUT_PORTS_END |
| 1237 | 1234 | |
| r3115 | r3116 | |
| 1245 | 1242 | static ADDRESS_MAP_START( ballbomb_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1246 | 1243 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") |
| 1247 | 1244 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") |
| 1248 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 1245 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 1249 | 1246 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, ballbomb_sh_port_1_w) |
| 1250 | 1247 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 1251 | 1248 | AM_RANGE(0x05, 0x05) AM_WRITE(ballbomb_sh_port_2_w) |
| r3115 | r3116 | |
| 1258 | 1255 | PORT_MODIFY("IN1") |
| 1259 | 1256 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1260 | 1257 | |
| 1261 | PORT_MODIFY(" | |
| 1258 | PORT_MODIFY("IN2 | |
| 1262 | 1259 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "SW1:4" ) |
| 1263 | 1260 | PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x00, "SW1:8" ) |
| 1264 | 1261 | INPUT_PORTS_END |
| r3115 | r3116 | |
| 1367 | 1364 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1368 | 1365 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1369 | 1366 | |
| 1370 | PORT_START(" | |
| 1367 | PORT_START("IN2 | |
| 1371 | 1368 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 1372 | 1369 | PORT_DIPSETTING( 0x00, "3" ) |
| 1373 | 1370 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
| 1424 | 1421 | static ADDRESS_MAP_START( indianbt_io_map, ADDRESS_SPACE_IO, 8 ) |
| 1425 | 1422 | AM_RANGE(0x00, 0x00) AM_READ(indianbt_r) |
| 1426 | 1423 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN0") |
| 1427 | AM_RANGE(0x02, 0x02) AM_READ_PORT(" | |
| 1424 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2 | |
| 1428 | 1425 | AM_RANGE(0x03, 0x03) AM_READWRITE(mb14241_0_shift_result_r, indianbt_sh_port_1_w) |
| 1429 | 1426 | AM_RANGE(0x04, 0x04) AM_WRITE(mb14241_0_shift_data_w) |
| 1430 | 1427 | AM_RANGE(0x05, 0x05) AM_WRITE(indianbt_sh_port_2_w) |
| r3115 | r3116 | |
|---|---|---|
| 79 | 79 | AM_RANGE(0xffc300, 0xffcfff) AM_RAM |
| 80 | 80 | AM_RANGE(0xffd000, 0xffdfff) AM_RAM_WRITE(tail2nos_bgvideoram_w) AM_BASE(&tail2nos_bgvideoram) |
| 81 | 81 | AM_RANGE(0xffe000, 0xffefff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 82 | AM_RANGE(0xfff000, 0xfff001) AM_READWRITE(input_port_0_word_r, tail2nos_gfxbank_w) | |
| 83 | AM_RANGE(0xfff004, 0xfff005) AM_READ(input_port_1_word_r) | |
| 82 | AM_RANGE(0xfff000, 0xfff001) AM_READ_PORT("INPUTS") AM_WRITE(tail2nos_gfxbank_w) | |
| 83 | AM_RANGE(0xfff004, 0xfff005) AM_READ_PORT("DSW") | |
| 84 | 84 | AM_RANGE(0xfff008, 0xfff009) AM_WRITE(sound_command_w) |
| 85 | 85 | ADDRESS_MAP_END |
| 86 | 86 |
| r3115 | r3116 | |
|---|---|---|
| 60 | 60 | #include "driver.h" |
| 61 | 61 | #include "cvs.h" |
| 62 | 62 | #include "cpu/s2650/s2650.h" |
| 63 | #include "cpu/ | |
| 63 | #include "cpu/mcs48 | |
| 64 | 64 | #include "sound/dac.h" |
| 65 | 65 | #include "video/s2636.h" |
| 66 | 66 | |
| r3115 | r3116 | |
| 125 | 125 | cvs_bullet_ram[offset] = (data ^ 0xff); |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | static int Quasar_T1=0; | |
| 129 | static int Quasar_Command=0; | |
| 130 | 128 | //static int sh_page=0; |
| 131 | 129 | |
| 132 | 130 | static WRITE8_HANDLER( quasar_sh_command_w ) |
| r3115 | r3116 | |
| 137 | 135 | // lower nibble = command to I8035 |
| 138 | 136 | // not necessarily like this, but it seems to work better than direct mapping |
| 139 | 137 | // (although schematics has it as direct - but then the schematics are wrong elsewhere to!) |
| 140 | Quasar_Command = (data & 8) + ((data >> 1) & 3) + ((data << 2) & 4); | |
| 141 | Quasar_T1 = (Quasar_Command != 15); | |
| 138 | soundlatch_w(machine, 0, (data & 8) + ((data >> 1) & 3) + ((data << 2) & 4)); | |
| 142 | 139 | } |
| 143 | 140 | |
| 144 | 141 | static READ8_HANDLER( quasar_sh_command_r ) |
| 145 | 142 | { |
| 146 | // Clear T1 signal | |
| 147 | Quasar_T1 = 0; | |
| 148 | ||
| 149 | // Testing ... | |
| 150 | // return input_port_read(machine, "DSW2"); | |
| 151 | ||
| 152 | // Add in sound DIP switch | |
| 153 | return (Quasar_Command) + (input_port_read(machine, "DSW2") & 0x30); | |
| 143 | return soundlatch_r(machine, 0) + (input_port_read(machine, "DSW2") & 0x30); | |
| 154 | 144 | } |
| 155 | 145 | |
| 156 | static READ8_HANDLER( | |
| 146 | static READ8_HANDLER( | |
| 157 | 147 | { |
| 158 | return | |
| 148 | return (soundlatch_r(machine, 0) == 0); | |
| 159 | 149 | } |
| 160 | 150 | |
| 161 | static WRITE8_HANDLER( | |
| 151 | static WRITE8_HANDLER( | |
| 162 | 152 | { |
| 163 | dac_0_signed_data_w(machine,0,data); | |
| 153 | dac_0_signed_data_w(machine, 0, data); | |
| 164 | 154 | } |
| 165 | 155 | |
| 166 | 156 | // memory map taken from the manual |
| r3115 | r3116 | |
| 192 | 182 | * |
| 193 | 183 | *************************************/ |
| 194 | 184 | |
| 195 | static ADDRESS_MAP_START( readmem_sound, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 196 | AM_RANGE(0x0000, 0x07ff) AM_READ(SMH_ROM) | |
| 185 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 186 | AM_RANGE(0x0000, 0x07ff) AM_ROM | |
| 197 | 187 | ADDRESS_MAP_END |
| 198 | 188 | |
| 199 | static ADDRESS_MAP_START( writemem_sound, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 200 | AM_RANGE(0x0000, 0x07ff) AM_WRITE(SMH_ROM) | |
| 189 | static ADDRESS_MAP_START( sound_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 190 | AM_RANGE(0x00, 0x7f) AM_RAM | |
| 191 | AM_RANGE(0x80, 0x80) AM_READ(quasar_sh_command_r) | |
| 192 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(audio_t1_r) | |
| 193 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(audio_dac_w) | |
| 201 | 194 | ADDRESS_MAP_END |
| 202 | 195 | |
| 203 | static ADDRESS_MAP_START( readport_sound, ADDRESS_SPACE_IO, 8 ) | |
| 204 | AM_RANGE(0x00 , 0x7F ) AM_READ(SMH_RAM) | |
| 205 | AM_RANGE(0x80 , 0x80 ) AM_READ(quasar_sh_command_r) | |
| 206 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(Quasar_T1_r) | |
| 207 | ADDRESS_MAP_END | |
| 208 | ||
| 209 | static ADDRESS_MAP_START( writeport_sound, ADDRESS_SPACE_IO, 8 ) | |
| 210 | AM_RANGE(0x00 , 0x7F ) AM_WRITE(SMH_RAM) | |
| 211 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(Quasar_DAC_w) | |
| 212 | ADDRESS_MAP_END | |
| 213 | ||
| 214 | 196 | /************************************************************************ |
| 215 | 197 | |
| 216 | 198 | Inputs |
| r3115 | r3116 | |
| 348 | 330 | MDRV_CPU_VBLANK_INT("main", quasar_interrupt) |
| 349 | 331 | |
| 350 | 332 | MDRV_CPU_ADD("sound",I8035,6000000) /* 6MHz crystal divide by 15 in CPU */ |
| 351 | MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound) | |
| 352 | MDRV_CPU_IO_MAP(readport_sound,writeport_sound) | |
| 333 | MDRV_CPU_PROGRAM_MAP(sound_map,0) | |
| 334 | MDRV_CPU_IO_MAP(sound_portmap,0) | |
| 353 | 335 | |
| 354 | 336 | MDRV_MACHINE_START( cvs ) |
| 355 | 337 |
| r3115 | r3116 | |
|---|---|---|
| 138 | 138 | |
| 139 | 139 | static ADDRESS_MAP_START( main_io_map, ADDRESS_SPACE_IO, 8 ) |
| 140 | 140 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 141 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x03) AM_READ(input_port_0_r) | |
| 142 | AM_RANGE(0x04, 0x04) AM_MIRROR(0x03) AM_READ(input_port_1_r) | |
| 143 | AM_RANGE(0x08, 0x08) AM_READ(input_port_2_r) | |
| 144 | AM_RANGE(0x0a, 0x0a) AM_READ(input_port_3_r) | |
| 145 | AM_RANGE(0x0c, 0x0c) AM_READ(input_port_4_r) | |
| 146 | AM_RANGE(0x0e, 0x0e) AM_READ(input_port_5_r) | |
| 141 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x03) AM_READ_PORT("SW2") | |
| 142 | AM_RANGE(0x04, 0x04) AM_MIRROR(0x03) AM_READ_PORT("SW1") | |
| 143 | AM_RANGE(0x08, 0x08) AM_READ_PORT("DIAL") | |
| 144 | AM_RANGE(0x0a, 0x0a) AM_READ_PORT("COIN") | |
| 145 | AM_RANGE(0x0c, 0x0c) AM_READ_PORT("BUTTONS") | |
| 146 | AM_RANGE(0x0e, 0x0e) AM_READ_PORT("UNUSED") | |
| 147 | 147 | AM_RANGE(0x10, 0x10) AM_MIRROR(0x03) AM_WRITE(lamp_control_w) |
| 148 | 148 | AM_RANGE(0x14, 0xff) AM_NOP |
| 149 | 149 | ADDRESS_MAP_END |
| r3115 | r3116 | |
|---|---|---|
| 215 | 215 | { |
| 216 | 216 | if (ACCESSING_BITS_16_31) |
| 217 | 217 | { |
| 218 | return | |
| 218 | return | |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | // logerror("Unk EEPROM read mask %x\n", mem_mask); |
| r3115 | r3116 | |
| 228 | 228 | cpunum_set_input_line(machine, 0, 4, HOLD_LINE); |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | static | |
| 231 | static CUSTOM_I | |
| 232 | 232 | { |
| 233 | return input_port_read(field->port->machine, "SYSTEM"); | |
| 234 | } | |
| 235 | ||
| 236 | static CUSTOM_INPUT( mahjong_ctrl_r ) /* used by hotgmck/hgkairak */ | |
| 237 | { | |
| 238 | int player = (FPTR)param; | |
| 239 | int sel = (ps4_io_select[0] & 0x0000ff00) >> 8; | |
| 233 | 240 | int ret = 0xff; |
| 234 | int sel = (ps4_io_select[0] & 0x0000ff00) >> 8; | |
| 235 | 241 | |
| 236 | if (sel & 1) ret &= input_port_read(machine, offset ? "KEY4" : "KEY0" ); | |
| 237 | if (sel & 2) ret &= input_port_read(machine, offset ? "KEY5" : "KEY1" ); | |
| 238 | if (sel & 4) ret &= input_port_read(machine, offset ? "KEY6" : "KEY2" ); | |
| 239 | if (sel & 8) ret &= input_port_read(machine, offset ? "KEY7" : "KEY3" ); | |
| 242 | if (sel & 1) ret &= input_port_read(field->port->machine, player ? "KEY4" : "KEY0" ); | |
| 243 | if (sel & 2) ret &= input_port_read(field->port->machine, player ? "KEY5" : "KEY1" ); | |
| 244 | if (sel & 4) ret &= input_port_read(field->port->machine, player ? "KEY6" : "KEY2" ); | |
| 245 | if (sel & 8) ret &= input_port_read(field->port->machine, player ? "KEY7" : "KEY3" ); | |
| 240 | 246 | |
| 241 | return ret | |
| 247 | return ret | |
| 242 | 248 | } |
| 243 | 249 | |
| 244 | static READ32_HANDLER(ps4_io32_r) /* used by loderndf/hotdebut */ | |
| 245 | { | |
| 246 | return ((input_port_read(machine, offset ? "P3" : "P1" ) << 24) | (input_port_read(machine, offset ? "P4" : "P2" ) << 16) | (input_port_read(machine, offset ? "UNUSED1" : "UNUSED0" ) << 8) | (input_port_read(machine, offset ? "UNUSED2" : "SYSTEM" ) << 0)); | |
| 247 | } | |
| 248 | ||
| 249 | 250 | static WRITE32_HANDLER( ps4_paletteram32_RRRRRRRRGGGGGGGGBBBBBBBBxxxxxxxx_dword_w ) |
| 250 | 251 | { |
| 251 | 252 | int r,g,b; |
| r3115 | r3116 | |
| 447 | 448 | // AM_RANGE(0x03003fe8, 0x03003fef) AM_READ(SMH_RAM) // vid regs? |
| 448 | 449 | AM_RANGE(0x03004000, 0x03005fff) AM_READ(SMH_RAM) |
| 449 | 450 | AM_RANGE(0x05000000, 0x05000003) AM_READ(psh_ymf_fm_r) // read YMF status |
| 450 | AM_RANGE(0x05800000, 0x05800007) AM_READ(ps4_io32_r) // Screen 1+2's Controls | |
| 451 | AM_RANGE(0x05800000, 0x05800003) AM_READ_PORT("P1_P2") | |
| 452 | AM_RANGE(0x05800004, 0x05800007) AM_READ_PORT("P3_P4") | |
| 451 | 453 | AM_RANGE(0x06000000, 0x060fffff) AM_READ(SMH_RAM) // main RAM (1 meg) |
| 452 | 454 | |
| 453 | 455 | #if ROMTEST |
| r3115 | r3116 | |
| 537 | 539 | MACHINE_DRIVER_END |
| 538 | 540 | |
| 539 | 541 | |
| 542 | static INPUT_PORTS_START( hotgmck ) | |
| 543 | PORT_START("P1_P2") | |
| 544 | PORT_BIT( 0x000000ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_CUSTOM(system_port_r, NULL) | |
| 545 | PORT_BIT( 0x00ffff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 546 | PORT_BIT( 0xff000000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_CUSTOM(mahjong_ctrl_r, (void *)0) | |
| 540 | 547 | |
| 541 | #define UNUSED_PORT \ | |
| 542 | /* not read? */ \ | |
| 543 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 544 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 545 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 546 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 547 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 548 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 549 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 550 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 548 | PORT_START("P3_P4") | |
| 549 | PORT_BIT( 0x000000ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_CUSTOM(system_port_r, NULL) | |
| 550 | PORT_BIT( 0x00ffff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 551 | PORT_BIT( 0xff000000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_CUSTOM(mahjong_ctrl_r, (void *)1) | |
| 551 | 552 | |
| 552 | static INPUT_PORTS_START( hotgmck ) | |
| 553 | PORT_START("JP4")/* jumper pads 'JP4' on the PCB */ | |
| 554 | /* EEPROM is read here */ | |
| 555 | PORT_BIT( 0x00100000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 556 | ||
| 557 | PORT_START("SYSTEM") /* system inputs */ | |
| 558 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) // Screen 1 | |
| 559 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 560 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) // Screen 2 | |
| 561 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 562 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) // Screen 1 | |
| 563 | PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW) | |
| 564 | #if ROMTEST | |
| 565 | PORT_DIPNAME( 0x40, 0x40, "Debug" ) /* Unknown effects */ | |
| 566 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 567 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 568 | #else | |
| 569 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 570 | #endif | |
| 571 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE2 ) // Screen 2 | |
| 572 | ||
| 553 | 573 | PORT_START("KEY0") /* fake player 1 controls 1st bank */ |
| 554 | 574 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) |
| 555 | 575 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E ) |
| r3115 | r3116 | |
| 629 | 649 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 630 | 650 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 631 | 651 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 632 | ||
| 633 | PORT_START("SYSTEM") /* system inputs */ | |
| 634 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) // Screen 1 | |
| 635 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 636 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) // Screen 2 | |
| 637 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 638 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) // Screen 1 | |
| 639 | PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW) | |
| 640 | #if ROMTEST | |
| 641 | PORT_DIPNAME( 0x40, 0x40, "Debug" ) /* Unknown effects */ | |
| 642 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 643 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 644 | #else | |
| 645 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 646 | #endif | |
| 647 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE2 ) // Screen 2 | |
| 648 | ||
| 649 | PORT_START("JP4")/* jumper pads 'JP4' on the PCB */ | |
| 650 | UNUSED_PORT | |
| 651 | 652 | INPUT_PORTS_END |
| 652 | 653 | |
| 653 | 654 | static INPUT_PORTS_START( loderndf ) |
| 654 | PORT_START("P1") /* player 1 controls */ | |
| 655 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 656 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 657 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 658 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 659 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 660 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 661 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // Can be used as Retry button | |
| 662 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 663 | ||
| 664 | PORT_START("P2") /* player 2 controls */ | |
| 665 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 666 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 667 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 668 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 669 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 670 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 671 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) // Can be used as Retry button | |
| 672 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 673 | ||
| 674 | PORT_START("UNUSED0") | |
| 675 | UNUSED_PORT /* unused? */ | |
| 676 | ||
| 677 | PORT_START("SYSTEM") /* system inputs */ | |
| 678 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) // Screen 1 | |
| 679 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) // Screen 1 - 2nd slot | |
| 680 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) // Screen 2 | |
| 681 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN4 ) // Screen 2 - 2nd slot | |
| 682 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) // Screen 1 | |
| 683 | PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW) | |
| 655 | PORT_START("P1_P2") | |
| 656 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 ) // Screen 1 | |
| 657 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_COIN2 ) // Screen 1 - 2nd slot | |
| 658 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_COIN3 ) // Screen 2 | |
| 659 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_COIN4 ) // Screen 2 - 2nd slot | |
| 660 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) // Screen 1 | |
| 661 | PORT_SERVICE_NO_TOGGLE( 0x00000020, IP_ACTIVE_LOW) | |
| 684 | 662 | #if ROMTEST |
| 685 | PORT_DIPNAME( 0x40, 0x40, "Debug" ) /* Must be high for rom test, unknown other side-effects */ | |
| 686 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 687 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 663 | PORT_DIPNAME( 0x00000040, 0x00000040, "Debug" ) /* Must be high for rom test, unknown other side-effects */ | |
| 664 | PORT_DIPSETTING( 0x00000040, DEF_STR( Off ) ) | |
| 665 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 688 | 666 | #else |
| 689 | PORT_BIT( 0x40, IP_ACTIVE_LOW, | |
| 667 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, | |
| 690 | 668 | #endif |
| 691 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE2 ) // Screen 2 | |
| 669 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_SERVICE2 ) // Screen 2 | |
| 670 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 671 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 672 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 673 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 674 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 675 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 676 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 677 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 692 | 678 | |
| 693 | PORT_START("P3") /* player 1 controls on second screen */ | |
| 694 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) | |
| 695 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) | |
| 696 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) | |
| 697 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) | |
| 698 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 699 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 700 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) // Can be used as Retry button | |
| 701 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 679 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 680 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 681 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 682 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 683 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 684 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 685 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) // Can be used as Retry button | |
| 686 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 687 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 688 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 689 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 690 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 691 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 692 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 693 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // Can be used as Retry button | |
| 694 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 702 | 695 | |
| 703 | PORT_START("P4") /* player 2 controls on second screen */ | |
| 704 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4) | |
| 705 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) | |
| 706 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) | |
| 707 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4) | |
| 708 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 709 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 710 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) // Can be used as Retry button | |
| 711 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) | |
| 696 | PORT_START("P3_P4") /* player 1/2 controls on second screen */ | |
| 697 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 698 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 699 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 700 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 701 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 702 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 703 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 704 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 705 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 706 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 707 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 708 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 709 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 710 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 711 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 712 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 712 | 713 | |
| 713 | PORT_START("UNUSED1") | |
| 714 | UNUSED_PORT | |
| 714 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4) | |
| 715 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) | |
| 716 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) | |
| 717 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4) | |
| 718 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 719 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 720 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) // Can be used as Retry button | |
| 721 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_START4 ) | |
| 722 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) | |
| 723 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) | |
| 724 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) | |
| 725 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) | |
| 726 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 727 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 728 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) // Can be used as Retry button | |
| 729 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_START3 ) | |
| 715 | 730 | |
| 716 | PORT_START("UNUSED2") | |
| 717 | UNUSED_PORT | |
| 718 | ||
| 719 | 731 | PORT_START("JP4")/* jumper pads 'JP4' on the PCB */ |
| 720 | 732 | // 1-ON,2-ON,3-ON,4-ON --> Japanese |
| 721 | 733 | // 1-ON,2-ON,3-ON,4-OFF --> English |
| 722 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Region ) ) | |
| 723 | PORT_DIPSETTING( 0x00, "Japan (Shows Version Number)" ) | |
| 724 | PORT_DIPSETTING( 0x01, "World (Does Not Show Version Number)" ) | |
| 734 | PORT_DIPNAME( 0x00030000, 0x00010000, DEF_STR( Region ) ) | |
| 735 | PORT_DIPSETTING( 0x00000000, "Japan (Shows Version Number)" ) | |
| 736 | PORT_DIPSETTING( 0x00010000, "World (Does Not Show Version Number)" ) | |
| 737 | /* EEPROM is read here */ | |
| 738 | PORT_BIT( 0x00100000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 725 | 739 | INPUT_PORTS_END |
| 726 | 740 | |
| 727 | 741 | /* unused inputs also act as duplicate buttons */ |
| 728 | 742 | static INPUT_PORTS_START( hotdebut ) |
| 729 | PORT_START("P1") /* player 1 controls */ | |
| 730 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 731 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 732 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 733 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 734 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 735 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 736 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 737 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 738 | ||
| 739 | PORT_START("P2") /* player 2 controls */ | |
| 740 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 741 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 742 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 743 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 744 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 745 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 746 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 747 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 748 | ||
| 749 | PORT_START("UNUSED0") | |
| 750 | UNUSED_PORT | |
| 751 | ||
| 752 | PORT_START("SYSTEM") /* system inputs */ | |
| 753 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) // Screen 1 | |
| 754 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) // Screen 1 - 2nd slot | |
| 755 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) // Screen 2 | |
| 756 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN4 ) // Screen 2 - 2nd slot | |
| 757 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) // Screen 1 | |
| 758 | PORT_SERVICE_NO_TOGGLE(0x20, IP_ACTIVE_LOW) | |
| 743 | PORT_START("P1_P2") | |
| 744 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 ) // Screen 1 | |
| 745 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_COIN2 ) // Screen 1 - 2nd slot | |
| 746 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_COIN3 ) // Screen 2 | |
| 747 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_COIN4 ) // Screen 2 - 2nd slot | |
| 748 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) // Screen 1 | |
| 749 | PORT_SERVICE_NO_TOGGLE( 0x00000020, IP_ACTIVE_LOW) | |
| 759 | 750 | #if ROMTEST |
| 760 | PORT_DIPNAME( 0x40, 0x40, "Debug" ) /* Must be high for rom test, unknown other side-effects */ | |
| 761 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 762 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 751 | PORT_DIPNAME( 0x00000040, 0x00000040, "Debug" ) /* Must be high for rom test, unknown other side-effects */ | |
| 752 | PORT_DIPSETTING( 0x00000040, DEF_STR( Off ) ) | |
| 753 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 763 | 754 | #else |
| 764 | PORT_BIT( 0x40, IP_ACTIVE_LOW, | |
| 755 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, | |
| 765 | 756 | #endif |
| 766 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE2 ) // Screen 2 | |
| 757 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_SERVICE2 ) // Screen 2 | |
| 758 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 759 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 760 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 761 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 762 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 763 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 764 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 765 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 767 | 766 | |
| 768 | PORT_START("P3") /* player 1 controls on second screen */ | |
| 769 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 770 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 771 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 772 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) | |
| 773 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 774 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 775 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 776 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 ) | |
| 767 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 768 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 769 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 770 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 771 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 772 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 773 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 774 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 775 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 776 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 777 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 778 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 779 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 780 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 781 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 782 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 777 | 783 | |
| 778 | PORT_START("P4") /* player 2 controls on second screen */ | |
| 779 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 780 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 781 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 782 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) | |
| 783 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 784 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 785 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 786 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START4 ) | |
| 784 | PORT_START("P3_P4") /* player 1/2 controls on second screen */ | |
| 785 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 786 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 787 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 788 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 789 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 790 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 791 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 792 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 793 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 794 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 795 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 796 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 797 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 798 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 799 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 800 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 787 | 801 | |
| 788 | PORT_START("UNUSED1") | |
| 789 | UNUSED_PORT | |
| 802 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) | |
| 803 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) | |
| 804 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4) | |
| 805 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4) | |
| 806 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 807 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 808 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 809 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_START4 ) | |
| 810 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 811 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 812 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 813 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) | |
| 814 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 815 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 816 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 817 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_START3 ) | |
| 790 | 818 | |
| 791 | PORT_START("UNUSED2") | |
| 792 | UNUSED_PORT | |
| 793 | ||
| 794 | 819 | PORT_START("JP4")/* jumper pads 'JP4' on the PCB */ |
| 795 | UNUSED_PORT | |
| 820 | /* EEPROM is read here */ | |
| 821 | PORT_BIT( 0x00100000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 796 | 822 | INPUT_PORTS_END |
| 797 | 823 | |
| 798 | 824 | #if ROMTEST |
| r3115 | r3116 | |
| 1091 | 1117 | { |
| 1092 | 1118 | UINT8 *RAM = memory_region(machine, "main"); |
| 1093 | 1119 | memory_set_bankptr(1,&RAM[0x100000]); |
| 1094 | memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x5800000, 0x5800007, 0, 0, hotgmck_io32_r ); // Different Inputs | |
| 1095 | 1120 | install_hotgmck_pcm_bank(machine); // Banked PCM ROM |
| 1096 | 1121 | } |
| 1097 | 1122 |
| r3115 | r3116 | |
|---|---|---|
| 43 | 43 | AM_RANGE(0xe400, 0xe47f) AM_READ(SMH_RAM) |
| 44 | 44 | AM_RANGE(0xec00, 0xec0f) AM_READ(SMH_NOP) /* Analog sound effects ??*/ |
| 45 | 45 | AM_RANGE(0xf000, 0xf0ff) AM_READ(SMH_RAM) |
| 46 | AM_RANGE(0xf800, 0xf800) AM_READ(input_port_0_r) /* player1*/ | |
| 47 | AM_RANGE(0xf801, 0xf801) AM_READ(input_port_1_r) /* player2*/ | |
| 48 | AM_RANGE(0xf804, 0xf804) AM_READ(input_port_3_r) | |
| 49 | AM_RANGE(0xf802, 0xf802) AM_READ(input_port_2_r) | |
| 50 | AM_RANGE(0xf805, 0xf805) AM_READ(input_port_4_r) | |
| 46 | AM_RANGE(0xf800, 0xf800) AM_READ_PORT("P1") | |
| 47 | AM_RANGE(0xf801, 0xf801) AM_READ_PORT("P2") | |
| 48 | AM_RANGE(0xf804, 0xf804) AM_READ_PORT("DSW1") | |
| 49 | AM_RANGE(0xf802, 0xf802) AM_READ_PORT("SYSTEM") | |
| 50 | AM_RANGE(0xf805, 0xf805) AM_READ_PORT("DSW2") | |
| 51 | 51 | AM_RANGE(0xd806, 0xd806) AM_READ(SMH_NOP) /* looks like a watchdog, bit4 checked*/ |
| 52 | 52 | ADDRESS_MAP_END |
| 53 | 53 | |
| r3115 | r3116 | |
| 117 | 117 | PORT_BIT( 0x02, IP_ACTIVE_HIGH,IPT_COIN2 ) |
| 118 | 118 | PORT_BIT( 0x04, IP_ACTIVE_HIGH,IPT_SERVICE1 ) |
| 119 | 119 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) |
| 120 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 121 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 120 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 121 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 122 | 122 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START1 ) |
| 123 | 123 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START2 ) |
| 124 | 124 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) |
| 125 | 125 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) |
| 126 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 127 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 126 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 127 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 128 | 128 | |
| 129 | 129 | PORT_START("DSW1") |
| 130 | 130 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) ) |
| r3115 | r3116 | |
| 153 | 153 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 154 | 154 | /* PORT_DIPNAME( 0x80, 0x00, "Free Run" ) */ |
| 155 | 155 | PORT_DIPNAME( 0x80, 0x00, "Invulnerability (Cheat)" ) |
| 156 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 156 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) /* test mode, you are invulnerable */ | |
| 157 | 157 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) /* to 'static' objects */ |
| 158 | 158 | |
| 159 | 159 | PORT_START("DSW2") |
| r3115 | r3116 | |
|---|---|---|
| 89 | 89 | { |
| 90 | 90 | switch (offset<<1) |
| 91 | 91 | { |
| 92 | case 0: /* Player 1 & Player 2 joysticks & fire buttons */ | |
| 93 | return (input_port_read(machine, "P1") + (input_port_read(machine, "P2") << 8)); | |
| 94 | case 2: /* Dips */ | |
| 95 | return (input_port_read(machine, "DSW1") + (input_port_read(machine, "DSW2") << 8)); | |
| 96 | case 8: /* Credits */ | |
| 92 | case 0: | |
| 93 | return input_port_read(machine, "PLAYERS"); | |
| 94 | case 2: | |
| 95 | return input_port_read(machine, "DSW"); | |
| 96 | case 8: | |
| 97 | 97 | return input_port_read(machine, "SYSTEM"); |
| 98 | 98 | case 10: /* ? */ |
| 99 | 99 | case 12: |
| r3115 | r3116 | |
| 155 | 155 | /******************************************************************************/ |
| 156 | 156 | |
| 157 | 157 | static INPUT_PORTS_START( tumblep ) |
| 158 | PORT_START("P1") /* Player 1 controls */ | |
| 159 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 160 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 161 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 162 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 163 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 164 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 165 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 166 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 158 | PORT_START("PLAYERS") | |
| 159 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 160 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 161 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 162 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 163 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 164 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 165 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 166 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 167 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 168 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 169 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 170 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 171 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 172 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 173 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 174 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 167 | 175 | |
| 168 | PORT_START("P2") /* Player 2 controls */ | |
| 169 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 170 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 171 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 172 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 173 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 174 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 175 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 176 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 176 | PORT_START("SYSTEM") | |
| 177 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 178 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 179 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 180 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 181 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 182 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 183 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 184 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 177 | 185 | |
| 178 | PORT_START("SYSTEM") /* Credits */ | |
| 179 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 180 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 181 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 182 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 183 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 184 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 185 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 186 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 186 | PORT_START("DSW") | |
| 187 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) | |
| 188 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 189 | PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) ) | |
| 190 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) | |
| 191 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) | |
| 192 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) | |
| 193 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) | |
| 194 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_5C ) ) | |
| 195 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_6C ) ) | |
| 196 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) | |
| 197 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 198 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) | |
| 199 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) | |
| 200 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) | |
| 201 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) | |
| 202 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) | |
| 203 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) ) | |
| 204 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_6C ) ) | |
| 205 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 206 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 207 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 208 | PORT_DIPNAME( 0x0001, 0x0001, "2 Coins to Start, 1 to Continue" ) | |
| 209 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 210 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 187 | 211 | |
| 188 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 189 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) | |
| 190 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 191 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 192 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 193 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) ) | |
| 194 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) | |
| 195 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 196 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_5C ) ) | |
| 197 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_6C ) ) | |
| 198 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) ) | |
| 199 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 200 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 201 | PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) ) | |
| 202 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_2C ) ) | |
| 203 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) | |
| 204 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 205 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) | |
| 206 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_6C ) ) | |
| 207 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 208 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 209 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 210 | PORT_DIPNAME( 0x01, 0x01, "2 Coins to Start, 1 to Continue" ) | |
| 211 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 212 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 213 | ||
| 214 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 215 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) | |
| 216 | PORT_DIPSETTING( 0x80, "1" ) | |
| 217 | PORT_DIPSETTING( 0x00, "2" ) | |
| 218 | PORT_DIPSETTING( 0xc0, "3" ) | |
| 219 | PORT_DIPSETTING( 0x40, "4" ) | |
| 220 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 221 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 222 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 223 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 224 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 212 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) | |
| 213 | PORT_DIPSETTING( 0x8000, "1" ) | |
| 214 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 215 | PORT_DIPSETTING( 0xc000, "3" ) | |
| 216 | PORT_DIPSETTING( 0x4000, "4" ) | |
| 217 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) | |
| 218 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) | |
| 219 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) | |
| 220 | PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) ) | |
| 221 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 225 | 222 | #if TUMBLEP_HACK |
| 226 | PORT_DIPNAME( 0x08, 0x08, "Remove Monsters" ) | |
| 223 | PORT_DIPNAME( 0x0800, 0x0800, "Remove Monsters" ) | |
| 227 | 224 | #else |
| 228 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) // See notes | |
| 225 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) ) // See notes | |
| 229 | 226 | #endif |
| 230 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 231 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 227 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 228 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 232 | 229 | #if TUMBLEP_HACK |
| 233 | PORT_DIPNAME( 0x04, 0x04, "Edit Levels" ) | |
| 230 | PORT_DIPNAME( 0x0400, 0x0400, "Edit Levels" ) | |
| 234 | 231 | #else |
| 235 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) // See notes | |
| 232 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) ) // See notes | |
| 236 | 233 | #endif |
| 237 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 238 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 239 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Allow_Continue ) ) | |
| 240 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 241 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) | |
| 242 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 243 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 244 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 234 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 235 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 236 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) ) | |
| 237 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 238 | PORT_DIPSETTING( 0x0200, DEF_STR( Yes ) ) | |
| 239 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 240 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 241 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 245 | 242 | INPUT_PORTS_END |
| 246 | 243 | |
| 247 | 244 | /******************************************************************************/ |
| r3115 | r3116 | |
|---|---|---|
| 171 | 171 | #include "includes/taitosj.h" |
| 172 | 172 | |
| 173 | 173 | |
| 174 | static UINT8 sndnmi_disable | |
| 174 | static UINT8 sndnmi_disable | |
| 175 | 175 | |
| 176 | 176 | static WRITE8_HANDLER( taitosj_sndnmi_msk_w ) |
| 177 | 177 | { |
| r3115 | r3116 | |
| 491 | 491 | |
| 492 | 492 | PORT_START("IN4") |
| 493 | 493 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 494 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 494 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 495 | 495 | |
| 496 | 496 | PORT_START("DSW1") |
| 497 | 497 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
| 573 | 573 | |
| 574 | 574 | PORT_START("IN4") |
| 575 | 575 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 576 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 576 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 577 | 577 | |
| 578 | 578 | PORT_START("DSW1") |
| 579 | 579 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
| 657 | 657 | |
| 658 | 658 | PORT_START("IN4") |
| 659 | 659 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 660 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 660 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 661 | 661 | |
| 662 | 662 | PORT_START("DSW1") |
| 663 | 663 | PORT_DIPNAME( 0x03, 0x03, "Finish Bonus" ) |
| r3115 | r3116 | |
| 721 | 721 | |
| 722 | 722 | PORT_START("IN4") |
| 723 | 723 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 724 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 724 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 725 | 725 | |
| 726 | 726 | PORT_START("DSW1") |
| 727 | 727 | PORT_DIPNAME( 0x03, 0x03, "Finish Bonus" ) |
| r3115 | r3116 | |
| 806 | 806 | |
| 807 | 807 | PORT_START("IN4") |
| 808 | 808 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 809 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 809 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 810 | 810 | |
| 811 | 811 | PORT_START("DSW1") |
| 812 | 812 | PORT_DIPNAME( 0x03, 0x03, "Jump Bonus" ) |
| r3115 | r3116 | |
| 891 | 891 | |
| 892 | 892 | PORT_START("IN4") |
| 893 | 893 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 894 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 894 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 895 | 895 | |
| 896 | 896 | PORT_START("DSW1") |
| 897 | 897 | PORT_DIPNAME( 0x03, 0x03, "Jump Bonus" ) |
| r3115 | r3116 | |
| 969 | 969 | |
| 970 | 970 | PORT_START("IN4") |
| 971 | 971 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 972 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 972 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 973 | 973 | |
| 974 | 974 | PORT_START("DSW1") |
| 975 | 975 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
| 1169 | 1169 | |
| 1170 | 1170 | PORT_START("IN4") |
| 1171 | 1171 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1172 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 1172 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 1173 | 1173 | |
| 1174 | 1174 | PORT_START("DSW1") |
| 1175 | 1175 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) ) |
| r3115 | r3116 | |
| 1252 | 1252 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 1253 | 1253 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 1254 | 1254 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY PORT_COCKTAIL |
| 1255 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 1255 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 1256 | 1256 | |
| 1257 | 1257 | PORT_START("DSW1") |
| 1258 | 1258 | PORT_DIPNAME( 0x03, 0x03, "Bonus Life?" ) |
| r3115 | r3116 | |
| 1335 | 1335 | |
| 1336 | 1336 | PORT_START("IN4") |
| 1337 | 1337 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1338 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 1338 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 1339 | 1339 | |
| 1340 | 1340 | PORT_START("DSW1") |
| 1341 | 1341 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
| 1424 | 1424 | |
| 1425 | 1425 | PORT_START("IN4") |
| 1426 | 1426 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1427 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 1427 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 1428 | 1428 | |
| 1429 | 1429 | PORT_START("DSW1") /* d50a */ |
| 1430 | 1430 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) ) |
| r3115 | r3116 | |
| 1491 | 1491 | |
| 1492 | 1492 | PORT_START("IN4") |
| 1493 | 1493 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1494 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 1494 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 1495 | 1495 | |
| 1496 | 1496 | PORT_START("DSW1") |
| 1497 | 1497 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
| 1559 | 1559 | |
| 1560 | 1560 | PORT_START("IN4") |
| 1561 | 1561 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1562 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, | |
| 1562 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(input_port_4_f0_r, NULL) // from sound CPU | |
| 1563 | 1563 | |
| 1564 | 1564 | PORT_START("DSW1") |
| 1565 | 1565 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
| 2697 | 2697 | ROM_LOAD( "pal16l8.28", 0x0000, 0x0104, NO_DUMP ) /* PAL is read protected */ |
| 2698 | 2698 | ROM_END |
| 2699 | 2699 | |
| 2700 | static void reset_common(running_machine *machine) | |
| 2701 | { | |
| 2702 | sndnmi_disable = 1; | |
| 2703 | input_port_4_f0 = 0; | |
| 2704 | /* start in 1st gear */ | |
| 2705 | kikstart_gears[0] = 0x02; | |
| 2706 | kikstart_gears[1] = 0x02; | |
| 2707 | dac_out = 0; | |
| 2708 | dac_vol = 0; | |
| 2709 | } | |
| 2710 | ||
| 2711 | static void init_common(running_machine *machine) | |
| 2712 | { | |
| 2713 | state_save_register_global(sndnmi_disable); | |
| 2714 | state_save_register_global(input_port_4_f0); | |
| 2715 | state_save_register_global_array(kikstart_gears); | |
| 2716 | state_save_register_global(dac_out); | |
| 2717 | state_save_register_global(dac_vol); | |
| 2718 | ||
| 2719 | add_reset_callback(machine, reset_common); | |
| 2720 | } | |
| 2721 | ||
| 2722 | static DRIVER_INIT( taitosj ) | |
| 2723 | { | |
| 2724 | init_common(machine); | |
| 2725 | } | |
| 2726 | ||
| 2700 | 2727 | static DRIVER_INIT( spacecr ) |
| 2701 | 2728 | { |
| 2729 | init_common(machine); | |
| 2730 | ||
| 2702 | 2731 | /* install protection handler */ |
| 2703 | 2732 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xd48b, 0xd48b, 0, 0, spacecr_prot_r); |
| 2704 | 2733 | } |
| 2705 | 2734 | |
| 2706 | 2735 | static DRIVER_INIT( alpine ) |
| 2707 | 2736 | { |
| 2737 | init_common(machine); | |
| 2738 | ||
| 2708 | 2739 | /* install protection handlers */ |
| 2709 | 2740 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xd40b, 0xd40b, 0, 0, alpine_port_2_r); |
| 2710 | 2741 | memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xd50f, 0xd50f, 0, 0, alpine_protection_w); |
| r3115 | r3116 | |
| 2712 | 2743 | |
| 2713 | 2744 | static DRIVER_INIT( alpinea ) |
| 2714 | 2745 | { |
| 2746 | init_common(machine); | |
| 2747 | ||
| 2715 | 2748 | /* install protection handlers */ |
| 2716 | 2749 | memory_install_read8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xd40b, 0xd40b, 0, 0, alpine_port_2_r); |
| 2717 | 2750 | memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xd50e, 0xd50e, 0, 0, alpinea_bankswitch_w); |
| r3115 | r3116 | |
| 2719 | 2752 | |
| 2720 | 2753 | static DRIVER_INIT( junglhbr ) |
| 2721 | 2754 | { |
| 2755 | init_common(machine); | |
| 2756 | ||
| 2722 | 2757 | /* inverter on bits 0 and 1 */ |
| 2723 | 2758 | memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x9000, 0xbfff, 0, 0, junglhbr_characterram_w); |
| 2724 | 2759 | } |
| 2725 | 2760 | |
| 2726 | static DRIVER_INIT( kikstart ) | |
| 2727 | { | |
| 2728 | /* start in 1st gear */ | |
| 2729 | kikstart_gears[0] = 0x02; | |
| 2730 | kikstart_gears[1] = 0x02; | |
| 2731 | } | |
| 2732 | ||
| 2733 | void taitosj_register_main_savestate(void) | |
| 2734 | { | |
| 2735 | state_save_register_global(sndnmi_disable); | |
| 2736 | state_save_register_global(input_port_4_f0); | |
| 2737 | state_save_register_global_array(kikstart_gears); | |
| 2738 | state_save_register_global(dac_out); | |
| 2739 | state_save_register_global(dac_vol); | |
| 2740 | } | |
| 2741 | ||
| 2742 | GAME( 1981, spaceskr, 0, nomcu, spaceskr, 0, ROT0, "Taito Corporation", "Space Seeker", GAME_SUPPORTS_SAVE ) | |
| 2761 | GAME( 1981, spaceskr, 0, nomcu, spaceskr, taitosj, ROT0, "Taito Corporation", "Space Seeker", GAME_SUPPORTS_SAVE ) | |
| 2743 | 2762 | GAME( 1981, spacecr, 0, nomcu, spacecr, spacecr, ROT90, "Taito Corporation", "Space Cruiser", GAME_SUPPORTS_SAVE ) |
| 2744 | GAME( 1982, junglek, 0, nomcu, junglek, 0, ROT180, "Taito Corporation", "Jungle King (Japan)", GAME_SUPPORTS_SAVE ) | |
| 2745 | GAME( 1982, junglkj2, junglek, nomcu, junglek, 0, ROT180, "Taito Corporation", "Jungle King (Japan, earlier)", GAME_SUPPORTS_SAVE ) | |
| 2746 | GAME( 1982, jungleh, junglek, nomcu, junglek, 0, ROT180, "Taito America Corporation", "Jungle Hunt (US)", GAME_SUPPORTS_SAVE ) | |
| 2763 | GAME( 1982, junglek, 0, nomcu, junglek, taitosj, ROT180, "Taito Corporation", "Jungle King (Japan)", GAME_SUPPORTS_SAVE ) | |
| 2764 | GAME( 1982, junglkj2, junglek, nomcu, junglek, taitosj, ROT180, "Taito Corporation", "Jungle King (Japan, earlier)", GAME_SUPPORTS_SAVE ) | |
| 2765 | GAME( 1982, jungleh, junglek, nomcu, junglek, taitosj, ROT180, "Taito America Corporation", "Jungle Hunt (US)", GAME_SUPPORTS_SAVE ) | |
| 2747 | 2766 | GAME( 1983, junglhbr, junglek, nomcu, junglek, junglhbr,ROT180, "Taito do Brasil", "Jungle Hunt (Brazil)", GAME_SUPPORTS_SAVE ) |
| 2748 | GAME( 1982, piratpet, junglek, nomcu, piratpet, | |
| 2767 | GAME( 1982, piratpet, junglek, nomcu, piratpet, taitosj, | |
| 2749 | 2768 | GAME( 1982, alpine, 0, nomcu, alpine, alpine, ROT270, "Taito Corporation", "Alpine Ski (set 1)", GAME_SUPPORTS_SAVE ) |
| 2750 | 2769 | GAME( 1982, alpinea, alpine, nomcu, alpinea, alpinea, ROT270, "Taito Corporation", "Alpine Ski (set 2)", GAME_SUPPORTS_SAVE ) |
| 2751 | GAME( 1982, timetunl, 0, nomcu, timetunl, 0, ROT0, "Taito Corporation", "Time Tunnel", GAME_SUPPORTS_SAVE ) | |
| 2752 | GAME( 1982, wwestern, 0, nomcu, wwestern, 0, ROT270, "Taito Corporation", "Wild Western (set 1)", GAME_SUPPORTS_SAVE ) | |
| 2753 | GAME( 1982, wwester1, wwestern, nomcu, wwestern, 0, ROT270, "Taito Corporation", "Wild Western (set 2)", GAME_SUPPORTS_SAVE ) | |
| 2754 | GAME( 1982, frontlin, 0, mcu, frontlin, 0, ROT270, "Taito Corporation", "Front Line", GAME_SUPPORTS_SAVE ) | |
| 2755 | GAME( 1983, elevator, 0, mcu, elevator, 0, ROT0, "Taito Corporation", "Elevator Action", GAME_SUPPORTS_SAVE ) | |
| 2756 | GAME( 1983, elevatob, elevator, nomcu, elevator, 0, ROT0, "bootleg", "Elevator Action (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 2757 | GAME( 1983, tinstar, 0, mcu, tinstar, 0, ROT0, "Taito Corporation", "The Tin Star (set 1)", GAME_SUPPORTS_SAVE ) | |
| 2758 | GAME( 1983, tinstar2, tinstar, mcu, tinstar, 0, ROT0, "Taito Corporation", "The Tin Star (set 2)", GAME_SUPPORTS_SAVE ) | |
| 2759 | GAME( 1983, waterski, 0, nomcu, waterski, 0, ROT270, "Taito Corporation", "Water Ski", GAME_SUPPORTS_SAVE ) | |
| 2760 | GAME( 1983, bioatack, 0, nomcu, bioatack, 0, ROT270, "Taito Corporation (Fox Video Games license)", "Bio Attack", GAME_SUPPORTS_SAVE ) | |
| 2761 | GAME( 1984, sfposeid, 0, mcu, sfposeid, 0, ROT0, "Taito Corporation", "Sea Fighter Poseidon", GAME_SUPPORTS_SAVE ) | |
| 2762 | GAME( 1983, hwrace, 0, nomcu, hwrace, 0, ROT270, "Taito Corporation", "High Way Race", GAME_SUPPORTS_SAVE ) | |
| 2763 | GAME( 1984, kikstart, 0, kikstart, kikstart, kikstart,ROT0, "Taito Corporation", "Kick Start Wheelie King", GAME_SUPPORTS_SAVE ) | |
| 2770 | GAME( 1982, timetunl, 0, nomcu, timetunl, taitosj, ROT0, "Taito Corporation", "Time Tunnel", GAME_SUPPORTS_SAVE ) | |
| 2771 | GAME( 1982, wwestern, 0, nomcu, wwestern, taitosj, ROT270, "Taito Corporation", "Wild Western (set 1)", GAME_SUPPORTS_SAVE ) | |
| 2772 | GAME( 1982, wwester1, wwestern, nomcu, wwestern, taitosj, ROT270, "Taito Corporation", "Wild Western (set 2)", GAME_SUPPORTS_SAVE ) | |
| 2773 | GAME( 1982, frontlin, 0, mcu, frontlin, taitosj, ROT270, "Taito Corporation", "Front Line", GAME_SUPPORTS_SAVE ) | |
| 2774 | GAME( 1983, elevator, 0, mcu, elevator, taitosj, ROT0, "Taito Corporation", "Elevator Action", GAME_SUPPORTS_SAVE ) | |
| 2775 | GAME( 1983, elevatob, elevator, nomcu, elevator, taitosj, ROT0, "bootleg", "Elevator Action (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 2776 | GAME( 1983, tinstar, 0, mcu, tinstar, taitosj, ROT0, "Taito Corporation", "The Tin Star (set 1)", GAME_SUPPORTS_SAVE ) | |
| 2777 | GAME( 1983, tinstar2, tinstar, mcu, tinstar, taitosj, ROT0, "Taito Corporation", "The Tin Star (set 2)", GAME_SUPPORTS_SAVE ) | |
| 2778 | GAME( 1983, waterski, 0, nomcu, waterski, taitosj, ROT270, "Taito Corporation", "Water Ski", GAME_SUPPORTS_SAVE ) | |
| 2779 | GAME( 1983, bioatack, 0, nomcu, bioatack, taitosj, ROT270, "Taito Corporation (Fox Video Games license)", "Bio Attack", GAME_SUPPORTS_SAVE ) | |
| 2780 | GAME( 1984, sfposeid, 0, mcu, sfposeid, taitosj, ROT0, "Taito Corporation", "Sea Fighter Poseidon", GAME_SUPPORTS_SAVE ) | |
| 2781 | GAME( 1983, hwrace, 0, nomcu, hwrace, taitosj, ROT270, "Taito Corporation", "High Way Race", GAME_SUPPORTS_SAVE ) | |
| 2782 | GAME( 1984, kikstart, 0, kikstart, kikstart, taitosj, ROT0, "Taito Corporation", "Kick Start Wheelie King", GAME_SUPPORTS_SAVE ) |
| r3115 | r3116 | |
|---|---|---|
| 82 | 82 | |
| 83 | 83 | static ADDRESS_MAP_START( vigilant_io_map, ADDRESS_SPACE_IO, 8 ) |
| 84 | 84 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 85 | AM_RANGE(0x00, 0x00) AM_READWRITE(input_port_0_r, m72_sound_command_byte_w) /* SD */ | |
| 86 | AM_RANGE(0x01, 0x01) AM_READWRITE(input_port_1_r, vigilant_out2_w) /* OUT2 */ | |
| 87 | AM_RANGE(0x02, 0x02) AM_READ(input_port_2_r) | |
| 88 | AM_RANGE(0x03, 0x03) AM_READ(input_port_3_r) | |
| 89 | AM_RANGE(0x04, 0x04) AM_READWRITE(input_port_4_r, vigilant_bank_select_w) /* PBANK */ | |
| 85 | AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") AM_WRITE(m72_sound_command_byte_w) /* SD */ | |
| 86 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") AM_WRITE(vigilant_out2_w) /* OUT2 */ | |
| 87 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2") | |
| 88 | AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW1") | |
| 89 | AM_RANGE(0x04, 0x04) AM_READ_PORT("DSW2") AM_WRITE(vigilant_bank_select_w) /* PBANK */ | |
| 90 | 90 | AM_RANGE(0x80, 0x81) AM_WRITE(vigilant_horiz_scroll_w) /* HSPL, HSPH */ |
| 91 | 91 | AM_RANGE(0x82, 0x83) AM_WRITE(vigilant_rear_horiz_scroll_w) /* RHSPL, RHSPH */ |
| 92 | 92 | AM_RANGE(0x84, 0x84) AM_WRITE(vigilant_rear_color_w) /* RCOD */ |
| r3115 | r3116 | |
| 103 | 103 | |
| 104 | 104 | static ADDRESS_MAP_START( kikcubic_io_map, ADDRESS_SPACE_IO, 8 ) |
| 105 | 105 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 106 | AM_RANGE(0x00, 0x00) AM_READWRITE(input_port_3_r, kikcubic_coin_w) /* also flip screen, and...? */ | |
| 107 | AM_RANGE(0x01, 0x01) AM_READ(input_port_4_r) | |
| 108 | AM_RANGE(0x02, 0x02) AM_READ(input_port_0_r) | |
| 109 | AM_RANGE(0x03, 0x03) AM_READ(input_port_1_r) | |
| 110 | AM_RANGE(0x04, 0x04) AM_READWRITE(input_port_2_r, vigilant_bank_select_w) | |
| 106 | AM_RANGE(0x00, 0x00) AM_READ_PORT("DSW1") AM_WRITE(kikcubic_coin_w) /* also flip screen, and...? */ | |
| 107 | AM_RANGE(0x01, 0x01) AM_READ_PORT("DSW2") | |
| 108 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN0") | |
| 109 | AM_RANGE(0x03, 0x03) AM_READ_PORT("IN1") | |
| 110 | AM_RANGE(0x04, 0x04) AM_READ_PORT("IN2") AM_WRITE(vigilant_bank_select_w) | |
| 111 | 111 | AM_RANGE(0x06, 0x06) AM_WRITE(m72_sound_command_byte_w) |
| 112 | 112 | // AM_RANGE(0x07, 0x07) AM_WRITE(SMH_NOP) /* ?? */ |
| 113 | 113 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 169 | 169 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 170 | 170 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 171 | 171 | |
| 172 | PORT_START("DSW | |
| 172 | PORT_START("DSW1") | |
| 173 | 173 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 174 | 174 | PORT_DIPSETTING( 0x02, "2" ) |
| 175 | 175 | PORT_DIPSETTING( 0x03, "3" ) |
| r3115 | r3116 | |
| 200 | 200 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C ) ) |
| 201 | 201 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 202 | 202 | |
| 203 | PORT_START("DSW | |
| 203 | PORT_START("DSW2") | |
| 204 | 204 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 205 | 205 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 206 | 206 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 260 | 260 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 261 | 261 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 262 | 262 | |
| 263 | PORT_START("DSW | |
| 263 | PORT_START("DSW1") | |
| 264 | 264 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 265 | 265 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 266 | 266 | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) |
| r3115 | r3116 | |
| 290 | 290 | // PORT_DIPSETTING( 0x80, "Undefined" ) |
| 291 | 291 | // PORT_DIPSETTING( 0x90, "Undefined" ) |
| 292 | 292 | |
| 293 | PORT_START("DSW | |
| 293 | PORT_START("DSW2") | |
| 294 | 294 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 295 | 295 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 296 | 296 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 343 | 343 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 344 | 344 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 345 | 345 | |
| 346 | PORT_START("DSW | |
| 346 | PORT_START("DSW1") | |
| 347 | 347 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 348 | 348 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 349 | 349 | PORT_DIPSETTING( 0x07, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 371 | 371 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) |
| 372 | 372 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) |
| 373 | 373 | |
| 374 | PORT_START("DSW | |
| 374 | PORT_START("DSW2") | |
| 375 | 375 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 376 | 376 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 377 | 377 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
|---|---|---|
| 440 | 440 | |
| 441 | 441 | |
| 442 | 442 | static INPUT_PORTS_START( pstadium ) |
| 443 | PORT_START("DSWA") | |
| 443 | PORT_START("DSWA") | |
| 444 | 444 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 445 | 445 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| 446 | 446 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 465 | 465 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 466 | 466 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 467 | 467 | |
| 468 | PORT_START("DSWB") | |
| 468 | PORT_START("DSWB") | |
| 469 | 469 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 470 | 470 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 471 | 471 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 491 | 491 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 492 | 492 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 493 | 493 | |
| 494 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 495 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 494 | PORT_START("SYSTEM") | |
| 495 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 496 | 496 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 497 | 497 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 498 | 498 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 505 | 505 | INPUT_PORTS_END |
| 506 | 506 | |
| 507 | 507 | static INPUT_PORTS_START( triplew1 ) |
| 508 | PORT_START("DSWA") | |
| 508 | PORT_START("DSWA") | |
| 509 | 509 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 510 | 510 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| 511 | 511 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 530 | 530 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 531 | 531 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 532 | 532 | |
| 533 | PORT_START("DSWB") | |
| 533 | PORT_START("DSWB") | |
| 534 | 534 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 535 | 535 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 536 | 536 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 556 | 556 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 557 | 557 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 558 | 558 | |
| 559 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 560 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 559 | PORT_START("SYSTEM") | |
| 560 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 561 | 561 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 562 | 562 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 563 | 563 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 570 | 570 | INPUT_PORTS_END |
| 571 | 571 | |
| 572 | 572 | static INPUT_PORTS_START( ntopstar ) |
| 573 | PORT_START("DSWA") | |
| 573 | PORT_START("DSWA") | |
| 574 | 574 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 575 | 575 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| 576 | 576 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 595 | 595 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 596 | 596 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 597 | 597 | |
| 598 | PORT_START("DSWB") | |
| 598 | PORT_START("DSWB") | |
| 599 | 599 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 600 | 600 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 601 | 601 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 621 | 621 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 622 | 622 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 623 | 623 | |
| 624 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 625 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 624 | PORT_START("SYSTEM") | |
| 625 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 626 | 626 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 627 | 627 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 628 | 628 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 635 | 635 | INPUT_PORTS_END |
| 636 | 636 | |
| 637 | 637 | static INPUT_PORTS_START( mjlstory ) |
| 638 | PORT_START("DSWA") | |
| 638 | PORT_START("DSWA") | |
| 639 | 639 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 640 | 640 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| 641 | 641 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 660 | 660 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 661 | 661 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 662 | 662 | |
| 663 | PORT_START("DSWB") | |
| 663 | PORT_START("DSWB") | |
| 664 | 664 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 665 | 665 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 666 | 666 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 686 | 686 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 687 | 687 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 688 | 688 | |
| 689 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 690 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 689 | PORT_START("SYSTEM") | |
| 690 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 691 | 691 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 692 | 692 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 693 | 693 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 700 | 700 | INPUT_PORTS_END |
| 701 | 701 | |
| 702 | 702 | static INPUT_PORTS_START( vanilla ) |
| 703 | PORT_START("DSWA") | |
| 703 | PORT_START("DSWA") | |
| 704 | 704 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 705 | 705 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| 706 | 706 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 725 | 725 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 726 | 726 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 727 | 727 | |
| 728 | PORT_START("DSWB") | |
| 728 | PORT_START("DSWB") | |
| 729 | 729 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 730 | 730 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 731 | 731 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 751 | 751 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 752 | 752 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 753 | 753 | |
| 754 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 755 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 754 | PORT_START("SYSTEM") | |
| 755 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 756 | 756 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 757 | 757 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 758 | 758 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 768 | 768 | |
| 769 | 769 | // I don't have manual for this game. |
| 770 | 770 | |
| 771 | PORT_START("DSWA") | |
| 771 | PORT_START("DSWA") | |
| 772 | 772 | PORT_DIPNAME( 0x07, 0x07, "Game Out" ) |
| 773 | 773 | PORT_DIPSETTING( 0x07, "90% (Easy)" ) |
| 774 | 774 | PORT_DIPSETTING( 0x06, "85%" ) |
| r3115 | r3116 | |
| 794 | 794 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 795 | 795 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 796 | 796 | |
| 797 | PORT_START("DSWB") | |
| 797 | PORT_START("DSWB") | |
| 798 | 798 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 799 | 799 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 800 | 800 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 818 | 818 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 819 | 819 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 820 | 820 | |
| 821 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 822 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 821 | PORT_START("SYSTEM") | |
| 822 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 823 | 823 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 824 | 824 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 825 | 825 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 832 | 832 | INPUT_PORTS_END |
| 833 | 833 | |
| 834 | 834 | static INPUT_PORTS_START( qmhayaku ) |
| 835 | PORT_START("DSWA") | |
| 835 | PORT_START("DSWA") | |
| 836 | 836 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 837 | 837 | PORT_DIPSETTING( 0x03, "1 (Easy)" ) |
| 838 | 838 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 857 | 857 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 858 | 858 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 859 | 859 | |
| 860 | PORT_START("DSWB") | |
| 860 | PORT_START("DSWB") | |
| 861 | 861 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 862 | 862 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 863 | 863 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 883 | 883 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 884 | 884 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 885 | 885 | |
| 886 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 887 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 886 | PORT_START("SYSTEM") | |
| 887 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 888 | 888 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 889 | 889 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 890 | 890 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 897 | 897 | INPUT_PORTS_END |
| 898 | 898 | |
| 899 | 899 | static INPUT_PORTS_START( galkoku ) |
| 900 | PORT_START("DSWA") | |
| 900 | PORT_START("DSWA") | |
| 901 | 901 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 902 | 902 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 903 | 903 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 923 | 923 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 924 | 924 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 925 | 925 | |
| 926 | PORT_START("DSWB") | |
| 926 | PORT_START("DSWB") | |
| 927 | 927 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 928 | 928 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 929 | 929 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 949 | 949 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 950 | 950 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 951 | 951 | |
| 952 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 953 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 952 | PORT_START("SYSTEM") | |
| 953 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 954 | 954 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 955 | 955 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 956 | 956 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 966 | 966 | |
| 967 | 967 | // I don't have manual for this game. |
| 968 | 968 | |
| 969 | PORT_START("DSWA") | |
| 969 | PORT_START("DSWA") | |
| 970 | 970 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 971 | 971 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 972 | 972 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 992 | 992 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 993 | 993 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 994 | 994 | |
| 995 | PORT_START("DSWB") | |
| 995 | PORT_START("DSWB") | |
| 996 | 996 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 997 | 997 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 998 | 998 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1018 | 1018 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1019 | 1019 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1020 | 1020 | |
| 1021 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1022 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1021 | PORT_START("SYSTEM") | |
| 1022 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1023 | 1023 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1024 | 1024 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1025 | 1025 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1035 | 1035 | |
| 1036 | 1036 | // I don't have manual for this game. |
| 1037 | 1037 | |
| 1038 | PORT_START("DSWA") | |
| 1038 | PORT_START("DSWA") | |
| 1039 | 1039 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1040 | 1040 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1041 | 1041 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1061 | 1061 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1062 | 1062 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1063 | 1063 | |
| 1064 | PORT_START("DSWB") | |
| 1064 | PORT_START("DSWB") | |
| 1065 | 1065 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1066 | 1066 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1067 | 1067 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1087 | 1087 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1088 | 1088 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1089 | 1089 | |
| 1090 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1091 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1090 | PORT_START("SYSTEM") | |
| 1091 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1092 | 1092 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1093 | 1093 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1094 | 1094 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1104 | 1104 | |
| 1105 | 1105 | // I don't have manual for this game. |
| 1106 | 1106 | |
| 1107 | PORT_START("DSWA") | |
| 1107 | PORT_START("DSWA") | |
| 1108 | 1108 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1109 | 1109 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1110 | 1110 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1130 | 1130 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1131 | 1131 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1132 | 1132 | |
| 1133 | PORT_START("DSWB") | |
| 1133 | PORT_START("DSWB") | |
| 1134 | 1134 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1135 | 1135 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1136 | 1136 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1156 | 1156 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1157 | 1157 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1158 | 1158 | |
| 1159 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1160 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1159 | PORT_START("SYSTEM") | |
| 1160 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1161 | 1161 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1162 | 1162 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1163 | 1163 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1173 | 1173 | |
| 1174 | 1174 | // I don't have manual for this game. |
| 1175 | 1175 | |
| 1176 | PORT_START("DSWA") | |
| 1176 | PORT_START("DSWA") | |
| 1177 | 1177 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1178 | 1178 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1179 | 1179 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1199 | 1199 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1200 | 1200 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1201 | 1201 | |
| 1202 | PORT_START("DSWB") | |
| 1202 | PORT_START("DSWB") | |
| 1203 | 1203 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1204 | 1204 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1205 | 1205 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1225 | 1225 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1226 | 1226 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1227 | 1227 | |
| 1228 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1229 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1228 | PORT_START("SYSTEM") | |
| 1229 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1230 | 1230 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1231 | 1231 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1232 | 1232 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1242 | 1242 | |
| 1243 | 1243 | // I don't have manual for this game. |
| 1244 | 1244 | |
| 1245 | PORT_START("DSWA") | |
| 1245 | PORT_START("DSWA") | |
| 1246 | 1246 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1247 | 1247 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1248 | 1248 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1268 | 1268 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1269 | 1269 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1270 | 1270 | |
| 1271 | PORT_START("DSWB") | |
| 1271 | PORT_START("DSWB") | |
| 1272 | 1272 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1273 | 1273 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1274 | 1274 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1294 | 1294 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1295 | 1295 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1296 | 1296 | |
| 1297 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1298 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1297 | PORT_START("SYSTEM") | |
| 1298 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1299 | 1299 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1300 | 1300 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1301 | 1301 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1311 | 1311 | |
| 1312 | 1312 | // I don't have manual for this game. |
| 1313 | 1313 | |
| 1314 | PORT_START("DSWA") | |
| 1314 | PORT_START("DSWA") | |
| 1315 | 1315 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1316 | 1316 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1317 | 1317 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1337 | 1337 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1338 | 1338 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1339 | 1339 | |
| 1340 | PORT_START("DSWB") | |
| 1340 | PORT_START("DSWB") | |
| 1341 | 1341 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 2-1" ) |
| 1342 | 1342 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1343 | 1343 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1363 | 1363 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1364 | 1364 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1365 | 1365 | |
| 1366 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1367 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1366 | PORT_START("SYSTEM") | |
| 1367 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1368 | 1368 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1369 | 1369 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1370 | 1370 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1380 | 1380 | |
| 1381 | 1381 | // I don't have manual for this game. |
| 1382 | 1382 | |
| 1383 | PORT_START("DSWA") | |
| 1383 | PORT_START("DSWA") | |
| 1384 | 1384 | PORT_DIPNAME( 0x01, 0x01, "DIPSW 1-1" ) |
| 1385 | 1385 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1386 | 1386 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1406 | 1406 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1407 | 1407 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1408 | 1408 | |
| 1409 | PORT_START("DSWB") | |
| 1409 | PORT_START("DSWB") | |
| 1410 | 1410 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1411 | 1411 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1412 | 1412 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1432 | 1432 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1433 | 1433 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1434 | 1434 | |
| 1435 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1436 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1435 | PORT_START("SYSTEM") | |
| 1436 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1437 | 1437 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1438 | 1438 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1439 | 1439 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1446 | 1446 | INPUT_PORTS_END |
| 1447 | 1447 | |
| 1448 | 1448 | static INPUT_PORTS_START( av2mj1bb ) |
| 1449 | PORT_START("DSWA") | |
| 1449 | PORT_START("DSWA") | |
| 1450 | 1450 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1451 | 1451 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1452 | 1452 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1471 | 1471 | PORT_DIPSETTING( 0x40, "Type-C" ) |
| 1472 | 1472 | PORT_DIPSETTING( 0x00, "Type-D" ) |
| 1473 | 1473 | |
| 1474 | PORT_START("DSWB") | |
| 1474 | PORT_START("DSWB") | |
| 1475 | 1475 | PORT_DIPNAME( 0x03, 0x03, "Attract mode" ) |
| 1476 | 1476 | PORT_DIPSETTING( 0x03, "No attract mode" ) |
| 1477 | 1477 | PORT_DIPSETTING( 0x02, "Once per 10min." ) |
| r3115 | r3116 | |
| 1496 | 1496 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1497 | 1497 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1498 | 1498 | |
| 1499 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1500 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1499 | PORT_START("SYSTEM") | |
| 1500 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1501 | 1501 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1502 | 1502 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1503 | 1503 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
| 1513 | 1513 | |
| 1514 | 1514 | // I don't have manual for this game. |
| 1515 | 1515 | |
| 1516 | PORT_START("DSWA") | |
| 1516 | PORT_START("DSWA") | |
| 1517 | 1517 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) |
| 1518 | 1518 | PORT_DIPSETTING( 0x07, "1 (Easy)" ) |
| 1519 | 1519 | PORT_DIPSETTING( 0x06, "2" ) |
| r3115 | r3116 | |
| 1538 | 1538 | PORT_DIPSETTING( 0x40, "Type-C" ) |
| 1539 | 1539 | PORT_DIPSETTING( 0x00, "Type-D" ) |
| 1540 | 1540 | |
| 1541 | PORT_START("DSWB") | |
| 1541 | PORT_START("DSWB") | |
| 1542 | 1542 | PORT_DIPNAME( 0x03, 0x03, "Attract mode" ) |
| 1543 | 1543 | PORT_DIPSETTING( 0x03, "No attract mode" ) |
| 1544 | 1544 | PORT_DIPSETTING( 0x02, "Once per 10min." ) |
| r3115 | r3116 | |
| 1563 | 1563 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1564 | 1564 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1565 | 1565 | |
| 1566 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 1567 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 1566 | PORT_START("SYSTEM") | |
| 1567 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 1568 | 1568 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // |
| 1569 | 1569 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET |
| 1570 | 1570 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER |
| r3115 | r3116 | |
|---|---|---|
| 145 | 145 | AM_RANGE(0xe800, 0xefff) AM_READ(SMH_RAM) |
| 146 | 146 | AM_RANGE(0xf000, 0xf3ff) AM_READ(SMH_RAM) |
| 147 | 147 | |
| 148 | AM_RANGE(0xf800, 0xf800) AM_READ(input_port_0_r) | |
| 149 | AM_RANGE(0xf801, 0xf801) AM_READ(input_port_1_r) | |
| 150 | AM_RANGE(0xf802, 0xf802) AM_READ(input_port_2_r) | |
| 151 | AM_RANGE(0xf804, 0xf804) AM_READ(input_port_3_r) | |
| 152 | AM_RANGE(0xf805, 0xf805) AM_READ(input_port_4_r) | |
| 148 | AM_RANGE(0xf800, 0xf800) AM_READ_PORT("P1") | |
| 149 | AM_RANGE(0xf801, 0xf801) AM_READ_PORT("P2") | |
| 150 | AM_RANGE(0xf802, 0xf802) AM_READ_PORT("SYSTEM") | |
| 151 | AM_RANGE(0xf804, 0xf804) AM_READ_PORT("DSW1") | |
| 152 | AM_RANGE(0xf805, 0xf805) AM_READ_PORT("DSW2") | |
| 153 | 153 | ADDRESS_MAP_END |
| 154 | 154 | |
| 155 | 155 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 191 | 191 | AM_RANGE(0xe800, 0xefff) AM_READ(SMH_RAM) |
| 192 | 192 | AM_RANGE(0xf000, 0xf3ff) AM_READ(SMH_RAM) |
| 193 | 193 | |
| 194 | AM_RANGE(0xf800, 0xf800) AM_READ(input_port_0_r) | |
| 195 | AM_RANGE(0xf801, 0xf801) AM_READ(input_port_1_r) | |
| 196 | AM_RANGE(0xf802, 0xf802) AM_READ(input_port_2_r) | |
| 197 | AM_RANGE(0xf804, 0xf804) AM_READ(input_port_3_r) | |
| 198 | AM_RANGE(0xf805, 0xf805) AM_READ(input_port_4_r) | |
| 194 | AM_RANGE(0xf800, 0xf800) AM_READ_PORT("P1") | |
| 195 | AM_RANGE(0xf801, 0xf801) AM_READ_PORT("P2") | |
| 196 | AM_RANGE(0xf802, 0xf802) AM_READ_PORT("SYSTEM") | |
| 197 | AM_RANGE(0xf804, 0xf804) AM_READ_PORT("DSW1") | |
| 198 | AM_RANGE(0xf805, 0xf805) AM_READ_PORT("DSW2") | |
| 199 | 199 | ADDRESS_MAP_END |
| 200 | 200 | |
| 201 | 201 | static ADDRESS_MAP_START( writemem_m660, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 395 | 395 | AM_RANGE(0xa100, 0xa100) AM_READ(vsgongf_a100_r) /* protection */ |
| 396 | 396 | AM_RANGE(0xc000, 0xc7ff) AM_READ(SMH_RAM) /* work ram */ |
| 397 | 397 | AM_RANGE(0xe000, 0xe7ff) AM_READ(SMH_RAM) |
| 398 | AM_RANGE(0xf800, 0xf800) AM_READ(input_port_0_r) /* joy1 */ | |
| 399 | AM_RANGE(0xf801, 0xf801) AM_READ(input_port_1_r) /* joy2 */ | |
| 400 | AM_RANGE(0xf802, 0xf802) AM_READ(input_port_2_r) /* coin */ | |
| 401 | AM_RANGE(0xf804, 0xf804) AM_READ(input_port_3_r) /* dsw1 */ | |
| 402 | AM_RANGE(0xf805, 0xf805) AM_READ(input_port_4_r) /* dsw2 */ | |
| 398 | AM_RANGE(0xf800, 0xf800) AM_READ_PORT("P1") | |
| 399 | AM_RANGE(0xf801, 0xf801) AM_READ_PORT("P2") | |
| 400 | AM_RANGE(0xf802, 0xf802) AM_READ_PORT("SYSTEM") | |
| 401 | AM_RANGE(0xf804, 0xf804) AM_READ_PORT("DSW1") | |
| 402 | AM_RANGE(0xf805, 0xf805) AM_READ_PORT("DSW2") | |
| 403 | 403 | AM_RANGE(0xfc00, 0xffff) AM_READ(SMH_RAM) |
| 404 | 404 | ADDRESS_MAP_END |
| 405 | 405 | |
| r3115 | r3116 | |
| 437 | 437 | |
| 438 | 438 | /*******************************************************************************/ |
| 439 | 439 | |
| 440 | #define TS_IN0\ | |
| 441 | PORT_START("IN0")\ | |
| 442 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY\ | |
| 443 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY\ | |
| 444 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY\ | |
| 445 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY\ | |
| 446 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )\ | |
| 447 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 )\ | |
| 448 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\ | |
| 440 | static INPUT_PORTS_START( tsamurai ) | |
| 441 | PORT_START("P1") | |
| 442 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 443 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 444 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 445 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 446 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 447 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 448 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 449 | 449 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 450 | 450 | |
| 451 | #define TS_IN1\ | |
| 452 | PORT_START("IN1")\ | |
| 453 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL\ | |
| 454 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL\ | |
| 455 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL\ | |
| 456 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL\ | |
| 457 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 458 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL\ | |
| 459 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\ | |
| 451 | PORT_START("P2") | |
| 452 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 453 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 454 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 455 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 456 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 457 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 458 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 460 | 459 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 461 | 460 | |
| 462 | #define TS_IN2\ | |
| 463 | PORT_START("IN2")\ | |
| 464 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )\ | |
| 465 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )\ | |
| 466 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 )\ | |
| 467 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )\ | |
| 468 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START1 )\ | |
| 469 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START2 )\ | |
| 470 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\ | |
| 461 | PORT_START("SYSTEM") | |
| 462 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 463 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 464 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 465 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 466 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 467 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 468 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 471 | 469 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 472 | 470 | |
| 473 | #define TS_DSW1\ | |
| 474 | PORT_START("DSW1")\ | |
| 475 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) )\ | |
| 476 | PORT_DIPSETTING( 0x07, DEF_STR( 6C_1C ) )\ | |
| 477 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_1C ) )\ | |
| 478 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) )\ | |
| 479 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )\ | |
| 480 | PORT_DIPSETTING( 0x05, DEF_STR( 2C_3C ) )\ | |
| 481 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) )\ | |
| 482 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) )\ | |
| 483 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_6C ) )\ | |
| 484 | PORT_DIPNAME( 0x38, 0x00, DEF_STR( Coin_B ) )\ | |
| 485 | PORT_DIPSETTING( 0x38, DEF_STR( 6C_1C ) )\ | |
| 486 | PORT_DIPSETTING( 0x30, DEF_STR( 3C_1C ) )\ | |
| 487 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) )\ | |
| 488 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )\ | |
| 489 | PORT_DIPSETTING( 0x28, DEF_STR( 2C_3C ) )\ | |
| 490 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) )\ | |
| 491 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) )\ | |
| 492 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_6C ) )\ | |
| 493 | PORT_DIPNAME( 0x40, 0x00, "Freeze" )\ | |
| 494 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) )\ | |
| 495 | PORT_DIPSETTING( 0x40, DEF_STR( On ) )\ | |
| 496 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) )\ | |
| 497 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ | |
| 471 | PORT_START("DSW1") | |
| 472 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) ) | |
| 473 | PORT_DIPSETTING( 0x07, DEF_STR( 6C_1C ) ) | |
| 474 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_1C ) ) | |
| 475 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 476 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 477 | PORT_DIPSETTING( 0x05, DEF_STR( 2C_3C ) ) | |
| 478 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 479 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) | |
| 480 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_6C ) ) | |
| 481 | PORT_DIPNAME( 0x38, 0x00, DEF_STR( Coin_B ) ) | |
| 482 | PORT_DIPSETTING( 0x38, DEF_STR( 6C_1C ) ) | |
| 483 | PORT_DIPSETTING( 0x30, DEF_STR( 3C_1C ) ) | |
| 484 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) | |
| 485 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 486 | PORT_DIPSETTING( 0x28, DEF_STR( 2C_3C ) ) | |
| 487 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) ) | |
| 488 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 489 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_6C ) ) | |
| 490 | PORT_DIPNAME( 0x40, 0x00, "Freeze" ) | |
| 491 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 492 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 493 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 494 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 498 | 495 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 499 | 496 | |
| 500 | static INPUT_PORTS_START( tsamurai ) | |
| 501 | TS_IN0 | |
| 502 | TS_IN1 | |
| 503 | TS_IN2 | |
| 504 | TS_DSW1 | |
| 505 | ||
| 506 | 497 | PORT_START("DSW2") |
| 507 | 498 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 508 | 499 | PORT_DIPSETTING( 0x00, "3" ) |
| r3115 | r3116 | |
| 528 | 519 | INPUT_PORTS_END |
| 529 | 520 | |
| 530 | 521 | static INPUT_PORTS_START( nunchaku ) |
| 531 | TS_IN0 | |
| 532 | TS_IN1 | |
| 533 | TS_IN2 | |
| 534 | TS_DSW1 | |
| 522 | PORT_INCLUDE( tsamurai ) | |
| 535 | 523 | |
| 536 | PORT_ | |
| 524 | PORT_MODIFY("DSW2") | |
| 537 | 525 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 538 | 526 | PORT_DIPSETTING( 0x00, "3" ) |
| 539 | 527 | PORT_DIPSETTING( 0x01, "5" ) |
| r3115 | r3116 | |
| 558 | 546 | INPUT_PORTS_END |
| 559 | 547 | |
| 560 | 548 | static INPUT_PORTS_START( vsgongf ) |
| 561 | TS_IN0 | |
| 562 | TS_IN1 | |
| 563 | TS_IN2 | |
| 564 | TS_DSW1 | |
| 549 | PORT_INCLUDE( tsamurai ) | |
| 565 | 550 | |
| 566 | PORT_ | |
| 551 | PORT_MODIFY("DSW2") | |
| 567 | 552 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 568 | 553 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 569 | 554 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 590 | 575 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 591 | 576 | INPUT_PORTS_END |
| 592 | 577 | |
| 593 | #define YAMINS\ | |
| 594 | PORT_START("IN0")\ | |
| 595 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY\ | |
| 596 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY\ | |
| 597 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY\ | |
| 598 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY\ | |
| 599 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 )\ | |
| 600 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 )\ | |
| 601 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\ | |
| 602 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )\ | |
| 603 | PORT_START("IN1")\ | |
| 604 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL\ | |
| 605 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL\ | |
| 606 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL\ | |
| 607 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL\ | |
| 608 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL\ | |
| 609 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 610 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )\ | |
| 578 | static INPUT_PORTS_START( yamagchi ) | |
| 579 | PORT_INCLUDE( tsamurai ) | |
| 580 | ||
| 581 | PORT_MODIFY("P1") | |
| 582 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 583 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 584 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 585 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 586 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 587 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 588 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 611 | 589 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 612 | 590 | |
| 613 | static INPUT_PORTS_START( yamagchi ) | |
| 614 | YAMINS | |
| 615 | TS_IN2 | |
| 616 | TS_DSW1 | |
| 591 | PORT_MODIFY("P2") | |
| 592 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 593 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 594 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 595 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 596 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 597 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 598 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 599 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 617 | 600 | |
| 618 | PORT_ | |
| 601 | PORT_MODIFY("DSW2") | |
| 619 | 602 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 620 | 603 | PORT_DIPSETTING( 0x00, "3" ) |
| 621 | 604 | PORT_DIPSETTING( 0x01, "5" ) |
| r3115 | r3116 | |
| 641 | 624 | INPUT_PORTS_END |
| 642 | 625 | |
| 643 | 626 | static INPUT_PORTS_START( m660 ) |
| 644 | YAMINS | |
| 645 | TS_IN2 | |
| 627 | PORT_INCLUDE( yamagchi ) | |
| 646 | 628 | |
| 647 | PORT_ | |
| 629 | PORT_MODIFY("DSW1") | |
| 648 | 630 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) ) |
| 649 | 631 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_1C ) ) |
| 650 | 632 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 670 | 652 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 671 | 653 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 672 | 654 | |
| 673 | PORT_ | |
| 655 | PORT_MODIFY("DSW2") | |
| 674 | 656 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 675 | 657 | PORT_DIPSETTING( 0x00, "3" ) |
| 676 | 658 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
|---|---|---|
| 56 | 56 | extern UINT16 *splash_pixelram; |
| 57 | 57 | extern UINT16 *roldfrog_bitmap_mode; |
| 58 | 58 | static UINT16 *roldfrog_protdata; |
| 59 | static int adpcm_data; | |
| 60 | static int ret; | |
| 59 | 61 | |
| 60 | 62 | extern int splash_bitmap_type; |
| 61 | 63 | extern int splash_sprite_attr2_shift; |
| r3115 | r3116 | |
| 88 | 90 | static ADDRESS_MAP_START( splash_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 89 | 91 | AM_RANGE(0x000000, 0x3fffff) AM_READ(SMH_ROM) /* ROM */ |
| 90 | 92 | AM_RANGE(0x800000, 0x83ffff) AM_READ(SMH_RAM) /* Pixel Layer */ |
| 91 | AM_RANGE(0x840000, 0x840001) AM_READ(input_port_0_word_r)/* DIPSW #1 */ | |
| 92 | AM_RANGE(0x840002, 0x840003) AM_READ(input_port_1_word_r)/* DIPSW #2 */ | |
| 93 | AM_RANGE(0x840004, 0x840005) AM_READ(input_port_2_word_r)/* INPUT #1 */ | |
| 94 | AM_RANGE(0x840006, 0x840007) AM_READ(input_port_3_word_r)/* INPUT #2 */ | |
| 93 | AM_RANGE(0x840000, 0x840001) AM_READ_PORT("DSW1") | |
| 94 | AM_RANGE(0x840002, 0x840003) AM_READ_PORT("DSW2") | |
| 95 | AM_RANGE(0x840004, 0x840005) AM_READ_PORT("P1") | |
| 96 | AM_RANGE(0x840006, 0x840007) AM_READ_PORT("P2") | |
| 95 | 97 | AM_RANGE(0x880000, 0x8817ff) AM_READ(splash_vram_r) /* Video RAM */ |
| 96 | 98 | AM_RANGE(0x881800, 0x881803) AM_READ(SMH_RAM) /* Scroll registers */ |
| 97 | 99 | AM_RANGE(0x881804, 0x881fff) AM_READ(SMH_RAM) /* Work RAM */ |
| r3115 | r3116 | |
| 137 | 139 | AM_RANGE(0xf800, 0xffff) AM_READ(SMH_RAM) /* RAM */ |
| 138 | 140 | ADDRESS_MAP_END |
| 139 | 141 | |
| 140 | static int adpcm_data; | |
| 141 | ||
| 142 | 142 | static WRITE8_HANDLER( splash_adpcm_data_w ){ |
| 143 | 143 | adpcm_data = data; |
| 144 | 144 | } |
| r3115 | r3116 | |
| 165 | 165 | |
| 166 | 166 | static READ16_HANDLER( roldfrog_bombs_r ) |
| 167 | 167 | { |
| 168 | static int ret = 0x100; | |
| 169 | 168 | ret ^= 0x100; |
| 170 | 169 | return ret; |
| 171 | 170 | } |
| r3115 | r3116 | |
| 175 | 174 | AM_RANGE(0x400000, 0x407fff) AM_ROM AM_BASE(&roldfrog_protdata) /* Protection Data */ |
| 176 | 175 | AM_RANGE(0x408000, 0x4087ff) AM_READ(SMH_RAM) /* Extra Ram */ |
| 177 | 176 | AM_RANGE(0x800000, 0x83ffff) AM_READ(SMH_RAM) /* Pixel Layer */ |
| 178 | AM_RANGE(0x840000, 0x840001) AM_READ(input_port_0_word_r)/* DIPSW #1 */ | |
| 179 | AM_RANGE(0x840002, 0x840003) AM_READ(input_port_1_word_r)/* DIPSW #2 */ | |
| 180 | AM_RANGE(0x840004, 0x840005) AM_READ(input_port_2_word_r)/* INPUT #1 */ | |
| 181 | AM_RANGE(0x840006, 0x840007) AM_READ(input_port_3_word_r)/* INPUT #2 */ | |
| 177 | AM_RANGE(0x840000, 0x840001) AM_READ_PORT("DSW1") | |
| 178 | AM_RANGE(0x840002, 0x840003) AM_READ_PORT("DSW2") | |
| 179 | AM_RANGE(0x840004, 0x840005) AM_READ_PORT("P1") | |
| 180 | AM_RANGE(0x840006, 0x840007) AM_READ_PORT("P2") | |
| 182 | 181 | AM_RANGE(0x880000, 0x8817ff) AM_READ(splash_vram_r) /* Video RAM */ |
| 183 | 182 | AM_RANGE(0x881800, 0x881803) AM_READ(SMH_RAM) /* Scroll registers */ |
| 184 | 183 | AM_RANGE(0x881804, 0x881fff) AM_READ(SMH_RAM) /* Work RAM */ |
| r3115 | r3116 | |
| 224 | 223 | AM_RANGE(0x000000, 0x01ffff) AM_READ(SMH_ROM) /* ROM */ |
| 225 | 224 | AM_RANGE(0x100000, 0x100fff) AM_READ(SMH_ROM) /* protection? RAM */ |
| 226 | 225 | AM_RANGE(0x800000, 0x83ffff) AM_READ(SMH_RAM) /* Pixel Layer */ |
| 227 | AM_RANGE(0x840000, 0x840001) AM_READ(input_port_0_word_r)/* DIPSW #1 */ | |
| 228 | AM_RANGE(0x840002, 0x840003) AM_READ(input_port_1_word_r)/* DIPSW #2 */ | |
| 229 | AM_RANGE(0x840004, 0x840005) AM_READ(input_port_2_word_r)/* INPUT #1 */ | |
| 230 | AM_RANGE(0x840006, 0x840007) AM_READ(input_port_3_word_r)/* INPUT #2 */ | |
| 226 | AM_RANGE(0x840000, 0x840001) AM_READ_PORT("DSW1") | |
| 227 | AM_RANGE(0x840002, 0x840003) AM_READ_PORT("DSW2") | |
| 228 | AM_RANGE(0x840004, 0x840005) AM_READ_PORT("P1") | |
| 229 | AM_RANGE(0x840006, 0x840007) AM_READ_PORT("P2") | |
| 231 | 230 | AM_RANGE(0x880000, 0x8817ff) AM_READ(splash_vram_r) /* Video RAM */ |
| 232 | 231 | AM_RANGE(0x881800, 0x881803) AM_READ(SMH_RAM) /* Scroll registers */ |
| 233 | 232 | AM_RANGE(0x881804, 0x881fff) AM_READ(SMH_RAM) /* Work RAM */ |
| r3115 | r3116 | |
| 251 | 250 | ADDRESS_MAP_END |
| 252 | 251 | |
| 253 | 252 | static INPUT_PORTS_START( splash ) |
| 254 | PORT_START("DSW1") | |
| 253 | PORT_START("DSW1") | |
| 255 | 254 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 256 | 255 | PORT_DIPSETTING( 0x06, DEF_STR( 5C_1C ) ) |
| 257 | 256 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 279 | 278 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) |
| 280 | 279 | PORT_DIPSETTING( 0x00, "1C/1C or Free Play (if Coin A too)" ) |
| 281 | 280 | |
| 282 | PORT_START("DSW2") | |
| 281 | PORT_START("DSW2") | |
| 283 | 282 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 284 | 283 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 285 | 284 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 301 | 300 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) |
| 302 | 301 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 303 | 302 | |
| 304 | PORT_START("P1") | |
| 303 | PORT_START("P1") | |
| 305 | 304 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 306 | 305 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 307 | 306 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 311 | 310 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 312 | 311 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 313 | 312 | |
| 314 | PORT_START("P2") | |
| 313 | PORT_START("P2") | |
| 315 | 314 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 316 | 315 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 317 | 316 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 323 | 322 | INPUT_PORTS_END |
| 324 | 323 | |
| 325 | 324 | static INPUT_PORTS_START( funystrp ) |
| 326 | PORT_START("DSW1") | |
| 325 | PORT_START("DSW1") | |
| 327 | 326 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 328 | 327 | PORT_DIPSETTING( 0x06, DEF_STR( 5C_1C ) ) |
| 329 | 328 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 351 | 350 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) |
| 352 | 351 | PORT_DIPSETTING( 0x00, "1C/1C or Free Play (if Coin A too)" ) |
| 353 | 352 | |
| 354 | PORT_START("DSW2") | |
| 353 | PORT_START("DSW2") | |
| 355 | 354 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 356 | 355 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) |
| 357 | 356 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 375 | 374 | PORT_DIPSETTING( 0x80, "Soft" ) |
| 376 | 375 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 377 | 376 | |
| 378 | PORT_START("P1") | |
| 377 | PORT_START("P1") | |
| 379 | 378 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 380 | 379 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 381 | 380 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 385 | 384 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 386 | 385 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 387 | 386 | |
| 388 | PORT_START("P2") | |
| 387 | PORT_START("P2") | |
| 389 | 388 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 390 | 389 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 391 | 390 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 429 | 428 | MSM5205_S48_4B /* 8KHz */ |
| 430 | 429 | }; |
| 431 | 430 | |
| 431 | static MACHINE_RESET( splash ) | |
| 432 | { | |
| 433 | adpcm_data = 0; | |
| 434 | ret = 0x100; | |
| 435 | } | |
| 432 | 436 | |
| 433 | 437 | static MACHINE_DRIVER_START( splash ) |
| 434 | 438 | |
| r3115 | r3116 | |
| 455 | 459 | MDRV_VIDEO_START(splash) |
| 456 | 460 | MDRV_VIDEO_UPDATE(splash) |
| 457 | 461 | |
| 462 | MDRV_MACHINE_RESET( splash ) | |
| 463 | ||
| 458 | 464 | /* sound hardware */ |
| 459 | 465 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 460 | 466 | |
| r3115 | r3116 | |
| 508 | 514 | MDRV_VIDEO_START(splash) |
| 509 | 515 | MDRV_VIDEO_UPDATE(splash) |
| 510 | 516 | |
| 517 | MDRV_MACHINE_RESET( splash ) | |
| 518 | ||
| 511 | 519 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 512 | 520 | |
| 513 | 521 | MDRV_SOUND_ADD("ym", YM2203, 3000000) |
| r3115 | r3116 | |
| 544 | 552 | MDRV_VIDEO_START(splash) |
| 545 | 553 | MDRV_VIDEO_UPDATE(funystrp) |
| 546 | 554 | |
| 555 | MDRV_MACHINE_RESET( splash ) | |
| 556 | ||
| 547 | 557 | /* sound hardware */ |
| 548 | 558 | // MDRV_SPEAKER_STANDARD_MONO("mono") |
| 549 | 559 |
| r3115 | r3116 | |
|---|---|---|
| 48 | 48 | AM_RANGE(0x5800, 0x5817) AM_READ(SMH_RAM) |
| 49 | 49 | AM_RANGE(0x6000, 0x67ff) AM_READ(SMH_RAM) |
| 50 | 50 | AM_RANGE(0x6c00, 0x6fff) AM_READ(SMH_RAM) |
| 51 | AM_RANGE(0x8000, 0x8000) AM_READ(input_port_4_r) //? | |
| 52 | AM_RANGE(0x8001, 0x8001) AM_READ(input_port_0_r) //input | |
| 53 | AM_RANGE(0x8002, 0x8002) AM_READ(input_port_1_r) //input | |
| 54 | AM_RANGE(0x8003, 0x8003) AM_READ(input_port_2_r) //input | |
| 55 | AM_RANGE(0x8004, 0x8004) AM_READ(input_port_3_r) //input | |
| 56 | AM_RANGE(0x8005, 0x8005) AM_READ(input_port_6_r) //? | |
| 57 | AM_RANGE(0x8006, 0x8006) AM_READ(input_port_5_r) //dip? | |
| 51 | AM_RANGE(0x8000, 0x8000) AM_READ_PORT("IN4") //? | |
| 52 | AM_RANGE(0x8001, 0x8001) AM_READ_PORT("IN0") | |
| 53 | AM_RANGE(0x8002, 0x8002) AM_READ_PORT("IN1") | |
| 54 | AM_RANGE(0x8003, 0x8003) AM_READ_PORT("IN2") | |
| 55 | AM_RANGE(0x8004, 0x8004) AM_READ_PORT("IN3") | |
| 56 | AM_RANGE(0x8005, 0x8005) AM_READ_PORT("IN6") //? | |
| 57 | AM_RANGE(0x8006, 0x8006) AM_READ_PORT("IN5") //dips? | |
| 58 | 58 | AM_RANGE(0x9000, 0x9097) AM_READ(SMH_RAM) |
| 59 | 59 | AM_RANGE(0x909d, 0x909d) AM_READ(SMH_RAM) |
| 60 | AM_RANGE(0x9400, 0x9400) AM_READ | |
| 60 | AM_RANGE(0x9400, 0x9400) AM_READ | |
| 61 | 61 | ADDRESS_MAP_END |
| 62 | 62 | |
| 63 | 63 |
| r3115 | r3116 | |
|---|---|---|
| 917 | 917 | PORT_START("AN7") |
| 918 | 918 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 919 | 919 | |
| 920 | PORT_START("MCUH") /* 63B05Z0 - PORT H */ | |
| 920 | PORT_START("MCUH") /* 63B05Z0 - PORT H */ | |
| 921 | 921 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 922 | 922 | |
| 923 | 923 | NAMCOS2_MCU_DIPSW_DEFAULT |
| r3115 | r3116 | |
| 954 | 954 | PORT_START("AN7") |
| 955 | 955 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 956 | 956 | |
| 957 | PORT_START("MCUH") /* 63B05Z0 - PORT H */ | |
| 957 | PORT_START("MCUH") /* 63B05Z0 - PORT H */ | |
| 958 | 958 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 959 | 959 | |
| 960 | 960 | NAMCOS2_MCU_DIPSW_DEFAULT |
| r3115 | r3116 | |
| 1249 | 1249 | PORT_START("AN7") /* Accelerator pedal */ |
| 1250 | 1250 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) PORT_PLAYER(1) |
| 1251 | 1251 | |
| 1252 | PORT_START("MCUH") /* 63B05Z0 - PORT H */ | |
| 1252 | PORT_START("MCUH") /* 63B05Z0 - PORT H */ | |
| 1253 | 1253 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1254 | 1254 | |
| 1255 | PORT_START("DSW") /* 63B05Z0 - $2000 DIP SW */ \ | |
| 1256 | PORT_DIPNAME( 0x01, 0x01, "Video Display") \ | |
| 1257 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) \ | |
| 1258 | PORT_DIPSETTING( 0x00, "Frozen" ) \ | |
| 1259 | PORT_DIPNAME( 0x02, 0x02, "$2000-1") \ | |
| 1260 | PORT_DIPSETTING( 0x02, "H" ) \ | |
| 1261 | PORT_DIPSETTING( 0x00, "L" ) \ | |
| 1262 | PORT_DIPNAME( 0x04, 0x04, "$2000-2") \ | |
| 1263 | PORT_DIPSETTING( 0x04, "H" ) \ | |
| 1264 | PORT_DIPSETTING( 0x00, "L" ) \ | |
| 1265 | PORT_DIPNAME( 0x08, 0x08, "$2000-3") \ | |
| 1266 | PORT_DIPSETTING( 0x08, "H" ) \ | |
| 1267 | PORT_DIPSETTING( 0x00, "L" ) \ | |
| 1268 | PORT_DIPNAME( 0x10, 0x10, "$2000-4") \ | |
| 1269 | PORT_DIPSETTING( 0x10, "H" ) \ | |
| 1270 | PORT_DIPSETTING( 0x00, "L" ) \ | |
| 1271 | PORT_DIPNAME( 0x20, 0x20, "$2000-5") \ | |
| 1272 | PORT_DIPSETTING( 0x20, "H" ) \ | |
| 1273 | PORT_DIPSETTING( 0x00, "L" ) \ | |
| 1274 | PORT_DIPNAME( 0x40, 0x40, "System is Status Monitor") \ | |
| 1275 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) \ | |
| 1276 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) \ | |
| 1255 | PORT_START("DSW") /* 63B05Z0 - $2000 DIP SW */ | |
| 1256 | PORT_DIPNAME( 0x01, 0x01, "Video Display") | |
| 1257 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) | |
| 1258 | PORT_DIPSETTING( 0x00, "Frozen" ) | |
| 1259 | PORT_DIPNAME( 0x02, 0x02, "$2000-1") | |
| 1260 | PORT_DIPSETTING( 0x02, "H" ) | |
| 1261 | PORT_DIPSETTING( 0x00, "L" ) | |
| 1262 | PORT_DIPNAME( 0x04, 0x04, "$2000-2") | |
| 1263 | PORT_DIPSETTING( 0x04, "H" ) | |
| 1264 | PORT_DIPSETTING( 0x00, "L" ) | |
| 1265 | PORT_DIPNAME( 0x08, 0x08, "$2000-3") | |
| 1266 | PORT_DIPSETTING( 0x08, "H" ) | |
| 1267 | PORT_DIPSETTING( 0x00, "L" ) | |
| 1268 | PORT_DIPNAME( 0x10, 0x10, "$2000-4") | |
| 1269 | PORT_DIPSETTING( 0x10, "H" ) | |
| 1270 | PORT_DIPSETTING( 0x00, "L" ) | |
| 1271 | PORT_DIPNAME( 0x20, 0x20, "$2000-5") | |
| 1272 | PORT_DIPSETTING( 0x20, "H" ) | |
| 1273 | PORT_DIPSETTING( 0x00, "L" ) | |
| 1274 | PORT_DIPNAME( 0x40, 0x40, "System is Status Monitor") | |
| 1275 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) | |
| 1276 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1277 | 1277 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 1278 | 1278 | |
| 1279 | 1279 | NAMCOS2_MCU_DIAL_DEFAULT |
| r3115 | r3116 | |
| 1352 | 1352 | INPUT_PORTS_END |
| 1353 | 1353 | |
| 1354 | 1354 | static INPUT_PORTS_START( dirtfox ) |
| 1355 | PORT_START("MCUB") /* 63B05Z0 - PORT B */ | |
| 1355 | PORT_START("MCUB") /* 63B05Z0 - PORT B */ | |
| 1356 | 1356 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Gear Shift Up") /* Gear shift up */ |
| 1357 | 1357 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Gear Shift Down")/* Gear shift down */ |
| 1358 | 1358 |
| r3115 | r3116 | |
|---|---|---|
| 116 | 116 | ***************************************************************************/ |
| 117 | 117 | |
| 118 | 118 | #include "driver.h" |
| 119 | #include "cpu/ | |
| 119 | #include "cpu/mcs48 | |
| 120 | 120 | #include "sound/ay8910.h" |
| 121 | 121 | #include "sound/samples.h" |
| 122 | 122 | |
| r3115 | r3116 | |
| 435 | 435 | |
| 436 | 436 | static ADDRESS_MAP_START( i8039_port_map, ADDRESS_SPACE_IO, 8 ) |
| 437 | 437 | AM_RANGE(0x00, 0xff) AM_READWRITE(snddata_r, snddata_w) |
| 438 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(p1_w) | |
| 439 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(p2_w) | |
| 440 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(irq_r) | |
| 438 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(p1_w) | |
| 439 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(p2_w) | |
| 440 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(irq_r) | |
| 441 | 441 | ADDRESS_MAP_END |
| 442 | 442 | |
| 443 | 443 |
| r3115 | r3116 | |
|---|---|---|
| 380 | 380 | AM_RANGE(0x980000, 0x9807ff) AM_READ(SMH_RAM) // bg pal |
| 381 | 381 | AM_RANGE(0x980800, 0x980fff) AM_READ(SMH_RAM) // fix pal |
| 382 | 382 | AM_RANGE(0xb80000, 0xb80001) AM_READ(prot_status_r) |
| 383 | AM_RANGE(0xd00000, 0xd00001) AM_READ(input_port_0_word_r) | |
| 384 | AM_RANGE(0xd00002, 0xd00003) AM_READ(input_port_1_word_r) | |
| 383 | AM_RANGE(0xd00000, 0xd00001) AM_READ_PORT("P1") | |
| 384 | AM_RANGE(0xd00002, 0xd00003) AM_READ_PORT("P2") | |
| 385 | 385 | AM_RANGE(0xd80000, 0xd80001) AM_READ(eeprom_r) |
| 386 | AM_RANGE(0xf00000, 0xf00001) AM_READ( | |
| 386 | AM_RANGE(0xf00000, 0xf00001) AM_READ( | |
| 387 | 387 | AM_RANGE(0xf80000, 0xf80001) AM_READ(prot_data_r) |
| 388 | 388 | ADDRESS_MAP_END |
| 389 | 389 | |
| r3115 | r3116 | |
| 464 | 464 | |
| 465 | 465 | static INPUT_PORTS_START( deroon ) |
| 466 | 466 | PORT_START("P1") |
| 467 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 468 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 469 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 470 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 471 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 472 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 473 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 474 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 467 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 468 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 469 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 470 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 471 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 472 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 473 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 474 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 475 | 475 | |
| 476 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 477 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SERVICE ) | |
| 478 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 479 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 480 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 481 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 482 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 483 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 476 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 477 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SERVICE ) | |
| 478 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 479 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 480 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 481 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 482 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 483 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 484 | 484 | |
| 485 | 485 | PORT_START("P2") |
| 486 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 487 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 488 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 489 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 490 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 491 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 492 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 493 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START2 ) | |
| 486 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 487 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 488 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 489 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 490 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 491 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 492 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 493 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START2 ) | |
| 494 | 494 | |
| 495 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 496 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 497 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 498 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 499 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 500 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 501 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 502 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 495 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 496 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 497 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 498 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 499 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 500 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 501 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 502 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 503 | 503 | INPUT_PORTS_END |
| 504 | 504 | |
| 505 | 505 | static const gfx_layout gfxlayout = |
| r3115 | r3116 | |
| 1140 | 1140 | GAME( 1995, deroon, 0, deroon, deroon, deroon, ROT0, "Tecmo", "Deroon DeroDero", 0 ) |
| 1141 | 1141 | GAME( 1996, tkdensho, 0, deroon, deroon, tkdensho, ROT0, "Tecmo", "Touki Denshou -Angel Eyes- (VER. 960614)", 0 ) |
| 1142 | 1142 | GAME( 1996, tkdensha, tkdensho, deroon, deroon, tkdensha, ROT0, "Tecmo", "Touki Denshou -Angel Eyes- (VER. 960427)", 0 ) |
| 1143 |
| r3115 | r3116 | |
|---|---|---|
| 29 | 29 | static UINT8 cop_l; |
| 30 | 30 | static UINT8 cop_cmd_latch; |
| 31 | 31 | |
| 32 | static int timer_int = 1; | |
| 33 | static int data_rdy_int = 1; | |
| 34 | static int ssi_data_request = 1; | |
| 32 | static int timer_int; | |
| 33 | static int data_rdy_int; | |
| 34 | static int ssi_data_request; | |
| 35 | 35 | |
| 36 | 36 | static int cart_present; |
| 37 | 37 | static int pr7820_enter; |
| r3115 | r3116 | |
| 650 | 650 | PORT_START("COIN") |
| 651 | 651 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 652 | 652 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 653 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(laserdisc_enter_r, 0 ) | |
| 654 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(laserdisc_ready_r, 0 ) | |
| 653 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(laserdisc_enter_r, NULL) | |
| 654 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(laserdisc_ready_r, NULL) | |
| 655 | 655 | |
| 656 | 656 | PORT_START("R0") |
| 657 | 657 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "2" ) PORT_CODE( KEYCODE_F2 ) |
| r3115 | r3116 | |
| 724 | 724 | |
| 725 | 725 | static MACHINE_RESET( thayers ) |
| 726 | 726 | { |
| 727 | int newtype = (input_port_read(machine, "DSWB") & 0x18) ? LASERDISC_TYPE_PIONEER_LDV1000 : LASERDISC_TYPE_PIONEER_PR7820; | |
| 727 | int newtype; | |
| 728 | ||
| 729 | laserdisc_data = 0; | |
| 730 | ||
| 731 | rx_bit = 0; | |
| 732 | keylatch = 0; | |
| 733 | ||
| 734 | cop_data_latch = 0; | |
| 735 | cop_data_latch_enable = 0; | |
| 736 | cop_l = 0; | |
| 737 | cop_cmd_latch = 0; | |
| 738 | ||
| 739 | timer_int = 1; | |
| 740 | data_rdy_int = 1; | |
| 741 | ssi_data_request = 1; | |
| 742 | ||
| 743 | cart_present = 0; | |
| 744 | pr7820_enter = 0; | |
| 745 | ||
| 746 | newtype = (input_port_read(machine, "DSWB") & 0x18) ? LASERDISC_TYPE_PIONEER_LDV1000 : LASERDISC_TYPE_PIONEER_PR7820; | |
| 728 | 747 | device_set_info_int(laserdisc, LDINFO_INT_TYPE, newtype); |
| 729 | 748 | } |
| 730 | 749 |
| r3115 | r3116 | |
|---|---|---|
| 192 | 192 | static ADDRESS_MAP_START( topshoot_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 193 | 193 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) /* Cartridge Program Rom */ |
| 194 | 194 | // AM_RANGE(0x200000, 0x20007f) AM_READ(SMH_RAM) |
| 195 | // AM_RANGE(0x200040, 0x200041) AM_READ(input_port_0_word_r) // ?? | |
| 196 | // AM_RANGE(0x200050, 0x200051) AM_READ(input_port_0_word_r) // ?? | |
| 195 | // AM_RANGE(0x200040, 0x200041) AM_READ_PORT("IN0") // ?? | |
| 196 | // AM_RANGE(0x200050, 0x200051) AM_READ_PORT("IN0") // ?? | |
| 197 | 197 | AM_RANGE(0x202000, 0x2023ff) AM_READ(SMH_RAM) |
| 198 | AM_RANGE(0x400004, 0x400005) AM_READ(input_port_0_word_r) // ?? | |
| 199 | AM_RANGE(0xa10000, 0xa1001f) AM_READ(input_port_0_word_r) | |
| 200 | AM_RANGE(0xa11100, 0xa11101) AM_READ(input_port_0_word_r) // ?? | |
| 198 | AM_RANGE(0x400004, 0x400005) AM_READ_PORT("IN0") // ?? | |
| 199 | AM_RANGE(0xa10000, 0xa1001f) AM_READ_PORT("IN0") | |
| 200 | AM_RANGE(0xa11100, 0xa11101) AM_READ_PORT("IN0") // ?? | |
| 201 | 201 | |
| 202 | 202 | |
| 203 | 203 | AM_RANGE(0xa00000, 0xa0ffff) AM_READ(genesis_68k_to_z80_r) |
| r3115 | r3116 | |
|---|---|---|
| 88 | 88 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 89 | 89 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) |
| 90 | 90 | AM_RANGE(0x9000, 0x97ff) AM_READ(SMH_RAM) |
| 91 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_0_r) | |
| 92 | AM_RANGE(0xa880, 0xa880) AM_READ(input_port_1_r) | |
| 93 | AM_RANGE(0xa900, 0xa900) AM_READ(input_port_2_r) | |
| 94 | AM_RANGE(0xa980, 0xa980) AM_READ(input_port_3_r) | |
| 91 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("SYSTEM") | |
| 92 | AM_RANGE(0xa880, 0xa880) AM_READ_PORT("INPUTS") | |
| 93 | AM_RANGE(0xa900, 0xa900) AM_READ_PORT("DSW1") | |
| 94 | AM_RANGE(0xa980, 0xa980) AM_READ_PORT("DSW2") | |
| 95 | 95 | ADDRESS_MAP_END |
| 96 | 96 | |
| 97 | 97 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 112 | 112 | AM_RANGE(0x5000, 0x53ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 113 | 113 | AM_RANGE(0x5400, 0x57ff) AM_RAM |
| 114 | 114 | AM_RANGE(0x6000, 0x6007) AM_WRITENOP /* solenoid writes */ |
| 115 | AM_RANGE(0x7000, 0x7000) AM_READ | |
| 115 | AM_RANGE(0x7000, 0x7000) AM_READ | |
| 116 | 116 | AM_RANGE(0x8000, 0x83ff) AM_RAM_WRITE(pingpong_colorram_w) AM_BASE(&colorram) |
| 117 | 117 | AM_RANGE(0x8400, 0x87ff) AM_RAM_WRITE(pingpong_videoram_w) AM_BASE(&videoram) |
| 118 | 118 | AM_RANGE(0x9000, 0x9002) AM_RAM |
| 119 | 119 | AM_RANGE(0x9003, 0x9052) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 120 | 120 | AM_RANGE(0x9053, 0x97ff) AM_RAM |
| 121 | 121 | AM_RANGE(0xa000, 0xa000) AM_WRITE(coin_w) /* irq enables */ |
| 122 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 123 | AM_RANGE(0xa080, 0xa080) AM_READ(input_port_1_r) | |
| 124 | AM_RANGE(0xa100, 0xa100) AM_READ(input_port_2_r) | |
| 125 | AM_RANGE(0xa180, 0xa180) AM_READ(input_port_3_r) | |
| 122 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN0") | |
| 123 | AM_RANGE(0xa080, 0xa080) AM_READ_PORT("IN1") | |
| 124 | AM_RANGE(0xa100, 0xa100) AM_READ_PORT("IN2") | |
| 125 | AM_RANGE(0xa180, 0xa180) AM_READ_PORT("IN3") | |
| 126 | 126 | AM_RANGE(0xa200, 0xa200) AM_WRITE(SMH_NOP) /* SN76496 data latch */ |
| 127 | 127 | AM_RANGE(0xa400, 0xa400) AM_WRITE(sn76496_0_w) /* trigger read */ |
| 128 | 128 | AM_RANGE(0xa600, 0xa600) AM_WRITE(watchdog_reset_w) |
| r3115 | r3116 | |
| 131 | 131 | |
| 132 | 132 | |
| 133 | 133 | static INPUT_PORTS_START( pingpong ) |
| 134 | PORT_START("SYSTEM") | |
| 134 | PORT_START("SYSTEM") | |
| 135 | 135 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 136 | 136 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 137 | 137 | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| r3115 | r3116 | |
| 141 | 141 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 142 | 142 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 143 | 143 | |
| 144 | PORT_START("INPUTS") | |
| 144 | PORT_START("INPUTS") | |
| 145 | 145 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 146 | 146 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 147 | 147 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 151 | 151 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 152 | 152 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 153 | 153 | |
| 154 | PORT_START("DSW1") | |
| 154 | PORT_START("DSW1") | |
| 155 | 155 | PORT_DIPNAME( 0x0F, 0x0F, DEF_STR( Coin_B ) ) |
| 156 | 156 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 157 | 157 | PORT_DIPSETTING( 0x0A, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 187 | 187 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 188 | 188 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 189 | 189 | |
| 190 | PORT_START("DSW2") | |
| 190 | PORT_START("DSW2") | |
| 191 | 191 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 192 | 192 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 193 | 193 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 220 | 220 | PORT_DIPNAME( 0x10, 0x10, "Door Close") |
| 221 | 221 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 222 | 222 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 223 | PORT_DIPNAME( 0x20, 0x20, "Door Open") //Seems strange, one input to register an open door | |
| 224 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) //And a different one for closing it! | |
| 223 | PORT_DIPNAME( 0x20, 0x20, "Door Open") // Seems strange, one input to register an open door | |
| 224 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) // And a different one for closing it! | |
| 225 | 225 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 226 | 226 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 227 | 227 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 297 | 297 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 298 | 298 | |
| 299 | 299 | PORT_START("IN4") |
| 300 | PORT_DIPNAME( 0x01, 0x01, "10P Level" )//Most likely to be optos, rather than DIPs. | |
| 300 | PORT_DIPNAME( 0x01, 0x01, "10P Level" ) // Most likely to be optos, rather than DIPs. | |
| 301 | 301 | PORT_DIPSETTING( 0x01, DEF_STR( Low ) ) |
| 302 | 302 | PORT_DIPSETTING( 0x00, DEF_STR( High ) ) |
| 303 | 303 | PORT_DIPNAME( 0x02, 0x02, "20P Level" ) |
| r3115 | r3116 | |
| 328 | 328 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 329 | 329 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) |
| 330 | 330 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 331 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 331 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) // 0x20 and 0x40 if both ON enable a test menu | |
| 332 | 332 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 333 | 333 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 334 | 334 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | static void update_interrupts(running_machine *machine) |
| 34 | 34 | { |
| 35 | int newstate = 0; | |
| 36 | ||
| 37 | if (atarigen_scanline_int_state) | |
| 38 | newstate = 1; | |
| 39 | if (atarigen_video_int_state) | |
| 40 | newstate = 2; | |
| 41 | if (atarigen_sound_int_state) | |
| 42 | newstate = 4; | |
| 43 | ||
| 44 | if (newstate) | |
| 45 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 46 | else | |
| 47 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 35 | cpunum_set_input_line(machine, 0, 1, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 36 | cpunum_set_input_line(machine, 0, 2, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 37 | cpunum_set_input_line(machine, 0, 4, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 48 | 38 | } |
| 49 | 39 | |
| 50 | 40 |
| r3115 | r3116 | |
|---|---|---|
| 35 | 35 | { |
| 36 | 36 | switch (offset<<1) |
| 37 | 37 | { |
| 38 | case 0: /* Player 1 & Player 2 joysticks & fire buttons */ | |
| 39 | return (input_port_read(machine, "P1") + (input_port_read(machine, "P2") << 8)); | |
| 40 | case 2: /* Dips */ | |
| 41 | return (input_port_read(machine, "DSW1") + (input_port_read(machine, "DSW2") << 8)); | |
| 42 | case 8: /* Credits */ | |
| 38 | case 0: | |
| 39 | return input_port_read(machine, "INPUTS"); | |
| 40 | case 2: | |
| 41 | return input_port_read(machine, "DSW"); | |
| 42 | case 8: | |
| 43 | 43 | return input_port_read(machine, "COIN"); |
| 44 | 44 | case 10: /* ? Not used for anything */ |
| 45 | 45 | case 12: |
| r3115 | r3116 | |
| 153 | 153 | /******************************************************************************/ |
| 154 | 154 | |
| 155 | 155 | static INPUT_PORTS_START( supbtime ) |
| 156 | PORT_START("P1") /* Player 1 controls */ | |
| 157 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 158 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 159 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 160 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 161 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 162 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 163 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 164 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 156 | PORT_START("INPUTS") | |
| 157 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 158 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 159 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 160 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 161 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 162 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 163 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 164 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 165 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 166 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 167 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 168 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 169 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 170 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 171 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 172 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 165 | 173 | |
| 166 | PORT_START("P2") /* Player 2 controls */ | |
| 167 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 168 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 169 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 170 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 171 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 172 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 173 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 174 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 174 | PORT_START("COIN") | |
| 175 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 176 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 177 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 178 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 179 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 180 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 181 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 182 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 175 | 183 | |
| 176 | PORT_START("COIN") /* Credits */ | |
| 177 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 178 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 179 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 180 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 181 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 182 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 183 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 184 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 185 | ||
| 186 | PORT_START("DSW1") /* Dip switch bank 1 - inverted with respect to other Deco games */ | |
| 187 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) | |
| 188 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 189 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 190 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 191 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) ) | |
| 192 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) | |
| 193 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 194 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_5C ) ) | |
| 195 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_6C ) ) | |
| 196 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) ) | |
| 197 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 198 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 199 | PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) ) | |
| 200 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_2C ) ) | |
| 201 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) | |
| 202 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 203 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) | |
| 204 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_6C ) ) | |
| 205 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 206 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 207 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 208 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) | |
| 209 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 210 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 211 | ||
| 212 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 213 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) | |
| 214 | PORT_DIPSETTING( 0x80, "1" ) | |
| 215 | PORT_DIPSETTING( 0x00, "2" ) | |
| 216 | PORT_DIPSETTING( 0xc0, "3" ) | |
| 217 | PORT_DIPSETTING( 0x40, "4" ) | |
| 218 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 219 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 220 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 221 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 222 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 223 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) | |
| 224 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 225 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 226 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) | |
| 227 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 228 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 229 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Allow_Continue ) ) | |
| 230 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 231 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) | |
| 232 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 233 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 234 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 184 | PORT_START("DSW") /* inverted with respect to other Deco games */ | |
| 185 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) | |
| 186 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 187 | PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) ) | |
| 188 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) | |
| 189 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) | |
| 190 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) | |
| 191 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) | |
| 192 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_5C ) ) | |
| 193 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_6C ) ) | |
| 194 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) | |
| 195 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 196 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) | |
| 197 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) | |
| 198 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) | |
| 199 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) | |
| 200 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) | |
| 201 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) ) | |
| 202 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_6C ) ) | |
| 203 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 204 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 205 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 206 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) | |
| 207 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 208 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 209 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) | |
| 210 | PORT_DIPSETTING( 0x8000, "1" ) | |
| 211 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 212 | PORT_DIPSETTING( 0xc000, "3" ) | |
| 213 | PORT_DIPSETTING( 0x4000, "4" ) | |
| 214 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) | |
| 215 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) | |
| 216 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) | |
| 217 | PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) ) | |
| 218 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 219 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) ) | |
| 220 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 221 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 222 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) ) | |
| 223 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 224 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 225 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) ) | |
| 226 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 227 | PORT_DIPSETTING( 0x0200, DEF_STR( Yes ) ) | |
| 228 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 229 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 230 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 235 | 231 | INPUT_PORTS_END |
| 236 | 232 | |
| 237 | 233 | static INPUT_PORTS_START( chinatwn ) |
| 238 | PORT_START("P1") /* Player 1 controls */ | |
| 239 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 240 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 241 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 242 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 243 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 244 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* Used? */ | |
| 245 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) /* button 3 - unused */ | |
| 246 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 234 | PORT_START("INPUTS") | |
| 235 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 236 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 237 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 238 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 239 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 240 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* Used? */ | |
| 241 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNUSED ) /* button 3 - unused */ | |
| 242 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 243 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 244 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 245 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 246 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 247 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 248 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) /* Used? */ | |
| 249 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 250 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 247 | 251 | |
| 248 | PORT_START("P2") /* Player 2 controls */ | |
| 249 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 250 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 251 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 252 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 253 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 254 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) /* Used? */ | |
| 255 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 256 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 252 | PORT_START("COIN") | |
| 253 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 254 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 255 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 256 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 257 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 258 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 259 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 260 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 257 | 261 | |
| 258 | PORT_START("COIN") /* Credits */ | |
| 259 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 260 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 261 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 262 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 263 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 264 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 265 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 266 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 267 | ||
| 268 | PORT_START("DSW1") /* Dip switch bank 1 - inverted with respect to other Deco games */ | |
| 269 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) | |
| 270 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 271 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 272 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 273 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) ) | |
| 274 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) | |
| 275 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 276 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_5C ) ) | |
| 277 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_6C ) ) | |
| 278 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) ) | |
| 279 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 280 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 281 | PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) ) | |
| 282 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_2C ) ) | |
| 283 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) | |
| 284 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 285 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) | |
| 286 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_6C ) ) | |
| 287 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 288 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 289 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 290 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 291 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 292 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 293 | ||
| 294 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 295 | PORT_DIPNAME( 0xc0, 0xc0, "Time" ) | |
| 296 | PORT_DIPSETTING( 0x00, "1500" ) | |
| 297 | PORT_DIPSETTING( 0x80, "2000" ) | |
| 298 | PORT_DIPSETTING( 0xc0, "2500" ) | |
| 299 | PORT_DIPSETTING( 0x40, "3000" ) | |
| 300 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 301 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 302 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 303 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 304 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 305 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 306 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 307 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 308 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 309 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 310 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 311 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 312 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 313 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 314 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 315 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 316 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 262 | PORT_START("DSW") /* inverted with respect to other Deco games */ | |
| 263 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) | |
| 264 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 265 | PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) ) | |
| 266 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) | |
| 267 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) | |
| 268 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) | |
| 269 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) | |
| 270 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_5C ) ) | |
| 271 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_6C ) ) | |
| 272 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) | |
| 273 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 274 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) | |
| 275 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) | |
| 276 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) | |
| 277 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) | |
| 278 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) | |
| 279 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) ) | |
| 280 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_6C ) ) | |
| 281 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 282 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 283 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 284 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) | |
| 285 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 286 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 287 | PORT_DIPNAME( 0xc000, 0xc000, "Time" ) | |
| 288 | PORT_DIPSETTING( 0x0000, "1500" ) | |
| 289 | PORT_DIPSETTING( 0x8000, "2000" ) | |
| 290 | PORT_DIPSETTING( 0xc000, "2500" ) | |
| 291 | PORT_DIPSETTING( 0x4000, "3000" ) | |
| 292 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) | |
| 293 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) | |
| 294 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) | |
| 295 | PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) ) | |
| 296 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 297 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) | |
| 298 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 299 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 300 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) | |
| 301 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 302 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 303 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) | |
| 304 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 305 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 306 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 307 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 308 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 317 | 309 | INPUT_PORTS_END |
| 318 | 310 | |
| 319 | 311 | /******************************************************************************/ |
| r3115 | r3116 | |
|---|---|---|
| 108 | 108 | AM_RANGE(0x8800, 0x9fff) AM_RAM AM_SHARE(1) AM_BASE(&retofinv_sharedram) |
| 109 | 109 | AM_RANGE(0xa000, 0xa7ff) AM_RAM_WRITE(retofinv_bg_videoram_w) AM_SHARE(3) AM_BASE(&retofinv_bg_videoram) |
| 110 | 110 | AM_RANGE(0xb800, 0xb802) AM_WRITE(retofinv_gfx_ctrl_w) |
| 111 | AM_RANGE(0xc000, 0xc000) AM_READ(input_port_1_r) | |
| 112 | AM_RANGE(0xc001, 0xc001) AM_READ(input_port_2_r) | |
| 111 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("P1") | |
| 112 | AM_RANGE(0xc001, 0xc001) AM_READ_PORT("P2") | |
| 113 | 113 | AM_RANGE(0xc002, 0xc002) AM_READ(SMH_NOP) /* bit 7 must be 0, otherwise game resets */ |
| 114 | 114 | AM_RANGE(0xc003, 0xc003) AM_READ(retofinv_mcu_status_r) |
| 115 | AM_RANGE(0xc004, 0xc004) AM_READ(input_port_0_r) | |
| 116 | AM_RANGE(0xc005, 0xc005) AM_READ(input_port_3_r) | |
| 117 | AM_RANGE(0xc006, 0xc006) AM_READ(input_port_4_r) | |
| 118 | AM_RANGE(0xc007, 0xc007) AM_READ(input_port_5_r) | |
| 115 | AM_RANGE(0xc004, 0xc004) AM_READ_PORT("SYSTEM") | |
| 116 | AM_RANGE(0xc005, 0xc005) AM_READ_PORT("DSW1") | |
| 117 | AM_RANGE(0xc006, 0xc006) AM_READ_PORT("DSW2") | |
| 118 | AM_RANGE(0xc007, 0xc007) AM_READ_PORT("DSW3") | |
| 119 | 119 | AM_RANGE(0xc800, 0xc800) AM_WRITE(irq0_ack_w) |
| 120 | 120 | AM_RANGE(0xc801, 0xc801) AM_WRITE(coinlockout_w) |
| 121 | 121 | AM_RANGE(0xc802, 0xc802) AM_WRITE(cpu2_reset_w) |
| r3115 | r3116 | |
| 162 | 162 | |
| 163 | 163 | |
| 164 | 164 | static INPUT_PORTS_START( retofinv ) |
| 165 | PORT_START(" | |
| 165 | PORT_START("SYSTEM") | |
| 166 | 166 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 167 | 167 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 168 | 168 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) |
| r3115 | r3116 | |
| 172 | 172 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 173 | 173 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 174 | 174 | |
| 175 | PORT_START(" | |
| 175 | PORT_START("P | |
| 176 | 176 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 177 | 177 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 178 | 178 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 182 | 182 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 183 | 183 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 184 | 184 | |
| 185 | PORT_START(" | |
| 185 | PORT_START("P | |
| 186 | 186 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 187 | 187 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL |
| 188 | 188 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
|---|---|---|
| 202 | 202 | PORT_DIPSETTING( 0x01, "1 coin/1 credit - 2 coins/3 credits" ) |
| 203 | 203 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 204 | 204 | |
| 205 | PORT_DIPNAME( 0xf0, 0xf0, "Coin slot 2" ) PORT_DIPLOCATION("SW2:1,2,3,4") | |
| 205 | PORT_DIPNAME( 0xf0, 0xf0, "Coin slot 2" ) PORT_DIPLOCATION("SW2:1,2,3,4") | |
| 206 | 206 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) |
| 207 | 207 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) |
| 208 | 208 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 3236 | 3236 | |
| 3237 | 3237 | |
| 3238 | 3238 | GAME( 1987, rtype, 0, rtype, rtype, 0, ROT0, "Irem", "R-Type (World)", GAME_NO_COCKTAIL ) |
| 3239 | GAME( 1987, rtypej, rtype, rtype, rtype | |
| 3239 | GAME( 1987, rtypej, rtype, rtype, rtype | |
| 3240 | 3240 | GAME( 1987, rtypejp, rtype, rtype, rtypep, 0, ROT0, "Irem", "R-Type (Japan prototype)", GAME_NO_COCKTAIL ) |
| 3241 | 3241 | GAME( 1987, rtypeu, rtype, rtype, rtype, 0, ROT0, "Irem (Nintendo of America license)", "R-Type (US)", GAME_NO_COCKTAIL ) |
| 3242 | 3242 | GAME( 1987, bchopper, 0, m72, bchopper, bchopper, ROT0, "Irem", "Battle Chopper", GAME_NO_COCKTAIL ) |
| r3115 | r3116 | |
|---|---|---|
| 462 | 462 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 463 | 463 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) |
| 464 | 464 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 465 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_ttl74123_output, | |
| 465 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_ttl74123_output, NULL) | |
| 466 | 466 | |
| 467 | 467 | PORT_START("IN1") |
| 468 | 468 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL |
| r3115 | r3116 | |
|---|---|---|
| 68 | 68 | AM_RANGE(0x700000, 0x703fff) AM_READ(SMH_RAM) |
| 69 | 69 | AM_RANGE(0x704000, 0x707fff) AM_READ(SMH_RAM) |
| 70 | 70 | AM_RANGE(0x708000, 0x70ffff) AM_READ(SMH_RAM) |
| 71 | AM_RANGE(0x800000, 0x800001) AM_READ(input_port_0_word_r) | |
| 72 | AM_RANGE(0x800002, 0x800003) AM_READ(input_port_1_word_r) | |
| 73 | AM_RANGE(0xa00000, 0xa00001) AM_READ(input_port_2_word_r) | |
| 74 | AM_RANGE(0xa00002, 0xa00003) AM_READ(input_port_3_word_r) | |
| 71 | AM_RANGE(0x800000, 0x800001) AM_READ_PORT("P1") | |
| 72 | AM_RANGE(0x800002, 0x800003) AM_READ_PORT("P2") | |
| 73 | AM_RANGE(0xa00000, 0xa00001) AM_READ_PORT("DSW1") | |
| 74 | AM_RANGE(0xa00002, 0xa00003) AM_READ_PORT("DSW2") | |
| 75 | 75 | AM_RANGE(0xb00000, 0xb00001) AM_READ(okim6295_status_0_lsb_r) |
| 76 | 76 | AM_RANGE(0xc00000, 0xc00001) AM_READ(watchdog_reset16_r) |
| 77 | 77 | ADDRESS_MAP_END |
| r3115 | r3116 | |
|---|---|---|
| 113 | 113 | |
| 114 | 114 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 115 | 115 | AM_RANGE(0x0000, 0x07ff) AM_READ(SMH_RAM) |
| 116 | AM_RANGE(0x1800, 0x1800) AM_READ(input_port_0_r) | |
| 117 | AM_RANGE(0x1a00, 0x1a00) AM_READ(input_port_1_r) | |
| 118 | AM_RANGE(0x1c00, 0x1c00) AM_READ(input_port_2_r) | |
| 116 | AM_RANGE(0x1800, 0x1800) AM_READ_PORT("P1") | |
| 117 | AM_RANGE(0x1a00, 0x1a00) AM_READ_PORT("P2") | |
| 118 | AM_RANGE(0x1c00, 0x1c00) AM_READ_PORT("DSW") | |
| 119 | 119 | |
| 120 | 120 | /* Extra on Poke Champ (not on Pocket Gal) */ |
| 121 | 121 | AM_RANGE(0x2000, 0x27ff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
|---|---|---|
| 84 | 84 | WRITE16_HANDLER( stlforce_mlow_videoram_w ); |
| 85 | 85 | WRITE16_HANDLER( stlforce_bg_videoram_w ); |
| 86 | 86 | |
| 87 | static READ16_HANDLER( stlforce_input_port_1_r ) | |
| 88 | { | |
| 89 | return (input_port_read(machine, "SYSTEM") & ~0x40) | (eeprom_read_bit() << 6); | |
| 90 | } | |
| 91 | ||
| 92 | 87 | static WRITE16_HANDLER( eeprom_w ) |
| 93 | 88 | { |
| 94 | 89 | if( ACCESSING_BITS_0_7 ) |
| r3115 | r3116 | |
| 120 | 115 | AM_RANGE(0x108000, 0x108fff) AM_RAM AM_BASE(&stlforce_spriteram) |
| 121 | 116 | AM_RANGE(0x109000, 0x11ffff) AM_RAM |
| 122 | 117 | AM_RANGE(0x400000, 0x400001) AM_READ_PORT("INPUT") |
| 123 | AM_RANGE(0x400002, 0x400003) AM_READ | |
| 118 | AM_RANGE(0x400002, 0x400003) AM_READ | |
| 124 | 119 | AM_RANGE(0x400010, 0x400011) AM_WRITE(eeprom_w) |
| 125 | 120 | AM_RANGE(0x400012, 0x400013) AM_WRITE(oki_bank_w) |
| 126 | 121 | AM_RANGE(0x40001e, 0x40001f) AM_WRITENOP // sprites buffer commands |
| r3115 | r3116 | |
| 153 | 148 | PORT_SERVICE_NO_TOGGLE( 0x0008, IP_ACTIVE_LOW ) |
| 154 | 149 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 155 | 150 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 156 | PORT_BIT( 0x0040, IP_ACTIVE_ | |
| 151 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* eeprom */ | |
| 157 | 152 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 158 | 153 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 159 | 154 | INPUT_PORTS_END |
| r3115 | r3116 | |
|---|---|---|
| 243 | 243 | VIDEO_START( topspeed ); |
| 244 | 244 | VIDEO_UPDATE( topspeed ); |
| 245 | 245 | |
| 246 | static UINT16 cpua_ctrl | |
| 246 | static UINT16 cpua_ctrl | |
| 247 | 247 | static INT32 ioc220_port = 0; |
| 248 | static INT32 banknum; | |
| 249 | static int adpcm_pos; | |
| 250 | static int adpcm_data; | |
| 248 | 251 | |
| 249 | 252 | extern UINT16 *topspeed_spritemap; |
| 250 | 253 | |
| r3115 | r3116 | |
| 400 | 403 | SOUND |
| 401 | 404 | *****************************************************/ |
| 402 | 405 | |
| 403 | static INT32 banknum = -1; | |
| 404 | ||
| 405 | 406 | static void reset_sound_region(running_machine *machine) |
| 406 | 407 | { |
| 407 | 408 | memory_set_bankptr( 10, memory_region(machine, "audio") + (banknum * 0x4000) + 0x10000 ); |
| r3115 | r3116 | |
| 413 | 414 | reset_sound_region(machine); |
| 414 | 415 | } |
| 415 | 416 | |
| 416 | static int adpcm_pos; | |
| 417 | ||
| 418 | 417 | static void topspeed_msm5205_vck(running_machine *machine, int chip) |
| 419 | 418 | { |
| 420 | static int adpcm_data = -1; | |
| 421 | ||
| 422 | 419 | if (adpcm_data != -1) |
| 423 | 420 | { |
| 424 | 421 | msm5205_data_w(0, adpcm_data & 0x0f); |
| r3115 | r3116 | |
| 692 | 689 | state_save_register_postload(machine, topspeed_postload, NULL); |
| 693 | 690 | } |
| 694 | 691 | |
| 692 | static MACHINE_RESET( topspeed ) | |
| 693 | { | |
| 694 | cpua_ctrl = 0xff; | |
| 695 | ioc220_port = 0; | |
| 696 | banknum = -1; | |
| 697 | adpcm_pos = 0; | |
| 698 | adpcm_data = -1; | |
| 699 | } | |
| 700 | ||
| 695 | 701 | static MACHINE_DRIVER_START( topspeed ) |
| 696 | 702 | |
| 697 | 703 | /* basic machine hardware */ |
| r3115 | r3116 | |
| 707 | 713 | MDRV_CPU_VBLANK_INT("main", topspeed_cpub_interrupt) |
| 708 | 714 | |
| 709 | 715 | MDRV_MACHINE_START(topspeed) |
| 716 | MDRV_MACHINE_RESET(topspeed) | |
| 710 | 717 | |
| 711 | 718 | /* video hardware */ |
| 712 | 719 | MDRV_SCREEN_ADD("main", RASTER) |
| r3115 | r3116 | |
|---|---|---|
| 598 | 598 | |
| 599 | 599 | PORT_START("IN2") |
| 600 | 600 | PORT_BIT( 0x7f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 601 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(adcdo_r, | |
| 601 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(adcdo_r, NULL) | |
| 602 | 602 | |
| 603 | 603 | PORT_START("IN3") |
| 604 | 604 | PORT_SERVICE_NO_TOGGLE( 0x80, IP_ACTIVE_LOW ) |
| r3115 | r3116 | |
| 642 | 642 | |
| 643 | 643 | PORT_START("IN2") |
| 644 | 644 | PORT_BIT( 0x7f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 645 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(adcdo_r, | |
| 645 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(adcdo_r, NULL) | |
| 646 | 646 | |
| 647 | 647 | PORT_START("IN3") |
| 648 | 648 | PORT_SERVICE_NO_TOGGLE( 0x80, IP_ACTIVE_LOW ) |
| r3115 | r3116 | |
| 686 | 686 | |
| 687 | 687 | PORT_START("IN2") |
| 688 | 688 | PORT_BIT( 0x7f, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 689 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(adcdo_r, | |
| 689 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(adcdo_r, NULL) | |
| 690 | 690 | |
| 691 | 691 | PORT_START("IN3") |
| 692 | 692 | PORT_SERVICE_NO_TOGGLE( 0x80, IP_ACTIVE_LOW ) |
| r3115 | r3116 | |
|---|---|---|
| 1535 | 1535 | |
| 1536 | 1536 | |
| 1537 | 1537 | static INPUT_PORTS_START( transfrm ) /* Used By Transformer */ |
| 1538 | PORT_START(" | |
| 1538 | PORT_START("f2 | |
| 1539 | 1539 | SEGA_COIN_A |
| 1540 | 1540 | SEGA_COIN_B |
| 1541 | 1541 | |
| 1542 | PORT_START(" | |
| 1542 | PORT_START("f3 | |
| 1543 | 1543 | PORT_DIPNAME( 0x01, 0x00, "1 Player Only" ) PORT_DIPLOCATION("SW2:1") |
| 1544 | 1544 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1545 | 1545 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1562 | 1562 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) |
| 1563 | 1563 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1564 | 1564 | |
| 1565 | PORT_START(" | |
| 1565 | PORT_START("e | |
| 1566 | 1566 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1567 | 1567 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1568 | 1568 | PORT_SERVICE_NO_TOGGLE(0x04, IP_ACTIVE_LOW) |
| r3115 | r3116 | |
| 1572 | 1572 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 1573 | 1573 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 1574 | 1574 | |
| 1575 | PORT_START(" | |
| 1575 | PORT_START("e | |
| 1576 | 1576 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1577 | 1577 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 1578 | 1578 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r3115 | r3116 | |
| 1581 | 1581 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1582 | 1582 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1583 | 1583 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1584 | ||
| 1585 | PORT_START("e2") /* Read from Port 0xe2 */ | |
| 1584 | 1586 | INPUT_PORTS_END |
| 1585 | 1587 | |
| 1586 | 1588 | static INPUT_PORTS_START( fantzn2 ) /* Used By Fantasy Zone 2 */ |
| 1587 | PORT_START(" | |
| 1589 | PORT_START("f2 | |
| 1588 | 1590 | SEGA_COIN_A |
| 1589 | 1591 | SEGA_COIN_B |
| 1590 | 1592 | |
| 1591 | PORT_START(" | |
| 1593 | PORT_START("f3 | |
| 1592 | 1594 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW2:1" ) |
| 1593 | 1595 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") |
| 1594 | 1596 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 1609 | 1611 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| 1610 | 1612 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1611 | 1613 | |
| 1612 | PORT_START(" | |
| 1614 | PORT_START("e | |
| 1613 | 1615 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1614 | 1616 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1615 | 1617 | PORT_SERVICE_NO_TOGGLE(0x04, IP_ACTIVE_LOW) |
| r3115 | r3116 | |
| 1619 | 1621 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 1620 | 1622 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 1621 | 1623 | |
| 1622 | PORT_START(" | |
| 1624 | PORT_START("e | |
| 1623 | 1625 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1624 | 1626 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 1625 | 1627 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r3115 | r3116 | |
| 1628 | 1630 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1629 | 1631 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1630 | 1632 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1633 | ||
| 1634 | PORT_START("e2") /* Read from Port 0xe2 */ | |
| 1631 | 1635 | INPUT_PORTS_END |
| 1632 | 1636 | |
| 1633 | 1637 | static INPUT_PORTS_START( opaopa ) /* Used By Opa Opa */ |
| 1634 | PORT_START(" | |
| 1638 | PORT_START("f2 | |
| 1635 | 1639 | SEGA_COIN_A |
| 1636 | 1640 | SEGA_COIN_B |
| 1637 | 1641 | |
| 1638 | PORT_START(" | |
| 1642 | PORT_START("f3 | |
| 1639 | 1643 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:1") |
| 1640 | 1644 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1641 | 1645 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1658 | 1662 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| 1659 | 1663 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 1660 | 1664 | |
| 1661 | PORT_START(" | |
| 1665 | PORT_START("e | |
| 1662 | 1666 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1663 | 1667 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1664 | 1668 | PORT_SERVICE_NO_TOGGLE(0x04, IP_ACTIVE_LOW) |
| r3115 | r3116 | |
| 1668 | 1672 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 1669 | 1673 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 1670 | 1674 | |
| 1671 | PORT_START(" | |
| 1675 | PORT_START("e | |
| 1672 | 1676 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1673 | 1677 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1674 | 1678 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1678 | 1682 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1679 | 1683 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1680 | 1684 | |
| 1681 | PORT_START(" | |
| 1685 | PORT_START("e | |
| 1682 | 1686 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 1683 | 1687 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 1684 | 1688 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 1691 | 1695 | |
| 1692 | 1696 | |
| 1693 | 1697 | static INPUT_PORTS_START( tetrisse ) /* Used By Tetris */ |
| 1694 | PORT_START(" | |
| 1698 | PORT_START("f2 | |
| 1695 | 1699 | SEGA_COIN_A |
| 1696 | 1700 | SEGA_COIN_B |
| 1697 | 1701 | |
| 1698 | PORT_START(" | |
| 1702 | PORT_START("f3 | |
| 1699 | 1703 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW2:1" ) |
| 1700 | 1704 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") |
| 1701 | 1705 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 1710 | 1714 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" ) |
| 1711 | 1715 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) |
| 1712 | 1716 | |
| 1713 | PORT_START(" | |
| 1717 | PORT_START("e | |
| 1714 | 1718 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1715 | 1719 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1716 | 1720 | PORT_SERVICE_NO_TOGGLE(0x04, IP_ACTIVE_LOW) |
| r3115 | r3116 | |
| 1720 | 1724 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 1721 | 1725 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 1722 | 1726 | |
| 1723 | PORT_START(" | |
| 1727 | PORT_START("e | |
| 1724 | 1728 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1725 | 1729 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 1726 | 1730 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| r3115 | r3116 | |
| 1729 | 1733 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 1730 | 1734 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1731 | 1735 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1736 | ||
| 1737 | PORT_START("e2") /* Read from Port 0xe2 */ | |
| 1732 | 1738 | INPUT_PORTS_END |
| 1733 | 1739 | |
| 1734 | 1740 | |
| 1735 | 1741 | static INPUT_PORTS_START( hangonjr ) /* Used By Hang On Jr */ |
| 1736 | PORT_START(" | |
| 1742 | PORT_START("f2 | |
| 1737 | 1743 | SEGA_COIN_A |
| 1738 | 1744 | SEGA_COIN_B |
| 1739 | 1745 | |
| 1740 | PORT_START(" | |
| 1746 | PORT_START("f3 | |
| 1741 | 1747 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:1") /* Supose to be demo sound but has no effect */ |
| 1742 | 1748 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1743 | 1749 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1755 | 1761 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" ) |
| 1756 | 1762 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) |
| 1757 | 1763 | |
| 1758 | PORT_START(" | |
| 1764 | PORT_START("e | |
| 1759 | 1765 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1760 | 1766 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1761 | 1767 | PORT_SERVICE_NO_TOGGLE(0x04, IP_ACTIVE_LOW) |
| r3115 | r3116 | |
| 1765 | 1771 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1766 | 1772 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1767 | 1773 | |
| 1768 | PORT_START(" | |
| 1774 | PORT_START("e | |
| 1769 | 1775 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1770 | 1776 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1771 | 1777 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1775 | 1781 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1776 | 1782 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1777 | 1783 | |
| 1784 | PORT_START("e2") /* Read from Port 0xe2 */ | |
| 1785 | ||
| 1778 | 1786 | PORT_START("IN2") /* Read from Port 0xf8 */ |
| 1779 | 1787 | PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) |
| 1780 | 1788 | |
| r3115 | r3116 | |
| 1783 | 1791 | INPUT_PORTS_END |
| 1784 | 1792 | |
| 1785 | 1793 | static INPUT_PORTS_START( ridleofp ) /* Used By Riddle Of Pythagoras */ |
| 1786 | PORT_START(" | |
| 1794 | PORT_START("f2 | |
| 1787 | 1795 | SEGA_COIN_A |
| 1788 | 1796 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 1789 | 1797 | SEGA_COIN_B |
| 1790 | 1798 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 1791 | 1799 | |
| 1792 | PORT_START(" | |
| 1800 | PORT_START("f3 | |
| 1793 | 1801 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") |
| 1794 | 1802 | PORT_DIPSETTING( 0x03, "3" ) |
| 1795 | 1803 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
| 1807 | 1815 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 1808 | 1816 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" ) |
| 1809 | 1817 | |
| 1810 | PORT_START(" | |
| 1818 | PORT_START("e | |
| 1811 | 1819 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1812 | 1820 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1813 | 1821 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1817 | 1825 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 1818 | 1826 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) // Would Be IPT_START2 but the code doesn't use it |
| 1819 | 1827 | |
| 1820 | PORT_START(" | |
| 1828 | PORT_START("e | |
| 1821 | 1829 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1822 | 1830 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1823 | 1831 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1827 | 1835 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1828 | 1836 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1829 | 1837 | |
| 1838 | PORT_START("e2") /* Read from Port 0xe2 */ | |
| 1839 | ||
| 1830 | 1840 | PORT_START("IN2") /* Read from Port 0xf8 */ |
| 1831 | 1841 | PORT_BIT( 0x0fff, 0x0000, IPT_DIAL ) PORT_SENSITIVITY(60) PORT_KEYDELTA(125) |
| 1832 | 1842 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON2 ) /* is this used in the game? */ |
| r3115 | r3116 | |
| 2170 | 2180 | memory_install_readwrite8_handler(machine, 0, ADDRESS_SPACE_IO, 0xbe, 0xbe, 0, 0, sms_vdp_2_data_r, sms_vdp_2_data_w); |
| 2171 | 2181 | memory_install_readwrite8_handler(machine, 0, ADDRESS_SPACE_IO, 0xbf, 0xbf, 0, 0, sms_vdp_2_ctrl_r, sms_vdp_2_ctrl_w); |
| 2172 | 2182 | |
| 2173 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xe0, 0xe0, 0, 0, input_port_2_r); | |
| 2174 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xe1, 0xe1, 0, 0, input_port_3_r); | |
| 2175 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xe2, 0xe2, 0, 0, input_port_4_r); | |
| 2176 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xf2, 0xf2, 0, 0, input_port_0_r); | |
| 2177 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xf3, 0xf3, 0, 0, input_port_1_r); | |
| 2183 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xe0, 0xe0, 0, 0, input_port_read_handler8(machine->portconfig, "e0")); | |
| 2184 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xe1, 0xe1, 0, 0, input_port_read_handler8(machine->portconfig, "e1")); | |
| 2185 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xe2, 0xe2, 0, 0, input_port_read_handler8(machine->portconfig, "e2")); | |
| 2186 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xf2, 0xf2, 0, 0, input_port_read_handler8(machine->portconfig, "f2")); | |
| 2187 | memory_install_read8_handler (machine, 0, ADDRESS_SPACE_IO, 0xf3, 0xf3, 0, 0, input_port_read_handler8(machine->portconfig, "f3")); | |
| 2178 | 2188 | |
| 2179 | 2189 | memory_install_write8_handler (machine, 0, ADDRESS_SPACE_IO, 0xf7, 0xf7, 0, 0, systeme_bank_w ); |
| 2180 | 2190 | } |
| r3115 | r3116 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | static void update_interrupts(running_machine *machine) |
| 52 | 52 | { |
| 53 | int newstate = 0; | |
| 54 | ||
| 55 | if (atarigen_video_int_state) | |
| 56 | newstate = 1; | |
| 57 | if (atarigen_sound_int_state) | |
| 58 | newstate = 2; | |
| 59 | ||
| 60 | if (newstate) | |
| 61 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 62 | else | |
| 63 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 53 | cpunum_set_input_line(machine, 0, 1, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 54 | cpunum_set_input_line(machine, 0, 2, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 64 | 55 | } |
| 65 | 56 | |
| 66 | 57 |
| r3115 | r3116 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | static void update_interrupts(running_machine *machine) |
| 44 | 44 | { |
| 45 | int newstate = 0; | |
| 46 | ||
| 47 | if (atarigen_scanline_int_state) | |
| 48 | newstate |= 1; | |
| 49 | if (atarigen_sound_int_state) | |
| 50 | newstate |= 2; | |
| 51 | ||
| 52 | if (newstate) | |
| 53 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 54 | else | |
| 55 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 45 | cpunum_set_input_line(machine, 0, 1, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 46 | cpunum_set_input_line(machine, 0, 2, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 47 | cpunum_set_input_line(machine, 0, 3, atarigen_scanline_int_state && atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 56 | 48 | } |
| 57 | 49 | |
| 58 | 50 | |
| r3115 | r3116 | |
| 127 | 119 | AM_RANGE(0xff8500, 0xff8501) AM_WRITE(atarigen_eeprom_enable_w) |
| 128 | 120 | AM_RANGE(0xff8600, 0xff8601) AM_WRITE(toobin_xscroll_w) AM_BASE(&atarigen_xscroll) |
| 129 | 121 | AM_RANGE(0xff8700, 0xff8701) AM_WRITE(toobin_yscroll_w) AM_BASE(&atarigen_yscroll) |
| 130 | AM_RANGE(0xff8800, 0xff8801) AM_READ | |
| 122 | AM_RANGE(0xff8800, 0xff8801) AM_READ | |
| 131 | 123 | AM_RANGE(0xff9000, 0xff9001) AM_READ(special_port1_r) |
| 132 | 124 | AM_RANGE(0xff9800, 0xff9801) AM_READ(atarigen_sound_r) |
| 133 | 125 | AM_RANGE(0xffa000, 0xffafff) AM_READWRITE(atarigen_eeprom_r, atarigen_eeprom_w) AM_BASE(&atarigen_eeprom) AM_SIZE(&atarigen_eeprom_size) |
| r3115 | r3116 | |
| 143 | 135 | *************************************/ |
| 144 | 136 | |
| 145 | 137 | static INPUT_PORTS_START( toobin ) |
| 146 | PORT_START("FF8800") | |
| 138 | PORT_START("FF8800") | |
| 147 | 139 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P2 R Paddle Forward") PORT_CODE(KEYCODE_L) PORT_PLAYER(2) |
| 148 | 140 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("P2 L Paddle Forward") PORT_CODE(KEYCODE_J) PORT_PLAYER(2) |
| 149 | 141 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("P2 L Paddle Backward") PORT_CODE(KEYCODE_U) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 156 | 148 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P2 Throw") PORT_CODE(KEYCODE_RCONTROL) PORT_PLAYER(2) |
| 157 | 149 | PORT_BIT( 0xfc00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 158 | 150 | |
| 159 | PORT_START("FF9000") | |
| 151 | PORT_START("FF9000") | |
| 160 | 152 | PORT_BIT( 0x03ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 161 | 153 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 162 | 154 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
|---|---|---|
| 68 | 68 | |
| 69 | 69 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 70 | 70 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_RAM) /* RAM (of 1 sort or another) */ |
| 71 | AM_RANGE(0x4008, 0x4008) AM_READ(input_port_0_r) | |
| 72 | AM_RANGE(0x4009, 0x4009) AM_READ(input_port_1_r) | |
| 73 | AM_RANGE(0x400a, 0x400a) AM_READ(input_port_2_r) | |
| 74 | AM_RANGE(0x400b, 0x400b) AM_READ(input_port_3_r) | |
| 75 | AM_RANGE(0x400c, 0x400c) AM_READ(input_port_4_r) | |
| 71 | AM_RANGE(0x4008, 0x4008) AM_READ_PORT("SYSTEM") | |
| 72 | AM_RANGE(0x4009, 0x4009) AM_READ_PORT("P1") | |
| 73 | AM_RANGE(0x400a, 0x400a) AM_READ_PORT("P2") | |
| 74 | AM_RANGE(0x400b, 0x400b) AM_READ_PORT("DSW1") | |
| 75 | AM_RANGE(0x400c, 0x400c) AM_READ_PORT("DSW2") | |
| 76 | 76 | AM_RANGE(0x5000, 0x5fff) AM_READ(SMH_BANK6) /* Banked ROM */ |
| 77 | 77 | AM_RANGE(0x6000, 0x6fff) AM_READ(SMH_BANK7) /* Banked ROM */ |
| 78 | 78 | AM_RANGE(0x7000, 0x7fff) AM_READ(SMH_BANK8) /* Banked ROM */ |
| r3115 | r3116 | |
| 127 | 127 | |
| 128 | 128 | |
| 129 | 129 | static INPUT_PORTS_START( srumbler ) |
| 130 | PORT_START("SYSTEM") | |
| 130 | PORT_START("SYSTEM") | |
| 131 | 131 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 132 | 132 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 133 | 133 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 137 | 137 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 138 | 138 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 139 | 139 | |
| 140 | PORT_START("P1") | |
| 140 | PORT_START("P1") | |
| 141 | 141 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 142 | 142 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 143 | 143 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r3115 | r3116 | |
| 147 | 147 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 148 | 148 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 149 | 149 | |
| 150 | PORT_START("P2") | |
| 150 | PORT_START("P2") | |
| 151 | 151 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 152 | 152 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 153 | 153 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 157 | 157 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 158 | 158 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 159 | 159 | |
| 160 | PORT_START("DSW1") | |
| 160 | PORT_START("DSW1") | |
| 161 | 161 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_B ) ) |
| 162 | 162 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| 163 | 163 | PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 181 | 181 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 182 | 182 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 183 | 183 | |
| 184 | PORT_START("DSW2") | |
| 184 | PORT_START("DSW2") | |
| 185 | 185 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 186 | 186 | PORT_DIPSETTING( 0x03, "3" ) |
| 187 | 187 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
|---|---|---|
| 68 | 68 | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_RAM) |
| 69 | 69 | AM_RANGE(0xe000, 0xe07f) AM_READ(SMH_RAM) |
| 70 | 70 | AM_RANGE(0xe400, 0xe5ff) AM_READ(SMH_RAM) |
| 71 | AM_RANGE(0xe600, 0xe600) AM_READ(input_port_0_r) /* IN0 */ | |
| 72 | AM_RANGE(0xe601, 0xe601) AM_READ(input_port_1_r) /* IN1 */ | |
| 73 | AM_RANGE(0xe602, 0xe602) AM_READ(input_port_2_r) /* IN2 */ | |
| 74 | AM_RANGE(0xe604, 0xe604) AM_READ(input_port_3_r) /* DSW1 */ | |
| 75 | AM_RANGE(0xe605, 0xe605) AM_READ(input_port_4_r) /* DSW2 */ | |
| 71 | AM_RANGE(0xe600, 0xe600) AM_READ_PORT("P1") | |
| 72 | AM_RANGE(0xe601, 0xe601) AM_READ_PORT("P2") | |
| 73 | AM_RANGE(0xe602, 0xe602) AM_READ_PORT("SYSTEM") | |
| 74 | AM_RANGE(0xe604, 0xe604) AM_READ_PORT("DSW1") | |
| 75 | AM_RANGE(0xe605, 0xe605) AM_READ_PORT("DSW2") | |
| 76 | 76 | AM_RANGE(0xe606, 0xe606) AM_READ(SMH_NOP) /* ??? */ |
| 77 | 77 | ADDRESS_MAP_END |
| 78 | 78 | |
| r3115 | r3116 | |
| 117 | 117 | |
| 118 | 118 | |
| 119 | 119 | static INPUT_PORTS_START( pbaction ) |
| 120 | PORT_START("P1") | |
| 120 | PORT_START("P1") | |
| 121 | 121 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) |
| 122 | 122 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 123 | 123 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) |
| r3115 | r3116 | |
| 127 | 127 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 128 | 128 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 129 | 129 | |
| 130 | PORT_START("P2") | |
| 130 | PORT_START("P2") | |
| 131 | 131 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_COCKTAIL |
| 132 | 132 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 133 | 133 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_COCKTAIL |
| r3115 | r3116 | |
| 137 | 137 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 138 | 138 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 139 | 139 | |
| 140 | PORT_START("SYSTEM") | |
| 140 | PORT_START("SYSTEM") | |
| 141 | 141 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 142 | 142 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 143 | 143 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| r3115 | r3116 | |
| 147 | 147 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 148 | 148 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 149 | 149 | |
| 150 | PORT_START("DSW1") | |
| 150 | PORT_START("DSW1") | |
| 151 | 151 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) ) |
| 152 | 152 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 153 | 153 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) |
| r3115 | r3116 | |
| 170 | 170 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 171 | 171 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 172 | 172 | |
| 173 | PORT_START("DSW2") | |
| 173 | PORT_START("DSW2") | |
| 174 | 174 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Bonus_Life ) ) |
| 175 | 175 | PORT_DIPSETTING( 0x01, "70K 200K 1000K" ) |
| 176 | 176 | PORT_DIPSETTING( 0x00, "70K 200K" ) |
| r3115 | r3116 | |
|---|---|---|
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | static READ16_HANDLER( eeprom_r ) | |
| 127 | { | |
| 128 | int res; | |
| 129 | ||
| 130 | //logerror("%06x eeprom_r\n",activecpu_get_pc()); | |
| 131 | /* bit 6 is EEPROM data */ | |
| 132 | res = (eeprom_read_bit() << 6) | input_port_read(machine,"INPUT"); | |
| 133 | ||
| 134 | return res; | |
| 135 | } | |
| 136 | ||
| 137 | 126 | static WRITE16_HANDLER( eeprom_w ) |
| 138 | 127 | { |
| 139 | 128 | //logerror("%06x: write %04x to eeprom_w\n",activecpu_get_pc(),data); |
| r3115 | r3116 | |
| 257 | 246 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 258 | 247 | AM_RANGE(0x040000, 0x043fff) AM_READ(SMH_RAM) |
| 259 | 248 | AM_RANGE(0x080000, 0x080fff) AM_READ(SMH_RAM) |
| 260 | AM_RANGE(0x0c0000, 0x0c0001) AM_READ | |
| 249 | AM_RANGE(0x0c0000, 0x0c0001) AM_READ | |
| 261 | 250 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ_PORT("SYSTEM") |
| 262 | 251 | AM_RANGE(0x180000, 0x180001) AM_READ_PORT("PADDLE") |
| 263 | 252 | AM_RANGE(0x1d8000, 0x1d8003) AM_READ(overdriv_sound_0_r) /* K053260 */ |
| r3115 | r3116 | |
| 344 | 333 | /* is missing. */ |
| 345 | 334 | |
| 346 | 335 | static INPUT_PORTS_START( overdriv ) |
| 347 | PORT_START("INPUT") | |
| 336 | PORT_START("INPUTS") | |
| 348 | 337 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_TOGGLE |
| 349 | 338 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 350 | 339 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 351 | 340 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 352 | 341 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) |
| 353 | 342 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 354 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 343 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 355 | 344 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 356 | 345 | |
| 357 | 346 | PORT_START("SYSTEM") |
| r3115 | r3116 | |
|---|---|---|
| 371 | 371 | /***************************************************************************/ |
| 372 | 372 | |
| 373 | 373 | static ADDRESS_MAP_START( scontra_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 374 | AM_RANGE(0x1f90, 0x1f90) AM_READ(input_port_0_r) /* coin */ | |
| 375 | AM_RANGE(0x1f91, 0x1f91) AM_READ(input_port_1_r) /* p1 */ | |
| 376 | AM_RANGE(0x1f92, 0x1f92) AM_READ(input_port_2_r) /* p2 */ | |
| 377 | AM_RANGE(0x1f93, 0x1f93) AM_READ(input_port_5_r) /* Dip 3 */ | |
| 378 | AM_RANGE(0x1f94, 0x1f94) AM_READ(input_port_3_r) /* Dip 1 */ | |
| 379 | AM_RANGE(0x1f95, 0x1f95) AM_READ(input_port_4_r) /* Dip 2 */ | |
| 374 | AM_RANGE(0x1f90, 0x1f90) AM_READ_PORT("SYSTEM") | |
| 375 | AM_RANGE(0x1f91, 0x1f91) AM_READ_PORT("P1") | |
| 376 | AM_RANGE(0x1f92, 0x1f92) AM_READ_PORT("P2") | |
| 377 | AM_RANGE(0x1f93, 0x1f93) AM_READ_PORT("DSW3") | |
| 378 | AM_RANGE(0x1f94, 0x1f94) AM_READ_PORT("DSW1") | |
| 379 | AM_RANGE(0x1f95, 0x1f95) AM_READ_PORT("DSW2") | |
| 380 | 380 | |
| 381 | 381 | AM_RANGE(0x0000, 0x3fff) AM_READ(K052109_051960_r) |
| 382 | 382 | AM_RANGE(0x4000, 0x57ff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 386 | 386 | ADDRESS_MAP_END |
| 387 | 387 | |
| 388 | 388 | static ADDRESS_MAP_START( thunderx_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 389 | AM_RANGE(0x1f90, 0x1f90) AM_READ(input_port_0_r) /* coin */ | |
| 390 | AM_RANGE(0x1f91, 0x1f91) AM_READ(input_port_1_r) /* p1 */ | |
| 391 | AM_RANGE(0x1f92, 0x1f92) AM_READ(input_port_2_r) /* p2 */ | |
| 392 | AM_RANGE(0x1f93, 0x1f93) AM_READ(input_port_5_r) /* Dip 3 */ | |
| 393 | AM_RANGE(0x1f94, 0x1f94) AM_READ(input_port_3_r) /* Dip 1 */ | |
| 394 | AM_RANGE(0x1f95, 0x1f95) AM_READ(input_port_4_r) /* Dip 2 */ | |
| 389 | AM_RANGE(0x1f90, 0x1f90) AM_READ_PORT("SYSTEM") | |
| 390 | AM_RANGE(0x1f91, 0x1f91) AM_READ_PORT("P1") | |
| 391 | AM_RANGE(0x1f92, 0x1f92) AM_READ_PORT("P2") | |
| 392 | AM_RANGE(0x1f93, 0x1f93) AM_READ_PORT("DSW3") | |
| 393 | AM_RANGE(0x1f94, 0x1f94) AM_READ_PORT("DSW1") | |
| 394 | AM_RANGE(0x1f95, 0x1f95) AM_READ_PORT("DSW2") | |
| 395 | 395 | AM_RANGE(0x1f98, 0x1f98) AM_READ(thunderx_1f98_r) /* registers */ |
| 396 | 396 | |
| 397 | 397 | AM_RANGE(0x0000, 0x3fff) AM_READ(K052109_051960_r) |
| r3115 | r3116 | |
| 465 | 465 | ***************************************************************************/ |
| 466 | 466 | |
| 467 | 467 | static INPUT_PORTS_START( scontra ) |
| 468 | PORT_START("SYSTEM") | |
| 468 | PORT_START("SYSTEM") | |
| 469 | 469 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 470 | 470 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 471 | 471 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 475 | 475 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 476 | 476 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 477 | 477 | |
| 478 | PORT_START("P1") | |
| 478 | PORT_START("P1") | |
| 479 | 479 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 480 | 480 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 481 | 481 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 485 | 485 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 486 | 486 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 487 | 487 | |
| 488 | PORT_START("P2") | |
| 488 | PORT_START("P2") | |
| 489 | 489 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 490 | 490 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 491 | 491 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 495 | 495 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 496 | 496 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 497 | 497 | |
| 498 | PORT_START("DSW1") | |
| 498 | PORT_START("DSW1") | |
| 499 | 499 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 500 | 500 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 501 | 501 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 531 | 531 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 532 | 532 | // PORT_DIPSETTING( 0x00, "Invalid" ) |
| 533 | 533 | |
| 534 | PORT_START("DSW2") | |
| 534 | PORT_START("DSW2") | |
| 535 | 535 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 536 | 536 | PORT_DIPSETTING( 0x03, "2" ) |
| 537 | 537 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 554 | 554 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 555 | 555 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 556 | 556 | |
| 557 | PORT_START("DSW3") | |
| 557 | PORT_START("DSW3") | |
| 558 | 558 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 559 | 559 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 560 | 560 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 569 | 569 | INPUT_PORTS_END |
| 570 | 570 | |
| 571 | 571 | static INPUT_PORTS_START( thunderx ) |
| 572 | PORT_START("SYSTEM") | |
| 572 | PORT_START("SYSTEM") | |
| 573 | 573 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 574 | 574 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 575 | 575 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 579 | 579 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 580 | 580 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 581 | 581 | |
| 582 | PORT_START("P1") | |
| 582 | PORT_START("P1") | |
| 583 | 583 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 584 | 584 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 585 | 585 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 589 | 589 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 590 | 590 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 591 | 591 | |
| 592 | PORT_START("P2") | |
| 592 | PORT_START("P2") | |
| 593 | 593 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 594 | 594 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 595 | 595 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | #include "driver.h" |
| 35 | 35 | #include "cpu/i8085/i8085.h" |
| 36 | #include "cpu/ | |
| 36 | #include "cpu/mcs48 | |
| 37 | 37 | #include "sound/sn76496.h" |
| 38 | 38 | |
| 39 | 39 | |
| r3115 | r3116 | |
| 81 | 81 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 82 | 82 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 83 | 83 | AM_RANGE(0x4000, 0x43ff) AM_READ(SMH_RAM) |
| 84 | AM_RANGE(0x7000, 0x7000) AM_READ(input_port_0_r) | |
| 85 | AM_RANGE(0x7001, 0x7001) AM_READ(input_port_1_r) | |
| 86 | AM_RANGE(0x7002, 0x7002) AM_READ(input_port_2_r) | |
| 84 | AM_RANGE(0x7000, 0x7000) AM_READ_PORT("DSW") | |
| 85 | AM_RANGE(0x7001, 0x7001) AM_READ_PORT("P1") | |
| 86 | AM_RANGE(0x7002, 0x7002) AM_READ_PORT("P2") | |
| 87 | 87 | AM_RANGE(0x8000, 0x83ff) AM_READ(SMH_RAM) |
| 88 | 88 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) |
| 89 | 89 | AM_RANGE(0xa000, 0xa3ff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 111 | 111 | ADDRESS_MAP_END |
| 112 | 112 | |
| 113 | 113 | static ADDRESS_MAP_START( sound_readport, ADDRESS_SPACE_IO, 8 ) |
| 114 | AM_RANGE(I8039_bus, I8039_bus) AM_READ(soundlatch_r) | |
| 115 | AM_RANGE(I8039_p2, I8039_p2) AM_READ(spcforce_SN76496_select_r) | |
| 116 | AM_RANGE(I8039_t0, I8039_t0) AM_READ(spcforce_t0_r) | |
| 114 | AM_RANGE(MCS48_PORT_BUS, MCS48_PORT_BUS) AM_READ(soundlatch_r) | |
| 115 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READ(spcforce_SN76496_select_r) | |
| 116 | AM_RANGE(MCS48_PORT_T0, MCS48_PORT_T0) AM_READ(spcforce_t0_r) | |
| 117 | 117 | ADDRESS_MAP_END |
| 118 | 118 | |
| 119 | 119 | static ADDRESS_MAP_START( sound_writeport, ADDRESS_SPACE_IO, 8 ) |
| 120 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(spcforce_SN76496_latch_w) | |
| 121 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(spcforce_SN76496_select_w) | |
| 120 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(spcforce_SN76496_latch_w) | |
| 121 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(spcforce_SN76496_select_w) | |
| 122 | 122 | ADDRESS_MAP_END |
| 123 | 123 | |
| 124 | 124 | |
| 125 | 125 | static INPUT_PORTS_START( spcforce ) |
| 126 | PORT_START("DSW") | |
| 126 | PORT_START("DSW") | |
| 127 | 127 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coin_A ) ) |
| 128 | 128 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 129 | 129 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 147 | 147 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 148 | 148 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 149 | 149 | |
| 150 | PORT_START("P1") | |
| 150 | PORT_START("P1") | |
| 151 | 151 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 152 | 152 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 153 | 153 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r3115 | r3116 | |
| 157 | 157 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 158 | 158 | PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 159 | 159 | |
| 160 | PORT_START("P2") | |
| 160 | PORT_START("P2") | |
| 161 | 161 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL |
| 162 | 162 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 163 | 163 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 170 | 170 | |
| 171 | 171 | /* same as spcforce, but no cocktail mode */ |
| 172 | 172 | static INPUT_PORTS_START( spcforc2 ) |
| 173 | PORT_START("DSW") | |
| 173 | PORT_START("DSW") | |
| 174 | 174 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coin_A ) ) |
| 175 | 175 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 176 | 176 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
| 194 | 194 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 195 | 195 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 196 | 196 | |
| 197 | PORT_START("P1") | |
| 197 | PORT_START("P1") | |
| 198 | 198 | PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 199 | 199 | PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 200 | 200 | PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r3115 | r3116 | |
| 204 | 204 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 205 | 205 | PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 206 | 206 | |
| 207 | PORT_START("P2") | |
| 207 | PORT_START("P2") | |
| 208 | 208 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) |
| 209 | 209 | PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 210 | 210 | INPUT_PORTS_END |
| r3115 | r3116 | |
|---|---|---|
| 296 | 296 | AM_RANGE(0x180002, 0x180003) AM_WRITENOP |
| 297 | 297 | AM_RANGE(0x180004, 0x180005) AM_READWRITE(prot_r, prot_w) |
| 298 | 298 | AM_RANGE(0x180006, 0x180007) AM_WRITE(gfx_bank_w) |
| 299 | AM_RANGE(0x180008, 0x180009) AM_READ(input_port_0_word_r) | |
| 300 | AM_RANGE(0x18000a, 0x18000b) AM_READ(input_port_1_word_r) | |
| 301 | AM_RANGE(0x18000c, 0x18000d) AM_READ(input_port_2_word_r) | |
| 299 | AM_RANGE(0x180008, 0x180009) AM_READ_PORT("DSW") | |
| 300 | AM_RANGE(0x18000a, 0x18000b) AM_READ_PORT("SYSTEM") | |
| 301 | AM_RANGE(0x18000c, 0x18000d) AM_READ_PORT("INPUTS") | |
| 302 | 302 | AM_RANGE(0x18000e, 0x18000f) AM_WRITE(priority_reg_w) |
| 303 | 303 | AM_RANGE(0x300002, 0x300009) AM_WRITE(SMH_RAM) AM_BASE(&scroll_ram) |
| 304 | 304 | AM_RANGE(0x30000a, 0x30000f) AM_WRITENOP |
| r3115 | r3116 | |
| 316 | 316 | AM_RANGE(0x480002, 0x480003) AM_WRITENOP |
| 317 | 317 | AM_RANGE(0x480004, 0x480005) AM_READWRITE(prot_r, prot_w) |
| 318 | 318 | AM_RANGE(0x480006, 0x480007) AM_WRITE(gfx_bank_w) |
| 319 | AM_RANGE(0x480008, 0x480009) AM_READ(input_port_0_word_r) | |
| 320 | AM_RANGE(0x48000a, 0x48000b) AM_READ(input_port_1_word_r) | |
| 321 | AM_RANGE(0x48000c, 0x48000d) AM_READ(input_port_2_word_r) | |
| 319 | AM_RANGE(0x480008, 0x480009) AM_READ_PORT("DSW") | |
| 320 | AM_RANGE(0x48000a, 0x48000b) AM_READ_PORT("SYSTEM") | |
| 321 | AM_RANGE(0x48000c, 0x48000d) AM_READ_PORT("INPUTS") | |
| 322 | 322 | AM_RANGE(0x48000e, 0x48000f) AM_WRITE(priority_reg_w) |
| 323 | 323 | AM_RANGE(0x500002, 0x500009) AM_WRITE(SMH_RAM) AM_BASE(&scroll_ram) |
| 324 | 324 | AM_RANGE(0x520000, 0x521fff) AM_RAM_WRITE(bg_videoram_w) AM_BASE(&bg_videoram) |
| r3115 | r3116 | |
|---|---|---|
| 144 | 144 | palette_set_color_rgb(machine,offset,pal5bit(paletteram32[offset] >> (10+16)),pal5bit(paletteram32[offset] >> (5+16)),pal5bit(paletteram32[offset] >> (0+16))); |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | /* player inputs */ | |
| 148 | static READ32_HANDLER(io32_r) | |
| 149 | { | |
| 150 | return ((input_port_read(machine, "PLAYERS") << 16) | (input_port_read(machine, "SYSTEM") << 0)); | |
| 151 | } | |
| 152 | ||
| 153 | /* dipswitches */ | |
| 154 | static READ32_HANDLER(io32_1_r) | |
| 155 | { | |
| 156 | return input_port_read(machine, "DSW")<<16; | |
| 157 | } | |
| 158 | ||
| 159 | 147 | /* sound I/O */ |
| 160 | 148 | |
| 161 | 149 | static READ32_HANDLER(silk_6295_0_r) |
| r3115 | r3116 | |
| 216 | 204 | AM_RANGE(0x804000, 0x807fff) AM_READ(SMH_RAM) |
| 217 | 205 | AM_RANGE(0x808000, 0x80bfff) AM_READ(SMH_RAM) |
| 218 | 206 | |
| 219 | AM_RANGE(0xC00000, 0xC00003) AM_READ(io32_r) // player inputs | |
| 220 | AM_RANGE(0xC00004, 0xC00007) AM_READ(io32_1_r) // dip switches | |
| 207 | AM_RANGE(0xC00000, 0xC00003) AM_READ_PORT("INPUTS") | |
| 208 | AM_RANGE(0xC00004, 0xC00007) AM_READ_PORT("DSW") | |
| 221 | 209 | AM_RANGE(0xC00024, 0xC00027) AM_READ(silk_6295_0_r) |
| 222 | 210 | AM_RANGE(0xC0002C, 0xC0002f) AM_READ(silk_ym_r) |
| 223 | 211 | AM_RANGE(0xC00030, 0xC00033) AM_READ(silk_6295_1_r) |
| r3115 | r3116 | |
| 259 | 247 | |
| 260 | 248 | |
| 261 | 249 | static INPUT_PORTS_START( silkroad ) |
| 262 | PORT_START("PLAYERS") /* Players inputs */ | |
| 263 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 264 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 265 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 266 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 267 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 268 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 269 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 270 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 271 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 272 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 273 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 274 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 275 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 276 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 277 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 278 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 250 | PORT_START("INPUTS") | |
| 251 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 252 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 253 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 254 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 255 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 256 | PORT_SERVICE_NO_TOGGLE( 0x00000020, IP_ACTIVE_LOW ) | |
| 257 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_SERVICE2 ) /* Not mentioned in the "test mode" */ | |
| 258 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_SPECIAL ) /* See notes - Stephh*/ | |
| 259 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // this input makes the 020 lock up...- RB | |
| 260 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 261 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 262 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 263 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 264 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 265 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 266 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 267 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 268 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 269 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 270 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 271 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 272 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 273 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 274 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 275 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 276 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 277 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 278 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 279 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 280 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 281 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 282 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 279 | 283 | |
| 280 | PORT_START("SYSTEM") /* System inputs */ | |
| 281 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 282 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 283 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 284 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 285 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 286 | PORT_SERVICE_NO_TOGGLE( 0x0020, IP_ACTIVE_LOW ) | |
| 287 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_SERVICE2 ) /* Not mentioned in the "test mode" */ | |
| 288 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SPECIAL ) /* See notes - Stephh*/ | |
| 289 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) // this input makes the 020 lock up...- RB | |
| 290 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 291 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 292 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 293 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 294 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 295 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 296 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 284 | PORT_START("DSW") | |
| 285 | PORT_DIPNAME( 0x00010000, 0x00000000, DEF_STR( Lives ) ) | |
| 286 | PORT_DIPSETTING( 0x00010000, "1" ) | |
| 287 | PORT_DIPSETTING( 0x00000000, "2" ) | |
| 288 | PORT_DIPNAME( 0x00020000, 0x00000000, "Special Effect" ) | |
| 289 | PORT_DIPSETTING( 0x00020000, DEF_STR( Off ) ) | |
| 290 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 291 | PORT_DIPNAME( 0x00040000, 0x00040000, "Unused DIP A-2" ) | |
| 292 | PORT_DIPSETTING( 0x00040000, DEF_STR( Off ) ) | |
| 293 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 294 | PORT_DIPNAME( 0x00080000, 0x00080000, "Unused DIP A-3" ) | |
| 295 | PORT_DIPSETTING( 0x00080000, DEF_STR( Off ) ) | |
| 296 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 297 | PORT_DIPNAME( 0x00100000, 0x00100000, "Unused DIP A-4" ) | |
| 298 | PORT_DIPSETTING( 0x00100000, DEF_STR( Off ) ) | |
| 299 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 300 | PORT_DIPNAME( 0x00e00000, 0x00000000, DEF_STR( Difficulty ) ) | |
| 301 | PORT_DIPSETTING( 0x00600000, DEF_STR( Easiest ) ) // "1" | |
| 302 | PORT_DIPSETTING( 0x00400000, DEF_STR( Easier ) ) // "2" | |
| 303 | PORT_DIPSETTING( 0x00200000, DEF_STR( Easy ) ) // "3" | |
| 304 | PORT_DIPSETTING( 0x00000000, DEF_STR( Normal ) ) // "4" | |
| 305 | PORT_DIPSETTING( 0x00e00000, DEF_STR( Medium ) ) // "5" | |
| 306 | PORT_DIPSETTING( 0x00c00000, DEF_STR( Hard ) ) // "6" | |
| 307 | PORT_DIPSETTING( 0x00a00000, DEF_STR( Harder ) ) // "7" | |
| 308 | PORT_DIPSETTING( 0x00800000, DEF_STR( Hardest ) ) // "8" | |
| 309 | PORT_DIPNAME( 0x01000000, 0x01000000, "Unused DIP B-0" ) | |
| 310 | PORT_DIPSETTING( 0x01000000, DEF_STR( Off ) ) | |
| 311 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 312 | PORT_DIPNAME( 0x02000000, 0x02000000, DEF_STR( Free_Play ) ) | |
| 313 | PORT_DIPSETTING( 0x02000000, DEF_STR( Off ) ) | |
| 314 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 315 | PORT_DIPNAME( 0x04000000, 0x04000000, "Unused DIP B-2" ) | |
| 316 | PORT_DIPSETTING( 0x04000000, DEF_STR( Off ) ) | |
| 317 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 318 | PORT_DIPNAME( 0x08000000, 0x00000000, DEF_STR( Demo_Sounds ) ) | |
| 319 | PORT_DIPSETTING( 0x08000000, DEF_STR( Off ) ) | |
| 320 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 321 | PORT_DIPNAME( 0x10000000, 0x10000000, "Chute Type" ) // "Coin Box" | |
| 322 | PORT_DIPSETTING( 0x10000000, DEF_STR( Single ) ) // "1" | |
| 323 | PORT_DIPSETTING( 0x00000000, "Multi" ) // "2" | |
| 324 | PORT_DIPNAME( 0xe0000000, 0xe0000000, DEF_STR( Coin_A ) ) | |
| 325 | PORT_DIPSETTING( 0x00000000, DEF_STR(5C_1C)) | |
| 326 | PORT_DIPSETTING( 0x20000000, DEF_STR(4C_1C)) | |
| 327 | PORT_DIPSETTING( 0x40000000, DEF_STR(3C_1C)) | |
| 328 | PORT_DIPSETTING( 0x60000000, DEF_STR(2C_1C)) | |
| 329 | PORT_DIPSETTING( 0xe0000000, DEF_STR(1C_1C)) | |
| 330 | PORT_DIPSETTING( 0xc0000000, DEF_STR(1C_2C)) | |
| 331 | PORT_DIPSETTING( 0xa0000000, DEF_STR(1C_3C)) | |
| 332 | PORT_DIPSETTING( 0x80000000, DEF_STR(1C_4C)) | |
| 297 | 333 | |
| 298 | PORT_START("DSW") /* DSW */ | |
| 299 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Lives ) ) | |
| 300 | PORT_DIPSETTING( 0x0001, "1" ) | |
| 301 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 302 | PORT_DIPNAME( 0x0002, 0x0000, "Special Effect" ) | |
| 303 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 304 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 305 | PORT_DIPNAME( 0x0004, 0x0004, "Unused DIP A-2" ) | |
| 306 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 307 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 308 | PORT_DIPNAME( 0x0008, 0x0008, "Unused DIP A-3" ) | |
| 309 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 310 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 311 | PORT_DIPNAME( 0x0010, 0x0010, "Unused DIP A-4" ) | |
| 312 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 313 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 314 | PORT_DIPNAME( 0x00e0, 0x0000, DEF_STR( Difficulty ) ) | |
| 315 | PORT_DIPSETTING( 0x0060, DEF_STR( Easiest ) ) // "1" | |
| 316 | PORT_DIPSETTING( 0x0040, DEF_STR( Easier ) ) // "2" | |
| 317 | PORT_DIPSETTING( 0x0020, DEF_STR( Easy ) ) // "3" | |
| 318 | PORT_DIPSETTING( 0x0000, DEF_STR( Normal ) ) // "4" | |
| 319 | PORT_DIPSETTING( 0x00e0, DEF_STR( Medium ) ) // "5" | |
| 320 | PORT_DIPSETTING( 0x00c0, DEF_STR( Hard ) ) // "6" | |
| 321 | PORT_DIPSETTING( 0x00a0, DEF_STR( Harder ) ) // "7" | |
| 322 | PORT_DIPSETTING( 0x0080, DEF_STR( Hardest ) ) // "8" | |
| 323 | PORT_DIPNAME( 0x0100, 0x0100, "Unused DIP B-0" ) | |
| 324 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 325 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 326 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Free_Play ) ) | |
| 327 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 328 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 329 | PORT_DIPNAME( 0x0400, 0x0400, "Unused DIP B-2" ) | |
| 330 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 331 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 332 | PORT_DIPNAME( 0x0800, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 333 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 334 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 335 | PORT_DIPNAME( 0x1000, 0x1000, "Chute Type" ) // "Coin Box" | |
| 336 | PORT_DIPSETTING( 0x1000, DEF_STR( Single ) ) // "1" | |
| 337 | PORT_DIPSETTING( 0x0000, "Multi" ) // "2" | |
| 338 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coin_A ) ) | |
| 339 | PORT_DIPSETTING( 0x0000, DEF_STR(5C_1C)) | |
| 340 | PORT_DIPSETTING( 0x2000, DEF_STR(4C_1C)) | |
| 341 | PORT_DIPSETTING( 0x4000, DEF_STR(3C_1C)) | |
| 342 | PORT_DIPSETTING( 0x6000, DEF_STR(2C_1C)) | |
| 343 | PORT_DIPSETTING( 0xe000, DEF_STR(1C_1C)) | |
| 344 | PORT_DIPSETTING( 0xc000, DEF_STR(1C_2C)) | |
| 345 | PORT_DIPSETTING( 0xa000, DEF_STR(1C_3C)) | |
| 346 | PORT_DIPSETTING( 0x8000, DEF_STR(1C_4C)) | |
| 347 | ||
| 348 | 334 | // PORT_START("MISC") /* Misc inputs */ |
| 349 | 335 | // PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* VBLANK ? */ |
| 350 | 336 | // PORT_BIT( 0xff7f, IP_ACTIVE_LOW, IPT_UNUSED ) /* unknown / unused */ |
| r3115 | r3116 | |
|---|---|---|
| 79 | 79 | AM_RANGE(0x122000, 0x127fff) AM_READ(SMH_RAM) |
| 80 | 80 | AM_RANGE(0x130000, 0x130fff) AM_READ(SMH_RAM) |
| 81 | 81 | AM_RANGE(0x140000, 0x141fff) AM_READ(SMH_RAM) |
| 82 | AM_RANGE(0x150030, 0x150031) AM_READ(input_port_1_word_r) | |
| 83 | AM_RANGE(0x150040, 0x150041) AM_READ(input_port_0_word_r) | |
| 84 | AM_RANGE(0x150050, 0x150051) AM_READ(input_port_2_word_r) | |
| 82 | AM_RANGE(0x150030, 0x150031) AM_READ_PORT("DSW2") | |
| 83 | AM_RANGE(0x150040, 0x150041) AM_READ_PORT("DSW1") | |
| 84 | AM_RANGE(0x150050, 0x150051) AM_READ_PORT("P1_P2") | |
| 85 | 85 | ADDRESS_MAP_END |
| 86 | 86 | |
| 87 | 87 | static ADDRESS_MAP_START( fstarfrc_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r3115 | r3116 | |
| 116 | 116 | AM_RANGE(0x124000, 0x124fff) AM_READ(SMH_RAM) |
| 117 | 117 | AM_RANGE(0x130000, 0x130fff) AM_READ(SMH_RAM) |
| 118 | 118 | AM_RANGE(0x140000, 0x141fff) AM_READ(SMH_RAM) |
| 119 | AM_RANGE(0x150020, 0x150021) AM_READ(input_port_3_word_r) | |
| 120 | AM_RANGE(0x150030, 0x150031) AM_READ(input_port_1_word_r) | |
| 121 | AM_RANGE(0x150040, 0x150041) AM_READ(input_port_0_word_r) | |
| 122 | AM_RANGE(0x150050, 0x150051) AM_READ(input_port_2_word_r) | |
| 119 | AM_RANGE(0x150020, 0x150021) AM_READ_PORT("EXTRA") | |
| 120 | AM_RANGE(0x150030, 0x150031) AM_READ_PORT("DSW2") | |
| 121 | AM_RANGE(0x150040, 0x150041) AM_READ_PORT("DSW1") | |
| 122 | AM_RANGE(0x150050, 0x150051) AM_READ_PORT("P1_P2") | |
| 123 | 123 | ADDRESS_MAP_END |
| 124 | 124 | |
| 125 | 125 | static ADDRESS_MAP_START( ginkun_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r3115 | r3116 | |
| 168 | 168 | /******************************************************************************/ |
| 169 | 169 | |
| 170 | 170 | static INPUT_PORTS_START( fstarfrc ) |
| 171 | PORT_START("DSW1") | |
| 171 | PORT_START("DSW1") | |
| 172 | 172 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") |
| 173 | 173 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| 174 | 174 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) |
| r3115 | r3116 | |
| 192 | 192 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 193 | 193 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 194 | 194 | |
| 195 | PORT_START("DSW2") | |
| 195 | PORT_START("DSW2") | |
| 196 | 196 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") |
| 197 | 197 | PORT_DIPSETTING( 0x00, "2" ) |
| 198 | 198 | PORT_DIPSETTING( 0x03, "3" ) |
| r3115 | r3116 | |
| 234 | 234 | INPUT_PORTS_END |
| 235 | 235 | |
| 236 | 236 | static INPUT_PORTS_START( ginkun ) |
| 237 | PORT_START("DSW1") | |
| 237 | PORT_START("DSW1") | |
| 238 | 238 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:8,7") |
| 239 | 239 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| 240 | 240 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) |
| r3115 | r3116 | |
| 258 | 258 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 259 | 259 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 260 | 260 | |
| 261 | PORT_START("DSW2") | |
| 261 | PORT_START("DSW2") | |
| 262 | 262 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:8,7") |
| 263 | 263 | PORT_DIPSETTING( 0x00, "2" ) |
| 264 | 264 | PORT_DIPSETTING( 0x03, "3" ) |
| r3115 | r3116 | |
| 305 | 305 | INPUT_PORTS_END |
| 306 | 306 | |
| 307 | 307 | static INPUT_PORTS_START( riot ) |
| 308 | PORT_START("DSW1") | |
| 308 | PORT_START("DSW1") | |
| 309 | 309 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") |
| 310 | 310 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 311 | 311 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 331 | 331 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 332 | 332 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 333 | 333 | |
| 334 | PORT_START("DSW2") | |
| 334 | PORT_START("DSW2") | |
| 335 | 335 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") |
| 336 | 336 | PORT_DIPSETTING( 0x03, "1" ) |
| 337 | 337 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
|---|---|---|
| 400 | 400 | { |
| 401 | 401 | switch (offset<<1) |
| 402 | 402 | { |
| 403 | case 0: /* Player 1 & Player 2 joysticks & fire buttons */ | |
| 404 | return (input_port_read(machine, "P1") | (input_port_read(machine, "P2") << 8)); | |
| 405 | case 2: /* Dips */ | |
| 406 | return (input_port_read(machine, "DSW1") | (input_port_read(machine, "DSW2") << 8)); | |
| 407 | case 8: /* Credits */ | |
| 403 | case 0: | |
| 404 | return input_port_read(machine, "PLAYERS"); | |
| 405 | case 2: | |
| 406 | return input_port_read(machine, "DSW"); | |
| 407 | case 8: | |
| 408 | 408 | return input_port_read(machine, "SYSTEM"); |
| 409 | 409 | case 10: /* ? */ |
| 410 | 410 | case 12: |
| r3115 | r3116 | |
| 930 | 930 | /******************************************************************************/ |
| 931 | 931 | |
| 932 | 932 | static INPUT_PORTS_START( tumblepb ) |
| 933 | PORT_START("P1") /* Player 1 controls */ | |
| 934 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 935 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 936 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 937 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 938 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 939 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 940 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 941 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 933 | PORT_START("PLAYERS") | |
| 934 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 935 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 936 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 937 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 938 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 939 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 940 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 941 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 942 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 943 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 944 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 945 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 946 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 947 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 948 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 949 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 942 | 950 | |
| 943 | PORT_START("P2") /* Player 2 controls */ | |
| 944 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 945 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 946 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 947 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 948 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 949 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 950 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 951 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 951 | PORT_START("SYSTEM") | |
| 952 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 953 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 954 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 955 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 956 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 957 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 958 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 959 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 952 | 960 | |
| 953 | PORT_START("SYSTEM") /* Credits */ | |
| 954 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 955 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 956 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 957 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 958 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 959 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 960 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 961 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 961 | PORT_START("DSW") | |
| 962 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) | |
| 963 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 964 | PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) ) | |
| 965 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) | |
| 966 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) | |
| 967 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) | |
| 968 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) | |
| 969 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_5C ) ) | |
| 970 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_6C ) ) | |
| 971 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) | |
| 972 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 973 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) | |
| 974 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) | |
| 975 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) | |
| 976 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) | |
| 977 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) | |
| 978 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) ) | |
| 979 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_6C ) ) | |
| 980 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 981 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 982 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 983 | PORT_DIPNAME( 0x0001, 0x0001, "2 Coins to Start, 1 to Continue" ) | |
| 984 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 985 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 962 | 986 | |
| 963 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 964 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) | |
| 965 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 966 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 967 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 968 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) ) | |
| 969 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) | |
| 970 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 971 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_5C ) ) | |
| 972 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_6C ) ) | |
| 973 | PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) ) | |
| 974 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 975 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 976 | PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) ) | |
| 977 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_2C ) ) | |
| 978 | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) | |
| 979 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 980 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) | |
| 981 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_6C ) ) | |
| 982 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 983 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 984 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 985 | PORT_DIPNAME( 0x01, 0x01, "2 Coins to Start, 1 to Continue" ) | |
| 986 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 987 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 988 | ||
| 989 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 990 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) | |
| 991 | PORT_DIPSETTING( 0x80, "1" ) | |
| 992 | PORT_DIPSETTING( 0x00, "2" ) | |
| 993 | PORT_DIPSETTING( 0xc0, "3" ) | |
| 994 | PORT_DIPSETTING( 0x40, "4" ) | |
| 995 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 996 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 997 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 998 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 999 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 987 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) | |
| 988 | PORT_DIPSETTING( 0x8000, "1" ) | |
| 989 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 990 | PORT_DIPSETTING( 0xc000, "3" ) | |
| 991 | PORT_DIPSETTING( 0x4000, "4" ) | |
| 992 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) | |
| 993 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) | |
| 994 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) | |
| 995 | PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) ) | |
| 996 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1000 | 997 | #if TUMBLEP_HACK |
| 1001 | PORT_DIPNAME( 0x08, 0x08, "Remove Monsters" ) | |
| 998 | PORT_DIPNAME( 0x0800, 0x0800, "Remove Monsters" ) | |
| 1002 | 999 | #else |
| 1003 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) // See notes | |
| 1000 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) ) // See notes | |
| 1004 | 1001 | #endif |
| 1005 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1006 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1002 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 1003 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1007 | 1004 | #if TUMBLEP_HACK |
| 1008 | PORT_DIPNAME( 0x04, 0x04, "Edit Levels" ) | |
| 1005 | PORT_DIPNAME( 0x0400, 0x0400, "Edit Levels" ) | |
| 1009 | 1006 | #else |
| 1010 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) // See notes | |
| 1007 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) ) // See notes | |
| 1011 | 1008 | #endif |
| 1012 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1013 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1014 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Allow_Continue ) ) | |
| 1015 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1016 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) | |
| 1017 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1018 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1019 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1009 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 1010 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1011 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) ) | |
| 1012 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 1013 | PORT_DIPSETTING( 0x0200, DEF_STR( Yes ) ) | |
| 1014 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1015 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 1016 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1020 | 1017 | INPUT_PORTS_END |
| 1021 | 1018 | |
| 1022 | 1019 | static INPUT_PORTS_START( metlsavr ) |
| 1023 | PORT_START("P1") /* Player 1 controls */ | |
| 1024 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1025 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1026 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1027 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1028 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1029 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1030 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1031 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1020 | PORT_START("PLAYERS") | |
| 1021 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1022 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1023 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1024 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1025 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1026 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1027 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1028 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1029 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1030 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1031 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1032 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1033 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1034 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1035 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1036 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1032 | 1037 | |
| 1033 | PORT_START("P2") /* Player 2 controls */ | |
| 1034 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1035 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1036 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1037 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1038 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1039 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1040 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1041 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1038 | PORT_START("SYSTEM") | |
| 1039 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1040 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1041 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1042 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1043 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1044 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1045 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1046 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1042 | 1047 | |
| 1043 | PORT_START("SYSTEM") /* Credits */ | |
| 1044 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1045 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1046 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1047 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1048 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1049 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1050 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1051 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1048 | PORT_START("DSW") | |
| 1049 | PORT_DIPUNUSED_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1050 | PORT_DIPUNUSED_DIPLOC( 0x0002, IP_ACTIVE_LOW, "SW1:7" ) | |
| 1051 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:6,5") | |
| 1052 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 1053 | PORT_DIPSETTING( 0x000c, "3" ) | |
| 1054 | PORT_DIPSETTING( 0x0008, "4" ) | |
| 1055 | PORT_DIPSETTING( 0x0004, "5" ) | |
| 1056 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1057 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1058 | PORT_DIPSETTING( 0x0010, DEF_STR( 4C_1C ) ) | |
| 1059 | PORT_DIPSETTING( 0x0020, DEF_STR( 3C_1C ) ) | |
| 1060 | PORT_DIPSETTING( 0x0030, DEF_STR( 2C_1C ) ) | |
| 1061 | PORT_DIPSETTING( 0x0070, DEF_STR( 1C_1C ) ) | |
| 1062 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) | |
| 1063 | PORT_DIPSETTING( 0x0050, DEF_STR( 1C_3C ) ) | |
| 1064 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_5C ) ) | |
| 1065 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1066 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1067 | PORT_DIPSETTING( 0x0080, DEF_STR( On ) ) | |
| 1052 | 1068 | |
| 1053 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1054 | PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1055 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW1:7" ) | |
| 1056 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:6,5") | |
| 1057 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1058 | PORT_DIPSETTING( 0x0c, "3" ) | |
| 1059 | PORT_DIPSETTING( 0x08, "4" ) | |
| 1060 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1061 | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1062 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 1063 | PORT_DIPSETTING( 0x10, DEF_STR( 4C_1C ) ) | |
| 1064 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1065 | PORT_DIPSETTING( 0x30, DEF_STR( 2C_1C ) ) | |
| 1066 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_1C ) ) | |
| 1067 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) ) | |
| 1068 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_3C ) ) | |
| 1069 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 1070 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1071 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1072 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1073 | ||
| 1074 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1075 | PORT_SERVICE_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1076 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:7") // See notes | |
| 1077 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1078 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1079 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:6") // See notes | |
| 1080 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1081 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1082 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Language ) ) PORT_DIPLOCATION("SW2:5") | |
| 1083 | PORT_DIPSETTING( 0x08, DEF_STR( English ) ) | |
| 1084 | PORT_DIPSETTING( 0x00, "Korean" ) | |
| 1085 | PORT_DIPNAME( 0x30, 0x30, "Life Meter" ) PORT_DIPLOCATION("SW2:4,3") | |
| 1086 | PORT_DIPSETTING( 0x00, "66%" ) | |
| 1087 | PORT_DIPSETTING( 0x30, "100%" ) | |
| 1088 | PORT_DIPSETTING( 0x20, "133%" ) | |
| 1089 | PORT_DIPSETTING( 0x10, "166%" ) | |
| 1090 | PORT_DIPNAME( 0xc0, 0xc0, "Time" ) PORT_DIPLOCATION("SW2:2,1") | |
| 1091 | PORT_DIPSETTING( 0x40, "30 Seconds" ) | |
| 1092 | PORT_DIPSETTING( 0x80, "40 Seconds" ) | |
| 1093 | PORT_DIPSETTING( 0xc0, "60 Seconds" ) | |
| 1094 | PORT_DIPSETTING( 0x00, "80 Seconds" ) | |
| 1069 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1070 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:7") // See notes | |
| 1071 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 1072 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1073 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:6") // See notes | |
| 1074 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 1075 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1076 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Language ) ) PORT_DIPLOCATION("SW2:5") | |
| 1077 | PORT_DIPSETTING( 0x0800, DEF_STR( English ) ) | |
| 1078 | PORT_DIPSETTING( 0x0000, "Korean" ) | |
| 1079 | PORT_DIPNAME( 0x3000, 0x3000, "Life Meter" ) PORT_DIPLOCATION("SW2:4,3") | |
| 1080 | PORT_DIPSETTING( 0x0000, "66%" ) | |
| 1081 | PORT_DIPSETTING( 0x3000, "100%" ) | |
| 1082 | PORT_DIPSETTING( 0x2000, "133%" ) | |
| 1083 | PORT_DIPSETTING( 0x1000, "166%" ) | |
| 1084 | PORT_DIPNAME( 0xc000, 0xc000, "Time" ) PORT_DIPLOCATION("SW2:2,1") | |
| 1085 | PORT_DIPSETTING( 0x4000, "30 Seconds" ) | |
| 1086 | PORT_DIPSETTING( 0x8000, "40 Seconds" ) | |
| 1087 | PORT_DIPSETTING( 0xc000, "60 Seconds" ) | |
| 1088 | PORT_DIPSETTING( 0x0000, "80 Seconds" ) | |
| 1095 | 1089 | INPUT_PORTS_END |
| 1096 | 1090 | |
| 1097 | 1091 | static INPUT_PORTS_START( suprtrio ) |
| r3115 | r3116 | |
| 1143 | 1137 | INPUT_PORTS_END |
| 1144 | 1138 | |
| 1145 | 1139 | static INPUT_PORTS_START( fncywld ) |
| 1146 | PORT_START("P1") /* Player 1 controls */ | |
| 1147 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1148 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1149 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1150 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1151 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1152 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1153 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1154 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1140 | PORT_START("PLAYERS") | |
| 1141 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1142 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1143 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1144 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1145 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1146 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1147 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1148 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1149 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1150 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1151 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1152 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1153 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1154 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1155 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1156 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1155 | 1157 | |
| 1156 | PORT_START("P2") /* Player 2 controls */ | |
| 1157 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1158 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1159 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1160 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1161 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1162 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1163 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1164 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1158 | PORT_START("SYSTEM") | |
| 1159 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1160 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1161 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1162 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 1163 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1164 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1165 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1166 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1165 | 1167 | |
| 1166 | PORT_START("SYSTEM") /* Credits */ | |
| 1167 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1168 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1169 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1170 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 1171 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1172 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1173 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1174 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1168 | PORT_START("DSW") | |
| 1169 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coinage ) ) | |
| 1170 | PORT_DIPSETTING( 0x0020, DEF_STR( 4C_1C ) ) | |
| 1171 | PORT_DIPSETTING( 0x0040, DEF_STR( 3C_1C ) ) | |
| 1172 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_1C ) ) | |
| 1173 | // PORT_DIPSETTING( 0x0000, DEF_STR( 2C_1C ) ) // duplicated setting | |
| 1174 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) | |
| 1175 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_2C ) ) | |
| 1176 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) | |
| 1177 | PORT_DIPSETTING( 0x0080, DEF_STR( 1C_4C ) ) | |
| 1178 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Allow_Continue ) ) | |
| 1179 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 1180 | PORT_DIPSETTING( 0x0010, DEF_STR( Yes ) ) | |
| 1181 | PORT_DIPNAME( 0x0008, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1182 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1183 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1184 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Language ) ) // only seems to the title screen | |
| 1185 | PORT_DIPSETTING( 0x0004, DEF_STR( English ) ) | |
| 1186 | PORT_DIPSETTING( 0x0000, "Korean" ) | |
| 1187 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) | |
| 1188 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1189 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1190 | PORT_DIPNAME( 0x0001, 0x0001, "2 Coins to Start, 1 to Continue" ) | |
| 1191 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1192 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1175 | 1193 | |
| 1176 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1177 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coinage ) ) | |
| 1178 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) | |
| 1179 | PORT_DIPSETTING( 0x40, DEF_STR( 3C_1C ) ) | |
| 1180 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 1181 | // PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) // duplicated setting | |
| 1182 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) | |
| 1183 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) | |
| 1184 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) | |
| 1185 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) | |
| 1186 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) | |
| 1187 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1188 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) | |
| 1189 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1190 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1191 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1192 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Language ) ) // only seems to the title screen | |
| 1193 | PORT_DIPSETTING( 0x04, DEF_STR( English ) ) | |
| 1194 | PORT_DIPSETTING( 0x00, "Korean" ) | |
| 1195 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 1196 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1197 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1198 | PORT_DIPNAME( 0x01, 0x01, "2 Coins to Start, 1 to Continue" ) | |
| 1199 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1200 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1194 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) | |
| 1195 | PORT_DIPSETTING( 0x8000, "1" ) | |
| 1196 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 1197 | PORT_DIPSETTING( 0xc000, "3" ) | |
| 1198 | PORT_DIPSETTING( 0x4000, "4" ) | |
| 1199 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) // to be confirmed | |
| 1200 | PORT_DIPSETTING( 0x3000, DEF_STR( Easy ) ) | |
| 1201 | PORT_DIPSETTING( 0x2000, DEF_STR( Normal ) ) | |
| 1202 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) | |
| 1203 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1201 | 1204 | |
| 1202 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1203 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) | |
| 1204 | PORT_DIPSETTING( 0x80, "1" ) | |
| 1205 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1206 | PORT_DIPSETTING( 0xc0, "3" ) | |
| 1207 | PORT_DIPSETTING( 0x40, "4" ) | |
| 1208 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) // to be confirmed | |
| 1209 | PORT_DIPSETTING( 0x30, DEF_STR( Easy ) ) | |
| 1210 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) | |
| 1211 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 1212 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1213 | ||
| 1214 | 1205 | #if FNCYWLD_HACK |
| 1215 | PORT_DIPNAME( 0x08, 0x08, "Remove Monsters" ) | |
| 1206 | PORT_DIPNAME( 0x0800, 0x0800, "Remove Monsters" ) | |
| 1216 | 1207 | #else |
| 1217 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) // See notes | |
| 1208 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) ) // See notes | |
| 1218 | 1209 | #endif |
| 1219 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1220 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1210 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 1211 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1221 | 1212 | #if FNCYWLD_HACK |
| 1222 | PORT_DIPNAME( 0x04, 0x04, "Edit Levels" ) | |
| 1213 | PORT_DIPNAME( 0x0400, 0x0400, "Edit Levels" ) | |
| 1223 | 1214 | #else |
| 1224 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) // See notes | |
| 1215 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) ) // See notes | |
| 1225 | 1216 | #endif |
| 1226 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1227 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1228 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unused ) ) | |
| 1229 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1230 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1231 | PORT_DIPNAME( 0x01, 0x01, "Freeze" ) | |
| 1232 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1233 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1217 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 1218 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1219 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unused ) ) | |
| 1220 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 1221 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1222 | PORT_DIPNAME( 0x0100, 0x0100, "Freeze" ) | |
| 1223 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 1224 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1234 | 1225 | INPUT_PORTS_END |
| 1235 | 1226 | |
| 1236 | 1227 | static INPUT_PORTS_START( htchctch ) |
| 1237 | PORT_START("P1") /* Player 1 controls */ | |
| 1238 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1239 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1240 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1241 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1242 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1243 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1244 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1245 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1228 | PORT_START("PLAYERS") | |
| 1229 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1230 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1231 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1232 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1233 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1234 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1235 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1236 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1237 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1238 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1239 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1240 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1241 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1242 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1243 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1244 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1246 | 1245 | |
| 1247 | PORT_START("P2") /* Player 2 controls */ | |
| 1248 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1249 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1250 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1251 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1252 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1253 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1254 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1255 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1246 | PORT_START("SYSTEM") | |
| 1247 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1248 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1249 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1250 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1251 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1252 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1253 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1254 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1256 | 1255 | |
| 1257 | PORT_START("SYSTEM") /* Credits */ | |
| 1258 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1259 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1260 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1261 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1262 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1263 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1264 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1265 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1256 | PORT_START("DSW") | |
| 1257 | PORT_DIPUNUSED_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1258 | PORT_DIPUNUSED_DIPLOC( 0x0002, IP_ACTIVE_LOW, "SW1:7" ) | |
| 1259 | PORT_DIPUNUSED_DIPLOC( 0x0004, IP_ACTIVE_LOW, "SW1:6" ) | |
| 1260 | PORT_DIPUNUSED_DIPLOC( 0x0008, IP_ACTIVE_LOW, "SW1:5" ) | |
| 1261 | PORT_DIPUNUSED_DIPLOC( 0x0010, IP_ACTIVE_LOW, "SW1:4" ) | |
| 1262 | PORT_DIPUNUSED_DIPLOC( 0x0020, IP_ACTIVE_LOW, "SW1:3" ) | |
| 1263 | PORT_DIPUNUSED_DIPLOC( 0x0040, IP_ACTIVE_LOW, "SW1:2" ) | |
| 1264 | PORT_DIPUNUSED_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:1" ) | |
| 1266 | 1265 | |
| 1267 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1268 | PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1269 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW1:7" ) | |
| 1270 | PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW1:6" ) | |
| 1271 | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW1:5" ) | |
| 1272 | PORT_DIPUNUSED_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW1:4" ) | |
| 1273 | PORT_DIPUNUSED_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW1:3" ) | |
| 1274 | PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_LOW, "SW1:2" ) | |
| 1275 | PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW1:1" ) | |
| 1276 | ||
| 1277 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1278 | PORT_SERVICE_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1279 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6") | |
| 1280 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1281 | PORT_DIPSETTING( 0x06, DEF_STR( Normal ) ) | |
| 1282 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 1283 | PORT_DIPSETTING( 0x04, DEF_STR( Very_Hard ) ) | |
| 1284 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,4,3") | |
| 1285 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 1286 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) | |
| 1287 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 1288 | PORT_DIPSETTING( 0x30, DEF_STR( 2C_1C ) ) | |
| 1289 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1290 | PORT_DIPSETTING( 0x28, DEF_STR( 2C_3C ) ) | |
| 1291 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 1292 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 1293 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:2") // See notes | |
| 1294 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1295 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1296 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1297 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1298 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1266 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1267 | PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6") | |
| 1268 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 1269 | PORT_DIPSETTING( 0x0600, DEF_STR( Normal ) ) | |
| 1270 | PORT_DIPSETTING( 0x0200, DEF_STR( Hard ) ) | |
| 1271 | PORT_DIPSETTING( 0x0400, DEF_STR( Very_Hard ) ) | |
| 1272 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,4,3") | |
| 1273 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1274 | PORT_DIPSETTING( 0x2000, DEF_STR( 4C_1C ) ) | |
| 1275 | PORT_DIPSETTING( 0x1000, DEF_STR( 3C_1C ) ) | |
| 1276 | PORT_DIPSETTING( 0x3000, DEF_STR( 2C_1C ) ) | |
| 1277 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) ) | |
| 1278 | PORT_DIPSETTING( 0x2800, DEF_STR( 2C_3C ) ) | |
| 1279 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_2C ) ) | |
| 1280 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_3C ) ) | |
| 1281 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:2") // See notes | |
| 1282 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 1283 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1284 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1285 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1286 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1299 | 1287 | INPUT_PORTS_END |
| 1300 | 1288 | |
| 1301 | 1289 | static INPUT_PORTS_START( cookbib ) |
| 1302 | PORT_START("P1") /* Player 1 controls */ | |
| 1303 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1304 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1305 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1306 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1307 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1308 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1309 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1310 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1290 | PORT_START("PLAYERS") | |
| 1291 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1292 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1293 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1294 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1295 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1296 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1297 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1298 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1299 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1300 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1301 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1302 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1303 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1304 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1305 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1306 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1311 | 1307 | |
| 1312 | PORT_START("P2") /* Player 2 controls */ | |
| 1313 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1314 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1315 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1316 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1317 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1318 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1319 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1320 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1308 | PORT_START("SYSTEM") | |
| 1309 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1310 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1311 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1312 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1313 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1314 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1315 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1316 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1321 | 1317 | |
| 1322 | PORT_START("SYSTEM") /* Credits */ | |
| 1323 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1324 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1325 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1326 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1327 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1328 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1329 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1330 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1318 | PORT_START("DSW") | |
| 1319 | PORT_DIPUNUSED_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1320 | PORT_DIPUNUSED_DIPLOC( 0x0002, IP_ACTIVE_LOW, "SW1:7" ) | |
| 1321 | PORT_DIPUNUSED_DIPLOC( 0x0004, IP_ACTIVE_LOW, "SW1:6" ) | |
| 1322 | PORT_DIPUNUSED_DIPLOC( 0x0008, IP_ACTIVE_LOW, "SW1:5" ) | |
| 1323 | PORT_DIPUNUSED_DIPLOC( 0x0010, IP_ACTIVE_LOW, "SW1:4" ) | |
| 1324 | PORT_DIPUNUSED_DIPLOC( 0x0020, IP_ACTIVE_LOW, "SW1:3" ) | |
| 1325 | PORT_DIPUNUSED_DIPLOC( 0x0040, IP_ACTIVE_LOW, "SW1:2" ) | |
| 1326 | PORT_DIPUNUSED_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:1" ) | |
| 1331 | 1327 | |
| 1332 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1333 | PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1334 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW1:7" ) | |
| 1335 | PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW1:6" ) | |
| 1336 | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW1:5" ) | |
| 1337 | PORT_DIPUNUSED_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW1:4" ) | |
| 1338 | PORT_DIPUNUSED_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW1:3" ) | |
| 1339 | PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_LOW, "SW1:2" ) | |
| 1340 | PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW1:1" ) | |
| 1341 | ||
| 1342 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1343 | PORT_SERVICE_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1344 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6") | |
| 1345 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1346 | PORT_DIPSETTING( 0x06, DEF_STR( Normal ) ) | |
| 1347 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 1348 | PORT_DIPSETTING( 0x04, DEF_STR( Very_Hard ) ) | |
| 1349 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,4,3") | |
| 1350 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 1351 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) | |
| 1352 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 1353 | PORT_DIPSETTING( 0x30, DEF_STR( 2C_1C ) ) | |
| 1354 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1355 | PORT_DIPSETTING( 0x28, DEF_STR( 2C_3C ) ) | |
| 1356 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 1357 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 1358 | PORT_DIPNAME( 0x40, 0x40, "Winning Rounds (VS Mode)" ) PORT_DIPLOCATION("SW2:2") | |
| 1359 | PORT_DIPSETTING( 0x00, "1" ) | |
| 1360 | PORT_DIPSETTING( 0x40, "2" ) | |
| 1361 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1362 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1363 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1328 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1329 | PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6") | |
| 1330 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 1331 | PORT_DIPSETTING( 0x0600, DEF_STR( Normal ) ) | |
| 1332 | PORT_DIPSETTING( 0x0200, DEF_STR( Hard ) ) | |
| 1333 | PORT_DIPSETTING( 0x0400, DEF_STR( Very_Hard ) ) | |
| 1334 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,4,3") | |
| 1335 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1336 | PORT_DIPSETTING( 0x2000, DEF_STR( 4C_1C ) ) | |
| 1337 | PORT_DIPSETTING( 0x1000, DEF_STR( 3C_1C ) ) | |
| 1338 | PORT_DIPSETTING( 0x3000, DEF_STR( 2C_1C ) ) | |
| 1339 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) ) | |
| 1340 | PORT_DIPSETTING( 0x2800, DEF_STR( 2C_3C ) ) | |
| 1341 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_2C ) ) | |
| 1342 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_3C ) ) | |
| 1343 | PORT_DIPNAME( 0x4000, 0x4000, "Winning Rounds (VS Mode)" ) PORT_DIPLOCATION("SW2:2") | |
| 1344 | PORT_DIPSETTING( 0x0000, "1" ) | |
| 1345 | PORT_DIPSETTING( 0x4000, "2" ) | |
| 1346 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1347 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1348 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1364 | 1349 | INPUT_PORTS_END |
| 1365 | 1350 | |
| 1366 | 1351 | static INPUT_PORTS_START( chokchok ) |
| 1367 | PORT_START("P1") /* Player 1 controls */ | |
| 1368 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1369 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1370 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1371 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1372 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1373 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1374 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1375 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1352 | PORT_START("PLAYERS") | |
| 1353 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1354 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1355 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1356 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1357 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1358 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1359 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1360 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1361 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1362 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1363 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1364 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1365 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1366 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1367 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1368 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1376 | 1369 | |
| 1377 | PORT_START("P2") /* Player 2 controls */ | |
| 1378 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1379 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1380 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1381 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1382 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1383 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1384 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* button 3 - unused */ | |
| 1385 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1370 | PORT_START("SYSTEM") | |
| 1371 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1372 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1373 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1374 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1375 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1376 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1377 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1378 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1386 | 1379 | |
| 1387 | PORT_START("SYSTEM") /* Credits */ | |
| 1388 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1389 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1390 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1391 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1392 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1393 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1394 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1395 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1380 | PORT_START("DSW") | |
| 1381 | PORT_DIPNAME( 0x0001, 0x0001, "Winning Rounds" ) PORT_DIPLOCATION("SW1:8") | |
| 1382 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 1383 | PORT_DIPSETTING( 0x0001, "3" ) | |
| 1384 | PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:7,6") | |
| 1385 | PORT_DIPSETTING( 0x0006, "0" ) | |
| 1386 | PORT_DIPSETTING( 0x0002, "1" ) | |
| 1387 | PORT_DIPSETTING( 0x0004, "2" ) | |
| 1388 | PORT_DIPSETTING( 0x0000, "3" ) | |
| 1389 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:5,4") | |
| 1390 | PORT_DIPSETTING( 0x0018, "0" ) | |
| 1391 | PORT_DIPSETTING( 0x0008, "1" ) | |
| 1392 | PORT_DIPSETTING( 0x0010, "2" ) | |
| 1393 | PORT_DIPSETTING( 0x0000, "3" ) | |
| 1394 | PORT_DIPNAME( 0x0020, 0x0020, "Time" ) PORT_DIPLOCATION("SW1:3") | |
| 1395 | PORT_DIPSETTING( 0x0020, "60 Seconds" ) | |
| 1396 | PORT_DIPSETTING( 0x0000, "90 Seconds" ) | |
| 1397 | PORT_DIPNAME( 0x00c0, 0x00c0, "Starting Balls" ) PORT_DIPLOCATION("SW1:1,2") | |
| 1398 | PORT_DIPSETTING( 0x0000, "3" ) | |
| 1399 | PORT_DIPSETTING( 0x00c0, "4" ) | |
| 1400 | PORT_DIPSETTING( 0x0040, "5" ) | |
| 1401 | PORT_DIPSETTING( 0x0080, "6" ) | |
| 1396 | 1402 | |
| 1397 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1398 | PORT_DIPNAME( 0x01, 0x01, "Winning Rounds" ) PORT_DIPLOCATION("SW1:8") | |
| 1399 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1400 | PORT_DIPSETTING( 0x01, "3" ) | |
| 1401 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:7,6") | |
| 1402 | PORT_DIPSETTING( 0x06, "0" ) | |
| 1403 | PORT_DIPSETTING( 0x02, "1" ) | |
| 1404 | PORT_DIPSETTING( 0x04, "2" ) | |
| 1405 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1406 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:5,4") | |
| 1407 | PORT_DIPSETTING( 0x18, "0" ) | |
| 1408 | PORT_DIPSETTING( 0x08, "1" ) | |
| 1409 | PORT_DIPSETTING( 0x10, "2" ) | |
| 1410 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1411 | PORT_DIPNAME( 0x20, 0x20, "Time" ) PORT_DIPLOCATION("SW1:3") | |
| 1412 | PORT_DIPSETTING( 0x20, "60 Seconds" ) | |
| 1413 | PORT_DIPSETTING( 0x00, "90 Seconds" ) | |
| 1414 | PORT_DIPNAME( 0xc0, 0xc0, "Starting Balls" ) PORT_DIPLOCATION("SW1:1,2") | |
| 1415 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1416 | PORT_DIPSETTING( 0xc0, "4" ) | |
| 1417 | PORT_DIPSETTING( 0x40, "5" ) | |
| 1418 | PORT_DIPSETTING( 0x80, "6" ) | |
| 1419 | ||
| 1420 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1421 | PORT_SERVICE_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1422 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6") | |
| 1423 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1424 | PORT_DIPSETTING( 0x06, DEF_STR( Normal ) ) | |
| 1425 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 1426 | PORT_DIPSETTING( 0x04, DEF_STR( Very_Hard ) ) | |
| 1427 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,4,3") | |
| 1428 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 1429 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) | |
| 1430 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 1431 | PORT_DIPSETTING( 0x30, DEF_STR( 2C_1C ) ) | |
| 1432 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1433 | PORT_DIPSETTING( 0x28, DEF_STR( 2C_3C ) ) | |
| 1434 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) ) | |
| 1435 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 1436 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:2") | |
| 1437 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1438 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1439 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1440 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1441 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1403 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1404 | PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6") | |
| 1405 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 1406 | PORT_DIPSETTING( 0x0600, DEF_STR( Normal ) ) | |
| 1407 | PORT_DIPSETTING( 0x0200, DEF_STR( Hard ) ) | |
| 1408 | PORT_DIPSETTING( 0x0400, DEF_STR( Very_Hard ) ) | |
| 1409 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,4,3") | |
| 1410 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1411 | PORT_DIPSETTING( 0x2000, DEF_STR( 4C_1C ) ) | |
| 1412 | PORT_DIPSETTING( 0x1000, DEF_STR( 3C_1C ) ) | |
| 1413 | PORT_DIPSETTING( 0x3000, DEF_STR( 2C_1C ) ) | |
| 1414 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) ) | |
| 1415 | PORT_DIPSETTING( 0x2800, DEF_STR( 2C_3C ) ) | |
| 1416 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_2C ) ) | |
| 1417 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_3C ) ) | |
| 1418 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:2") | |
| 1419 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 1420 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1421 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1422 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1423 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1442 | 1424 | INPUT_PORTS_END |
| 1443 | 1425 | |
| 1444 | 1426 | static INPUT_PORTS_START( wlstar ) |
| 1445 | PORT_START("P1") /* Player 1 controls */ | |
| 1446 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1447 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1448 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1449 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1450 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1451 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1452 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1453 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1427 | PORT_START("PLAYERS") | |
| 1428 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1429 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1430 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1431 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1432 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1433 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1434 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1435 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1436 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1437 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1438 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1439 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1440 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1441 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1442 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1443 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1454 | 1444 | |
| 1455 | PORT_START("P2") /* Player 2 controls */ | |
| 1456 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1457 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1458 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1459 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1460 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1461 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1462 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1463 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1445 | PORT_START("SYSTEM") | |
| 1446 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1447 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1448 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1449 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1450 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1451 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1452 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1453 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1464 | 1454 | |
| 1465 | PORT_START("SYSTEM") /* Credits */ | |
| 1466 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1467 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1468 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1469 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1470 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1471 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1472 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1473 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1455 | PORT_START("DSW") | |
| 1456 | PORT_DIPUNUSED_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1457 | PORT_DIPUNUSED_DIPLOC( 0x0002, IP_ACTIVE_LOW, "SW1:7" ) | |
| 1458 | PORT_DIPUNUSED_DIPLOC( 0x0004, IP_ACTIVE_LOW, "SW1:6" ) | |
| 1459 | PORT_DIPUNUSED_DIPLOC( 0x0008, IP_ACTIVE_LOW, "SW1:5" ) | |
| 1460 | PORT_DIPNAME( 0x0010, 0x0010, "2 Players Game" ) PORT_DIPLOCATION("SW1:4") | |
| 1461 | PORT_DIPSETTING( 0x0000, "1 Credit" ) | |
| 1462 | PORT_DIPSETTING( 0x0010, "2 Credits" ) | |
| 1463 | PORT_DIPUNUSED_DIPLOC( 0x0020, IP_ACTIVE_LOW, "SW1:3" ) // See notes | |
| 1464 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:2,1") | |
| 1465 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 1466 | PORT_DIPSETTING( 0x00c0, DEF_STR( Normal ) ) | |
| 1467 | PORT_DIPSETTING( 0x0040, DEF_STR( Hard ) ) | |
| 1468 | PORT_DIPSETTING( 0x0080, DEF_STR( Hardest ) ) | |
| 1474 | 1469 | |
| 1475 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1476 | PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1477 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW1:7" ) | |
| 1478 | PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW1:6" ) | |
| 1479 | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW1:5" ) | |
| 1480 | PORT_DIPNAME( 0x10, 0x10, "2 Players Game" ) PORT_DIPLOCATION("SW1:4") | |
| 1481 | PORT_DIPSETTING( 0x00, "1 Credit" ) | |
| 1482 | PORT_DIPSETTING( 0x10, "2 Credits" ) | |
| 1483 | PORT_DIPUNUSED_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW1:3" ) // See notes | |
| 1484 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:2,1") | |
| 1485 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1486 | PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) ) | |
| 1487 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) | |
| 1488 | PORT_DIPSETTING( 0x80, DEF_STR( Hardest ) ) | |
| 1489 | ||
| 1490 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1491 | PORT_DIPNAME( 0x01, 0x01, "Last Inning" ) PORT_DIPLOCATION("SW2:8") // See notes | |
| 1492 | PORT_DIPSETTING( 0x00, "9" ) | |
| 1493 | PORT_DIPSETTING( 0x01, "12" ) | |
| 1494 | PORT_DIPNAME( 0x02, 0x02, "VS CPU Game Ends" ) PORT_DIPLOCATION("SW2:7") // See notes | |
| 1495 | PORT_DIPSETTING( 0x02, "+10" ) | |
| 1496 | PORT_DIPSETTING( 0x00, "+7" ) | |
| 1497 | PORT_DIPNAME( 0x04, 0x04, "VS Game" ) PORT_DIPLOCATION("SW2:6") | |
| 1498 | PORT_DIPSETTING( 0x00, "1 Credit / 2 Innings" ) | |
| 1499 | PORT_DIPSETTING( 0x04, "1 Credit / 3 Innings" ) | |
| 1500 | PORT_DIPNAME( 0x08, 0x08, "Full 2 Players Game" ) PORT_DIPLOCATION("SW2:5") | |
| 1501 | PORT_DIPSETTING( 0x00, "4 Credits" ) | |
| 1502 | PORT_DIPSETTING( 0x08, "6 Credits" ) | |
| 1503 | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:4,3,2") | |
| 1504 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 1505 | PORT_DIPSETTING( 0x40, DEF_STR( 4C_1C ) ) | |
| 1506 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1507 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 1508 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_1C ) ) | |
| 1509 | PORT_DIPSETTING( 0x50, DEF_STR( 2C_3C ) ) | |
| 1510 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1511 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 1512 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1513 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1514 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1470 | PORT_DIPNAME( 0x0100, 0x0100, "Last Inning" ) PORT_DIPLOCATION("SW2:8") // See notes | |
| 1471 | PORT_DIPSETTING( 0x0000, "9" ) | |
| 1472 | PORT_DIPSETTING( 0x0100, "12" ) | |
| 1473 | PORT_DIPNAME( 0x0200, 0x0200, "VS CPU Game Ends" ) PORT_DIPLOCATION("SW2:7") // See notes | |
| 1474 | PORT_DIPSETTING( 0x0200, "+10" ) | |
| 1475 | PORT_DIPSETTING( 0x0000, "+7" ) | |
| 1476 | PORT_DIPNAME( 0x0400, 0x0400, "VS Game" ) PORT_DIPLOCATION("SW2:6") | |
| 1477 | PORT_DIPSETTING( 0x0000, "1 Credit / 2 Innings" ) | |
| 1478 | PORT_DIPSETTING( 0x0400, "1 Credit / 3 Innings" ) | |
| 1479 | PORT_DIPNAME( 0x0800, 0x0800, "Full 2 Players Game" ) PORT_DIPLOCATION("SW2:5") | |
| 1480 | PORT_DIPSETTING( 0x0000, "4 Credits" ) | |
| 1481 | PORT_DIPSETTING( 0x0800, "6 Credits" ) | |
| 1482 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:4,3,2") | |
| 1483 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1484 | PORT_DIPSETTING( 0x4000, DEF_STR( 4C_1C ) ) | |
| 1485 | PORT_DIPSETTING( 0x2000, DEF_STR( 3C_1C ) ) | |
| 1486 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 1487 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 1488 | PORT_DIPSETTING( 0x5000, DEF_STR( 2C_3C ) ) | |
| 1489 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_2C ) ) | |
| 1490 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_3C ) ) | |
| 1491 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") | |
| 1492 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1493 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1515 | 1494 | INPUT_PORTS_END |
| 1516 | 1495 | |
| 1517 | 1496 | static INPUT_PORTS_START( wondl96 ) |
| 1518 | PORT_START("P1") /* Player 1 controls */ | |
| 1519 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1520 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1521 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1522 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1523 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1524 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1525 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1526 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1497 | PORT_START("PLAYERS") | |
| 1498 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1499 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1500 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1501 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1502 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1503 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1504 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1505 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1506 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1507 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1508 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1509 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1510 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1511 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1512 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1513 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1527 | 1514 | |
| 1528 | PORT_START("P2") /* Player 2 controls */ | |
| 1529 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1530 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1531 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1532 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1533 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1534 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1535 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1536 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1515 | PORT_START("SYSTEM") | |
| 1516 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1517 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1518 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // must be high to avoid endless loops | |
| 1519 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1520 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1521 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1522 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1523 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1537 | 1524 | |
| 1538 | PORT_START("SYSTEM") /* Credits */ | |
| 1539 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1540 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1541 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // must be high to avoid endless loops | |
| 1542 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1543 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1544 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1545 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1546 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1525 | PORT_START("DSW") | |
| 1526 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 1527 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1528 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1529 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:7,6,5") // See notes | |
| 1530 | PORT_DIPSETTING( 0x000e, "0" ) | |
| 1531 | PORT_DIPSETTING( 0x0006, "1" ) | |
| 1532 | PORT_DIPSETTING( 0x000a, "2" ) | |
| 1533 | PORT_DIPSETTING( 0x0002, "3" ) | |
| 1534 | PORT_DIPSETTING( 0x000c, "4" ) | |
| 1535 | PORT_DIPSETTING( 0x0004, "5" ) | |
| 1536 | PORT_DIPSETTING( 0x0008, "6" ) | |
| 1537 | PORT_DIPSETTING( 0x0000, "7" ) | |
| 1538 | PORT_DIPNAME( 0x0010, 0x0010, "Field Color" ) PORT_DIPLOCATION("SW1:4") // See notes | |
| 1539 | PORT_DIPSETTING( 0x0010, "Blue" ) | |
| 1540 | PORT_DIPSETTING( 0x0000, "Green" ) | |
| 1541 | PORT_DIPNAME( 0x0020, 0x0020, "VS CPU Game Ends" ) PORT_DIPLOCATION("SW1:3") // See notes | |
| 1542 | PORT_DIPSETTING( 0x0020, "+10" ) | |
| 1543 | PORT_DIPSETTING( 0x0000, "+7" ) | |
| 1544 | PORT_DIPNAME( 0x0040, 0x0040, "VS Game" ) PORT_DIPLOCATION("SW1:2") | |
| 1545 | PORT_DIPSETTING( 0x0000, "1 Credit / 2 Innings" ) | |
| 1546 | PORT_DIPSETTING( 0x0040, "1 Credit / 3 Innings" ) | |
| 1547 | PORT_DIPNAME( 0x0080, 0x0000, "Full 2 Players Game" ) PORT_DIPLOCATION("SW1:1") | |
| 1548 | PORT_DIPSETTING( 0x0080, "4 Credits" ) | |
| 1549 | PORT_DIPSETTING( 0x0000, "6 Credits" ) | |
| 1547 | 1550 | |
| 1548 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1549 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 1550 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1551 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1552 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:7,6,5") // See notes | |
| 1553 | PORT_DIPSETTING( 0x0e, "0" ) | |
| 1554 | PORT_DIPSETTING( 0x06, "1" ) | |
| 1555 | PORT_DIPSETTING( 0x0a, "2" ) | |
| 1556 | PORT_DIPSETTING( 0x02, "3" ) | |
| 1557 | PORT_DIPSETTING( 0x0c, "4" ) | |
| 1558 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1559 | PORT_DIPSETTING( 0x08, "6" ) | |
| 1560 | PORT_DIPSETTING( 0x00, "7" ) | |
| 1561 | PORT_DIPNAME( 0x10, 0x10, "Field Color" ) PORT_DIPLOCATION("SW1:4") // See notes | |
| 1562 | PORT_DIPSETTING( 0x10, "Blue" ) | |
| 1563 | PORT_DIPSETTING( 0x00, "Green" ) | |
| 1564 | PORT_DIPNAME( 0x20, 0x20, "VS CPU Game Ends" ) PORT_DIPLOCATION("SW1:3") // See notes | |
| 1565 | PORT_DIPSETTING( 0x20, "+10" ) | |
| 1566 | PORT_DIPSETTING( 0x00, "+7" ) | |
| 1567 | PORT_DIPNAME( 0x40, 0x40, "VS Game" ) PORT_DIPLOCATION("SW1:2") | |
| 1568 | PORT_DIPSETTING( 0x00, "1 Credit / 2 Innings" ) | |
| 1569 | PORT_DIPSETTING( 0x40, "1 Credit / 3 Innings" ) | |
| 1570 | PORT_DIPNAME( 0x80, 0x00, "Full 2 Players Game" ) PORT_DIPLOCATION("SW1:1") | |
| 1571 | PORT_DIPSETTING( 0x80, "4 Credits" ) | |
| 1572 | PORT_DIPSETTING( 0x00, "6 Credits" ) | |
| 1573 | ||
| 1574 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1575 | PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1576 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6,5") | |
| 1577 | PORT_DIPSETTING( 0x04, "Level 1" ) | |
| 1578 | PORT_DIPSETTING( 0x08, "Level 2" ) | |
| 1579 | PORT_DIPSETTING( 0x00, "Level 3" ) | |
| 1580 | PORT_DIPSETTING( 0x0e, "Level 4" ) | |
| 1581 | PORT_DIPSETTING( 0x06, "Level 5" ) | |
| 1582 | PORT_DIPSETTING( 0x0a, "Level 6" ) | |
| 1583 | PORT_DIPSETTING( 0x02, "Level 7" ) | |
| 1584 | PORT_DIPSETTING( 0x0c, "Level 8" ) | |
| 1585 | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:4,3,2") | |
| 1586 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 1587 | PORT_DIPSETTING( 0x40, DEF_STR( 4C_1C ) ) | |
| 1588 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1589 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 1590 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_1C ) ) | |
| 1591 | PORT_DIPSETTING( 0x50, DEF_STR( 2C_3C ) ) | |
| 1592 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1593 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 1594 | PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW2:1" ) // See notes | |
| 1551 | PORT_DIPUNUSED_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:8" ) | |
| 1552 | PORT_DIPNAME( 0x0e00, 0x0e00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6,5") | |
| 1553 | PORT_DIPSETTING( 0x0400, "Level 1" ) | |
| 1554 | PORT_DIPSETTING( 0x0800, "Level 2" ) | |
| 1555 | PORT_DIPSETTING( 0x0000, "Level 3" ) | |
| 1556 | PORT_DIPSETTING( 0x0e00, "Level 4" ) | |
| 1557 | PORT_DIPSETTING( 0x0600, "Level 5" ) | |
| 1558 | PORT_DIPSETTING( 0x0a00, "Level 6" ) | |
| 1559 | PORT_DIPSETTING( 0x0200, "Level 7" ) | |
| 1560 | PORT_DIPSETTING( 0x0c00, "Level 8" ) | |
| 1561 | PORT_DIPNAME( 0x7000, 0x7000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:4,3,2") | |
| 1562 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1563 | PORT_DIPSETTING( 0x4000, DEF_STR( 4C_1C ) ) | |
| 1564 | PORT_DIPSETTING( 0x2000, DEF_STR( 3C_1C ) ) | |
| 1565 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_1C ) ) | |
| 1566 | PORT_DIPSETTING( 0x7000, DEF_STR( 1C_1C ) ) | |
| 1567 | PORT_DIPSETTING( 0x5000, DEF_STR( 2C_3C ) ) | |
| 1568 | PORT_DIPSETTING( 0x3000, DEF_STR( 1C_2C ) ) | |
| 1569 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_3C ) ) | |
| 1570 | PORT_DIPUNUSED_DIPLOC( 0x8000, IP_ACTIVE_LOW, "SW2:1" ) // See notes | |
| 1595 | 1571 | INPUT_PORTS_END |
| 1596 | 1572 | |
| 1597 | 1573 | static INPUT_PORTS_START( sdfight ) |
| 1598 | PORT_START("P1") /* Player 1 controls */ | |
| 1599 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1600 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1601 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1602 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1603 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1604 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1605 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1606 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1574 | PORT_START("PLAYERS") | |
| 1575 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1576 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1577 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1578 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1579 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1580 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1581 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1582 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1583 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1584 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1585 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1586 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1587 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1588 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1589 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1590 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1607 | 1591 | |
| 1608 | PORT_START("P2") /* Player 2 controls */ | |
| 1609 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1610 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1611 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1612 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1613 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1614 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1615 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1616 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1592 | PORT_START("SYSTEM") | |
| 1593 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1594 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1595 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1596 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1597 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1598 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1599 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1600 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1617 | 1601 | |
| 1618 | PORT_START("SYSTEM") /* Credits */ | |
| 1619 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1620 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1621 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1622 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1623 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1624 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1625 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1626 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1602 | PORT_START("DSW") | |
| 1603 | PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" ) /* These dips were done from the Test mode screens */ | |
| 1604 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,6,5") | |
| 1605 | PORT_DIPSETTING( 0x0004, "Level 1" ) | |
| 1606 | PORT_DIPSETTING( 0x0008, "Level 2" ) | |
| 1607 | PORT_DIPSETTING( 0x0000, "Level 3" ) | |
| 1608 | PORT_DIPSETTING( 0x000e, "Level 4" ) | |
| 1609 | PORT_DIPSETTING( 0x0006, "Level 5" ) | |
| 1610 | PORT_DIPSETTING( 0x000a, "Level 6" ) | |
| 1611 | PORT_DIPSETTING( 0x0002, "Level 7" ) | |
| 1612 | PORT_DIPSETTING( 0x000c, "Level 8" ) | |
| 1613 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1614 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1615 | PORT_DIPSETTING( 0x0040, DEF_STR( 4C_1C ) ) | |
| 1616 | PORT_DIPSETTING( 0x0020, DEF_STR( 3C_1C ) ) | |
| 1617 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_1C ) ) | |
| 1618 | PORT_DIPSETTING( 0x0070, DEF_STR( 1C_1C ) ) | |
| 1619 | PORT_DIPSETTING( 0x0050, DEF_STR( 2C_3C ) ) | |
| 1620 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) | |
| 1621 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 1622 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1623 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1624 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1627 | 1625 | |
| 1628 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1629 | PORT_SERVICE_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW1:8" ) /* These dips were done from the Test mode screens */ | |
| 1630 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,6,5") | |
| 1631 | PORT_DIPSETTING( 0x04, "Level 1" ) | |
| 1632 | PORT_DIPSETTING( 0x08, "Level 2" ) | |
| 1633 | PORT_DIPSETTING( 0x00, "Level 3" ) | |
| 1634 | PORT_DIPSETTING( 0x0e, "Level 4" ) | |
| 1635 | PORT_DIPSETTING( 0x06, "Level 5" ) | |
| 1636 | PORT_DIPSETTING( 0x0a, "Level 6" ) | |
| 1637 | PORT_DIPSETTING( 0x02, "Level 7" ) | |
| 1638 | PORT_DIPSETTING( 0x0c, "Level 8" ) | |
| 1639 | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1640 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 1641 | PORT_DIPSETTING( 0x40, DEF_STR( 4C_1C ) ) | |
| 1642 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1643 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 1644 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_1C ) ) | |
| 1645 | PORT_DIPSETTING( 0x50, DEF_STR( 2C_3C ) ) | |
| 1646 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1647 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 1648 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1649 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1650 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1651 | ||
| 1652 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1653 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") /* Only Free Play shows in Test Mode */ | |
| 1654 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1655 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1656 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:7") | |
| 1657 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1658 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1659 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:6") | |
| 1660 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1661 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1662 | PORT_DIPNAME( 0x08, 0x08, "Rounds to Win" ) PORT_DIPLOCATION("SW2:5") /* Does not show up in Test Mode screen */ | |
| 1663 | PORT_DIPSETTING( 0x08, "2 Rounds" ) | |
| 1664 | PORT_DIPSETTING( 0x00, "3 Rounds" ) | |
| 1665 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:4") | |
| 1666 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1667 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1668 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:3") | |
| 1669 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1670 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1671 | PORT_DIPNAME( 0xc0, 0xc0, "Time" ) PORT_DIPLOCATION("SW2:2,1") /* Does not show up in Test Mode screen */ | |
| 1672 | PORT_DIPSETTING( 0x40, "30" ) | |
| 1673 | PORT_DIPSETTING( 0x80, "50" ) | |
| 1674 | PORT_DIPSETTING( 0xc0, "70" ) | |
| 1675 | PORT_DIPSETTING( 0x00, "90" ) | |
| 1626 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") /* Only Free Play shows in Test Mode */ | |
| 1627 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 1628 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1629 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:7") | |
| 1630 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 1631 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1632 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:6") | |
| 1633 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 1634 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1635 | PORT_DIPNAME( 0x0800, 0x0800, "Rounds to Win" ) PORT_DIPLOCATION("SW2:5") /* Does not show up in Test Mode screen */ | |
| 1636 | PORT_DIPSETTING( 0x0800, "2 Rounds" ) | |
| 1637 | PORT_DIPSETTING( 0x0000, "3 Rounds" ) | |
| 1638 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:4") | |
| 1639 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 1640 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1641 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:3") | |
| 1642 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 1643 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1644 | PORT_DIPNAME( 0xc000, 0xc000, "Time" ) PORT_DIPLOCATION("SW2:2,1") /* Does not show up in Test Mode screen */ | |
| 1645 | PORT_DIPSETTING( 0x4000, "30" ) | |
| 1646 | PORT_DIPSETTING( 0x8000, "50" ) | |
| 1647 | PORT_DIPSETTING( 0xc000, "70" ) | |
| 1648 | PORT_DIPSETTING( 0x0000, "90" ) | |
| 1676 | 1649 | INPUT_PORTS_END |
| 1677 | 1650 | |
| 1678 | 1651 | static INPUT_PORTS_START( bcstory ) |
| 1679 | PORT_START("P1") /* Player 1 controls */ | |
| 1680 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1681 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1682 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1683 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1684 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1685 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1686 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1687 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1652 | PORT_START("PLAYERS") | |
| 1653 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1654 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1655 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1656 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1657 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1658 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1659 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1660 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1661 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1662 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1663 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1664 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1665 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1666 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1667 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1668 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1688 | 1669 | |
| 1689 | PORT_START("P2") /* Player 2 controls */ | |
| 1690 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1691 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1692 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1693 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1694 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1695 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1696 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1697 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1670 | PORT_START("SYSTEM") | |
| 1671 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1672 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1673 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1674 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1675 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1676 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1677 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1678 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1698 | 1679 | |
| 1699 | PORT_START("SYSTEM") /* Credits */ | |
| 1700 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1701 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1702 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1703 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1704 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1705 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1706 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1707 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1680 | PORT_START("DSW") | |
| 1681 | PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1682 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,6,5") | |
| 1683 | PORT_DIPSETTING( 0x0004, "Level 1" ) | |
| 1684 | PORT_DIPSETTING( 0x0008, "Level 2" ) | |
| 1685 | PORT_DIPSETTING( 0x0000, "Level 3" ) | |
| 1686 | PORT_DIPSETTING( 0x000e, "Level 4" ) | |
| 1687 | PORT_DIPSETTING( 0x0006, "Level 5" ) | |
| 1688 | PORT_DIPSETTING( 0x000a, "Level 6" ) | |
| 1689 | PORT_DIPSETTING( 0x0002, "Level 7" ) | |
| 1690 | PORT_DIPSETTING( 0x000c, "Level 8" ) | |
| 1691 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1692 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1693 | PORT_DIPSETTING( 0x0040, DEF_STR( 4C_1C ) ) | |
| 1694 | PORT_DIPSETTING( 0x0020, DEF_STR( 3C_1C ) ) | |
| 1695 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_1C ) ) | |
| 1696 | PORT_DIPSETTING( 0x0070, DEF_STR( 1C_1C ) ) | |
| 1697 | PORT_DIPSETTING( 0x0050, DEF_STR( 2C_3C ) ) | |
| 1698 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) | |
| 1699 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 1700 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1701 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1702 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1708 | 1703 | |
| 1709 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1710 | PORT_SERVICE_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1711 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,6,5") | |
| 1712 | PORT_DIPSETTING( 0x04, "Level 1" ) | |
| 1713 | PORT_DIPSETTING( 0x08, "Level 2" ) | |
| 1714 | PORT_DIPSETTING( 0x00, "Level 3" ) | |
| 1715 | PORT_DIPSETTING( 0x0e, "Level 4" ) | |
| 1716 | PORT_DIPSETTING( 0x06, "Level 5" ) | |
| 1717 | PORT_DIPSETTING( 0x0a, "Level 6" ) | |
| 1718 | PORT_DIPSETTING( 0x02, "Level 7" ) | |
| 1719 | PORT_DIPSETTING( 0x0c, "Level 8" ) | |
| 1720 | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1721 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 1722 | PORT_DIPSETTING( 0x40, DEF_STR( 4C_1C ) ) | |
| 1723 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1724 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 1725 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_1C ) ) | |
| 1726 | PORT_DIPSETTING( 0x50, DEF_STR( 2C_3C ) ) | |
| 1727 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1728 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 1729 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1730 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1731 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1732 | ||
| 1733 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1734 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 1735 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1736 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1737 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW2:7" ) // See notes | |
| 1738 | PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW2:6" ) // See notes | |
| 1739 | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:5" ) | |
| 1740 | PORT_DIPUNUSED_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW2:4" ) | |
| 1741 | PORT_DIPNAME( 0x20, 0x00, "Event Selection" ) PORT_DIPLOCATION("SW2:3") // See notes | |
| 1742 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1743 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1744 | PORT_DIPNAME( 0x40, 0x40, "Control Type" ) PORT_DIPLOCATION("SW2:2") // See notes | |
| 1745 | PORT_DIPSETTING( 0x40, "Joystick + Buttons" ) | |
| 1746 | PORT_DIPSETTING( 0x00, "Buttons Only" ) | |
| 1747 | PORT_DIPNAME( 0x80, 0x80, "Debug Mode" ) PORT_DIPLOCATION("SW2:1") // See notes | |
| 1748 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1749 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1704 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 1705 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 1706 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1707 | PORT_DIPUNUSED_DIPLOC( 0x0200, IP_ACTIVE_LOW, "SW2:7" ) // See notes | |
| 1708 | PORT_DIPUNUSED_DIPLOC( 0x0400, IP_ACTIVE_LOW, "SW2:6" ) // See notes | |
| 1709 | PORT_DIPUNUSED_DIPLOC( 0x0800, IP_ACTIVE_LOW, "SW2:5" ) | |
| 1710 | PORT_DIPUNUSED_DIPLOC( 0x1000, IP_ACTIVE_LOW, "SW2:4" ) | |
| 1711 | PORT_DIPNAME( 0x2000, 0x0000, "Event Selection" ) PORT_DIPLOCATION("SW2:3") // See notes | |
| 1712 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 1713 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1714 | PORT_DIPNAME( 0x4000, 0x4000, "Control Type" ) PORT_DIPLOCATION("SW2:2") // See notes | |
| 1715 | PORT_DIPSETTING( 0x4000, "Joystick + Buttons" ) | |
| 1716 | PORT_DIPSETTING( 0x0000, "Buttons Only" ) | |
| 1717 | PORT_DIPNAME( 0x8000, 0x8000, "Debug Mode" ) PORT_DIPLOCATION("SW2:1") // See notes | |
| 1718 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1719 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1750 | 1720 | INPUT_PORTS_END |
| 1751 | 1721 | |
| 1752 | 1722 | static INPUT_PORTS_START( semibase ) |
| 1753 | PORT_START("P1") /* Player 1 controls */ | |
| 1754 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1755 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1756 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1757 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1758 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1759 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1760 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1761 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1723 | PORT_START("PLAYERS") | |
| 1724 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1725 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1726 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1727 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1728 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1729 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1730 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1731 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1732 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1733 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1734 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1735 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1736 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1737 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1738 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1739 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1762 | 1740 | |
| 1763 | PORT_START("P2") /* Player 2 controls */ | |
| 1764 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1765 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1766 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1767 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1768 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1769 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1770 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1771 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1741 | PORT_START("SYSTEM") | |
| 1742 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1743 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1744 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN3 ) // See notes | |
| 1745 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN4 ) // See notes | |
| 1746 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1747 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1748 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1749 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1772 | 1750 | |
| 1773 | PORT_START("SYSTEM") /* Credits */ | |
| 1774 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1775 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1776 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) // See notes | |
| 1777 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN4 ) // See notes | |
| 1778 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1779 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1780 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1781 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1751 | PORT_START("DSW") | |
| 1752 | PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1753 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,6,5") | |
| 1754 | PORT_DIPSETTING( 0x0004, "Level 1" ) | |
| 1755 | PORT_DIPSETTING( 0x0008, "Level 2" ) | |
| 1756 | PORT_DIPSETTING( 0x0000, "Level 3" ) | |
| 1757 | PORT_DIPSETTING( 0x000e, "Level 4" ) | |
| 1758 | PORT_DIPSETTING( 0x0006, "Level 5" ) | |
| 1759 | PORT_DIPSETTING( 0x000a, "Level 6" ) | |
| 1760 | PORT_DIPSETTING( 0x0002, "Level 7" ) | |
| 1761 | PORT_DIPSETTING( 0x000c, "Level 8" ) | |
| 1762 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1763 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1764 | PORT_DIPSETTING( 0x0040, DEF_STR( 4C_1C ) ) | |
| 1765 | PORT_DIPSETTING( 0x0020, DEF_STR( 3C_1C ) ) | |
| 1766 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_1C ) ) | |
| 1767 | PORT_DIPSETTING( 0x0070, DEF_STR( 1C_1C ) ) | |
| 1768 | PORT_DIPSETTING( 0x0050, DEF_STR( 2C_3C ) ) | |
| 1769 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) | |
| 1770 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 1771 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1772 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1773 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1782 | 1774 | |
| 1783 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1784 | PORT_SERVICE_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1785 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,6,5") | |
| 1786 | PORT_DIPSETTING( 0x04, "Level 1" ) | |
| 1787 | PORT_DIPSETTING( 0x08, "Level 2" ) | |
| 1788 | PORT_DIPSETTING( 0x00, "Level 3" ) | |
| 1789 | PORT_DIPSETTING( 0x0e, "Level 4" ) | |
| 1790 | PORT_DIPSETTING( 0x06, "Level 5" ) | |
| 1791 | PORT_DIPSETTING( 0x0a, "Level 6" ) | |
| 1792 | PORT_DIPSETTING( 0x02, "Level 7" ) | |
| 1793 | PORT_DIPSETTING( 0x0c, "Level 8" ) | |
| 1794 | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1795 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) | |
| 1796 | PORT_DIPSETTING( 0x40, DEF_STR( 4C_1C ) ) | |
| 1797 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1798 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 1799 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_1C ) ) | |
| 1800 | PORT_DIPSETTING( 0x50, DEF_STR( 2C_3C ) ) | |
| 1801 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1802 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 1803 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1804 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1805 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1806 | ||
| 1807 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1808 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 1809 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1810 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1811 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW2:7" ) // See notes | |
| 1812 | PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW2:6" ) // See notes | |
| 1813 | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:5" ) | |
| 1814 | PORT_DIPUNUSED_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW2:4" ) // See notes | |
| 1815 | PORT_DIPNAME( 0x20, 0x20, "VS CPU Game Ends" ) PORT_DIPLOCATION("SW2:3") // See notes | |
| 1816 | PORT_DIPSETTING( 0x20, "+10" ) | |
| 1817 | PORT_DIPSETTING( 0x00, "+7" ) | |
| 1818 | PORT_DIPNAME( 0x40, 0x40, "VS Game" ) PORT_DIPLOCATION("SW2:2") // See notes | |
| 1819 | PORT_DIPSETTING( 0x40, "1 Credit / 2 Innings" ) | |
| 1820 | PORT_DIPSETTING( 0x00, "1 Credit / 3 Innings" ) | |
| 1821 | PORT_DIPNAME( 0x80, 0x80, "Full 2 Players Game" ) PORT_DIPLOCATION("SW2:1") // See notes | |
| 1822 | PORT_DIPSETTING( 0x00, "4 Credits" ) | |
| 1823 | PORT_DIPSETTING( 0x80, "6 Credits" ) | |
| 1775 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 1776 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 1777 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1778 | PORT_DIPUNUSED_DIPLOC( 0x0200, IP_ACTIVE_LOW, "SW2:7" ) // See notes | |
| 1779 | PORT_DIPUNUSED_DIPLOC( 0x0400, IP_ACTIVE_LOW, "SW2:6" ) // See notes | |
| 1780 | PORT_DIPUNUSED_DIPLOC( 0x0800, IP_ACTIVE_LOW, "SW2:5" ) | |
| 1781 | PORT_DIPUNUSED_DIPLOC( 0x1000, IP_ACTIVE_LOW, "SW2:4" ) // See notes | |
| 1782 | PORT_DIPNAME( 0x2000, 0x2000, "VS CPU Game Ends" ) PORT_DIPLOCATION("SW2:3") // See notes | |
| 1783 | PORT_DIPSETTING( 0x2000, "+10" ) | |
| 1784 | PORT_DIPSETTING( 0x0000, "+7" ) | |
| 1785 | PORT_DIPNAME( 0x4000, 0x4000, "VS Game" ) PORT_DIPLOCATION("SW2:2") // See notes | |
| 1786 | PORT_DIPSETTING( 0x4000, "1 Credit / 2 Innings" ) | |
| 1787 | PORT_DIPSETTING( 0x0000, "1 Credit / 3 Innings" ) | |
| 1788 | PORT_DIPNAME( 0x8000, 0x8000, "Full 2 Players Game" ) PORT_DIPLOCATION("SW2:1") // See notes | |
| 1789 | PORT_DIPSETTING( 0x0000, "4 Credits" ) | |
| 1790 | PORT_DIPSETTING( 0x8000, "6 Credits" ) | |
| 1824 | 1791 | INPUT_PORTS_END |
| 1825 | 1792 | |
| 1826 | 1793 | static INPUT_PORTS_START( dquizgo ) |
| 1827 | PORT_START("P1") /* Player 1 controls */ | |
| 1828 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1829 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1830 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1831 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1832 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1833 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1834 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1835 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1794 | PORT_START("PLAYERS") | |
| 1795 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1796 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1797 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1798 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1799 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1800 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1801 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1802 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1836 | 1803 | |
| 1837 | PORT_START("P2") /* Player 2 controls */ | |
| 1838 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1839 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1840 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1841 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1842 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1843 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1844 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1845 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1804 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1805 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1806 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1807 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1808 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1809 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1810 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1811 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1846 | 1812 | |
| 1847 | PORT_START("SYSTEM") /* Credits */ | |
| 1848 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1849 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1850 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1851 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1852 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1853 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1854 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1855 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1813 | PORT_START("SYSTEM") | |
| 1814 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1815 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1816 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1817 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK ) // to be confirmed | |
| 1818 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1819 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1820 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1821 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1856 | 1822 | |
| 1857 | PORT_START("DSW1") /* Dip switch bank 1 */ | |
| 1858 | PORT_SERVICE_DIPLOC( 0x01, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1859 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,6,5") | |
| 1860 | PORT_DIPSETTING( 0x04, "Level 1" ) | |
| 1861 | PORT_DIPSETTING( 0x08, "Level 2" ) | |
| 1862 | PORT_DIPSETTING( 0x00, "Level 3" ) | |
| 1863 | PORT_DIPSETTING( 0x0e, "Level 4" ) | |
| 1864 | PORT_DIPSETTING( 0x06, "Level 5" ) | |
| 1865 | PORT_DIPSETTING( 0x0a, "Level 6" ) | |
| 1866 | PORT_DIPSETTING( 0x02, "Level 7" ) | |
| 1867 | PORT_DIPSETTING( 0x0c, "Level 8" ) | |
| 1868 | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1869 | // PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 1870 | // PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1871 | PORT_DIPSETTING( 0x40, DEF_STR( 3C_1C ) ) | |
| 1872 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_1C ) ) | |
| 1873 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_1C ) ) | |
| 1874 | PORT_DIPSETTING( 0x50, DEF_STR( 2C_3C ) ) | |
| 1875 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1876 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C ) ) | |
| 1877 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1878 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1879 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1823 | PORT_START("DSW") | |
| 1824 | PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1825 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7,6,5") | |
| 1826 | PORT_DIPSETTING( 0x0004, "Level 1" ) | |
| 1827 | PORT_DIPSETTING( 0x0008, "Level 2" ) | |
| 1828 | PORT_DIPSETTING( 0x0000, "Level 3" ) | |
| 1829 | PORT_DIPSETTING( 0x000e, "Level 4" ) | |
| 1830 | PORT_DIPSETTING( 0x0006, "Level 5" ) | |
| 1831 | PORT_DIPSETTING( 0x000a, "Level 6" ) | |
| 1832 | PORT_DIPSETTING( 0x0002, "Level 7" ) | |
| 1833 | PORT_DIPSETTING( 0x000c, "Level 8" ) | |
| 1834 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,3,2") | |
| 1835 | // PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) | |
| 1836 | // PORT_DIPSETTING( 0x0020, DEF_STR( 3C_1C ) ) | |
| 1837 | PORT_DIPSETTING( 0x0040, DEF_STR( 3C_1C ) ) | |
| 1838 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_1C ) ) | |
| 1839 | PORT_DIPSETTING( 0x0070, DEF_STR( 1C_1C ) ) | |
| 1840 | PORT_DIPSETTING( 0x0050, DEF_STR( 2C_3C ) ) | |
| 1841 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) | |
| 1842 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 1843 | PORT_DIPNAME( 0x0080, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1844 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1845 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1880 | 1846 | |
| 1881 | PORT_START("DSW2") /* Dip switch bank 2 */ | |
| 1882 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") // See notes | |
| 1883 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1884 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1885 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW2:7" ) | |
| 1886 | PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW2:6" ) | |
| 1887 | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:5" ) | |
| 1888 | PORT_DIPUNUSED_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW2:4" ) | |
| 1889 | PORT_DIPUNUSED_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW2:3" ) | |
| 1890 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:2,1") // See notes | |
| 1891 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1892 | PORT_DIPSETTING( 0xc0, "3" ) | |
| 1893 | PORT_DIPSETTING( 0x40, "4" ) | |
| 1894 | PORT_DIPSETTING( 0x80, "5" ) | |
| 1847 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") // See notes | |
| 1848 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 1849 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1850 | PORT_DIPUNUSED_DIPLOC( 0x0200, IP_ACTIVE_LOW, "SW2:7" ) | |
| 1851 | PORT_DIPUNUSED_DIPLOC( 0x0400, IP_ACTIVE_LOW, "SW2:6" ) | |
| 1852 | PORT_DIPUNUSED_DIPLOC( 0x0800, IP_ACTIVE_LOW, "SW2:5" ) | |
| 1853 | PORT_DIPUNUSED_DIPLOC( 0x1000, IP_ACTIVE_LOW, "SW2:4" ) | |
| 1854 | PORT_DIPUNUSED_DIPLOC( 0x2000, IP_ACTIVE_LOW, "SW2:3" ) | |
| 1855 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:2,1") // See notes | |
| 1856 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 1857 | PORT_DIPSETTING( 0xc000, "3" ) | |
| 1858 | PORT_DIPSETTING( 0x4000, "4" ) | |
| 1859 | PORT_DIPSETTING( 0x8000, "5" ) | |
| 1895 | 1860 | INPUT_PORTS_END |
| 1896 | 1861 | |
| 1897 | 1862 | static INPUT_PORTS_START( jumppop ) |
| 1898 | PORT_START("PLAYERS") | |
| 1863 | PORT_START("PLAYERS") | |
| 1899 | 1864 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1900 | 1865 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1901 | 1866 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1913 | 1878 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1914 | 1879 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1915 | 1880 | |
| 1916 | PORT_START("SYSTEM") | |
| 1881 | PORT_START("SYSTEM") | |
| 1917 | 1882 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1918 | 1883 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1919 | 1884 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) |
| 1920 | 1885 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) |
| 1921 | 1886 | PORT_BIT( 0xfff0, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1922 | 1887 | |
| 1923 | PORT_START("DSW") | |
| 1888 | PORT_START("DSW") | |
| 1924 | 1889 | PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SWA:1" ) |
| 1925 | 1890 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWA:2") |
| 1926 | 1891 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| r3115 | r3116 | |
|---|---|---|
| 180 | 180 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 181 | 181 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 182 | 182 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) |
| 183 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 184 | AM_RANGE(0xa001, 0xa001) AM_READ(input_port_1_r) | |
| 185 | AM_RANGE(0xa002, 0xa002) AM_READ(input_port_2_r) | |
| 186 | AM_RANGE(0xa003, 0xa003) AM_READ(input_port_3_r) | |
| 187 | AM_RANGE(0xa004, 0xa004) AM_READ(input_port_4_r) | |
| 188 | AM_RANGE(0xa005, 0xa005) AM_READ(input_port_5_r) | |
| 183 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN0") | |
| 184 | AM_RANGE(0xa001, 0xa001) AM_READ_PORT("IN1") | |
| 185 | AM_RANGE(0xa002, 0xa002) AM_READ_PORT("IN2") | |
| 186 | AM_RANGE(0xa003, 0xa003) AM_READ_PORT("DSW0") | |
| 187 | AM_RANGE(0xa004, 0xa004) AM_READ_PORT("DSW1") | |
| 188 | AM_RANGE(0xa005, 0xa005) AM_READ_PORT("DSW2") | |
| 189 | 189 | AM_RANGE(0xf000, 0xffff) AM_READ(SMH_RAM) |
| 190 | 190 | ADDRESS_MAP_END |
| 191 | 191 |
| r3115 | r3116 | |
|---|---|---|
| 54 | 54 | AM_RANGE(0x3000, 0x3000) AM_WRITE(scotrsht_palettebank_w) |
| 55 | 55 | AM_RANGE(0x3100, 0x3100) AM_WRITE(scotrsht_soundlatch_w) |
| 56 | 56 | AM_RANGE(0x3200, 0x3200) AM_WRITE(SMH_NOP) /* it writes 0, 1 */ |
| 57 | AM_RANGE(0x3100, 0x3100) AM_READ(input_port_4_r) /* DSW1 */ | |
| 58 | AM_RANGE(0x3200, 0x3200) AM_READ(input_port_5_r) /* DSW2 */ | |
| 59 | AM_RANGE(0x3300, 0x3300) AM_READ(input_port_0_r) /* coins, start */ | |
| 60 | AM_RANGE(0x3301, 0x3301) AM_READ(input_port_1_r) /* joy1 */ | |
| 61 | AM_RANGE(0x3302, 0x3302) AM_READ(input_port_2_r) /* joy2 */ | |
| 62 | AM_RANGE(0x3303, 0x3303) AM_READ(input_port_3_r) /* DSW0 */ | |
| 57 | AM_RANGE(0x3100, 0x3100) AM_READ_PORT("DSW2") | |
| 58 | AM_RANGE(0x3200, 0x3200) AM_READ_PORT("DSW3") | |
| 59 | AM_RANGE(0x3300, 0x3300) AM_READ_PORT("SYSTEM") | |
| 60 | AM_RANGE(0x3301, 0x3301) AM_READ_PORT("P1") | |
| 61 | AM_RANGE(0x3302, 0x3302) AM_READ_PORT("P2") | |
| 62 | AM_RANGE(0x3303, 0x3303) AM_READ_PORT("DSW1") | |
| 63 | 63 | AM_RANGE(0x3300, 0x3300) AM_WRITE(watchdog_reset_w) /* watchdog */ |
| 64 | 64 | AM_RANGE(0x4000, 0xffff) AM_ROM |
| 65 | 65 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 77 | 77 | ADDRESS_MAP_END |
| 78 | 78 | |
| 79 | 79 | static INPUT_PORTS_START( scotrsht ) |
| 80 | PORT_START("SYSTEM") /* | |
| 80 | PORT_START("SYSTEM") /* | |
| 81 | 81 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 82 | 82 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 83 | 83 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 85 | 85 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) |
| 86 | 86 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 87 | 87 | |
| 88 | PORT_START("P1") /* | |
| 88 | PORT_START("P1") /* | |
| 89 | 89 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 90 | 90 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 91 | 91 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 94 | 94 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 95 | 95 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 96 | 96 | |
| 97 | PORT_START("P2") /* | |
| 97 | PORT_START("P2") /* | |
| 98 | 98 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 99 | 99 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 100 | 100 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 103 | 103 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 104 | 104 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 105 | 105 | |
| 106 | PORT_START("DSW1") /* | |
| 106 | PORT_START("DSW1") /* | |
| 107 | 107 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 108 | 108 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 109 | 109 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 139 | 139 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 140 | 140 | PORT_DIPSETTING( 0x00, "Invalid" ) |
| 141 | 141 | |
| 142 | PORT_START("DSW2") /* | |
| 142 | PORT_START("DSW2") /* | |
| 143 | 143 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 144 | 144 | PORT_DIPSETTING( 0x03, "2" ) |
| 145 | 145 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 163 | 163 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 164 | 164 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 165 | 165 | |
| 166 | PORT_START("DSW3") /* | |
| 166 | PORT_START("DSW3") /* | |
| 167 | 167 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 168 | 168 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 169 | 169 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
|---|---|---|
| 2877 | 2877 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2878 | 2878 | |
| 2879 | 2879 | PORT_START("STICKX1") |
| 2880 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(2 | |
| 2880 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(13) PORT_CENTERDELTA(0) PORT_REVERSE PORT_PLAYER(1) | |
| 2881 | 2881 | |
| 2882 | 2882 | PORT_START("STICKY1") |
| 2883 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(2 | |
| 2883 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(13) PORT_CENTERDELTA(0) PORT_PLAYER(1) | |
| 2884 | 2884 | |
| 2885 | 2885 | PORT_START("STICKX2") |
| 2886 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(2 | |
| 2886 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(13) PORT_CENTERDELTA(0) PORT_REVERSE PORT_PLAYER(2) | |
| 2887 | 2887 | |
| 2888 | 2888 | PORT_START("STICKY2") |
| 2889 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(2 | |
| 2889 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(13) PORT_CENTERDELTA(0) PORT_PLAYER(2) | |
| 2890 | 2890 | INPUT_PORTS_END |
| 2891 | 2891 | |
| 2892 | 2892 | static INPUT_PORTS_START( dblaxle ) |
| r3115 | r3116 | |
|---|---|---|
| 78 | 78 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| 79 | 79 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) |
| 80 | 80 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 81 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(player_input_r, | |
| 81 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(player_input_r, NULL) | |
| 82 | 82 | |
| 83 | 83 | PORT_START("DSW0") |
| 84 | 84 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION( "SW1:1,2" ) |
| r3115 | r3116 | |
| 161 | 161 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| 162 | 162 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START2 ) |
| 163 | 163 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 164 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(player_input_r, | |
| 164 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(player_input_r, NULL) | |
| 165 | 165 | |
| 166 | 166 | PORT_START("DSW0") |
| 167 | 167 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION( "SW1:1,2" ) |
| r3115 | r3116 | |
| 291 | 291 | PORT_INCLUDE( phoenix ) |
| 292 | 292 | |
| 293 | 293 | PORT_MODIFY("IN0") |
| 294 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(pleiads_protection_r, | |
| 294 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(pleiads_protection_r, NULL) /* Protection. See 0x0552 */ | |
| 295 | 295 | |
| 296 | 296 | PORT_MODIFY("DSW0") |
| 297 | 297 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "SW1:7" ) |
| r3115 | r3116 | |
|---|---|---|
| 389 | 389 | |
| 390 | 390 | static ADDRESS_MAP_START( bios_io_map, ADDRESS_SPACE_IO, 8 ) |
| 391 | 391 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 392 | AM_RANGE(0x00, 0x00) AM_READWRITE( | |
| 392 | AM_RANGE(0x00, 0x00) AM_READ_PORT("BIOS") AM_WRITE( | |
| 393 | 393 | AM_RANGE(0x01, 0x01) AM_READ_PORT("SW1") AM_WRITE(pc10_CNTRLMASK_w) |
| 394 | 394 | AM_RANGE(0x02, 0x02) AM_READ_PORT("SW2") AM_WRITE(pc10_DISPMASK_w) |
| 395 | 395 | AM_RANGE(0x03, 0x03) AM_READWRITE(pc10_detectclr_r, pc10_SOUNDMASK_w) |
| r3115 | r3116 | |
| 423 | 423 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Channel Select") PORT_CODE(KEYCODE_0) |
| 424 | 424 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Enter") PORT_CODE(KEYCODE_MINUS) |
| 425 | 425 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Reset") PORT_CODE(KEYCODE_EQUALS) |
| 426 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) // INT Detect | |
| 426 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(pc10_int_detect_r, NULL) // INT Detect | |
| 427 | 427 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 428 | 428 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 429 | 429 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | static void update_interrupts(running_machine *machine) |
| 38 | 38 | { |
| 39 | int newstate1 = 0; | |
| 40 | int newstate2 = 0; | |
| 41 | ||
| 42 | if (atarigen_sound_int_state) | |
| 43 | newstate1 |= 1; | |
| 44 | if (atarigen_video_int_state) | |
| 45 | newstate2 |= 1; | |
| 46 | ||
| 47 | if (newstate1) | |
| 48 | cpunum_set_input_line(machine, 0, newstate1, ASSERT_LINE); | |
| 49 | else | |
| 50 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 51 | ||
| 52 | if (newstate2) | |
| 53 | cpunum_set_input_line(machine, 2, newstate2, ASSERT_LINE); | |
| 54 | else | |
| 55 | cpunum_set_input_line(machine, 2, 7, CLEAR_LINE); | |
| 39 | cpunum_set_input_line(machine, 0, 1, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 40 | cpunum_set_input_line(machine, 2, 1, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 56 | 41 | } |
| 57 | 42 | |
| 58 | 43 | |
| r3115 | r3116 | |
| 73 | 58 | |
| 74 | 59 | static void cyberb2p_update_interrupts(running_machine *machine) |
| 75 | 60 | { |
| 76 | int newstate = 0; | |
| 77 | ||
| 78 | if (atarigen_video_int_state) | |
| 79 | newstate |= 1; | |
| 80 | if (atarigen_sound_int_state) | |
| 81 | newstate |= 3; | |
| 82 | ||
| 83 | if (newstate) | |
| 84 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 85 | else | |
| 86 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 61 | cpunum_set_input_line(machine, 0, 1, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 62 | cpunum_set_input_line(machine, 0, 3, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 87 | 63 | } |
| 88 | 64 | |
| 89 | 65 |
| r3115 | r3116 | |
|---|---|---|
| 206 | 206 | AM_RANGE(0x2c00, 0x2cff) AM_MIRROR(0x03ff) AM_READWRITE(SMH_NOP, SMH_RAM) AM_BASE(&bg_scroll) |
| 207 | 207 | AM_RANGE(0x3000, 0x30ff) AM_MIRROR(0x03ff) AM_WRITENOP /* goes to SN76477 */ |
| 208 | 208 | AM_RANGE(0x3400, 0x3400) AM_MIRROR(0x03ff) AM_WRITENOP /* cleared at the beginning */ |
| 209 | AM_RANGE(0x3800, 0x38ff) AM_MIRROR(0x03ff) AM_READWRITE(input_port_0_r, SMH_NOP) | |
| 210 | AM_RANGE(0x3c00, 0x3cff) AM_MIRROR(0x03ff) AM_READWRITE(input_port_1_r, SMH_NOP) | |
| 209 | AM_RANGE(0x3800, 0x38ff) AM_MIRROR(0x03ff) AM_READ_PORT("INPUTS") AM_WRITENOP | |
| 210 | AM_RANGE(0x3c00, 0x3cff) AM_MIRROR(0x03ff) AM_READ_PORT("DSW") AM_WRITENOP | |
| 211 | 211 | ADDRESS_MAP_END |
| 212 | 212 | |
| 213 | 213 | |
| r3115 | r3116 | |
| 219 | 219 | *************************************/ |
| 220 | 220 | |
| 221 | 221 | static INPUT_PORTS_START( safarir ) |
| 222 | PORT_START("INPUTS") | |
| 222 | PORT_START("INPUTS") | |
| 223 | 223 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 224 | 224 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) |
| 225 | 225 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) |
| r3115 | r3116 | |
| 229 | 229 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 230 | 230 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 231 | 231 | |
| 232 | PORT_START("DSW") | |
| 232 | PORT_START("DSW") | |
| 233 | 233 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 234 | 234 | PORT_DIPSETTING( 0x00, "3" ) |
| 235 | 235 | PORT_DIPSETTING( 0x01, "4" ) |
| r3115 | r3116 | |
|---|---|---|
| 170 | 170 | VIDEO_UPDATE( rastan ); |
| 171 | 171 | |
| 172 | 172 | |
| 173 | static int adpcm_pos; | |
| 174 | static int adpcm_data; | |
| 175 | ||
| 176 | ||
| 173 | 177 | static WRITE8_HANDLER( rastan_bankswitch_w ) |
| 174 | 178 | { |
| 175 | 179 | int offs; |
| r3115 | r3116 | |
| 182 | 186 | } |
| 183 | 187 | |
| 184 | 188 | |
| 185 | static int adpcm_pos; | |
| 186 | ||
| 187 | 189 | static void rastan_msm5205_vck(running_machine *machine, int chip) |
| 188 | 190 | { |
| 189 | static int adpcm_data = -1; | |
| 190 | ||
| 191 | 191 | if (adpcm_data != -1) |
| 192 | 192 | { |
| 193 | 193 | msm5205_data_w(0, adpcm_data & 0x0f); |
| r3115 | r3116 | |
| 225 | 225 | AM_RANGE(0x200000, 0x200fff) AM_RAM_WRITE(paletteram16_xBBBBBGGGGGRRRRR_word_w) AM_BASE(&paletteram16) |
| 226 | 226 | AM_RANGE(0x350008, 0x350009) AM_WRITE(SMH_NOP) /* 0 only (often) ? */ |
| 227 | 227 | AM_RANGE(0x380000, 0x380001) AM_WRITE(rastan_spritectrl_w) /* sprite palette bank, coin counters & lockout */ |
| 228 | AM_RANGE(0x390000, 0x390001) AM_READ(input_port_0_word_r) | |
| 229 | AM_RANGE(0x390002, 0x390003) AM_READ(input_port_1_word_r) | |
| 230 | AM_RANGE(0x390004, 0x390005) AM_READ(input_port_2_word_r) | |
| 231 | AM_RANGE(0x390006, 0x390007) AM_READ(input_port_3_word_r) | |
| 232 | AM_RANGE(0x390008, 0x390009) AM_READ(input_port_4_word_r) | |
| 233 | AM_RANGE(0x39000a, 0x39000b) AM_READ(input_port_5_word_r) | |
| 228 | AM_RANGE(0x390000, 0x390001) AM_READ_PORT("P1") | |
| 229 | AM_RANGE(0x390002, 0x390003) AM_READ_PORT("P2") | |
| 230 | AM_RANGE(0x390004, 0x390005) AM_READ_PORT("SPECIAL") | |
| 231 | AM_RANGE(0x390006, 0x390007) AM_READ_PORT("SYSTEM") | |
| 232 | AM_RANGE(0x390008, 0x390009) AM_READ_PORT("DSWA") | |
| 233 | AM_RANGE(0x39000a, 0x39000b) AM_READ_PORT("DSWB") | |
| 234 | 234 | AM_RANGE(0x3c0000, 0x3c0001) AM_WRITE(watchdog_reset16_w) |
| 235 | 235 | AM_RANGE(0x3e0000, 0x3e0001) AM_READWRITE(SMH_NOP, taitosound_port16_lsb_w) |
| 236 | 236 | AM_RANGE(0x3e0002, 0x3e0003) AM_READWRITE(taitosound_comm16_lsb_r, taitosound_comm16_lsb_w) |
| r3115 | r3116 | |
| 258 | 258 | |
| 259 | 259 | |
| 260 | 260 | static INPUT_PORTS_START( rastan ) |
| 261 | PORT_START(" | |
| 261 | PORT_START("P1 | |
| 262 | 262 | TAITO_JOY_UDLR_2_BUTTONS( 1 ) |
| 263 | 263 | |
| 264 | PORT_START(" | |
| 264 | PORT_START("P2 | |
| 265 | 265 | TAITO_JOY_UDLR_2_BUTTONS( 2 ) |
| 266 | 266 | |
| 267 | PORT_START("IN2") | |
| 268 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 269 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 270 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 271 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 267 | PORT_START("SYSTEM") | |
| 268 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 269 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 270 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) | |
| 271 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 272 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 273 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 274 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 275 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 276 | ||
| 277 | PORT_START("SPECIAL") | |
| 278 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 279 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 280 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 281 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 272 | 282 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SPECIAL ) // from PC050 (coin A gets locked if 0) |
| 273 | 283 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) // from PC050 (coin B gets locked if 0) |
| 274 | 284 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) // from PC050 (above 2 bits not checked when 0) |
| 275 | PORT_BIT( 0x80, IP_ACTIVE_LOW, | |
| 285 | PORT_BIT( 0x80, IP_ACTIVE_LOW, | |
| 276 | 286 | |
| 277 | PORT_START("IN3") | |
| 278 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 279 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 280 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT ) | |
| 281 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 282 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 283 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 284 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 285 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 286 | ||
| 287 | 287 | /* 0x390008 -> 0x10c018 ($18,A5) */ |
| 288 | 288 | PORT_START("DSWA") |
| 289 | 289 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| r3115 | r3116 | |
| 373 | 373 | MSM5205_S48_4B /* 8 kHz */ |
| 374 | 374 | }; |
| 375 | 375 | |
| 376 | static MACHINE_RESET( rastan ) | |
| 377 | { | |
| 378 | adpcm_pos = 0; | |
| 379 | adpcm_data = -1; | |
| 380 | } | |
| 376 | 381 | |
| 377 | 382 | |
| 378 | 383 | static MACHINE_DRIVER_START( rastan ) |
| r3115 | r3116 | |
| 401 | 406 | MDRV_VIDEO_START(rastan) |
| 402 | 407 | MDRV_VIDEO_UPDATE(rastan) |
| 403 | 408 | |
| 409 | MDRV_MACHINE_RESET(rastan) | |
| 410 | ||
| 404 | 411 | /* sound hardware */ |
| 405 | 412 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 406 | 413 |
| r3115 | r3116 | |
|---|---|---|
| 96 | 96 | /* bit 8 is EEPROM data */ |
| 97 | 97 | /* bit 9 is EEPROM ready */ |
| 98 | 98 | /* bit 11 is service button */ |
| 99 | res = | |
| 99 | res = | |
| 100 | 100 | |
| 101 | 101 | if (init_eeprom_count) |
| 102 | 102 | { |
| r3115 | r3116 | |
| 274 | 274 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| 275 | 275 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START3 ) |
| 276 | 276 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START4 ) |
| 277 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_SPECIAL ) // EEPROM data | |
| 278 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SPECIAL ) // EEPROM ready (always 1) | |
| 277 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) // EEPROM data | |
| 278 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_SPECIAL ) // EEPROM ready (always 1) | |
| 279 | 279 | PORT_SERVICE_NO_TOGGLE( 0x0800, IP_ACTIVE_LOW ) |
| 280 | 280 | |
| 281 | 281 | PORT_START("SYSTEM") |
| r3115 | r3116 | |
|---|---|---|
| 176 | 176 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 177 | 177 | AM_RANGE(0xfe0800, 0xfe0cff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 178 | 178 | AM_RANGE(0xfe0d00, 0xfe1807) AM_RAM /* still part of OBJ RAM */ |
| 179 | AM_RANGE(0xfe4000, 0xfe4001) AM_READWRITE(input_port_0_word_r, tigeroad_videoctrl_w) /* char bank, coin counters, + ? */ | |
| 180 | AM_RANGE(0xfe4002, 0xfe4003) AM_READ(input_port_1_word_r) | |
| 179 | AM_RANGE(0xfe4000, 0xfe4001) AM_READ_PORT("P1_P2") AM_WRITE(tigeroad_videoctrl_w) /* char bank, coin counters, + ? */ | |
| 180 | AM_RANGE(0xfe4002, 0xfe4003) AM_READ_PORT("SYSTEM") | |
| 181 | 181 | /* AM_RANGE(0xfe4002, 0xfe4003) AM_WRITE(tigeroad_soundcmd_w) added by init_tigeroad() */ |
| 182 | AM_RANGE(0xfe4004, 0xfe4005) AM_READ | |
| 182 | AM_RANGE(0xfe4004, 0xfe4005) AM_READ | |
| 183 | 183 | AM_RANGE(0xfec000, 0xfec7ff) AM_RAM_WRITE(tigeroad_videoram_w) AM_BASE(&videoram16) |
| 184 | 184 | AM_RANGE(0xfe8000, 0xfe8003) AM_WRITE(tigeroad_scroll_w) |
| 185 | 185 | AM_RANGE(0xfe800e, 0xfe800f) AM_WRITE(SMH_RAM) /* fe800e = watchdog or IRQ acknowledge */ |
| r3115 | r3116 | |
| 215 | 215 | |
| 216 | 216 | |
| 217 | 217 | static INPUT_PORTS_START( tigeroad ) |
| 218 | PORT_START("P1_P2") | |
| 218 | PORT_START("P1_P2") | |
| 219 | 219 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 220 | 220 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 221 | 221 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r3115 | r3116 | |
| 244 | 244 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 245 | 245 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 246 | 246 | |
| 247 | PORT_START("DSW") | |
| 247 | PORT_START("DSW") | |
| 248 | 248 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_B ) ) |
| 249 | 249 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 250 | 250 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 291 | 291 | INPUT_PORTS_END |
| 292 | 292 | |
| 293 | 293 | static INPUT_PORTS_START( toramich ) |
| 294 | PORT_START("P1_P2") | |
| 294 | PORT_START("P1_P2") | |
| 295 | 295 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 296 | 296 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 297 | 297 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r3115 | r3116 | |
| 320 | 320 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 321 | 321 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 322 | 322 | |
| 323 | PORT_START("DSW") | |
| 323 | PORT_START("DSW") | |
| 324 | 324 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_B ) ) |
| 325 | 325 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 326 | 326 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 368 | 368 | INPUT_PORTS_END |
| 369 | 369 | |
| 370 | 370 | static INPUT_PORTS_START( f1dream ) |
| 371 | PORT_START("P1_P2") | |
| 371 | PORT_START("P1_P2") | |
| 372 | 372 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 373 | 373 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 374 | 374 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r3115 | r3116 | |
| 397 | 397 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 398 | 398 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 399 | 399 | |
| 400 | PORT_START("DSW") | |
| 400 | PORT_START("DSW") | |
| 401 | 401 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_B ) ) |
| 402 | 402 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 403 | 403 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 120 | 120 | |
| 121 | 121 | static void update_interrupts(running_machine *machine) |
| 122 | 122 | { |
| 123 | int newstate = 0; | |
| 124 | ||
| 125 | if (atarigen_video_int_state) | |
| 126 | newstate = 1; | |
| 127 | if (atarigen_sound_int_state) | |
| 128 | newstate = 2; | |
| 129 | ||
| 130 | if (newstate) | |
| 131 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 132 | else | |
| 133 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 123 | cpunum_set_input_line(machine, 0, 1, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 124 | cpunum_set_input_line(machine, 0, 2, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 134 | 125 | } |
| 135 | 126 | |
| 136 | 127 | |
| r3115 | r3116 | |
| 612 | 603 | |
| 613 | 604 | static void update_interrupts_bootleg(running_machine *machine) |
| 614 | 605 | { |
| 615 | int newstate = 0; | |
| 616 | ||
| 617 | if (atarigen_video_int_state) | |
| 618 | newstate = 1; | |
| 619 | // if (atarigen_sound_int_state) | |
| 620 | // newstate = 2; | |
| 621 | ||
| 622 | if (newstate) | |
| 623 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 624 | else | |
| 625 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 606 | cpunum_set_input_line(machine, 0, 1, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 626 | 607 | } |
| 627 | 608 | |
| 628 | 609 |
| r3115 | r3116 | |
|---|---|---|
| 403 | 403 | { |
| 404 | 404 | if (ACCESSING_BITS_24_31) |
| 405 | 405 | { |
| 406 | return | |
| 406 | return | |
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | logerror("Unk EEPROM read mask %x\n", mem_mask); |
| r3115 | r3116 | |
| 416 | 416 | cpunum_set_input_line(machine, 0, 4, HOLD_LINE); |
| 417 | 417 | } |
| 418 | 418 | |
| 419 | static READ32_HANDLER(io32_r) | |
| 420 | { | |
| 421 | return ((input_port_read(machine, "IN0") << 24) | (input_port_read(machine, "IN1") << 16) | (input_port_read(machine, "IN2") << 8) | (input_port_read(machine, "IN3") << 0)); | |
| 422 | } | |
| 423 | ||
| 424 | 419 | static WRITE32_HANDLER( paletteram32_RRRRRRRRGGGGGGGGBBBBBBBBxxxxxxxx_dword_w ) |
| 425 | 420 | { |
| 426 | 421 | int r,g,b; |
| r3115 | r3116 | |
| 518 | 513 | AM_RANGE(0x0305ffdc, 0x0305ffdf) AM_READ(SMH_NOP) // also writes to this address - might be vblank reads? |
| 519 | 514 | AM_RANGE(0x0305ffe0, 0x0305ffff) AM_READ(SMH_RAM) // video registers |
| 520 | 515 | AM_RANGE(0x05000000, 0x05000003) AM_READ(psh_ymf_fm_r) // read YMF status |
| 521 | AM_RANGE(0x05800000, 0x05800003) AM_READ | |
| 516 | AM_RANGE(0x05800000, 0x05800003) AM_READ | |
| 522 | 517 | AM_RANGE(0x05800004, 0x05800007) AM_READ(psh_eeprom_r) |
| 523 | 518 | AM_RANGE(0x06000000, 0x060fffff) AM_READ(SMH_RAM) // main RAM (1 meg) |
| 524 | 519 | |
| r3115 | r3116 | |
| 546 | 541 | |
| 547 | 542 | static ADDRESS_MAP_START( ps5_readmem, ADDRESS_SPACE_PROGRAM, 32 ) |
| 548 | 543 | AM_RANGE(0x00000000, 0x000fffff) AM_READ(SMH_ROM) // program ROM (1 meg) |
| 549 | AM_RANGE(0x03000000, 0x03000003) AM_READ(io32_r) | |
| 550 | AM_RANGE(0x03000004, 0x03000007) AM_READ(psh_eeprom_r) | |
| 544 | AM_RANGE(0x03000000, 0x03000003) AM_READ_PORT("INPUTS") | |
| 545 | AM_RANGE(0x03000004, 0x03000007) AM_READ_PORT("JP4") | |
| 551 | 546 | AM_RANGE(0x03100000, 0x03100003) AM_READ(psh_ymf_fm_r) |
| 552 | 547 | AM_RANGE(0x04000000, 0x04003fff) AM_READ(SMH_RAM) // sprites |
| 553 | 548 | AM_RANGE(0x04004000, 0x0400ffff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 648 | 643 | MACHINE_DRIVER_END |
| 649 | 644 | #endif |
| 650 | 645 | |
| 646 | static INPUT_PORTS_START( common ) | |
| 647 | PORT_START("INPUTS") | |
| 648 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 649 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 650 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 651 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 652 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 653 | PORT_SERVICE_NO_TOGGLE( 0x00000020, IP_ACTIVE_LOW ) | |
| 654 | PORT_DIPNAME( 0x00000040, 0x00000040, "Debug" ) /* Debug stuff. Resets EEPROM? */ | |
| 655 | PORT_DIPSETTING( 0x00000040, DEF_STR( Off ) ) | |
| 656 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 657 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 658 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 659 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 660 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 661 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 662 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 663 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 664 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 665 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 651 | 666 | |
| 652 | #define UNUSED_PORT \ | |
| 653 | PORT_START("IN2")/* not read? */ \ | |
| 654 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 655 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 656 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 657 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 658 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 659 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 660 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 661 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 667 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 668 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 669 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 670 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 671 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 672 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 673 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 674 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 675 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 676 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 677 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 678 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 679 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 680 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 681 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 682 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 683 | INPUT_PORTS_END | |
| 662 | 684 | |
| 663 | #define PORT_COIN( debug ) \ | |
| 664 | PORT_START("IN3") /* System inputs */ \ | |
| 665 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) \ | |
| 666 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) \ | |
| 667 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 668 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ | |
| 669 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ | |
| 670 | PORT_SERVICE_NO_TOGGLE(0x20, IP_ACTIVE_LOW) \ | |
| 671 | PORT_DIPNAME( 0x40, debug, "Debug" ) /* Must be high for dragnblz, low for others (Resets EEPROM?). Debug stuff */ \ | |
| 672 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) \ | |
| 673 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) \ | |
| 674 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 675 | 685 | |
| 676 | #define PSIKYOSH_PORT_PLAYER( player, start, button1, button2, button3 ) \ | |
| 677 | PORT_BIT( 0x01, IP_ACTIVE_LOW, start ) \ | |
| 678 | PORT_BIT( 0x02, IP_ACTIVE_LOW, button3 ) PORT_PLAYER(player) \ | |
| 679 | PORT_BIT( 0x04, IP_ACTIVE_LOW, button2 ) PORT_PLAYER(player) \ | |
| 680 | PORT_BIT( 0x08, IP_ACTIVE_LOW, button1 ) PORT_PLAYER(player) \ | |
| 681 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(player) \ | |
| 682 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(player) \ | |
| 683 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) \ | |
| 684 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(player) | |
| 685 | ||
| 686 | 686 | static INPUT_PORTS_START( s1945ii ) |
| 687 | PORT_START("IN0") | |
| 688 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) | |
| 689 | PORT_START("IN1") | |
| 690 | PSIKYOSH_PORT_PLAYER( 2, IPT_START2, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) | |
| 687 | PORT_INCLUDE( common ) | |
| 691 | 688 | |
| 692 | UNUSED_PORT | |
| 693 | PORT_COIN( 0x40 ) | |
| 689 | PORT_MODIFY("INPUTS") | |
| 690 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* No button 3 */ | |
| 691 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* No button 3 */ | |
| 694 | 692 | |
| 695 | PORT_START("IN4") /* jumper pads on the PCB */ | |
| 696 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Region ) ) | |
| 697 | PORT_DIPSETTING( 0x00, DEF_STR( Japan ) ) | |
| 698 | PORT_DIPSETTING( 0x01, DEF_STR( World ) ) | |
| 693 | PORT_START("JP4") /* jumper pads on the PCB */ | |
| 694 | PORT_DIPNAME( 0x01000000, 0x01000000, DEF_STR( Region ) ) | |
| 695 | PORT_DIPSETTING( 0x00000000, DEF_STR( Japan ) ) | |
| 696 | PORT_DIPSETTING( 0x01000000, DEF_STR( World ) ) | |
| 697 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 699 | 698 | INPUT_PORTS_END |
| 700 | 699 | |
| 701 | 700 | static INPUT_PORTS_START( soldivid ) |
| 702 | PORT_START("IN0") | |
| 703 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 704 | PORT_START("IN1") | |
| 705 | PSIKYOSH_PORT_PLAYER( 2, IPT_START2, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 701 | PORT_INCLUDE( common ) | |
| 706 | 702 | |
| 707 | UNUSED_PORT | |
| 708 | PORT_COIN( 0x40 ) | |
| 709 | ||
| 710 | PORT_START("IN4") /* jumper pads on the PCB */ | |
| 711 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Region ) ) | |
| 712 | PORT_DIPSETTING( 0x00, DEF_STR( Japan ) ) | |
| 713 | PORT_DIPSETTING( 0x01, DEF_STR( World ) ) | |
| 703 | PORT_START("JP4") /* jumper pads on the PCB */ | |
| 704 | PORT_DIPNAME( 0x01000000, 0x01000000, DEF_STR( Region ) ) | |
| 705 | PORT_DIPSETTING( 0x00000000, DEF_STR( Japan ) ) | |
| 706 | PORT_DIPSETTING( 0x01000000, DEF_STR( World ) ) | |
| 707 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 714 | 708 | INPUT_PORTS_END |
| 715 | 709 | |
| 716 | 710 | static INPUT_PORTS_START( daraku ) |
| 717 | PORT_START("IN0") | |
| 718 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) | |
| 719 | PORT_START("IN1") | |
| 720 | PSIKYOSH_PORT_PLAYER( 2, IPT_START2, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) | |
| 711 | PORT_INCLUDE( common ) | |
| 721 | 712 | |
| 722 | PORT_START("IN2") /* more controls */ | |
| 723 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 724 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 725 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 726 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 727 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 728 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 729 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 730 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 713 | PORT_MODIFY("INPUTS") | |
| 714 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 715 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 716 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 717 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 718 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* No button 3 here */ | |
| 719 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* No button 3 here */ | |
| 731 | 720 | |
| 732 | PORT_COIN( 0x40 ) | |
| 733 | ||
| 734 | PORT_START("IN4") /* jumper pads on the PCB */ | |
| 735 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Region ) ) | |
| 736 | PORT_DIPSETTING( 0x00, DEF_STR( Japan ) ) | |
| 737 | PORT_DIPSETTING( 0x01, DEF_STR( World ) ) /* Title screen is different, English is default now */ | |
| 721 | PORT_START("JP4") /* jumper pads on the PCB */ | |
| 722 | PORT_DIPNAME( 0x01000000, 0x01000000, DEF_STR( Region ) ) | |
| 723 | PORT_DIPSETTING( 0x00000000, DEF_STR( Japan ) ) | |
| 724 | PORT_DIPSETTING( 0x01000000, DEF_STR( World ) ) /* Title screen is different, English is default now */ | |
| 725 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 738 | 726 | INPUT_PORTS_END |
| 739 | 727 | |
| 740 | 728 | static INPUT_PORTS_START( sbomberb ) |
| 741 | PORT_START("IN0") | |
| 742 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) | |
| 743 | PORT_START("IN1") | |
| 744 | PSIKYOSH_PORT_PLAYER( 2, IPT_START2, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) | |
| 729 | PORT_INCLUDE( common ) | |
| 730 | /* If Debug is HIGH then you can perform rom test, but EEPROM resets? */ | |
| 745 | 731 | |
| 746 | UNUSED_PORT | |
| 747 | PORT_COIN( 0x40 ) /* If HIGH then you can perform rom test, but EEPROM resets? */ | |
| 732 | PORT_MODIFY("INPUTS") | |
| 733 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* No button 3 */ | |
| 734 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* No button 3 */ | |
| 748 | 735 | |
| 749 | PORT_START("IN4") /* jumper pads on the PCB */ | |
| 750 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Region ) ) | |
| 751 | PORT_DIPSETTING( 0x00, DEF_STR( Japan ) ) | |
| 752 | PORT_DIPSETTING( 0x01, DEF_STR( World ) ) | |
| 736 | PORT_START("JP4") /* jumper pads on the PCB */ | |
| 737 | PORT_DIPNAME( 0x01000000, 0x01000000, DEF_STR( Region ) ) | |
| 738 | PORT_DIPSETTING( 0x00000000, DEF_STR( Japan ) ) | |
| 739 | PORT_DIPSETTING( 0x01000000, DEF_STR( World ) ) | |
| 740 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 753 | 741 | INPUT_PORTS_END |
| 754 | 742 | |
| 755 | 743 | static INPUT_PORTS_START( gunbird2 ) /* Different Region */ |
| 756 | PORT_START("IN0") | |
| 757 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 758 | PORT_START("IN1") | |
| 759 | PSIKYOSH_PORT_PLAYER( 2, IPT_START2, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 744 | PORT_INCLUDE( common ) | |
| 745 | /* If Debug is HIGH then you can perform rom test, but EEPROM resets */ | |
| 760 | 746 | |
| 761 | UNUSED_PORT | |
| 762 | PORT_COIN( 0x40 ) /* If HIGH then you can perform rom test, but EEPROM resets */ | |
| 763 | ||
| 764 | PORT_START("IN4") /* jumper pads on the PCB */ | |
| 765 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Region ) ) | |
| 766 | PORT_DIPSETTING( 0x00, DEF_STR( Japan ) ) | |
| 767 | PORT_DIPSETTING( 0x01, "International Ver A." ) | |
| 768 | PORT_DIPSETTING( 0x02, "International Ver B." ) | |
| 747 | PORT_START("JP4") /* jumper pads on the PCB */ | |
| 748 | PORT_DIPNAME( 0x03000000, 0x02000000, DEF_STR( Region ) ) | |
| 749 | PORT_DIPSETTING( 0x00000000, DEF_STR( Japan ) ) | |
| 750 | PORT_DIPSETTING( 0x01000000, "International Ver A." ) | |
| 751 | PORT_DIPSETTING( 0x02000000, "International Ver B." ) | |
| 752 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 769 | 753 | INPUT_PORTS_END |
| 770 | 754 | |
| 771 | 755 | static INPUT_PORTS_START( s1945iii ) /* Different Region again */ |
| 772 | PORT_START("IN0") | |
| 773 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 774 | PORT_START("IN1") | |
| 775 | PSIKYOSH_PORT_PLAYER( 2, IPT_START2, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 756 | PORT_INCLUDE( common ) | |
| 757 | /* If Debug is HIGH then you can perform rom test, EEPROM doesn't reset */ | |
| 776 | 758 | |
| 777 | UNUSED_PORT | |
| 778 | PORT_COIN( 0x40 ) /* If HIGH then you can perform rom test, EEPROM doesn't reset */ | |
| 779 | ||
| 780 | PORT_START("IN4") /* IN4 jumper pads on the PCB */ | |
| 781 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Region ) ) | |
| 782 | PORT_DIPSETTING( 0x00, DEF_STR( Japan ) ) | |
| 783 | PORT_DIPSETTING( 0x02, "International Ver A." ) | |
| 784 | PORT_DIPSETTING( 0x01, "International Ver B." ) | |
| 759 | PORT_START("JP4") /* jumper pads on the PCB */ | |
| 760 | PORT_DIPNAME( 0x03000000, 0x01000000, DEF_STR( Region ) ) | |
| 761 | PORT_DIPSETTING( 0x00000000, DEF_STR( Japan ) ) | |
| 762 | PORT_DIPSETTING( 0x02000000, "International Ver A." ) | |
| 763 | PORT_DIPSETTING( 0x01000000, "International Ver B." ) | |
| 764 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 785 | 765 | INPUT_PORTS_END |
| 786 | 766 | |
| 787 | 767 | static INPUT_PORTS_START( dragnblz ) /* Security requires bit high */ |
| 788 | PORT_START("IN0") | |
| 789 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 790 | PORT_START("IN1") | |
| 791 | PSIKYOSH_PORT_PLAYER( 2, IPT_START2, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 768 | PORT_INCLUDE( common ) | |
| 792 | 769 | |
| 793 | UNUSED_PORT | |
| 770 | PORT_MODIFY("INPUTS") | |
| 771 | PORT_DIPNAME( 0x00000040, 0x00000000, "Debug" ) /* Must be HIGH (Or Security Error), so can perform test */ | |
| 772 | PORT_DIPSETTING( 0x00000040, DEF_STR( Off ) ) | |
| 773 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 794 | 774 | |
| 795 | PORT_COIN( 0 ) /* Must be HIGH (Or Security Error), so can perform test */ | |
| 796 | ||
| 797 | PORT_START("IN4") /* jumper pads on the PCB */ | |
| 798 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Region ) ) | |
| 799 | PORT_DIPSETTING( 0x00, DEF_STR( Japan ) ) | |
| 800 | PORT_DIPSETTING( 0x02, "International Ver A." ) | |
| 801 | PORT_DIPSETTING( 0x01, "International Ver B." ) | |
| 775 | PORT_START("JP4") /* jumper pads on the PCB */ | |
| 776 | PORT_DIPNAME( 0x03000000, 0x01000000, DEF_STR( Region ) ) | |
| 777 | PORT_DIPSETTING( 0x00000000, DEF_STR( Japan ) ) | |
| 778 | PORT_DIPSETTING( 0x02000000, "International Ver A." ) | |
| 779 | PORT_DIPSETTING( 0x01000000, "International Ver B." ) | |
| 780 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 802 | 781 | INPUT_PORTS_END |
| 803 | 782 | |
| 804 | 783 | static INPUT_PORTS_START( gnbarich ) /* Same as S1945iii except only one button */ |
| 805 | PORT_START("IN0") | |
| 806 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 807 | PORT_START("IN1") | |
| 808 | PSIKYOSH_PORT_PLAYER( 2, IPT_START2, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 784 | PORT_INCLUDE( common ) | |
| 785 | /* If Debug is HIGH then you can perform rom test, but EEPROM resets? */ | |
| 809 | 786 | |
| 810 | UNUSED_PORT | |
| 811 | PORT_COIN( 0x40 ) /* If HIGH then you can perform rom test, but EEPROM resets? */ | |
| 812 | ||
| 813 | PORT_START("IN4")/* jumper pads on the PCB */ | |
| 814 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Region ) ) | |
| 815 | PORT_DIPSETTING( 0x00, DEF_STR( Japan ) ) | |
| 816 | PORT_DIPSETTING( 0x02, "International Ver A." ) | |
| 817 | PORT_DIPSETTING( 0x01, "International Ver B." ) | |
| 787 | PORT_START("JP4") /* jumper pads on the PCB */ | |
| 788 | PORT_DIPNAME( 0x03000000, 0x01000000, DEF_STR( Region ) ) | |
| 789 | PORT_DIPSETTING( 0x00000000, DEF_STR( Japan ) ) | |
| 790 | PORT_DIPSETTING( 0x02000000, "International Ver A." ) | |
| 791 | PORT_DIPSETTING( 0x01000000, "International Ver B." ) | |
| 792 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 818 | 793 | INPUT_PORTS_END |
| 819 | 794 | |
| 820 | 795 | static INPUT_PORTS_START( mjgtaste ) /* This will need the Mahjong inputs */ |
| 821 | PORT_START("IN0") | |
| 822 | PSIKYOSH_PORT_PLAYER( 1, IPT_START1, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 823 | PORT_START("IN1") | |
| 824 | PSIKYOSH_PORT_PLAYER( 2, IPT_START2, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) | |
| 796 | PORT_INCLUDE( common ) | |
| 825 | 797 | |
| 826 | UNUSED_PORT | |
| 827 | PORT_COIN( 0x40 ) | |
| 828 | ||
| 829 | PORT_START("IN4") /* jumper pads on the PCB */ | |
| 830 | // PORT_DIPNAME( 0x03, 0x01, DEF_STR( Region ) ) | |
| 831 | // PORT_DIPSETTING( 0x00, DEF_STR( Japan ) ) | |
| 832 | // PORT_DIPSETTING( 0x02, "International Ver A." ) | |
| 833 | // PORT_DIPSETTING( 0x01, "International Ver B." ) | |
| 798 | PORT_START("JP4") /* jumper pads on the PCB */ | |
| 799 | // PORT_DIPNAME( 0x03000000, 0x01000000, DEF_STR( Region ) ) | |
| 800 | // PORT_DIPSETTING( 0x00000000, DEF_STR( Japan ) ) | |
| 801 | // PORT_DIPSETTING( 0x02000000, "International Ver A." ) | |
| 802 | // PORT_DIPSETTING( 0x01000000, "International Ver B." ) | |
| 803 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 834 | 804 | INPUT_PORTS_END |
| 835 | 805 | |
| 836 | 806 |
| r3115 | r3116 | |
|---|---|---|
| 68 | 68 | |
| 69 | 69 | static ADDRESS_MAP_START( quizdna_readport, ADDRESS_SPACE_IO, 8 ) |
| 70 | 70 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 71 | AM_RANGE(0x80, 0x80) AM_READ(input_port_2_r) | |
| 72 | AM_RANGE(0x81, 0x81) AM_READ(input_port_3_r) | |
| 73 | AM_RANGE(0x90, 0x90) AM_READ(input_port_4_r) | |
| 74 | AM_RANGE(0x91, 0x91) AM_READ(input_port_5_r) | |
| 71 | AM_RANGE(0x80, 0x80) AM_READ_PORT("P1") | |
| 72 | AM_RANGE(0x81, 0x81) AM_READ_PORT("P2") | |
| 73 | AM_RANGE(0x90, 0x90) AM_READ_PORT("SYSTEM") | |
| 74 | AM_RANGE(0x91, 0x91) AM_READ_PORT("SERVICE") | |
| 75 | 75 | AM_RANGE(0xe0, 0xe0) AM_READ(ym2203_status_port_0_r) |
| 76 | 76 | AM_RANGE(0xe1, 0xe1) AM_READ(ym2203_read_port_0_r) |
| 77 | 77 | AM_RANGE(0xf0, 0xf0) AM_READ(okim6295_status_0_r) |
| r3115 | r3116 | |
| 117 | 117 | /****************************************************************************/ |
| 118 | 118 | |
| 119 | 119 | static INPUT_PORTS_START( quizdna ) |
| 120 | PORT_START("DSW2") | |
| 120 | PORT_START("DSW2") | |
| 121 | 121 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 122 | 122 | PORT_DIPSETTING( 0x01, DEF_STR( 9C_1C ) ) |
| 123 | 123 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_1C ) ) |
| r3115 | r3116 | |
| 146 | 146 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 147 | 147 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 148 | 148 | |
| 149 | PORT_START("DSW3") | |
| 149 | PORT_START("DSW3") | |
| 150 | 150 | PORT_DIPNAME( 0x03, 0x02, "Timer" ) |
| 151 | 151 | PORT_DIPSETTING( 0x03, "Slow" ) |
| 152 | 152 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 211 | 211 | INPUT_PORTS_END |
| 212 | 212 | |
| 213 | 213 | static INPUT_PORTS_START( gakupara ) |
| 214 | PORT_START("DSW2") | |
| 214 | PORT_START("DSW2") | |
| 215 | 215 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 216 | 216 | PORT_DIPSETTING( 0x00, "10 Coins/1 Credit" ) |
| 217 | 217 | PORT_DIPSETTING( 0x01, DEF_STR( 9C_1C ) ) |
| r3115 | r3116 | |
| 241 | 241 | PORT_DIPSETTING( 0x40, "Fast" ) |
| 242 | 242 | PORT_DIPSETTING( 0x00, "Very Fast" ) |
| 243 | 243 | |
| 244 | PORT_START("DSW3") | |
| 244 | PORT_START("DSW3") | |
| 245 | 245 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 246 | 246 | PORT_DIPNAME( 0x02, 0x02, "Unknown 3-2" ) |
| 247 | 247 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 307 | 307 | INPUT_PORTS_END |
| 308 | 308 | |
| 309 | 309 | static INPUT_PORTS_START( gekiretu ) |
| 310 | PORT_START("DSW2") | |
| 310 | PORT_START("DSW2") | |
| 311 | 311 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 312 | 312 | PORT_DIPSETTING( 0x01, DEF_STR( 9C_1C ) ) |
| 313 | 313 | PORT_DIPSETTING( 0x02, DEF_STR( 8C_1C ) ) |
| r3115 | r3116 | |
| 336 | 336 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 337 | 337 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 338 | 338 | |
| 339 | PORT_START("DSW3") | |
| 339 | PORT_START("DSW3") | |
| 340 | 340 | PORT_DIPNAME( 0x03, 0x03, "Timer" ) |
| 341 | 341 | PORT_DIPSETTING( 0x03, "Slow" ) |
| 342 | 342 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
|---|---|---|
| 292 | 292 | AM_RANGE(0x0000, 0x07ff) AM_ROM |
| 293 | 293 | AM_RANGE(0x0800, 0x17ff) AM_ROMBANK(1) |
| 294 | 294 | AM_RANGE(0x1800, 0x1bff) AM_RAM |
| 295 | AM_RANGE(0x1efc, 0x1efc) AM_READ(input_port_0_r) | |
| 296 | AM_RANGE(0x1efd, 0x1efd) AM_READ(input_port_1_r) | |
| 297 | AM_RANGE(0x1efe, 0x1efe) AM_READWRITE(input_port_2_r, ay8910_control_port_0_w) | |
| 298 | AM_RANGE(0x1eff, 0x1eff) AM_READWRITE(input_port_3_r, ay8910_write_port_0_w) | |
| 295 | AM_RANGE(0x1efc, 0x1efc) AM_READ_PORT("JOYS") | |
| 296 | AM_RANGE(0x1efd, 0x1efd) AM_READ_PORT("INPUTS") | |
| 297 | AM_RANGE(0x1efe, 0x1efe) AM_READ_PORT("DSW") AM_WRITE(ay8910_control_port_0_w) | |
| 298 | AM_RANGE(0x1eff, 0x1eff) AM_READ_PORT("UNK") AM_WRITE(ay8910_write_port_0_w) | |
| 299 | 299 | AM_RANGE(0x2000, 0x3fff) AM_READWRITE(supertnk_videoram_r, supertnk_videoram_w) AM_SIZE(&supertnk_videoram_size) |
| 300 | 300 | ADDRESS_MAP_END |
| 301 | 301 |
| r3115 | r3116 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | static void update_interrupts(running_machine *machine) |
| 34 | 34 | { |
| 35 | int newstate = 0; | |
| 36 | ||
| 37 | if (atarigen_scanline_int_state) | |
| 38 | newstate = 4; | |
| 39 | if (atarigen_sound_int_state) | |
| 40 | newstate = 6; | |
| 41 | ||
| 42 | if (newstate) | |
| 43 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 44 | else | |
| 45 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 35 | cpunum_set_input_line(machine, 0, 4, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 36 | cpunum_set_input_line(machine, 0, 6, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 46 | 37 | } |
| 47 | 38 | |
| 48 | 39 | |
| r3115 | r3116 | |
| 278 | 269 | AM_RANGE(0x000000, 0x037fff) AM_ROM |
| 279 | 270 | AM_RANGE(0x038000, 0x03ffff) AM_READ(bankrom_r) AM_REGION("main", 0x38000) AM_BASE(&bankrom_base) |
| 280 | 271 | AM_RANGE(0x120000, 0x120fff) AM_READWRITE(atarigen_eeprom_r, atarigen_eeprom_w) AM_BASE(&atarigen_eeprom) AM_SIZE(&atarigen_eeprom_size) |
| 281 | AM_RANGE(0x260000, 0x260001) AM_READ(input_port_0_word_r) | |
| 282 | AM_RANGE(0x260002, 0x260003) AM_READ(input_port_1_word_r) | |
| 272 | AM_RANGE(0x260000, 0x260001) AM_READ_PORT("260000") | |
| 273 | AM_RANGE(0x260002, 0x260003) AM_READ_PORT("260002") | |
| 283 | 274 | AM_RANGE(0x260010, 0x260011) AM_READ(special_port3_r) |
| 284 | AM_RANGE(0x260012, 0x260013) AM_READ(input_port_4_word_r) | |
| 285 | AM_RANGE(0x260020, 0x260021) AM_READ(input_port_5_word_r) | |
| 286 | AM_RANGE(0x260022, 0x260023) AM_READ(input_port_6_word_r) | |
| 287 | AM_RANGE(0x260024, 0x260025) AM_READ(input_port_7_word_r) | |
| 275 | AM_RANGE(0x260012, 0x260013) AM_READ_PORT("260012") | |
| 276 | AM_RANGE(0x260020, 0x260021) AM_READ_PORT("260020") | |
| 277 | AM_RANGE(0x260022, 0x260023) AM_READ_PORT("260022") | |
| 278 | AM_RANGE(0x260024, 0x260025) AM_READ_PORT("260024") | |
| 288 | 279 | AM_RANGE(0x260030, 0x260031) AM_READ(atarigen_sound_r) |
| 289 | 280 | AM_RANGE(0x260040, 0x260041) AM_WRITE(atarigen_sound_w) |
| 290 | 281 | AM_RANGE(0x260050, 0x260051) AM_WRITE(io_latch_w) |
| r3115 | r3116 | |
| 310 | 301 | *************************************/ |
| 311 | 302 | |
| 312 | 303 | static INPUT_PORTS_START( offtwall ) |
| 313 | PORT_START("260000") /* 260000 */ | |
| 314 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 315 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 316 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 317 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 318 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 319 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 320 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 321 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 322 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 323 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 324 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 325 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 326 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 327 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 328 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 329 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 304 | PORT_START("260000") | |
| 305 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 306 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 307 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 308 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 309 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 310 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 311 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 312 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 313 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 314 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 315 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 316 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 317 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 318 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 319 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 320 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 330 | 321 | |
| 331 | PORT_START("260002") /* 260002 */ | |
| 332 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 333 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) | |
| 334 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 335 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 336 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 337 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) | |
| 338 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) | |
| 339 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) | |
| 340 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) | |
| 322 | PORT_START("260002") | |
| 323 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 324 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3) | |
| 325 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) | |
| 326 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) | |
| 327 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) | |
| 328 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) | |
| 329 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) | |
| 330 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) | |
| 331 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3) | |
| 341 | 332 | |
| 342 | PORT_INCLUDE( atarijsa_iii ) /* audio board port */ | |
| 343 | ||
| 344 | PORT_START("260010") /* 260010 */ | |
| 345 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 333 | PORT_START("260010") | |
| 334 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 346 | 335 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Controls ) ) |
| 347 | 336 | PORT_DIPSETTING( 0x0000, "Whirly-gigs" ) /* this is official Atari terminology! */ |
| 348 | 337 | PORT_DIPSETTING( 0x0002, "Joysticks" ) |
| 349 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) /* tested at a454 */ | |
| 350 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED ) /* tested at a466 */ | |
| 351 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 352 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) /* tested before writing to 260040 */ | |
| 338 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) /* tested at a454 */ | |
| 339 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED ) /* tested at a466 */ | |
| 340 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 341 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) /* tested before writing to 260040 */ | |
| 353 | 342 | PORT_SERVICE( 0x0040, IP_ACTIVE_LOW ) |
| 354 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 355 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 343 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 344 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 356 | 345 | |
| 357 | PORT_START("260012") /* 260012 */ | |
| 358 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 346 | PORT_START("260012") | |
| 347 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 359 | 348 | |
| 360 | PORT_START("260020") | |
| 349 | PORT_START("260020") | |
| 361 | 350 | PORT_BIT( 0xff, 0, IPT_DIAL_V ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1) |
| 362 | 351 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 363 | 352 | |
| 364 | PORT_START("260022") | |
| 353 | PORT_START("260022") | |
| 365 | 354 | PORT_BIT( 0xff, 0, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(2) |
| 366 | 355 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 367 | 356 | |
| 368 | PORT_START("260024") | |
| 357 | PORT_START("260024") | |
| 369 | 358 | PORT_BIT( 0xff, 0, IPT_DIAL_V ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_REVERSE PORT_PLAYER(3) |
| 370 | 359 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 360 | ||
| 361 | PORT_INCLUDE( atarijsa_iii ) /* audio board port */ | |
| 371 | 362 | INPUT_PORTS_END |
| 372 | 363 | |
| 373 | 364 |
| r3115 | r3116 | |
|---|---|---|
| 1295 | 1295 | ROM_LOAD( "ev3.1k", 0x04000, 0x2000, CRC(10ff140b) SHA1(7c28f988a9c8b2a702d007096199e67b447a183c) ) |
| 1296 | 1296 | ROM_LOAD( "ev4.1h", 0x06000, 0x2000, CRC(b7917264) SHA1(e58345fda088b171fd348959de15082f3cb42514) ) |
| 1297 | 1297 | |
| 1298 | ROM_REGION( 0x2000, "MCU", 0 ) | |
| 1299 | ROM_LOAD( "8303.bin", 0x0000, 0x2000, CRC(66adcb37) SHA1(e1c72ecb161129dcbddc0b16dd90e716d0c79311) ) | |
| 1300 | ||
| 1298 | 1301 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) // chars |
| 1299 | 1302 | ROM_LOAD( "ep9", 0x00000, 0x1000, CRC(0325be11) SHA1(d95667b439e3d97b08efeaf08022348546a4f385) ) |
| 1300 | 1303 | |
| r3115 | r3116 | |
| 1356 | 1359 | ROM_LOAD( "ev3.1k", 0x04000, 0x2000, CRC(10ff140b) SHA1(7c28f988a9c8b2a702d007096199e67b447a183c) ) |
| 1357 | 1360 | ROM_LOAD( "ev4.1h", 0x06000, 0x2000, CRC(b7917264) SHA1(e58345fda088b171fd348959de15082f3cb42514) ) |
| 1358 | 1361 | |
| 1362 | ROM_REGION( 0x2000, "MCU", 0 ) | |
| 1363 | ROM_LOAD( "8303.bin", 0x0000, 0x2000, CRC(66adcb37) SHA1(e1c72ecb161129dcbddc0b16dd90e716d0c79311) ) | |
| 1364 | ||
| 1359 | 1365 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) // chars |
| 1360 | 1366 | ROM_LOAD( "epr-ep0.3e", 0x00000, 0x1000, CRC(3f5a81c3) SHA1(8fd5bc621f483bfa46be7e40e6480b25243bdf70) ) |
| 1361 | 1367 | |
| r3115 | r3116 | |
| 1392 | 1398 | ROM_LOAD( "bprom.3h", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 1393 | 1399 | ROM_END |
| 1394 | 1400 | |
| 1395 | /* | |
| 1396 | Gekisou (JPN Ver.) | |
| 1397 | (c)1985 Eastern | |
| 1398 | ||
| 1399 | 68K55-2 | |
| 1400 | CPU:MC68000P8 | |
| 1401 | OSC:12.000MHz | |
| 1402 | ||
| 1403 | SOUND BOARD NO.59 MC 07 | |
| 1404 | CPU :TMP8085AP | |
| 1405 | Sound:AY-3-8910A,OKI M5232,D8155HC | |
| 1406 | OSC :6.144MHz | |
| 1407 | */ | |
| 1408 | ROM_START( gekisou ) | |
| 1409 | ROM_REGION( 0x10000, "main", 0 ) // 68000 ROMs | |
| 1410 | ROM_LOAD16_BYTE( "1.15b", 0x00001, 0x4000, CRC(945fd546) SHA1(6045dbf11272fcec8320aacb2852d4223d0943a0) ) | |
| 1411 | ROM_LOAD16_BYTE( "2.15d", 0x00000, 0x4000, CRC(3c057150) SHA1(2b1ad7993addfd1c0eee99dfe5bb3476cd387f6a) ) | |
| 1412 | ROM_LOAD16_BYTE( "3.14b", 0x08001, 0x4000, CRC(7c1cf4d0) SHA1(a122d3a51d205123e04c694912809e0bb31155d5) ) | |
| 1413 | ROM_LOAD16_BYTE( "4.14d", 0x08000, 0x4000, CRC(c7282391) SHA1(144a34d74bb1e71e2f799913ab04927d00faec87) ) | |
| 1414 | ||
| 1415 | ROM_REGION( 0x10000, "audio", 0 ) // 8085A ROMs | |
| 1416 | ROM_LOAD( "v1.1l", 0x00000, 0x4000, CRC(dc6af437) SHA1(77112fec51343d8e73765b2a342a888612813c3b) ) | |
| 1417 | ROM_LOAD( "v2.1h", 0x04000, 0x4000, CRC(cb12582e) SHA1(ef378232e2744540cc4c9187cfb36d780dadc962) ) | |
| 1418 | ROM_LOAD( "v3.1e", 0x08000, 0x4000, CRC(0ab5e777) SHA1(9177c42418f022a65d73c3302873b894c5a137a4) ) | |
| 1419 | ||
| 1420 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) // chars | |
| 1421 | ROM_LOAD( "0.5c", 0x00000, 0x1000, CRC(7e8bf4d1) SHA1(8abb82be006e8d1df449a5f83d59637314405119) ) | |
| 1422 | ||
| 1423 | ROM_REGION( 0x10000, "gfx2", ROMREGION_DISPOSE ) // tiles | |
| 1424 | ROM_LOAD( "7.18r", 0x00000, 0x2000, CRC(a1918b6c) SHA1(6ffa4c845d23d311b59cc19411a68a782618b3fd) ) | |
| 1425 | // empty space to unpack previous ROM | |
| 1426 | ROM_CONTINUE( 0x04000, 0x2000) | |
| 1427 | // empty space to unpack previous ROM | |
| 1428 | ROM_LOAD( "5.16r", 0x08000, 0x2000, CRC(88ef550a) SHA1(b50e7b8257d1bb6923d289e7af885c14d089b394) ) | |
| 1429 | ROM_CONTINUE( 0x0c000, 0x2000) | |
| 1430 | ROM_LOAD( "6.15r", 0x0a000, 0x2000, CRC(473e3fbf) SHA1(5039387b3627c19f592d630ba7bd010a3881adc5) ) | |
| 1431 | ROM_CONTINUE( 0x0e000, 0x2000) | |
| 1432 | ||
| 1433 | ROM_REGION( 0x10000, "gfx3", ROMREGION_DISPOSE ) // sprites | |
| 1434 | ROM_LOAD( "10.9r", 0x00000, 0x2000, CRC(11d89c73) SHA1(8753f635d321c8e9b93b0ab767cf44aca1db7a0a) ) | |
| 1435 | // empty space to unpack previous ROM | |
| 1436 | ROM_CONTINUE( 0x04000, 0x2000) | |
| 1437 | // empty space to unpack previous ROM | |
| 1438 | ROM_LOAD( "8.8r", 0x08000, 0x2000, CRC(2e0c392c) SHA1(48542a24a34e3d5d00af418b29a2ee15557efc99) ) | |
| 1439 | ROM_CONTINUE( 0x0c000, 0x2000) | |
| 1440 | ROM_LOAD( "9.6r", 0x0a000, 0x2000, CRC(56a03b08) SHA1(d90b246890fedfc437de85be8bcc6b60ff068be1) ) | |
| 1441 | ROM_CONTINUE( 0x0e000, 0x2000) | |
| 1442 | ||
| 1443 | ROM_REGION( 0x0700, "proms", 0 ) | |
| 1444 | ROM_LOAD( "1b.bpr", 0x0000, 0x100, CRC(11a1c0aa) SHA1(d007d31f68bf802c89422ea2393747ac8de94d70) ) // R | |
| 1445 | ROM_LOAD( "4b.bpr", 0x0100, 0x100, CRC(c7ebe52c) SHA1(19d2ee70d67fd5e1c57f66d030ec9a5b6af5a49e) ) // G | |
| 1446 | ROM_LOAD( "2b.bpr", 0x0200, 0x100, CRC(4f5d4141) SHA1(965221c6af4a868760e6d168b55e037fc5f9fa52) ) // B | |
| 1447 | ROM_LOAD( "2n.bpr", 0x0300, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) // CLUT(same PROM x 4) | |
| 1448 | ROM_LOAD( "3n.bpr", 0x0400, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) | |
| 1449 | ROM_LOAD( "4n.bpr", 0x0500, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) | |
| 1450 | ROM_LOAD( "5n.bpr", 0x0600, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) | |
| 1451 | ||
| 1452 | ROM_REGION( 0x0020, "prom", 0 ) | |
| 1453 | ROM_LOAD( "3h.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) | |
| 1454 | ROM_END | |
| 1455 | ||
| 1456 | 1401 | /******************************************************************************/ |
| 1457 | // Koukouyakyuh ROM Map | |
| 1458 | ||
| 1459 | /* | |
| 1460 | The Koukouyakyuh (JPN Ver.) | |
| 1461 | ||
| 1462 | (c)1985 Alpha denshi | |
| 1463 | ||
| 1464 | CPU :MAIN 68000 | |
| 1465 | SOUND 8085 | |
| 1466 | Sound :AY-3-8910 M3M5232RS | |
| 1467 | OSC :12.000MHz 6.??MHz 14.31818MHz | |
| 1468 | */ | |
| 1469 | ROM_START( kouyakyu ) | |
| 1470 | ROM_REGION( 0x10000, "main", 0 ) // 68000 ROMs | |
| 1471 | ROM_LOAD16_BYTE( "epr-6704.bin", 0x00001, 0x2000, CRC(c7ac2292) SHA1(614bfb0949620d4c260768f14a116b076dd38438) ) | |
| 1472 | ROM_LOAD16_BYTE( "epr-6707.bin", 0x00000, 0x2000, CRC(9cb2962e) SHA1(bd1bcbc53a3346e22789f24a35ab3aa681317d02) ) | |
| 1473 | ROM_LOAD16_BYTE( "epr-6705.bin", 0x04001, 0x2000, CRC(985327cb) SHA1(86969fe763cbaa527d64de35844773b5ab1d7f83) ) | |
| 1474 | ROM_LOAD16_BYTE( "epr-6708.bin", 0x04000, 0x2000, CRC(f8863dc5) SHA1(bfdd294d51420dd70aa97942909a9b8a95ffc05c) ) | |
| 1475 | ROM_LOAD16_BYTE( "epr-6706.bin", 0x08001, 0x2000, BAD_DUMP CRC(79e94cd2) SHA1(f44c2292614b46116818fad9a7eb48cceeb3b819) ) // was bad, manually patched | |
| 1476 | ROM_LOAD16_BYTE( "epr-6709.bin", 0x08000, 0x2000, CRC(f41cb58c) SHA1(f0d1048e949d51432739755f985e4df65b8e918b) ) | |
| 1477 | ROM_FILL( 0x0c000, 0x4000, 0 ) | |
| 1478 | ||
| 1479 | ROM_REGION( 0x10000, "audio", 0 ) // 8085A ROMs | |
| 1480 | ROM_LOAD( "epr-6703.bin", 0x00000, 0x2000, CRC(fbff3a86) SHA1(4ed2887b1e4509ded853a230f735d4d2aa475886) ) | |
| 1481 | ROM_LOAD( "epr-6702.bin", 0x02000, 0x2000, CRC(27ddf031) SHA1(2f11d3b693e46852762669ed1e35a667990edec7) ) | |
| 1482 | ROM_LOAD( "epr-6701.bin", 0x04000, 0x2000, CRC(3c83588a) SHA1(a84c813ba9d464cffc855397aaacbb9177c86fb4) ) | |
| 1483 | ROM_LOAD( "epr-6700.bin", 0x06000, 0x2000, CRC(ee579266) SHA1(94dfcf506049fc78db00084ff7031d19520d9a85) ) | |
| 1484 | ROM_LOAD( "epr-6699.bin", 0x08000, 0x2000, CRC(9bfa4a72) SHA1(8ac4d308dab0d67a26b4e3550c2e8064aaf36a74) ) | |
| 1485 | ROM_LOAD( "epr-6698.bin", 0x0a000, 0x2000, CRC(7adfd1ff) SHA1(b543dd6734a681a187dabf602bea390de663039c) ) | |
| 1486 | ||
| 1487 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) // chars | |
| 1488 | ROM_LOAD( "epr-6710.bin", 0x00000, 0x1000, CRC(accda190) SHA1(265d2fd92574d65e7890e48d5f305bf903a67bc8) ) | |
| 1489 | ||
| 1490 | ROM_REGION( 0x10000, "gfx2", ROMREGION_DISPOSE ) // tiles | |
| 1491 | ROM_LOAD( "epr-6695.bin", 0x00000, 0x2000, CRC(22bea465) SHA1(4860d7ee3c386cdacc9c608ffe74ec8bfa58edcb) ) | |
| 1492 | // empty space to unpack previous ROM | |
| 1493 | ROM_LOAD( "epr-6694.bin", 0x04000, 0x2000, CRC(51a7345e) SHA1(184c890559ed633e23cb459c313e6179cc3eb542) ) | |
| 1494 | // empty space to unpack previous ROM | |
| 1495 | ROM_LOAD( "epr-6689.bin", 0x08000, 0x2000, CRC(53bf7587) SHA1(0046cd04d11ce789ff69e0807700a624af96eb36) ) | |
| 1496 | ROM_LOAD( "epr-6688.bin", 0x0a000, 0x2000, CRC(ceb76c5b) SHA1(81fa236871f10c77eb201e1c9771bd57406df15b) ) | |
| 1497 | ROM_LOAD( "epr-6687.bin", 0x0c000, 0x2000, CRC(9c1f49df) SHA1(1a5cf5278777f829d3654e838bd2bb9f4dbb57ba) ) | |
| 1498 | ROM_LOAD( "epr-6686.bin", 0x0e000, 0x2000, CRC(3d9e516f) SHA1(498614821f87dbcc39edb1756e1af6b536044e6a) ) | |
| 1499 | ||
| 1500 | ROM_REGION( 0x10000, "gfx3", ROMREGION_DISPOSE ) // sprites | |
| 1501 | ROM_LOAD( "epr-6696.bin", 0x00000, 0x2000, CRC(0625f48e) SHA1(bea09ccf37f38678fb53c55bd0a79557d6c81b3f) ) | |
| 1502 | // empty space to unpack previous ROM | |
| 1503 | ROM_LOAD( "epr-6697.bin", 0x04000, 0x2000, CRC(f18afabe) SHA1(abd7f6c0bd0de145c423166a2f4e86ccdb12b1ce) ) | |
| 1504 | // empty space to unpack previous ROM | |
| 1505 | ROM_LOAD( "epr-6690.bin", 0x08000, 0x2000, CRC(a142a11d) SHA1(209c7e0591622434ada4445f3f8789059c5f4f77) ) | |
| 1506 | ROM_LOAD( "epr-6691.bin", 0x0a000, 0x2000, CRC(b640568c) SHA1(8cef1387c469abec8b488621a94cc9575d6c5fcc) ) | |
| 1507 | ROM_LOAD( "epr-6692.bin", 0x0c000, 0x2000, CRC(b91d8172) SHA1(8d8f6ea78ebf652f295ce96abf19e628fe777d07) ) | |
| 1508 | ROM_LOAD( "epr-6693.bin", 0x0e000, 0x2000, CRC(874e3acc) SHA1(29438f196811fc2c8f54b6c47f1c175e4797dd4c) ) | |
| 1509 | ||
| 1510 | ROM_REGION( 0x0700, "proms", 0 ) | |
| 1511 | ROM_LOAD( "pr6627.bpr", 0x0000, 0x100, CRC(5ec5480d) SHA1(f966a277539a5d257f32692cdd92ce44b08599e8) ) // R | |
| 1512 | ROM_LOAD( "pr6629.bpr", 0x0100, 0x100, CRC(29c7a393) SHA1(67cced39c0a80655c420aad668dfe836c1d7c643) ) // G | |
| 1513 | ROM_LOAD( "pr6628.bpr", 0x0200, 0x100, CRC(8af247a4) SHA1(01702fbce53dd4875e4825f0487e7aed9cf212fa) ) // B | |
| 1514 | ROM_LOAD( "pr6630a.bpr", 0x0300, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) // CLUT(same PROM x 4) | |
| 1515 | ROM_LOAD( "pr6630b.bpr", 0x0400, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) | |
| 1516 | ROM_LOAD( "pr6630c.bpr", 0x0500, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) | |
| 1517 | ROM_LOAD( "pr6630d.bpr", 0x0600, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) | |
| 1518 | ||
| 1519 | ROM_REGION( 0x0020, "prom", 0 ) | |
| 1520 | ROM_LOAD( "pr.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) | |
| 1521 | ROM_END | |
| 1522 | ||
| 1523 | /******************************************************************************/ | |
| 1524 | 1402 | // Bull Fighter ROM Map |
| 1525 | 1403 | |
| 1526 | 1404 | ROM_START( bullfgtr ) |
| r3115 | r3116 | |
| 1539 | 1417 | ROM_LOAD( "hv3vr.bin", 0x04000, 0x2000, CRC(51ee751c) SHA1(60bf848dfdfe313ab05df5a5c05819b0fa87ca50) ) |
| 1540 | 1418 | ROM_LOAD( "hv4vr.bin", 0x06000, 0x2000, CRC(62c7a25b) SHA1(237d3cbdfbf45b33c2f65d30faba151380866a93) ) |
| 1541 | 1419 | |
| 1420 | ROM_REGION( 0x2000, "MCU", 0 ) | |
| 1421 | ROM_LOAD( "8303.bin", 0x0000, 0x2000, CRC(66adcb37) SHA1(e1c72ecb161129dcbddc0b16dd90e716d0c79311) ) | |
| 1422 | ||
| 1542 | 1423 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) // chars |
| 1543 | 1424 | ROM_LOAD( "h.bin", 0x000000, 0x1000, CRC(c6894c9a) SHA1(0d5a55cded4fd833211bdc733a78c6c8423897de) ) |
| 1544 | 1425 | |
| r3115 | r3116 | |
| 1618 | 1499 | ROM_LOAD( "hv3vr.bin", 0x04000, 0x2000, CRC(51ee751c) SHA1(60bf848dfdfe313ab05df5a5c05819b0fa87ca50) ) |
| 1619 | 1500 | ROM_LOAD( "hv4vr.bin", 0x06000, 0x2000, CRC(62c7a25b) SHA1(237d3cbdfbf45b33c2f65d30faba151380866a93) ) |
| 1620 | 1501 | |
| 1502 | ROM_REGION( 0x2000, "MCU", 0 ) | |
| 1503 | ROM_LOAD( "8303.bin", 0x0000, 0x2000, CRC(66adcb37) SHA1(e1c72ecb161129dcbddc0b16dd90e716d0c79311) ) | |
| 1504 | ||
| 1621 | 1505 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) // chars |
| 1622 | 1506 | ROM_LOAD( "h.bin", 0x000000, 0x1000, CRC(c6894c9a) SHA1(0d5a55cded4fd833211bdc733a78c6c8423897de) ) |
| 1623 | 1507 | |
| r3115 | r3116 | |
| 1655 | 1539 | ROM_END |
| 1656 | 1540 | |
| 1657 | 1541 | /******************************************************************************/ |
| 1542 | // Koukouyakyuh ROM Map | |
| 1543 | ||
| 1544 | /* | |
| 1545 | The Koukouyakyuh (JPN Ver.) | |
| 1546 | ||
| 1547 | (c)1985 Alpha denshi | |
| 1548 | ||
| 1549 | CPU :MAIN 68000 | |
| 1550 | SOUND 8085 | |
| 1551 | Sound :AY-3-8910 M3M5232RS | |
| 1552 | OSC :12.000MHz 6.??MHz 14.31818MHz | |
| 1553 | */ | |
| 1554 | ROM_START( kouyakyu ) | |
| 1555 | ROM_REGION( 0x10000, "main", 0 ) // 68000 ROMs | |
| 1556 | ROM_LOAD16_BYTE( "epr-6704.bin", 0x00001, 0x2000, CRC(c7ac2292) SHA1(614bfb0949620d4c260768f14a116b076dd38438) ) | |
| 1557 | ROM_LOAD16_BYTE( "epr-6707.bin", 0x00000, 0x2000, CRC(9cb2962e) SHA1(bd1bcbc53a3346e22789f24a35ab3aa681317d02) ) | |
| 1558 | ROM_LOAD16_BYTE( "epr-6705.bin", 0x04001, 0x2000, CRC(985327cb) SHA1(86969fe763cbaa527d64de35844773b5ab1d7f83) ) | |
| 1559 | ROM_LOAD16_BYTE( "epr-6708.bin", 0x04000, 0x2000, CRC(f8863dc5) SHA1(bfdd294d51420dd70aa97942909a9b8a95ffc05c) ) | |
| 1560 | ROM_LOAD16_BYTE( "epr-6706.bin", 0x08001, 0x2000, BAD_DUMP CRC(79e94cd2) SHA1(f44c2292614b46116818fad9a7eb48cceeb3b819) ) // was bad, manually patched | |
| 1561 | ROM_LOAD16_BYTE( "epr-6709.bin", 0x08000, 0x2000, CRC(f41cb58c) SHA1(f0d1048e949d51432739755f985e4df65b8e918b) ) | |
| 1562 | ROM_FILL( 0x0c000, 0x4000, 0 ) | |
| 1563 | ||
| 1564 | ROM_REGION( 0x10000, "audio", 0 ) // 8085A ROMs | |
| 1565 | ROM_LOAD( "epr-6703.bin", 0x00000, 0x2000, CRC(fbff3a86) SHA1(4ed2887b1e4509ded853a230f735d4d2aa475886) ) | |
| 1566 | ROM_LOAD( "epr-6702.bin", 0x02000, 0x2000, CRC(27ddf031) SHA1(2f11d3b693e46852762669ed1e35a667990edec7) ) | |
| 1567 | ROM_LOAD( "epr-6701.bin", 0x04000, 0x2000, CRC(3c83588a) SHA1(a84c813ba9d464cffc855397aaacbb9177c86fb4) ) | |
| 1568 | ROM_LOAD( "epr-6700.bin", 0x06000, 0x2000, CRC(ee579266) SHA1(94dfcf506049fc78db00084ff7031d19520d9a85) ) | |
| 1569 | ROM_LOAD( "epr-6699.bin", 0x08000, 0x2000, CRC(9bfa4a72) SHA1(8ac4d308dab0d67a26b4e3550c2e8064aaf36a74) ) | |
| 1570 | ROM_LOAD( "epr-6698.bin", 0x0a000, 0x2000, CRC(7adfd1ff) SHA1(b543dd6734a681a187dabf602bea390de663039c) ) | |
| 1571 | ||
| 1572 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) // chars | |
| 1573 | ROM_LOAD( "epr-6710.bin", 0x00000, 0x1000, CRC(accda190) SHA1(265d2fd92574d65e7890e48d5f305bf903a67bc8) ) | |
| 1574 | ||
| 1575 | ROM_REGION( 0x10000, "gfx2", ROMREGION_DISPOSE ) // tiles | |
| 1576 | ROM_LOAD( "epr-6695.bin", 0x00000, 0x2000, CRC(22bea465) SHA1(4860d7ee3c386cdacc9c608ffe74ec8bfa58edcb) ) | |
| 1577 | // empty space to unpack previous ROM | |
| 1578 | ROM_LOAD( "epr-6694.bin", 0x04000, 0x2000, CRC(51a7345e) SHA1(184c890559ed633e23cb459c313e6179cc3eb542) ) | |
| 1579 | // empty space to unpack previous ROM | |
| 1580 | ROM_LOAD( "epr-6689.bin", 0x08000, 0x2000, CRC(53bf7587) SHA1(0046cd04d11ce789ff69e0807700a624af96eb36) ) | |
| 1581 | ROM_LOAD( "epr-6688.bin", 0x0a000, 0x2000, CRC(ceb76c5b) SHA1(81fa236871f10c77eb201e1c9771bd57406df15b) ) | |
| 1582 | ROM_LOAD( "epr-6687.bin", 0x0c000, 0x2000, CRC(9c1f49df) SHA1(1a5cf5278777f829d3654e838bd2bb9f4dbb57ba) ) | |
| 1583 | ROM_LOAD( "epr-6686.bin", 0x0e000, 0x2000, CRC(3d9e516f) SHA1(498614821f87dbcc39edb1756e1af6b536044e6a) ) | |
| 1584 | ||
| 1585 | ROM_REGION( 0x10000, "gfx3", ROMREGION_DISPOSE ) // sprites | |
| 1586 | ROM_LOAD( "epr-6696.bin", 0x00000, 0x2000, CRC(0625f48e) SHA1(bea09ccf37f38678fb53c55bd0a79557d6c81b3f) ) | |
| 1587 | // empty space to unpack previous ROM | |
| 1588 | ROM_LOAD( "epr-6697.bin", 0x04000, 0x2000, CRC(f18afabe) SHA1(abd7f6c0bd0de145c423166a2f4e86ccdb12b1ce) ) | |
| 1589 | // empty space to unpack previous ROM | |
| 1590 | ROM_LOAD( "epr-6690.bin", 0x08000, 0x2000, CRC(a142a11d) SHA1(209c7e0591622434ada4445f3f8789059c5f4f77) ) | |
| 1591 | ROM_LOAD( "epr-6691.bin", 0x0a000, 0x2000, CRC(b640568c) SHA1(8cef1387c469abec8b488621a94cc9575d6c5fcc) ) | |
| 1592 | ROM_LOAD( "epr-6692.bin", 0x0c000, 0x2000, CRC(b91d8172) SHA1(8d8f6ea78ebf652f295ce96abf19e628fe777d07) ) | |
| 1593 | ROM_LOAD( "epr-6693.bin", 0x0e000, 0x2000, CRC(874e3acc) SHA1(29438f196811fc2c8f54b6c47f1c175e4797dd4c) ) | |
| 1594 | ||
| 1595 | ROM_REGION( 0x0700, "proms", 0 ) | |
| 1596 | ROM_LOAD( "pr6627.bpr", 0x0000, 0x100, CRC(5ec5480d) SHA1(f966a277539a5d257f32692cdd92ce44b08599e8) ) // R | |
| 1597 | ROM_LOAD( "pr6629.bpr", 0x0100, 0x100, CRC(29c7a393) SHA1(67cced39c0a80655c420aad668dfe836c1d7c643) ) // G | |
| 1598 | ROM_LOAD( "pr6628.bpr", 0x0200, 0x100, CRC(8af247a4) SHA1(01702fbce53dd4875e4825f0487e7aed9cf212fa) ) // B | |
| 1599 | ROM_LOAD( "pr6630a.bpr", 0x0300, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) // CLUT(same PROM x 4) | |
| 1600 | ROM_LOAD( "pr6630b.bpr", 0x0400, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) | |
| 1601 | ROM_LOAD( "pr6630c.bpr", 0x0500, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) | |
| 1602 | ROM_LOAD( "pr6630d.bpr", 0x0600, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) | |
| 1603 | ||
| 1604 | ROM_REGION( 0x0020, "prom", 0 ) | |
| 1605 | ROM_LOAD( "pr.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) | |
| 1606 | ROM_END | |
| 1607 | ||
| 1608 | /******************************************************************************/ | |
| 1609 | /* | |
| 1610 | Gekisou (JPN Ver.) | |
| 1611 | (c)1985 Eastern | |
| 1612 | ||
| 1613 | 68K55-2 | |
| 1614 | CPU:MC68000P8 | |
| 1615 | OSC:12.000MHz | |
| 1616 | ||
| 1617 | SOUND BOARD NO.59 MC 07 | |
| 1618 | CPU :TMP8085AP | |
| 1619 | Sound:AY-3-8910A,OKI M5232,D8155HC | |
| 1620 | OSC :6.144MHz | |
| 1621 | */ | |
| 1622 | ROM_START( gekisou ) | |
| 1623 | ROM_REGION( 0x10000, "main", 0 ) // 68000 ROMs | |
| 1624 | ROM_LOAD16_BYTE( "1.15b", 0x00001, 0x4000, CRC(945fd546) SHA1(6045dbf11272fcec8320aacb2852d4223d0943a0) ) | |
| 1625 | ROM_LOAD16_BYTE( "2.15d", 0x00000, 0x4000, CRC(3c057150) SHA1(2b1ad7993addfd1c0eee99dfe5bb3476cd387f6a) ) | |
| 1626 | ROM_LOAD16_BYTE( "3.14b", 0x08001, 0x4000, CRC(7c1cf4d0) SHA1(a122d3a51d205123e04c694912809e0bb31155d5) ) | |
| 1627 | ROM_LOAD16_BYTE( "4.14d", 0x08000, 0x4000, CRC(c7282391) SHA1(144a34d74bb1e71e2f799913ab04927d00faec87) ) | |
| 1628 | ||
| 1629 | ROM_REGION( 0x10000, "audio", 0 ) // 8085A ROMs | |
| 1630 | ROM_LOAD( "v1.1l", 0x00000, 0x4000, CRC(dc6af437) SHA1(77112fec51343d8e73765b2a342a888612813c3b) ) | |
| 1631 | ROM_LOAD( "v2.1h", 0x04000, 0x4000, CRC(cb12582e) SHA1(ef378232e2744540cc4c9187cfb36d780dadc962) ) | |
| 1632 | ROM_LOAD( "v3.1e", 0x08000, 0x4000, CRC(0ab5e777) SHA1(9177c42418f022a65d73c3302873b894c5a137a4) ) | |
| 1633 | ||
| 1634 | ROM_REGION( 0x1000, "gfx1", ROMREGION_DISPOSE ) // chars | |
| 1635 | ROM_LOAD( "0.5c", 0x00000, 0x1000, CRC(7e8bf4d1) SHA1(8abb82be006e8d1df449a5f83d59637314405119) ) | |
| 1636 | ||
| 1637 | ROM_REGION( 0x10000, "gfx2", ROMREGION_DISPOSE ) // tiles | |
| 1638 | ROM_LOAD( "7.18r", 0x00000, 0x2000, CRC(a1918b6c) SHA1(6ffa4c845d23d311b59cc19411a68a782618b3fd) ) | |
| 1639 | // empty space to unpack previous ROM | |
| 1640 | ROM_CONTINUE( 0x04000, 0x2000) | |
| 1641 | // empty space to unpack previous ROM | |
| 1642 | ROM_LOAD( "5.16r", 0x08000, 0x2000, CRC(88ef550a) SHA1(b50e7b8257d1bb6923d289e7af885c14d089b394) ) | |
| 1643 | ROM_CONTINUE( 0x0c000, 0x2000) | |
| 1644 | ROM_LOAD( "6.15r", 0x0a000, 0x2000, CRC(473e3fbf) SHA1(5039387b3627c19f592d630ba7bd010a3881adc5) ) | |
| 1645 | ROM_CONTINUE( 0x0e000, 0x2000) | |
| 1646 | ||
| 1647 | ROM_REGION( 0x10000, "gfx3", ROMREGION_DISPOSE ) // sprites | |
| 1648 | ROM_LOAD( "10.9r", 0x00000, 0x2000, CRC(11d89c73) SHA1(8753f635d321c8e9b93b0ab767cf44aca1db7a0a) ) | |
| 1649 | // empty space to unpack previous ROM | |
| 1650 | ROM_CONTINUE( 0x04000, 0x2000) | |
| 1651 | // empty space to unpack previous ROM | |
| 1652 | ROM_LOAD( "8.8r", 0x08000, 0x2000, CRC(2e0c392c) SHA1(48542a24a34e3d5d00af418b29a2ee15557efc99) ) | |
| 1653 | ROM_CONTINUE( 0x0c000, 0x2000) | |
| 1654 | ROM_LOAD( "9.6r", 0x0a000, 0x2000, CRC(56a03b08) SHA1(d90b246890fedfc437de85be8bcc6b60ff068be1) ) | |
| 1655 | ROM_CONTINUE( 0x0e000, 0x2000) | |
| 1656 | ||
| 1657 | ROM_REGION( 0x0700, "proms", 0 ) | |
| 1658 | ROM_LOAD( "1b.bpr", 0x0000, 0x100, CRC(11a1c0aa) SHA1(d007d31f68bf802c89422ea2393747ac8de94d70) ) // R | |
| 1659 | ROM_LOAD( "4b.bpr", 0x0100, 0x100, CRC(c7ebe52c) SHA1(19d2ee70d67fd5e1c57f66d030ec9a5b6af5a49e) ) // G | |
| 1660 | ROM_LOAD( "2b.bpr", 0x0200, 0x100, CRC(4f5d4141) SHA1(965221c6af4a868760e6d168b55e037fc5f9fa52) ) // B | |
| 1661 | ROM_LOAD( "2n.bpr", 0x0300, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) // CLUT(same PROM x 4) | |
| 1662 | ROM_LOAD( "3n.bpr", 0x0400, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) | |
| 1663 | ROM_LOAD( "4n.bpr", 0x0500, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) | |
| 1664 | ROM_LOAD( "5n.bpr", 0x0600, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) | |
| 1665 | ||
| 1666 | ROM_REGION( 0x0020, "prom", 0 ) | |
| 1667 | ROM_LOAD( "3h.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) | |
| 1668 | ROM_END | |
| 1669 | ||
| 1670 | /******************************************************************************/ | |
| 1658 | 1671 | // Splendor Blast ROM Map |
| 1659 | 1672 | |
| 1660 | 1673 | /* |
| r3115 | r3116 | |
| 1684 | 1697 | ROM_LOAD( "3_v.1k", 0x04000, 0x2000, CRC(bbee5346) SHA1(753cb784b04f081fa1f8590dc28056d9918f313b) ) |
| 1685 | 1698 | ROM_LOAD( "4_v.1h", 0x06000, 0x2000, CRC(10f45af4) SHA1(00fa599bad8bf3ba6deee54165f381403096e8f9) ) |
| 1686 | 1699 | |
| 1700 | ROM_REGION( 0x2000, "MCU", 0 ) | |
| 1701 | ROM_LOAD( "8303.bin", 0x0000, 0x2000, CRC(66adcb37) SHA1(e1c72ecb161129dcbddc0b16dd90e716d0c79311) ) | |
| 1702 | ||
| 1687 | 1703 | ROM_REGION( 0x2000, "gfx1", ROMREGION_DISPOSE ) // chars |
| 1688 | 1704 | ROM_LOAD( "10.8c", 0x00000, 0x2000, CRC(501887d4) SHA1(3cf4401d6fddff1500066219a71ac3b30ecbdd28) ) |
| 1689 | 1705 | |
| r3115 | r3116 | |
| 1852 | 1868 | // Equites Hardware |
| 1853 | 1869 | GAME( 1984, equites, 0, equites, equites, equites, ROT90, "Alpha Denshi Co.", "Equites", GAME_IMPERFECT_SOUND ) |
| 1854 | 1870 | GAME( 1984, equitess, equites, equites, equites, equites, ROT90, "Alpha Denshi Co. (Sega license)", "Equites (Sega)", GAME_IMPERFECT_SOUND ) |
| 1855 | GAME( 1985, gekisou, 0, gekisou, gekisou, gekisou, ROT90, "Eastern Corp.", "Gekisou (Japan)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 1856 | 1871 | GAME( 1984, bullfgtr, 0, equites, bullfgtr, bullfgtr, ROT90, "Alpha Denshi Co.", "Bull Fighter", GAME_IMPERFECT_SOUND ) |
| 1857 | 1872 | GAME( 1984, bullfgts, bullfgtr, equites, bullfgtr, bullfgtr, ROT90, "Alpha Denshi Co. (Sega license)", "Bull Fighter (Sega)", GAME_IMPERFECT_SOUND ) |
| 1858 | 1873 | GAME( 1985, kouyakyu, 0, equites, kouyakyu, kouyakyu, ROT0, "Alpha Denshi Co.", "The Koukouyakyuh", GAME_IMPERFECT_SOUND ) |
| 1874 | GAME( 1985, gekisou, 0, gekisou, gekisou, gekisou, ROT90, "Eastern Corp.", "Gekisou (Japan)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) | |
| 1859 | 1875 | |
| 1860 | 1876 | // Splendor Blast Hardware |
| 1861 | 1877 | GAME( 1985, splndrbt, 0, splndrbt, splndrbt, splndrbt, ROT0, "Alpha Denshi Co.", "Splendor Blast", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| r3115 | r3116 | |
|---|---|---|
| 69 | 69 | PORT_DIPNAME( 0x0080, 0x0080, "Freeze" ) PORT_DIPLOCATION("SW:8") |
| 70 | 70 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 71 | 71 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 72 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(mahjong_controller_r, | |
| 72 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(mahjong_controller_r, NULL) | |
| 73 | 73 | |
| 74 | 74 | STANDARD_IN1 |
| 75 | 75 | |
| r3115 | r3116 | |
| 143 | 143 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 144 | 144 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START2 ) |
| 145 | 145 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 146 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, | |
| 146 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 147 | 147 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 148 | 148 | |
| 149 | 149 | STANDARD_IN3 |
| r3115 | r3116 | |
| 234 | 234 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* this bit is used.. */ |
| 235 | 235 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 236 | 236 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* this bit is used.. */ |
| 237 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, | |
| 237 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 238 | 238 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 239 | 239 | |
| 240 | 240 | PORT_START("IN3") |
| 241 | 241 | PORT_BIT( 0x003f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 242 | PORT_BIT( 0x00c0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_calendar_status, 0 ) | |
| 243 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_audio_result, 0 ) | |
| 242 | PORT_BIT( 0x00c0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_calendar_status, NULL) | |
| 243 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_audio_result, NULL) | |
| 244 | 244 | |
| 245 | 245 | STANDARD_IN4 |
| 246 | 246 | |
| r3115 | r3116 | |
| 273 | 273 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Next Game") PORT_CODE(KEYCODE_7) |
| 274 | 274 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* game freezes with this bit enabled */ |
| 275 | 275 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Previous Game") PORT_CODE(KEYCODE_8) |
| 276 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, | |
| 276 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 277 | 277 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 278 | 278 | |
| 279 | 279 | STANDARD_IN3 |
| r3115 | r3116 | |
| 4009 | 4009 | |
| 4010 | 4010 | ROM_REGION16_BE( 0x20000, "mainbios", 0 ) |
| 4011 | 4011 | /* special BIOS with trackball support, we only have one Irritating Maze bios and thats asia */ |
| 4012 | ROM_LOAD16_WORD_SWAP("236-bios.bin", 0x00000, 0x020000, CRC(853e6b96) SHA1(de369cb4a7df147b55168fa7aaf0b98c753b735e) ) | |
| 4012 | ROM_LOAD16_WORD_SWAP("236-bios.bin", 0x00000, 0x020000, CRC(853e6b96) SHA1(de369cb4a7df147b55168fa7aaf0b98c753b735e) ) | |
| 4013 | 4013 | |
| 4014 | 4014 | ROM_REGION( 0x20000, "audiobios", 0 ) |
| 4015 | 4015 | ROM_LOAD( "sm1.sm1", 0x00000, 0x20000, CRC(97cf998b) SHA1(977387a7c76ef9b21d0b01fa69830e949a9a9626) ) |
| r3115 | r3116 | |
|---|---|---|
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | |
| 255 | static READ8_HANDLER( omegrace_vg_status_r ) | |
| 256 | { | |
| 257 | return avgdvg_done() ? 0x00 : 0x80; | |
| 258 | } | |
| 259 | ||
| 260 | ||
| 261 | ||
| 262 | 255 | /************************************* |
| 263 | 256 | * |
| 264 | 257 | * Input handlers |
| r3115 | r3116 | |
| 347 | 340 | AM_RANGE(0x08, 0x08) AM_READ(omegrace_vg_go_r) |
| 348 | 341 | AM_RANGE(0x09, 0x09) AM_READ(watchdog_reset_r) |
| 349 | 342 | AM_RANGE(0x0a, 0x0a) AM_WRITE(avgdvg_reset_w) |
| 350 | AM_RANGE(0x0b, 0x0b) AM_READ | |
| 343 | AM_RANGE(0x0b, 0x0b) AM_READ | |
| 351 | 344 | AM_RANGE(0x10, 0x10) AM_READ_PORT("DSW1") /* DIP SW C4 */ |
| 352 | 345 | AM_RANGE(0x17, 0x17) AM_READ_PORT("DSW2") /* DIP SW C6 */ |
| 353 | 346 | AM_RANGE(0x11, 0x11) AM_READ_PORT("IN0") /* Player 1 input */ |
| r3115 | r3116 | |
| 355 | 348 | AM_RANGE(0x13, 0x13) AM_WRITE(omegrace_leds_w) /* coin counters, leds, flip screen */ |
| 356 | 349 | AM_RANGE(0x14, 0x14) AM_WRITE(omegrace_soundlatch_w) /* Sound command */ |
| 357 | 350 | AM_RANGE(0x15, 0x15) AM_READ(omegrace_spinner1_r) /* 1st controller */ |
| 358 | AM_RANGE(0x16, 0x16) AM_READ | |
| 351 | AM_RANGE(0x16, 0x16) AM_READ | |
| 359 | 352 | ADDRESS_MAP_END |
| 360 | 353 | |
| 361 | 354 | |
| r3115 | r3116 | |
| 388 | 381 | *************************************/ |
| 389 | 382 | |
| 390 | 383 | static INPUT_PORTS_START( omegrace ) |
| 391 | PORT_START("DSW1") /* SW0 */ | |
| 392 | PORT_DIPNAME( 0x03, 0x03, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:1,2") | |
| 393 | PORT_DIPSETTING ( 0x00, "40k" ) | |
| 394 | PORT_DIPSETTING ( 0x01, "50k" ) | |
| 395 | PORT_DIPSETTING ( 0x02, "70k" ) | |
| 396 | PORT_DIPSETTING ( 0x03, "100k" ) | |
| 384 | PORT_START("DSW1") | |
| 385 | PORT_DIPNAME( 0x03, 0x03, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:1,2") | |
| 386 | PORT_DIPSETTING( 0x00, "40k" ) | |
| 387 | PORT_DIPSETTING( 0x01, "50k" ) | |
| 388 | PORT_DIPSETTING( 0x02, "70k" ) | |
| 389 | PORT_DIPSETTING( 0x03, "100k" ) | |
| 397 | 390 | PORT_DIPNAME( 0x0c, 0x0c, "2nd & 3rd Bonus Life" ) PORT_DIPLOCATION("SW1:3,4") |
| 398 | PORT_DIPSETTING ( 0x00, "150k 250k" ) | |
| 399 | PORT_DIPSETTING ( 0x04, "250k 500k" ) | |
| 400 | PORT_DIPSETTING ( 0x08, "500k 750k" ) | |
| 401 | PORT_DIPSETTING ( 0x0c, "750k 1500k" ) | |
| 402 | PORT_DIPNAME( 0x30, 0x30, "Credit(s)/Ships" ) PORT_DIPLOCATION("SW1:5,6") | |
| 403 | PORT_DIPSETTING ( 0x00, "1C/2S 2C/4S" ) | |
| 404 | PORT_DIPSETTING ( 0x10, "1C/2S 2C/5S" ) | |
| 405 | PORT_DIPSETTING ( 0x20, "1C/3S 2C/6S" ) | |
| 406 | PORT_DIPSETTING ( 0x30, "1C/3S 2C/7S" ) | |
| 407 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:7") | |
| 408 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 409 | PORT_DIPSETTING ( 0x40, DEF_STR( On ) ) | |
| 410 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:8") | |
| 411 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 412 | PORT_DIPSETTING ( 0x80, DEF_STR( On ) ) | |
| 391 | PORT_DIPSETTING( 0x00, "150k 250k" ) | |
| 392 | PORT_DIPSETTING( 0x04, "250k 500k" ) | |
| 393 | PORT_DIPSETTING( 0x08, "500k 750k" ) | |
| 394 | PORT_DIPSETTING( 0x0c, "750k 1500k" ) | |
| 395 | PORT_DIPNAME( 0x30, 0x30, "Credit(s)/Ships" ) PORT_DIPLOCATION("SW1:5,6") | |
| 396 | PORT_DIPSETTING( 0x00, "1C/2S 2C/4S" ) | |
| 397 | PORT_DIPSETTING( 0x10, "1C/2S 2C/5S" ) | |
| 398 | PORT_DIPSETTING( 0x20, "1C/3S 2C/6S" ) | |
| 399 | PORT_DIPSETTING( 0x30, "1C/3S 2C/7S" ) | |
| 400 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:7") | |
| 401 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 402 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 403 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:8") | |
| 404 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 405 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 413 | 406 | |
| 414 | PORT_START("DSW2") /* SW1 */ | |
| 415 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 416 | PORT_DIPSETTING ( 0x06, DEF_STR( 2C_1C ) ) | |
| 417 | PORT_DIPSETTING ( 0x07, DEF_STR( 1C_1C ) ) | |
| 418 | PORT_DIPSETTING ( 0x03, DEF_STR( 4C_5C ) ) | |
| 419 | PORT_DIPSETTING ( 0x04, DEF_STR( 3C_4C ) ) | |
| 420 | PORT_DIPSETTING ( 0x05, DEF_STR( 2C_3C ) ) | |
| 421 | PORT_DIPSETTING ( 0x00, DEF_STR( 1C_2C ) ) | |
| 422 | PORT_DIPSETTING ( 0x01, DEF_STR( 1C_3C ) ) | |
| 423 | PORT_DIPSETTING ( 0x02, DEF_STR( 1C_5C ) ) | |
| 424 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 425 | PORT_DIPSETTING ( 0x30, DEF_STR( 2C_1C ) ) | |
| 426 | PORT_DIPSETTING ( 0x38, DEF_STR( 1C_1C ) ) | |
| 427 | PORT_DIPSETTING ( 0x18, DEF_STR( 4C_5C ) ) | |
| 428 | PORT_DIPSETTING ( 0x20, DEF_STR( 3C_4C ) ) | |
| 429 | PORT_DIPSETTING ( 0x28, DEF_STR( 2C_3C ) ) | |
| 430 | PORT_DIPSETTING ( 0x00, DEF_STR( 1C_2C ) ) | |
| 431 | PORT_DIPSETTING ( 0x08, DEF_STR( 1C_3C ) ) | |
| 432 | PORT_DIPSETTING ( 0x10, DEF_STR( 1C_5C ) ) | |
| 407 | PORT_START("DSW2") | |
| 408 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3") | |
| 409 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_1C ) ) | |
| 410 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 411 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_5C ) ) | |
| 412 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_4C ) ) | |
| 413 | PORT_DIPSETTING( 0x05, DEF_STR( 2C_3C ) ) | |
| 414 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 415 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) ) | |
| 416 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_5C ) ) | |
| 417 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:4,5,6") | |
| 418 | PORT_DIPSETTING( 0x30, DEF_STR( 2C_1C ) ) | |
| 419 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 420 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_5C ) ) | |
| 421 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_4C ) ) | |
| 422 | PORT_DIPSETTING( 0x28, DEF_STR( 2C_3C ) ) | |
| 423 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 424 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 425 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_5C ) ) | |
| 433 | 426 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:7") |
| 434 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 435 | PORT_DIPSETTING ( 0x40, DEF_STR( On ) ) | |
| 436 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:8") | |
| 437 | PORT_DIPSETTING ( 0x00, DEF_STR( Upright ) ) | |
| 438 | PORT_DIPSETTING ( 0x80, DEF_STR( Cocktail ) ) | |
| 427 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 428 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 429 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:8") | |
| 430 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 431 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 439 | 432 | |
| 440 | PORT_START("IN0") /* | |
| 433 | PORT_START("IN0") /* | |
| 441 | 434 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 442 | 435 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 443 | 436 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 447 | 440 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 448 | 441 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 449 | 442 | |
| 450 | PORT_START("IN1") /* | |
| 443 | PORT_START("IN1") /* | |
| 451 | 444 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 452 | 445 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 453 | 446 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME("2 Players Start (1 credit)") |
| r3115 | r3116 | |
| 457 | 450 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("1 Player Start (1 credit)") |
| 458 | 451 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START3 ) PORT_NAME("1 Player Start (2 credits)") |
| 459 | 452 | |
| 460 | PORT_START("SPIN0") /* IN4 - port 0x15 - spinner */ | |
| 461 | PORT_BIT(0x3f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(12) PORT_KEYDELTA(10) | |
| 453 | PORT_START("SPIN0") /* port 0x15 - spinner */ | |
| 454 | PORT_BIT( 0x3f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(12) PORT_KEYDELTA(10) | |
| 462 | 455 | |
| 463 | PORT_START("SPIN1") /* IN5 - port 0x16 - second spinner */ | |
| 464 | PORT_BIT(0x3f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(12) PORT_KEYDELTA(10) PORT_COCKTAIL | |
| 456 | PORT_START("SPIN1") /* port 0x16 - second spinner */ | |
| 457 | PORT_BIT( 0x3f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(12) PORT_KEYDELTA(10) PORT_COCKTAIL | |
| 458 | ||
| 459 | PORT_START("AVGDVG") /* port 0x0b */ | |
| 460 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(avgdvg_done_r, NULL) | |
| 465 | 461 | INPUT_PORTS_END |
| 466 | 462 | |
| 467 | 463 |
| r3115 | r3116 | |
|---|---|---|
| 119 | 119 | { |
| 120 | 120 | if (ACCESSING_BITS_0_7) |
| 121 | 121 | { |
| 122 | int res = input_port_read(machine, "IN1") | |
| 122 | int res = input_port_read(machine, "IN1") | |
| 123 | 123 | |
| 124 | 124 | if (init_eeprom_count) |
| 125 | 125 | { |
| r3115 | r3116 | |
| 139 | 139 | { |
| 140 | 140 | if (ACCESSING_BITS_0_7) |
| 141 | 141 | { |
| 142 | int res = input_port_read(machine, "IN1") | |
| 142 | int res = input_port_read(machine, "IN1") | |
| 143 | 143 | |
| 144 | 144 | if (init_eeprom_count) |
| 145 | 145 | { |
| r3115 | r3116 | |
| 173 | 173 | { |
| 174 | 174 | if (ACCESSING_BITS_8_15) |
| 175 | 175 | { |
| 176 | return | |
| 176 | return | |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | return input_port_read(machine, "P2"); |
| r3115 | r3116 | |
| 1101 | 1101 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1102 | 1102 | |
| 1103 | 1103 | PORT_START("IN1") |
| 1104 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 1104 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 1105 | 1105 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM ready (always 1) */ |
| 1106 | 1106 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) |
| 1107 | 1107 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* game loops if this is set */ |
| 1108 | PORT_DIPNAME( 0x10, 0x00, "Sound Output") | |
| 1109 | PORT_DIPSETTING( 0x10, DEF_STR( Mono )) | |
| 1110 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo )) | |
| 1111 | PORT_DIPNAME( 0x20, 0x20, "Coin Mechanism") | |
| 1112 | PORT_DIPSETTING( 0x20, "Common") | |
| 1113 | PORT_DIPSETTING( 0x00, "Independant") | |
| 1114 | PORT_DIPNAME( 0x40, 0x40, "Number of Players") | |
| 1115 | PORT_DIPSETTING( 0x00, "4") | |
| 1116 | PORT_DIPSETTING( 0x40, "2") | |
| 1108 | PORT_DIPNAME( 0x10, 0x00, "Sound Output" ) | |
| 1109 | PORT_DIPSETTING( 0x10, DEF_STR( Mono ) ) | |
| 1110 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo ) ) | |
| 1111 | PORT_DIPNAME( 0x20, 0x20, "Coin Mechanism" ) | |
| 1112 | PORT_DIPSETTING( 0x20, "Common" ) | |
| 1113 | PORT_DIPSETTING( 0x00, "Independant" ) | |
| 1114 | PORT_DIPNAME( 0x40, 0x40, "Number of Players" ) | |
| 1115 | PORT_DIPSETTING( 0x00, "4" ) | |
| 1116 | PORT_DIPSETTING( 0x40, "2" ) | |
| 1117 | 1117 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1118 | 1118 | |
| 1119 | 1119 | PORT_START("P1") |
| r3115 | r3116 | |
| 1169 | 1169 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1170 | 1170 | |
| 1171 | 1171 | PORT_START("IN1") |
| 1172 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 1172 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 1173 | 1173 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM ready (always 1) */ |
| 1174 | 1174 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 1175 | 1175 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) |
| 1176 | PORT_DIPNAME( 0x10, 0x00, "Sound Output") | |
| 1177 | PORT_DIPSETTING( 0x10, DEF_STR( Mono )) | |
| 1178 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo )) | |
| 1179 | PORT_DIPNAME( 0x20, 0x20, "Coin Mechanism") | |
| 1180 | PORT_DIPSETTING( 0x20, "Common") | |
| 1181 | PORT_DIPSETTING( 0x00, "Independant") | |
| 1182 | PORT_DIPNAME( 0x40, 0x40, "Number of Players") | |
| 1183 | PORT_DIPSETTING( 0x00, "4") | |
| 1184 | PORT_DIPSETTING( 0x40, "2") | |
| 1185 | PORT_DIPNAME( 0x80, 0x80, "Continuous Energy Increment") | |
| 1186 | PORT_DIPSETTING( 0x80, DEF_STR( No )) | |
| 1187 | PORT_DIPSETTING( 0x00, DEF_STR( Yes )) | |
| 1176 | PORT_DIPNAME( 0x10, 0x00, "Sound Output" ) | |
| 1177 | PORT_DIPSETTING( 0x10, DEF_STR( Mono ) ) | |
| 1178 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo ) ) | |
| 1179 | PORT_DIPNAME( 0x20, 0x20, "Coin Mechanism" ) | |
| 1180 | PORT_DIPSETTING( 0x20, "Common" ) | |
| 1181 | PORT_DIPSETTING( 0x00, "Independant" ) | |
| 1182 | PORT_DIPNAME( 0x40, 0x40, "Number of Players" ) | |
| 1183 | PORT_DIPSETTING( 0x00, "4" ) | |
| 1184 | PORT_DIPSETTING( 0x40, "2" ) | |
| 1185 | PORT_DIPNAME( 0x80, 0x80, "Continuous Energy Increment" ) | |
| 1186 | PORT_DIPSETTING( 0x80, DEF_STR( No ) ) | |
| 1187 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1188 | 1188 | |
| 1189 | 1189 | PORT_START("P1") |
| 1190 | 1190 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1239 | 1239 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1240 | 1240 | |
| 1241 | 1241 | PORT_START("IN1") |
| 1242 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 1242 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 1243 | 1243 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM ready (always 1) */ |
| 1244 | 1244 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 1245 | 1245 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) |
| 1246 | PORT_DIPNAME( 0x10, 0x00, "Sound Output") | |
| 1247 | PORT_DIPSETTING( 0x10, DEF_STR( Mono )) | |
| 1248 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo )) | |
| 1246 | PORT_DIPNAME( 0x10, 0x00, "Sound Output" ) | |
| 1247 | PORT_DIPSETTING( 0x10, DEF_STR( Mono ) ) | |
| 1248 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo ) ) | |
| 1249 | 1249 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) |
| 1250 | 1250 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1251 | 1251 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1252 | PORT_DIPNAME( 0x40, 0x40, "Coin Mechanism") | |
| 1253 | PORT_DIPSETTING( 0x40, "Common") | |
| 1254 | PORT_DIPSETTING( 0x00, "Independant") | |
| 1255 | PORT_DIPNAME( 0x80, 0x80, "Number of Players") | |
| 1256 | PORT_DIPSETTING( 0x00, "3") | |
| 1257 | PORT_DIPSETTING( 0x80, "2") | |
| 1252 | PORT_DIPNAME( 0x40, 0x40, "Coin Mechanism" ) | |
| 1253 | PORT_DIPSETTING( 0x40, "Common" ) | |
| 1254 | PORT_DIPSETTING( 0x00, "Independant" ) | |
| 1255 | PORT_DIPNAME( 0x80, 0x80, "Number of Players" ) | |
| 1256 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1257 | PORT_DIPSETTING( 0x80, "2" ) | |
| 1258 | 1258 | |
| 1259 | 1259 | PORT_START("P1") |
| 1260 | 1260 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1309 | 1309 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1310 | 1310 | |
| 1311 | 1311 | PORT_START("IN1") |
| 1312 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 1312 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 1313 | 1313 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM ready (always 1) */ |
| 1314 | 1314 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) |
| 1315 | 1315 | PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) |
| 1316 | PORT_DIPNAME( 0x10, 0x00, "Sound Output") | |
| 1317 | PORT_DIPSETTING( 0x10, DEF_STR( Mono )) | |
| 1318 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo )) | |
| 1316 | PORT_DIPNAME( 0x10, 0x00, "Sound Output" ) | |
| 1317 | PORT_DIPSETTING( 0x10, DEF_STR( Mono ) ) | |
| 1318 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo ) ) | |
| 1319 | 1319 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) |
| 1320 | 1320 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1321 | 1321 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1375 | 1375 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1376 | 1376 | |
| 1377 | 1377 | PORT_START("IN1") |
| 1378 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 1378 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 1379 | 1379 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM ready (always 1) */ |
| 1380 | 1380 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) |
| 1381 | 1381 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* game loops if this is set */ |
| 1382 | PORT_DIPNAME( 0x10, 0x00, "Sound Output") | |
| 1383 | PORT_DIPSETTING( 0x10, DEF_STR( Mono )) | |
| 1384 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo )) | |
| 1382 | PORT_DIPNAME( 0x10, 0x00, "Sound Output" ) | |
| 1383 | PORT_DIPSETTING( 0x10, DEF_STR( Mono ) ) | |
| 1384 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo ) ) | |
| 1385 | 1385 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) |
| 1386 | 1386 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1387 | 1387 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | static void update_interrupts(running_machine *machine) |
| 34 | 34 | { |
| 35 | int newstate = 0; | |
| 36 | ||
| 37 | if (atarigen_video_int_state || atarigen_scanline_int_state) | |
| 38 | newstate = 4; | |
| 39 | ||
| 40 | if (newstate) | |
| 41 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 42 | else | |
| 43 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 35 | cpunum_set_input_line(machine, 0, 4, atarigen_video_int_state || atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 44 | 36 | } |
| 45 | 37 | |
| 46 | 38 |
| r3115 | r3116 | |
|---|---|---|
| 48 | 48 | |
| 49 | 49 | static ADDRESS_MAP_START( quizpani_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 50 | 50 | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 51 | AM_RANGE(0x100000, 0x100001) AM_READ(input_port_0_word_r) | |
| 52 | AM_RANGE(0x100002, 0x100003) AM_READ(input_port_1_word_r) | |
| 53 | AM_RANGE(0x100008, 0x100009) AM_READ(input_port_2_word_r) | |
| 54 | AM_RANGE(0x10000a, 0x10000b) AM_READ(input_port_3_word_r) | |
| 51 | AM_RANGE(0x100000, 0x100001) AM_READ_PORT("SYSTEM") | |
| 52 | AM_RANGE(0x100002, 0x100003) AM_READ_PORT("P1_P2") | |
| 53 | AM_RANGE(0x100008, 0x100009) AM_READ_PORT("DSW1") | |
| 54 | AM_RANGE(0x10000a, 0x10000b) AM_READ_PORT("DSW2") | |
| 55 | 55 | AM_RANGE(0x104000, 0x104001) AM_READ(okim6295_status_0_lsb_r) |
| 56 | 56 | AM_RANGE(0x108000, 0x1083ff) AM_READ(SMH_RAM) |
| 57 | 57 | AM_RANGE(0x110000, 0x113fff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
|---|---|---|
| 783 | 783 | PORT_DIPNAME( 0x10000000, 0x10000000, "All Song Mode" ) /* DSW 3-2 */ |
| 784 | 784 | PORT_DIPSETTING( 0x10000000, DEF_STR( Off ) ) |
| 785 | 785 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) |
| 786 | PORT_DIPNAME( 0x02000000, 0x02000000, "Enable"RAVE\"" ) /* DSW 3-5 */ | |
| 786 | PORT_DIPNAME( 0x02000000, 0x02000000, "Enable\"RAVE\"" ) /* DSW 3-5 */ | |
| 787 | 787 | PORT_DIPSETTING( 0x02000000, DEF_STR( Off ) ) |
| 788 | 788 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) |
| 789 | 789 | PORT_DIPNAME( 0x01000000, 0x01000000, "Bonus Track" ) /* DSW 3-6 */ |
| r3115 | r3116 | |
|---|---|---|
| 89 | 89 | pepp0250 1 |
| 90 | 90 | pepp0447 2 |
| 91 | 91 | pepp0516 1 |
| 92 | peps0014 1 | |
| 93 | peps0022 1 | |
| 94 | peps0043 1 | |
| 95 | peps0045 1 | |
| 96 | peps0308 1 | |
| 92 | 97 | pebe0014 1 |
| 93 | 98 | peke1012 1 |
| 94 | 99 | peps0615 2 |
| 95 | 100 | peps0716 2 |
| 101 | pex2069p 2 | |
| 96 | 102 | pexp0019 2 |
| 97 | 103 | pexp0112 2 |
| 98 | 104 | pexs0006 2 |
| r3115 | r3116 | |
|---|---|---|
| 1772 | 1772 | |
| 1773 | 1773 | static INPUT_PORTS_START( mahmajn ) |
| 1774 | 1774 | PORT_START("MJ0") |
| 1775 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("A") PORT_CODE(KEYCODE_A) | |
| 1776 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("B") PORT_CODE(KEYCODE_B) | |
| 1777 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("C") PORT_CODE(KEYCODE_C) | |
| 1778 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("D") PORT_CODE(KEYCODE_D) | |
| 1775 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) | |
| 1776 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_B ) | |
| 1777 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_C ) | |
| 1778 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_D ) | |
| 1779 | 1779 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1780 | 1780 | |
| 1781 | 1781 | PORT_START("MJ1") |
| 1782 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("E") PORT_CODE(KEYCODE_E) | |
| 1783 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("F") PORT_CODE(KEYCODE_F) | |
| 1784 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("G") PORT_CODE(KEYCODE_G) | |
| 1785 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("H") PORT_CODE(KEYCODE_H) | |
| 1782 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_E ) | |
| 1783 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F ) | |
| 1784 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_G ) | |
| 1785 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_H ) | |
| 1786 | 1786 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1787 | 1787 | |
| 1788 | 1788 | PORT_START("MJ2") |
| 1789 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("I") PORT_CODE(KEYCODE_I) | |
| 1790 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("J") PORT_CODE(KEYCODE_J) | |
| 1791 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("K") PORT_CODE(KEYCODE_K) | |
| 1792 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("L") PORT_CODE(KEYCODE_L) | |
| 1789 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_I ) | |
| 1790 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_J ) | |
| 1791 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K ) | |
| 1792 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_L ) | |
| 1793 | 1793 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1794 | 1794 | |
| 1795 | 1795 | PORT_START("MJ3") |
| 1796 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("M") PORT_CODE(KEYCODE_M) | |
| 1797 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("N") PORT_CODE(KEYCODE_N) | |
| 1798 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Chi") PORT_CODE(KEYCODE_SPACE) | |
| 1799 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Pon") PORT_CODE(KEYCODE_LALT) | |
| 1796 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_M ) | |
| 1797 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_N ) | |
| 1798 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) | |
| 1799 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) | |
| 1800 | 1800 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1801 | 1801 | |
| 1802 | 1802 | PORT_START("MJ4") |
| r3115 | r3116 | |
| 1804 | 1804 | PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1805 | 1805 | |
| 1806 | 1806 | PORT_START("MJ5") |
| 1807 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Kan") PORT_CODE(KEYCODE_LCONTROL) | |
| 1808 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Reach") PORT_CODE(KEYCODE_LSHIFT) | |
| 1809 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Ron") PORT_CODE(KEYCODE_Z) | |
| 1807 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) | |
| 1808 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) | |
| 1809 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) | |
| 1810 | 1810 | PORT_BIT( 0xf8, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1811 | 1811 | |
| 1812 | 1812 | PORT_START("P1") |
| r3115 | r3116 | |
|---|---|---|
| 147 | 147 | #include "system16.h" |
| 148 | 148 | #include "machine/8255ppi.h" |
| 149 | 149 | #include "machine/fd1089.h" |
| 150 | #include "cpu/ | |
| 150 | #include "cpu/mcs48 | |
| 151 | 151 | #include "sound/dac.h" |
| 152 | 152 | #include "sound/2151intf.h" |
| 153 | 153 | |
| r3115 | r3116 | |
| 848 | 848 | * |
| 849 | 849 | *************************************/ |
| 850 | 850 | |
| 851 | static ADDRESS_MAP_START( n7751_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 852 | ADDRESS_MAP_UNMAP_HIGH | |
| 853 | AM_RANGE(0x0000, 0x03ff) AM_ROM | |
| 854 | ADDRESS_MAP_END | |
| 855 | ||
| 856 | 851 | static ADDRESS_MAP_START( n7751_portmap, ADDRESS_SPACE_IO, 8 ) |
| 857 | AM_RANGE(I8039_bus,I8039_bus) AM_READ(n7751_rom_r) | |
| 858 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(n7751_t1_r) | |
| 859 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(dac_0_data_w) | |
| 860 | AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(n7751_command_r, n7751_busy_w) | |
| 861 | AM_RANGE(I8039_p4, I8039_p7) AM_WRITE(n7751_rom_offset_w) | |
| 852 | AM_RANGE(MCS48_PORT_BUS,MCS48_PORT_BUS) AM_READ(n7751_rom_r) | |
| 853 | AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(n7751_t1_r) | |
| 854 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(dac_0_data_w) | |
| 855 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READWRITE(n7751_command_r, n7751_busy_w) | |
| 856 | AM_RANGE(MCS48_PORT_P4, MCS48_PORT_P7) AM_WRITE(n7751_rom_offset_w) | |
| 862 | 857 | ADDRESS_MAP_END |
| 863 | 858 | |
| 864 | 859 | |
| r3115 | r3116 | |
| 1780 | 1775 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 1781 | 1776 | |
| 1782 | 1777 | MDRV_CPU_ADD("n7751", N7751, 6000000) |
| 1783 | MDRV_CPU_PROGRAM_MAP(n7751_map,0) | |
| 1784 | 1778 | MDRV_CPU_IO_MAP(n7751_portmap,0) |
| 1785 | 1779 | |
| 1786 | 1780 | MDRV_MACHINE_RESET(system16a) |
| r3115 | r3116 | |
| 1927 | 1921 | |
| 1928 | 1922 | ROM_REGION( 0x10000, "sound", 0 ) /* sound CPU */ |
| 1929 | 1923 | ROM_LOAD( "10284", 0x00000, 0x8000, CRC(8ff09116) SHA1(8b99b6d2499897cfbd037a7e7cf5bc53bce8a63a) ) |
| 1924 | ||
| 1925 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 1926 | ROM_LOAD( "317-0018.key", 0x0000, 0x2000, CRC(fee04be8) SHA1(c58d78299ef4cede517be823a8a8a90e46c6ba0d) ) | |
| 1930 | 1927 | ROM_END |
| 1931 | 1928 | |
| 1932 | 1929 | |
| r3115 | r3116 | |
| 2004 | 2001 | ROM_REGION( 0x10000, "n7751data", 0 ) /* 7751 sound data (not used yet) */ |
| 2005 | 2002 | ROM_LOAD( "10435.1", 0x0000, 0x8000, CRC(ad89f6e3) SHA1(812a132142065b0fe13b5f0ac534b6d8830ba102) ) |
| 2006 | 2003 | ROM_LOAD( "10436.2", 0x8000, 0x8000, CRC(96c76613) SHA1(fe3e4e649fd2cb2453eec0c92015bd54b3b9a1b5) ) |
| 2004 | ||
| 2005 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 2006 | ROM_LOAD( "317-0021.key", 0x0000, 0x2000, BAD_DUMP CRC(85be8eac) SHA1(3857bf43b3b0ab60c04223e2393d99504a730d73) ) | |
| 2007 | 2007 | ROM_END |
| 2008 | 2008 | |
| 2009 | 2009 | /************************************************************************************************************************** |
| 2010 | 2010 | ************************************************************************************************************************** |
| 2011 | 2011 | ************************************************************************************************************************** |
| 2012 | 2012 | Alien Syndrome, System 16A |
| 2013 | CPU: FD1089B | |
| 2013 | CPU: FD1089B 317-0037 | |
| 2014 | 2014 | */ |
| 2015 | 2015 | |
| 2016 | 2016 | ROM_START( aliensy5 ) |
| r3115 | r3116 | |
| 2055 | 2055 | ROM_LOAD( "10706", 0x00000, 0x8000, CRC(aa114acc) SHA1(81a2b3586ae90bc7fc55b82478ffe182ac49983e) ) |
| 2056 | 2056 | ROM_LOAD( "10707", 0x08000, 0x8000, CRC(800c1d82) SHA1(aac4123bd35f87da09264649f4cf8326b2ba3cb8) ) |
| 2057 | 2057 | ROM_LOAD( "10708", 0x10000, 0x8000, CRC(5921ef52) SHA1(eff9978361692e6e60a9c6caf5740dd6182cfe4a) ) |
| 2058 | ||
| 2059 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 2060 | ROM_LOAD( "317-0037.key", 0x0000, 0x2000, CRC(49e882e5) SHA1(29d87af8fc775b22a9a546c112f8f5e7f700ac1a) ) | |
| 2058 | 2061 | ROM_END |
| 2059 | 2062 | |
| 2060 | 2063 | |
| r3115 | r3116 | |
| 2062 | 2065 | ************************************************************************************************************************** |
| 2063 | 2066 | ************************************************************************************************************************** |
| 2064 | 2067 | Alien Syndrome, pre-System 16 |
| 2065 | CPU: FD1089A | |
| 2068 | CPU: FD1089A 317-0033 | |
| 2066 | 2069 | */ |
| 2067 | 2070 | ROM_START( aliensy2 ) |
| 2068 | 2071 | ROM_REGION( 0x40000, "main", 0 ) /* 68000 code */ |
| r3115 | r3116 | |
| 2106 | 2109 | ROM_LOAD( "10706", 0x00000, 0x8000, CRC(aa114acc) SHA1(81a2b3586ae90bc7fc55b82478ffe182ac49983e) ) |
| 2107 | 2110 | ROM_LOAD( "10707", 0x08000, 0x8000, CRC(800c1d82) SHA1(aac4123bd35f87da09264649f4cf8326b2ba3cb8) ) |
| 2108 | 2111 | ROM_LOAD( "10708", 0x10000, 0x8000, CRC(5921ef52) SHA1(eff9978361692e6e60a9c6caf5740dd6182cfe4a) ) |
| 2112 | ||
| 2113 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 2114 | ROM_LOAD( "317-0033.key", 0x0000, 0x2000, CRC(49e882e5) SHA1(29d87af8fc775b22a9a546c112f8f5e7f700ac1a) ) | |
| 2109 | 2115 | ROM_END |
| 2110 | 2116 | |
| 2111 | 2117 | /************************************************************************************************************************** |
| r3115 | r3116 | |
| 2154 | 2160 | ROM_LOAD( "10706", 0x00000, 0x8000, CRC(aa114acc) SHA1(81a2b3586ae90bc7fc55b82478ffe182ac49983e) ) |
| 2155 | 2161 | ROM_LOAD( "10707", 0x08000, 0x8000, CRC(800c1d82) SHA1(aac4123bd35f87da09264649f4cf8326b2ba3cb8) ) |
| 2156 | 2162 | ROM_LOAD( "10708", 0x10000, 0x8000, CRC(5921ef52) SHA1(eff9978361692e6e60a9c6caf5740dd6182cfe4a) ) |
| 2163 | ||
| 2164 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 2165 | ROM_LOAD( "317-0033.key", 0x0000, 0x2000, CRC(49e882e5) SHA1(29d87af8fc775b22a9a546c112f8f5e7f700ac1a) ) | |
| 2157 | 2166 | ROM_END |
| 2158 | 2167 | |
| 2159 | 2168 | |
| r3115 | r3116 | |
| 2632 | 2641 | |
| 2633 | 2642 | ROM_REGION( 0x10000, "sound", 0 ) /* sound CPU */ |
| 2634 | 2643 | ROM_LOAD( "epr10759.12", 0x0000, 0x8000, CRC(d7f9649f) SHA1(ce4abe7dd7e33da048569d7817063345fab75ea7) ) |
| 2644 | ||
| 2645 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 2646 | ROM_LOAD( "317-0027.key", 0x0000, 0x2000, BAD_DUMP CRC(9a5307b2) SHA1(2fcc576ed95b96ff6ea71252c3fab33b8b3fc1f5) ) | |
| 2635 | 2647 | ROM_END |
| 2636 | 2648 | |
| 2637 | 2649 | |
| r3115 | r3116 | |
| 2832 | 2844 | ROM_LOAD( "epr12229.2", 0x08000, 0x8000, CRC(b7aa015c) SHA1(0ef023f73722e27180c271b207a5097220f40b5e) ) |
| 2833 | 2845 | ROM_LOAD( "epr12230.4", 0x10000, 0x8000, CRC(d0f61fd4) SHA1(e6f29459d7395122f26957f56e38926aebd9004c) ) |
| 2834 | 2846 | ROM_LOAD( "epr12231.5", 0x18000, 0x8000, CRC(780bdc57) SHA1(8c859043bba389292604385b88c743728180f9a9) ) |
| 2847 | ||
| 2848 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 2849 | ROM_LOAD( "317-5021.key", 0x0000, 0x2000, BAD_DUMP CRC(4a3422e4) SHA1(69a32a6987ff2481f6d6cbbe399269a2461b8bad) ) | |
| 2835 | 2850 | ROM_END |
| 2836 | 2851 | |
| 2837 | 2852 | |
| r3115 | r3116 | |
| 2998 | 3013 | |
| 2999 | 3014 | ROM_REGION( 0x08000, "n7751data", 0 ) /* 7751 sound data */ |
| 3000 | 3015 | ROM_LOAD( "epr10547.1", 0x0000, 0x8000, CRC(d24ffc4b) SHA1(3b250e1f026664f7a37f65d1c1a07381e88f11e8) ) |
| 3016 | ||
| 3017 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 3018 | ROM_LOAD( "317-0024.key", 0x0000, 0x2000, BAD_DUMP CRC(ee42ec18) SHA1(cb65dd681f38ce20440ddcb01a935c2c8eecc77f) ) | |
| 3001 | 3019 | ROM_END |
| 3002 | 3020 | |
| 3003 | 3021 | |
| r3115 | r3116 | |
| 3082 | 3100 | |
| 3083 | 3101 | ROM_REGION( 0x10000, "sound", 0 ) /* sound CPU */ |
| 3084 | 3102 | ROM_LOAD( "epr12089.12", 0x0000, 0x8000, CRC(8321eb0b) SHA1(61cf95833c0aa38e35fc18db39d4ec74e4aaf01e) ) |
| 3103 | ||
| 3104 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 3105 | ROM_LOAD( "317-wb35.key", 0x0000, 0x2000, BAD_DUMP CRC(8a2e0575) SHA1(e43a2c8ca102ec38871067685a860da53d748765) ) | |
| 3085 | 3106 | ROM_END |
| 3086 | 3107 | |
| 3087 | 3108 | /************************************* |
| r3115 | r3116 | |
| 3103 | 3124 | } |
| 3104 | 3125 | |
| 3105 | 3126 | |
| 3106 | static DRIVER_INIT( | |
| 3127 | static DRIVER_INIT( | |
| 3107 | 3128 | { |
| 3108 | 3129 | system16a_generic_init(machine); |
| 3109 | fd1089_decrypt | |
| 3130 | fd1089a_decrypt | |
| 3110 | 3131 | } |
| 3111 | 3132 | |
| 3112 | 3133 | |
| 3113 | static DRIVER_INIT( | |
| 3134 | static DRIVER_INIT( f | |
| 3114 | 3135 | { |
| 3115 | 3136 | system16a_generic_init(machine); |
| 3116 | fd1089_decrypt | |
| 3137 | fd1089b_decrypt | |
| 3117 | 3138 | } |
| 3118 | 3139 | |
| 3119 | 3140 | |
| 3120 | static DRIVER_INIT( aliensy1 ) | |
| 3121 | { | |
| 3122 | system16a_generic_init(machine); | |
| 3123 | fd1089_decrypt_0033(machine); | |
| 3124 | } | |
| 3125 | ||
| 3126 | static DRIVER_INIT( aliensy5 ) | |
| 3127 | { | |
| 3128 | system16a_generic_init(machine); | |
| 3129 | fd1089_decrypt_0037(machine); | |
| 3130 | } | |
| 3131 | ||
| 3132 | 3141 | static DRIVER_INIT( bodyslam ) |
| 3133 | 3142 | { |
| 3134 | 3143 | system16a_generic_init(machine); |
| r3115 | r3116 | |
| 3158 | 3167 | static DRIVER_INIT( sdi ) |
| 3159 | 3168 | { |
| 3160 | 3169 | system16a_generic_init(machine); |
| 3161 | fd1089_decrypt | |
| 3170 | fd1089b_decrypt | |
| 3162 | 3171 | custom_io_r = sdi_custom_io_r; |
| 3163 | 3172 | } |
| 3164 | 3173 | |
| r3115 | r3116 | |
| 3166 | 3175 | static DRIVER_INIT( sjryukoa ) |
| 3167 | 3176 | { |
| 3168 | 3177 | system16a_generic_init(machine); |
| 3169 | fd1089_decrypt | |
| 3178 | fd1089b_decrypt | |
| 3170 | 3179 | custom_io_r = sjryuko_custom_io_r; |
| 3171 | 3180 | lamp_changed_w = sjryuko_lamp_changed_w; |
| 3172 | 3181 | } |
| 3173 | 3182 | |
| 3174 | 3183 | |
| 3175 | static DRIVER_INIT( timesca1 ) | |
| 3176 | { | |
| 3177 | system16a_generic_init(machine); | |
| 3178 | fd1089_decrypt_0024(machine); | |
| 3179 | } | |
| 3180 | ||
| 3181 | static DRIVER_INIT( wb35 ) | |
| 3182 | { | |
| 3183 | system16a_generic_init(machine); | |
| 3184 | fd1089_decrypt_wb35(machine); | |
| 3185 | } | |
| 3186 | ||
| 3187 | 3184 | /************************************* |
| 3188 | 3185 | * |
| 3189 | 3186 | * Game driver(s) |
| r3115 | r3116 | |
| 3200 | 3197 | GAME( 1986, quart2, quartet, system16a, quart2, generic_16a, ROT0, "Sega", "Quartet 2 (unprotected)", 0 ) |
| 3201 | 3198 | |
| 3202 | 3199 | /* System 16A */ |
| 3203 | GAME( 1987, aliensy5, aliensyn, system16a, aliensyn, aliensy5, ROT0, "Sega", "Alien Syndrome (set 5, System 16A, FD1089B 317-0037)", 0 ) | |
| 3204 | GAME( 1987, aliensy2, aliensyn, system16a, aliensyn, aliensy1, ROT0, "Sega", "Alien Syndrome (set 2, System 16A, FD1089A 317-0033)", 0 ) | |
| 3205 | GAME( 1987, aliensy1, aliensyn, system16a, aliensy1, aliensy1, ROT0, "Sega", "Alien Syndrome (set 1, System 16A, FD1089A 317-0033)", 0 ) | |
| 3200 | GAME( 1987, aliensy5, aliensyn, system16a, aliensyn, fd1089b_16a, ROT0, "Sega", "Alien Syndrome (set 5, System 16A, FD1089B 317-0037)", 0 ) | |
| 3201 | GAME( 1987, aliensy2, aliensyn, system16a, aliensyn, fd1089a_16a, ROT0, "Sega", "Alien Syndrome (set 2, System 16A, FD1089A 317-0033)", 0 ) | |
| 3202 | GAME( 1987, aliensy1, aliensyn, system16a, aliensy1, fd1089a_16a, ROT0, "Sega", "Alien Syndrome (set 1, System 16A, FD1089A 317-0033)", 0 ) | |
| 3206 | 3203 | GAME( 1988, aceattaa, aceattac, system16a , aceattaa, aceattaa, ROT270, "Sega", "Ace Attacker (Japan, System 16A, FD1094 317-0060)", 0 ) |
| 3207 | GAME( 1986, afighter, 0, system16a_no7751, afighter, | |
| 3204 | GAME( 1986, afighter, 0, system16a_no7751, afighter, | |
| 3208 | 3205 | GAME( 1986, alexkidd, 0, system16a, alexkidd, generic_16a, ROT0, "Sega", "Alex Kidd: The Lost Stars (set 2, unprotected)", 0 ) |
| 3209 | GAME( 1986, alexkid1, alexkidd, system16a, alexkidd, | |
| 3206 | GAME( 1986, alexkid1, alexkidd, system16a, alexkidd, f | |
| 3210 | 3207 | GAME( 1986, fantzone, 0, system16a_no7751, fantzone, generic_16a, ROT0, "Sega", "Fantasy Zone (set 2, unprotected)", 0 ) |
| 3211 | 3208 | GAME( 1986, fantzon1, fantzone, system16a_no7751, fantzone, generic_16a, ROT0, "Sega", "Fantasy Zone (set 1, unprotected)", 0 ) |
| 3212 | 3209 | GAME( 1988, pshot16a, passsht, system16a, pshot16a, pshot16a, ROT270, "Sega", "Passing Shot (Japan, 4 Players, System 16A, FD1094 317-0071)", 0 ) |
| r3115 | r3116 | |
| 3217 | 3214 | GAME( 1987, sjryuko1, sjryuko, system16a, sjryuko, sjryukoa, ROT0, "White Board", "Sukeban Jansi Ryuko (set 1, System 16A, FD1089B 317-5021)", 0 ) |
| 3218 | 3215 | GAME( 1988, tetris, 0, system16a_no7751, tetris, generic_16a, ROT0, "Sega", "Tetris (set 4, Japan, System 16A, FD1094 317-0093)", 0 ) |
| 3219 | 3216 | GAME( 1988, tetris3, tetris, system16a_no7751, tetris, generic_16a, ROT0, "Sega", "Tetris (set 3, Japan, System 16A, FD1094 317-0093a)", 0 ) |
| 3220 | GAME( 1987, timesca1, timescan, system16a, timescan, | |
| 3217 | GAME( 1987, timesca1, timescan, system16a, timescan, fd | |
| 3221 | 3218 | GAME( 1988, wb31, wb3, system16a_no7751, wb3, generic_16a, ROT0, "Sega / Westone", "Wonder Boy III - Monster Lair (set 1, System 16A, FD1094 317-0084)", 0 ) |
| 3222 | GAME( 1988, wb35, wb3, system16a_no7751, wb3, | |
| 3219 | GAME( 1988, wb35, wb3, system16a_no7751, wb3, fd1089a_16a, |
| r3115 | r3116 | |
|---|---|---|
| 200 | 200 | |
| 201 | 201 | static void update_interrupts(running_machine *machine) |
| 202 | 202 | { |
| 203 | int level = 0; | |
| 204 | ||
| 205 | /* determine which interrupt is active - order implies priority */ | |
| 206 | if (vblank_interrupt_pending) level = 1; | |
| 207 | if (display_position_interrupt_pending) level = 2; | |
| 208 | if (irq3_pending) level = 3; | |
| 209 | ||
| 210 | /* either set or clear the appropriate lines */ | |
| 211 | if (level) | |
| 212 | cpunum_set_input_line(machine, 0, level, ASSERT_LINE); | |
| 213 | else | |
| 214 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 203 | cpunum_set_input_line(machine, 0, 1, vblank_interrupt_pending ? ASSERT_LINE : CLEAR_LINE); | |
| 204 | cpunum_set_input_line(machine, 0, 2, display_position_interrupt_pending ? ASSERT_LINE : CLEAR_LINE); | |
| 205 | cpunum_set_input_line(machine, 0, 3, irq3_pending ? ASSERT_LINE : CLEAR_LINE); | |
| 215 | 206 | } |
| 216 | 207 | |
| 217 | 208 | |
| r3115 | r3116 | |
| 1161 | 1152 | |
| 1162 | 1153 | |
| 1163 | 1154 | #define STANDARD_IN1 \ |
| 1164 | PORT_START("IN1") \ | |
| 1155 | PORT_START("IN1") \ | |
| 1165 | 1156 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) \ |
| 1166 | 1157 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) \ |
| 1167 | 1158 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) \ |
| r3115 | r3116 | |
| 1174 | 1165 | |
| 1175 | 1166 | |
| 1176 | 1167 | #define STANDARD_IN2 \ |
| 1177 | PORT_START("IN2") \ | |
| 1168 | PORT_START("IN2") \ | |
| 1178 | 1169 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) \ |
| 1179 | 1170 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) \ |
| 1180 | 1171 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Next Game") PORT_CODE(KEYCODE_7) \ |
| 1181 | 1172 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START2 ) \ |
| 1182 | 1173 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Previous Game") PORT_CODE(KEYCODE_8) \ |
| 1183 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, | |
| 1174 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 1184 | 1175 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1185 | 1176 | |
| 1186 | 1177 | |
| 1187 | 1178 | #define STANDARD_IN3 \ |
| 1188 | PORT_START("IN3") \ | |
| 1179 | PORT_START("IN3") \ | |
| 1189 | 1180 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) \ |
| 1190 | 1181 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) \ |
| 1191 | 1182 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ |
| 1192 | 1183 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* having this ACTIVE_HIGH causes you to start with 2 credits using USA bios roms */ \ |
| 1193 | 1184 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* having this ACTIVE_HIGH causes you to start with 2 credits using USA bios roms */ \ |
| 1194 | 1185 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SPECIAL ) /* what is this? */ \ |
| 1195 | PORT_BIT( 0x00c0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_calendar_status, 0) \ | |
| 1196 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_audio_result, 0) | |
| 1186 | PORT_BIT( 0x00c0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_calendar_status, NULL) \ | |
| 1187 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_audio_result, NULL) | |
| 1197 | 1188 | |
| 1198 | 1189 | |
| 1199 | 1190 | #define STANDARD_IN4 \ |
| 1200 | PORT_START("IN4") \ | |
| 1191 | PORT_START("IN4") \ | |
| 1201 | 1192 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_UNKNOWN ) \ |
| 1202 | 1193 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_UNKNOWN ) \ |
| 1203 | 1194 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_UNKNOWN ) \ |
| r3115 | r3116 | |
|---|---|---|
| 1400 | 1400 | ************************************************************************************************************************** |
| 1401 | 1401 | ************************************************************************************************************************** |
| 1402 | 1402 | Enduro Racer |
| 1403 | CPU: FD1089 | |
| 1403 | CPU: FD1089B (317-0013A) | |
| 1404 | 1404 | YM2151 sound board |
| 1405 | 1405 | |
| 1406 | 1406 | ASSY CPU BD 837-6001-01 |
| r3115 | r3116 | |
| 1472 | 1472 | |
| 1473 | 1473 | ROM_REGION( 0x2000, "proms", 0 ) /* zoom table */ |
| 1474 | 1474 | ROM_LOAD( "epr-6844.ic123", 0x0000, 0x2000, CRC(e3ec7bd6) SHA1(feec0fe664e16fac0fde61cf64b401b9b0575323) ) |
| 1475 | ||
| 1476 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 1477 | ROM_LOAD( "317-0013a.key", 0x0000, 0x2000, CRC(295e6737) SHA1(2eff36f1f24db1154cf970d4c9fd481ae4f9a57c) ) | |
| 1475 | 1478 | ROM_END |
| 1476 | 1479 | |
| 1477 | 1480 | /************************************************************************************************************************** |
| 1478 | 1481 | Enduro Racer |
| 1479 | CPU: FD1089 | |
| 1482 | CPU: FD1089B (317-0013A) | |
| 1480 | 1483 | YM2203 sound board |
| 1481 | 1484 | |
| 1482 | 1485 | ASSY CPU BD 837-6001-01 |
| r3115 | r3116 | |
| 1549 | 1552 | |
| 1550 | 1553 | ROM_REGION( 0x2000, "proms", 0 ) /* zoom table */ |
| 1551 | 1554 | ROM_LOAD( "epr-6844.ic123", 0x0000, 0x2000, CRC(e3ec7bd6) SHA1(feec0fe664e16fac0fde61cf64b401b9b0575323) ) |
| 1555 | ||
| 1556 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 1557 | ROM_LOAD( "317-0013a.key", 0x0000, 0x2000, CRC(295e6737) SHA1(2eff36f1f24db1154cf970d4c9fd481ae4f9a57c) ) | |
| 1552 | 1558 | ROM_END |
| 1553 | 1559 | |
| 1554 | 1560 | /************************************************************************************************************************** |
| r3115 | r3116 | |
| 1723 | 1729 | static DRIVER_INIT( enduror ) |
| 1724 | 1730 | { |
| 1725 | 1731 | hangon_generic_init(); |
| 1726 | fd1089_decrypt | |
| 1732 | fd1089b_decrypt | |
| 1727 | 1733 | } |
| 1728 | 1734 | |
| 1729 | 1735 |
| r3115 | r3116 | |
|---|---|---|
| 140 | 140 | |
| 141 | 141 | static ADDRESS_MAP_START( sprcros2_m_readport, ADDRESS_SPACE_IO, 8 ) |
| 142 | 142 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 143 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) | |
| 144 | AM_RANGE(0x01, 0x01) AM_READ(input_port_1_r) | |
| 145 | AM_RANGE(0x02, 0x02) AM_READ(input_port_2_r) | |
| 146 | AM_RANGE(0x04, 0x04) AM_READ(input_port_3_r) | |
| 147 | AM_RANGE(0x05, 0x05) AM_READ(input_port_4_r) | |
| 143 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") | |
| 144 | AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") | |
| 145 | AM_RANGE(0x02, 0x02) AM_READ_PORT("EXTRA") | |
| 146 | AM_RANGE(0x04, 0x04) AM_READ_PORT("DSW1") | |
| 147 | AM_RANGE(0x05, 0x05) AM_READ_PORT("DSW2") | |
| 148 | 148 | ADDRESS_MAP_END |
| 149 | 149 | |
| 150 | 150 | static ADDRESS_MAP_START( sprcros2_m_writeport, ADDRESS_SPACE_IO, 8 ) |
| r3115 | r3116 | |
| 181 | 181 | ADDRESS_MAP_END |
| 182 | 182 | |
| 183 | 183 | static INPUT_PORTS_START( sprcros2 ) |
| 184 | PORT_START("P1") | |
| 184 | PORT_START("P1") | |
| 185 | 185 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 186 | 186 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 187 | 187 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r3115 | r3116 | |
| 191 | 191 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 192 | 192 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 193 | 193 | |
| 194 | PORT_START("P2") | |
| 194 | PORT_START("P2") | |
| 195 | 195 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 196 | 196 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 197 | 197 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 201 | 201 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 ) |
| 202 | 202 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 203 | 203 | |
| 204 | PORT_START("EXTRA") | |
| 204 | PORT_START("EXTRA") | |
| 205 | 205 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 206 | 206 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 207 | 207 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) |
| r3115 | r3116 | |
| 210 | 210 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| 211 | 211 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 212 | 212 | |
| 213 | PORT_START("DSW1") | |
| 213 | PORT_START("DSW1") | |
| 214 | 214 | PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coinage ) ) |
| 215 | 215 | PORT_DIPSETTING( 0x07, DEF_STR( 3C_1C ) ) |
| 216 | 216 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 222 | 222 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_6C ) ) |
| 223 | 223 | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 224 | 224 | |
| 225 | PORT_START("DSW2") | |
| 225 | PORT_START("DSW2") | |
| 226 | 226 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) |
| 227 | 227 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) |
| 228 | 228 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| r3115 | r3116 | |
|---|---|---|
| 325 | 325 | ADDRESS_MAP_END |
| 326 | 326 | |
| 327 | 327 | static ADDRESS_MAP_START( statriv2_readport, ADDRESS_SPACE_IO, 8 ) |
| 328 | AM_RANGE(0x20, 0x20) AM_READ(input_port_0_r) | |
| 329 | AM_RANGE(0x21, 0x21) AM_READ(input_port_1_r) | |
| 328 | AM_RANGE(0x20, 0x20) AM_READ_PORT("IN0") | |
| 329 | AM_RANGE(0x21, 0x21) AM_READ_PORT("IN1") | |
| 330 | 330 | AM_RANGE(0x2b, 0x2b) AM_READ(statriv2_questions_read) // question data |
| 331 | 331 | AM_RANGE(0xb1, 0xb1) AM_READ(ay8910_read_port_0_r) // ??? |
| 332 | 332 | AM_RANGE(0xce, 0xce) AM_READ(SMH_NOP) // ??? |
| r3115 | r3116 | |
| 343 | 343 | ADDRESS_MAP_END |
| 344 | 344 | |
| 345 | 345 | static ADDRESS_MAP_START( statriv4_readport, ADDRESS_SPACE_IO, 8 ) |
| 346 | AM_RANGE(0x20, 0x20) AM_READ(input_port_0_r) | |
| 347 | AM_RANGE(0x21, 0x21) AM_READ(input_port_1_r) | |
| 346 | AM_RANGE(0x20, 0x20) AM_READ_PORT("IN0") | |
| 347 | AM_RANGE(0x21, 0x21) AM_READ_PORT("IN1") | |
| 348 | 348 | AM_RANGE(0x28, 0x28) AM_READ(statriv2_questions_read) // question data |
| 349 | 349 | AM_RANGE(0xb1, 0xb1) AM_READ(ay8910_read_port_0_r) // ??? |
| 350 | 350 | AM_RANGE(0xce, 0xce) AM_READ(SMH_NOP) // ??? |
| r3115 | r3116 | |
| 361 | 361 | ADDRESS_MAP_END |
| 362 | 362 | |
| 363 | 363 | static ADDRESS_MAP_START( supertr2_readport, ADDRESS_SPACE_IO, 8 ) |
| 364 | AM_RANGE(0x20, 0x20) AM_READ(input_port_0_r) | |
| 365 | AM_RANGE(0x21, 0x21) AM_READ(input_port_1_r) | |
| 364 | AM_RANGE(0x20, 0x20) AM_READ_PORT("IN0") | |
| 365 | AM_RANGE(0x21, 0x21) AM_READ_PORT("IN1") | |
| 366 | 366 | AM_RANGE(0x28, 0x28) AM_READ(supertr2_questions_read) // question data |
| 367 | 367 | AM_RANGE(0xb1, 0xb1) AM_READ(ay8910_read_port_0_r) // ??? |
| 368 | 368 | AM_RANGE(0xce, 0xce) AM_READ(SMH_NOP) // ??? |
| r3115 | r3116 | |
| 390 | 390 | ADDRESS_MAP_END |
| 391 | 391 | |
| 392 | 392 | static ADDRESS_MAP_START( trivquiz_readport, ADDRESS_SPACE_IO, 8 ) |
| 393 | AM_RANGE(0x20, 0x20) AM_READ(input_port_0_r) | |
| 394 | AM_RANGE(0x21, 0x21) AM_READ(input_port_1_r) | |
| 393 | AM_RANGE(0x20, 0x20) AM_READ_PORT("IN0") | |
| 394 | AM_RANGE(0x21, 0x21) AM_READ_PORT("IN1") | |
| 395 | 395 | AM_RANGE(0x2a, 0x2a) AM_READ(statriv2_questions_read) // question data |
| 396 | 396 | AM_RANGE(0xb1, 0xb1) AM_READ(ay8910_read_port_0_r) // ??? |
| 397 | 397 | AM_RANGE(0xce, 0xce) AM_READ(SMH_NOP) // ??? |
| 398 | 398 | ADDRESS_MAP_END |
| 399 | 399 | |
| 400 | 400 | static ADDRESS_MAP_START( supertr3_readport, ADDRESS_SPACE_IO, 8 ) |
| 401 | AM_RANGE(0x20, 0x20) AM_READ(input_port_0_r) | |
| 402 | AM_RANGE(0x21, 0x21) AM_READ(input_port_1_r) | |
| 401 | AM_RANGE(0x20, 0x20) AM_READ_PORT("IN0") | |
| 402 | AM_RANGE(0x21, 0x21) AM_READ_PORT("IN1") | |
| 403 | 403 | AM_RANGE(0x28, 0x28) AM_READ(supertr3_questions_read) // question data |
| 404 | 404 | AM_RANGE(0xb1, 0xb1) AM_READ(ay8910_read_port_0_r) // ??? |
| 405 | 405 | AM_RANGE(0xce, 0xce) AM_READ(SMH_NOP) // ??? |
| 406 | 406 | ADDRESS_MAP_END |
| 407 | 407 | |
| 408 | 408 | static ADDRESS_MAP_START( hangman_readport, ADDRESS_SPACE_IO, 8 ) |
| 409 | AM_RANGE(0x20, 0x20) AM_READ(input_port_0_r) | |
| 410 | AM_RANGE(0x21, 0x21) AM_READ(input_port_1_r) | |
| 409 | AM_RANGE(0x20, 0x20) AM_READ_PORT("IN0") | |
| 410 | AM_RANGE(0x21, 0x21) AM_READ_PORT("IN1") | |
| 411 | 411 | AM_RANGE(0x28, 0x28) AM_READ(hangman_questions_read) // question data |
| 412 | 412 | AM_RANGE(0xb1, 0xb1) AM_READ(ay8910_read_port_0_r) // ??? |
| 413 | 413 | AM_RANGE(0xce, 0xce) AM_READ(SMH_NOP) // ??? |
| r3115 | r3116 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | static void update_interrupts(running_machine *machine) |
| 38 | 38 | { |
| 39 | int newstate = 0; | |
| 40 | int newstate2 = 0; | |
| 41 | ||
| 42 | if (atarigen_scanline_int_state) | |
| 43 | newstate |= 4, newstate2 |= 4; | |
| 44 | if (atarigen_sound_int_state) | |
| 45 | newstate |= 6; | |
| 46 | ||
| 47 | if (newstate) | |
| 48 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 49 | else | |
| 50 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 51 | ||
| 52 | if (newstate2) | |
| 53 | cpunum_set_input_line(machine, 1, newstate2, ASSERT_LINE); | |
| 54 | else | |
| 55 | cpunum_set_input_line(machine, 1, 7, CLEAR_LINE); | |
| 39 | cpunum_set_input_line(machine, 0, 4, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 40 | cpunum_set_input_line(machine, 1, 4, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 41 | cpunum_set_input_line(machine, 0, 6, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 56 | 42 | } |
| 57 | 43 | |
| 58 | 44 | |
| r3115 | r3116 | |
| 203 | 189 | AM_RANGE(0x0e0000, 0x0e0fff) AM_READWRITE(atarigen_eeprom_r, atarigen_eeprom_w) AM_BASE(&atarigen_eeprom) AM_SIZE(&atarigen_eeprom_size) |
| 204 | 190 | AM_RANGE(0x160000, 0x16ffff) AM_READWRITE(shared_ram_r, SMH_BANK1) AM_BASE(&shared_ram) |
| 205 | 191 | AM_RANGE(0x1f0000, 0x1fffff) AM_WRITE(atarigen_eeprom_enable_w) |
| 206 | AM_RANGE(0x260000, 0x26000f) AM_READ(input_port_0_word_r) | |
| 207 | AM_RANGE(0x260010, 0x260011) AM_READ(input_port_1_word_r) | |
| 192 | AM_RANGE(0x260000, 0x26000f) AM_READ_PORT("260000") | |
| 193 | AM_RANGE(0x260010, 0x260011) AM_READ_PORT("260010") | |
| 208 | 194 | AM_RANGE(0x260012, 0x260013) AM_READ(special_port2_r) |
| 209 | 195 | AM_RANGE(0x260030, 0x260031) AM_READ(atarigen_sound_r) |
| 210 | 196 | AM_RANGE(0x2e0000, 0x2e0001) AM_WRITE(watchdog_reset16_w) |
| r3115 | r3116 | |
| 235 | 221 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 236 | 222 | AM_RANGE(0x060000, 0x07ffff) AM_ROM |
| 237 | 223 | AM_RANGE(0x160000, 0x16ffff) AM_READWRITE(shared_ram_r, SMH_BANK1) |
| 238 | AM_RANGE(0x260000, 0x26000f) AM_READ(input_port_0_word_r) | |
| 239 | AM_RANGE(0x260010, 0x260011) AM_READ(input_port_1_word_r) | |
| 224 | AM_RANGE(0x260000, 0x26000f) AM_READ_PORT("260000") | |
| 225 | AM_RANGE(0x260010, 0x260011) AM_READ_PORT("260010") | |
| 240 | 226 | AM_RANGE(0x260012, 0x260013) AM_READ(special_port2_r) |
| 241 | 227 | AM_RANGE(0x260030, 0x260031) AM_READ(atarigen_sound_r) |
| 242 | 228 | AM_RANGE(0x360000, 0x360001) AM_WRITE(atarigen_video_int_ack_w) |
| r3115 | r3116 | |
| 254 | 240 | *************************************/ |
| 255 | 241 | |
| 256 | 242 | static INPUT_PORTS_START( thunderj ) |
| 257 | PORT_START("260000") | |
| 243 | PORT_START("260000") | |
| 258 | 244 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 259 | 245 | |
| 260 | PORT_START("260010") | |
| 246 | PORT_START("260010") | |
| 261 | 247 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 262 | 248 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 263 | 249 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 267 | 253 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 268 | 254 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 269 | 255 | |
| 270 | PORT_START("260012") | |
| 256 | PORT_START("260012") | |
| 271 | 257 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_VBLANK ) |
| 272 | 258 | PORT_SERVICE( 0x0002, IP_ACTIVE_LOW ) |
| 273 | 259 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) /* Input buffer full (@260030) */ |
| r3115 | r3116 | |
|---|---|---|
| 113 | 113 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 114 | 114 | AM_RANGE(0x080000, 0x08ffff) AM_RAM |
| 115 | 115 | AM_RANGE(0x180000, 0x183fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16)/* Palette */ |
| 116 | AM_RANGE(0x1c0000, 0x1c0001) AM_READ(input_port_0_word_r) /* Coins + Service */ | |
| 117 | AM_RANGE(0x1c0002, 0x1c0003) AM_READ(input_port_1_word_r) /* 1P controls */ | |
| 118 | AM_RANGE(0x1c0004, 0x1c0005) AM_READ(input_port_2_word_r) /* 2P controls */ | |
| 119 | AM_RANGE(0x1c0006, 0x1c0007) AM_READ(input_port_3_word_r) /* DIPSW #1 */ | |
| 120 | AM_RANGE(0x1c0008, 0x1c0009) AM_READ(input_port_4_word_r) /* DIPSW #2 */ | |
| 116 | AM_RANGE(0x1c0000, 0x1c0001) AM_READ_PORT("SYSTEM") | |
| 117 | AM_RANGE(0x1c0002, 0x1c0003) AM_READ_PORT("P1") | |
| 118 | AM_RANGE(0x1c0004, 0x1c0005) AM_READ_PORT("P2") | |
| 119 | AM_RANGE(0x1c0006, 0x1c0007) AM_READ_PORT("DSW1") | |
| 120 | AM_RANGE(0x1c0008, 0x1c0009) AM_READ_PORT("DSW2") | |
| 121 | 121 | AM_RANGE(0x1c0018, 0x1c0019) AM_WRITE(ultraman_gfxctrl_w) /* counters + gfx ctrl */ |
| 122 | 122 | AM_RANGE(0x1c0020, 0x1c0021) AM_WRITE(sound_cmd_w) |
| 123 | 123 | AM_RANGE(0x1c0028, 0x1c0029) AM_WRITE(sound_irq_trigger_w) |
| r3115 | r3116 | |
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | static INPUT_PORTS_START( ultraman ) |
| 152 | ||
| 153 | PORT_START("IN0") /* Coins + Service */ | |
| 152 | PORT_START("SYSTEM") | |
| 154 | 153 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 155 | 154 | PORT_SERVICE_NO_TOGGLE(0x10, IP_ACTIVE_LOW) |
| 156 | 155 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN3 ) |
| 157 | 156 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 158 | 157 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 159 | 158 | |
| 160 | PORT_START(" | |
| 159 | PORT_START("P | |
| 161 | 160 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 162 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | |
| 161 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | |
| 163 | 162 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 164 | 163 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 165 | 164 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 167 | 166 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 168 | 167 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 169 | 168 | |
| 170 | PORT_START(" | |
| 169 | PORT_START("P | |
| 171 | 170 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 ) |
| 172 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | |
| 171 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | |
| 173 | 172 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 174 | 173 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 175 | 174 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
|---|---|---|
| 131 | 131 | static ADDRESS_MAP_START( parodius_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 132 | 132 | AM_RANGE(0x0000, 0x07ff) AM_READ(bankedram_r) |
| 133 | 133 | AM_RANGE(0x0800, 0x1fff) AM_READ(SMH_RAM) |
| 134 | AM_RANGE(0x3f8c, 0x3f8c) AM_READ(input_port_0_r) | |
| 135 | AM_RANGE(0x3f8d, 0x3f8d) AM_READ(input_port_1_r) | |
| 136 | AM_RANGE(0x3f8e, 0x3f8e) AM_READ(input_port_4_r) | |
| 137 | AM_RANGE(0x3f8f, 0x3f8f) AM_READ(input_port_2_r) | |
| 138 | AM_RANGE(0x3f90, 0x3f90) AM_READ(input_port_3_r) | |
| 134 | AM_RANGE(0x3f8c, 0x3f8c) AM_READ_PORT("P1") | |
| 135 | AM_RANGE(0x3f8d, 0x3f8d) AM_READ_PORT("P2") | |
| 136 | AM_RANGE(0x3f8e, 0x3f8e) AM_READ_PORT("DSW3") | |
| 137 | AM_RANGE(0x3f8f, 0x3f8f) AM_READ_PORT("DSW1") | |
| 138 | AM_RANGE(0x3f90, 0x3f90) AM_READ_PORT("DSW2") | |
| 139 | 139 | AM_RANGE(0x3fa0, 0x3faf) AM_READ(K053244_r) |
| 140 | 140 | AM_RANGE(0x3fc0, 0x3fc0) AM_READ(watchdog_reset_r) |
| 141 | 141 | AM_RANGE(0x3fcc, 0x3fcd) AM_READ(parodius_sound_r) /* K053260 */ |
| r3115 | r3116 | |
| 183 | 183 | ***************************************************************************/ |
| 184 | 184 | |
| 185 | 185 | static INPUT_PORTS_START( parodius ) |
| 186 | PORT_START("P1") | |
| 186 | PORT_START("P1") | |
| 187 | 187 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 188 | 188 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 189 | 189 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 193 | 193 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) // shoot |
| 194 | 194 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // missile |
| 195 | 195 | |
| 196 | PORT_START("P2") | |
| 196 | PORT_START("P2") | |
| 197 | 197 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 ) |
| 198 | 198 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 199 | 199 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 203 | 203 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 204 | 204 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 205 | 205 | |
| 206 | PORT_START("DSW1") | |
| 206 | PORT_START("DSW1") | |
| 207 | 207 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 208 | 208 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 209 | 209 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 239 | 239 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 240 | 240 | // PORT_DIPSETTING( 0x00, "No Use" ) |
| 241 | 241 | |
| 242 | PORT_START("DSW2") | |
| 242 | PORT_START("DSW2") | |
| 243 | 243 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) |
| 244 | 244 | PORT_DIPSETTING( 0x03, "2" ) |
| 245 | 245 | PORT_DIPSETTING( 0x02, "3" ) |
| r3115 | r3116 | |
| 262 | 262 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 263 | 263 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 264 | 264 | |
| 265 | PORT_START("DSW3") | |
| 265 | PORT_START("DSW3") | |
| 266 | 266 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 267 | 267 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) |
| 268 | 268 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r3115 | r3116 | |
|---|---|---|
| 105 | 105 | AM_RANGE(0x2000, 0x21ff) AM_READ(K007420_r) /* Sprite RAM */ |
| 106 | 106 | AM_RANGE(0x2200, 0x23ff) AM_READ(K007342_scroll_r) /* Scroll RAM */ |
| 107 | 107 | AM_RANGE(0x2400, 0x247f) AM_READ(SMH_RAM) /* Palette */ |
| 108 | AM_RANGE(0x2e01, 0x2e01) AM_READ(input_port_3_r) /* 1P controls */ | |
| 109 | AM_RANGE(0x2e02, 0x2e02) AM_READ(input_port_4_r) /* 2P controls */ | |
| 110 | AM_RANGE(0x2e03, 0x2e03) AM_READ(input_port_1_r) /* DISPW #2 */ | |
| 111 | AM_RANGE(0x2e40, 0x2e40) AM_READ(input_port_0_r) /* DIPSW #1 */ | |
| 112 | AM_RANGE(0x2e00, 0x2e00) AM_READ(input_port_2_r) /* coinsw, testsw, startsw */ | |
| 108 | AM_RANGE(0x2e01, 0x2e01) AM_READ_PORT("P1") | |
| 109 | AM_RANGE(0x2e02, 0x2e02) AM_READ_PORT("P2") | |
| 110 | AM_RANGE(0x2e03, 0x2e03) AM_READ_PORT("DSW2") | |
| 111 | AM_RANGE(0x2e40, 0x2e40) AM_READ_PORT("DSW1") | |
| 112 | AM_RANGE(0x2e00, 0x2e00) AM_READ_PORT("SYSTEM") | |
| 113 | 113 | AM_RANGE(0x4000, 0x5fff) AM_READ(SMH_RAM) /* RAM */ |
| 114 | 114 | AM_RANGE(0x6000, 0x7fff) AM_READ(SMH_BANK1) /* banked ROM */ |
| 115 | 115 | AM_RANGE(0x8000, 0xffff) AM_READ(SMH_ROM) /* ROM */ |
| r3115 | r3116 | |
| 154 | 154 | ***************************************************************************/ |
| 155 | 155 | |
| 156 | 156 | static INPUT_PORTS_START( rockrage ) |
| 157 | PORT_START("DSW1") | |
| 157 | PORT_START("DSW1") | |
| 158 | 158 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 159 | 159 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 160 | 160 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 190 | 190 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 191 | 191 | // PORT_DIPSETTING( 0x00, "Invalid" ) |
| 192 | 192 | |
| 193 | PORT_START("DSW2") | |
| 193 | PORT_START("DSW2") | |
| 194 | 194 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 195 | 195 | PORT_DIPSETTING( 0x03, "1" ) |
| 196 | 196 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 214 | 214 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 215 | 215 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 216 | 216 | |
| 217 | PORT_START("SYSTEM") | |
| 217 | PORT_START("SYSTEM") | |
| 218 | 218 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 219 | 219 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 220 | 220 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 228 | 228 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 229 | 229 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 230 | 230 | |
| 231 | PORT_START("P1") | |
| 231 | PORT_START("P1") | |
| 232 | 232 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 233 | 233 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 234 | 234 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 238 | 238 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 239 | 239 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 240 | 240 | |
| 241 | PORT_START("P2") | |
| 241 | PORT_START("P2") | |
| 242 | 242 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 243 | 243 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 244 | 244 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 247 | 247 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 248 | 248 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 249 | 249 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 250 | ||
| 251 | 250 | INPUT_PORTS_END |
| 252 | 251 | |
| 253 | 252 | static const gfx_layout charlayout = |
| r3115 | r3116 | |
|---|---|---|
| 129 | 129 | static ADDRESS_MAP_START( ttchamp_io, ADDRESS_SPACE_IO, 16 ) |
| 130 | 130 | AM_RANGE(0x0000, 0x0001) AM_WRITE(SMH_NOP) |
| 131 | 131 | |
| 132 | AM_RANGE(0x0002, 0x0003) AM_READ(input_port_0_word_r) | |
| 133 | AM_RANGE(0x0004, 0x0005) AM_READ(input_port_1_word_r) | |
| 132 | AM_RANGE(0x0002, 0x0003) AM_READ_PORT("SYSTEM") | |
| 133 | AM_RANGE(0x0004, 0x0005) AM_READ_PORT("P1_P2") | |
| 134 | 134 | |
| 135 | 135 | // AM_RANGE(0x0018, 0x0019) AM_READ(peno_rand2) |
| 136 | 136 | // AM_RANGE(0x001e, 0x001f) AM_READ(peno_rand2) |
| r3115 | r3116 | |
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | static INPUT_PORTS_START(ttchamp) |
| 152 | PORT_START("SYSTEM") /* 8bit */ | |
| 153 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 154 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 155 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) | |
| 156 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 157 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 158 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) | |
| 159 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 160 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 161 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) | |
| 162 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 163 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 164 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 165 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 166 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 167 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) | |
| 168 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 169 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 170 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) | |
| 171 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 172 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 173 | PORT_DIPNAME( 0x0100, 0x0100, "0x000003" ) | |
| 174 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 175 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 176 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) | |
| 177 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 178 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 179 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) | |
| 180 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 181 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 182 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) | |
| 183 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 184 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 185 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) | |
| 186 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 187 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 188 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) | |
| 189 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 190 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 191 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) | |
| 192 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 193 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 194 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) | |
| 195 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 196 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 152 | PORT_START("SYSTEM") | |
| 153 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 154 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 155 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) | |
| 156 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 157 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 158 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) | |
| 159 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 160 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 161 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) | |
| 162 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 163 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 164 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 165 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 166 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 167 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) | |
| 168 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 169 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 170 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) | |
| 171 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 172 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 173 | PORT_DIPNAME( 0x0100, 0x0100, "0x000003" ) | |
| 174 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 175 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 176 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) | |
| 177 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 178 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 179 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) | |
| 180 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 181 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 182 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) | |
| 183 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 184 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 185 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) | |
| 186 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 187 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 188 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) | |
| 189 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 190 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 191 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) | |
| 192 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 193 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 194 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) | |
| 195 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 196 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 197 | 197 | |
| 198 | PORT_START("P1_P2") /* 8bit */ | |
| 199 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_8WAY | |
| 200 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_8WAY | |
| 201 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_8WAY | |
| 202 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_8WAY | |
| 203 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 204 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 205 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 206 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 207 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_8WAY | |
| 208 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_8WAY | |
| 209 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_8WAY | |
| 210 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) PORT_8WAY | |
| 211 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 212 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 213 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 214 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 198 | PORT_START("P1_P2") | |
| 199 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_8WAY | |
| 200 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_8WAY | |
| 201 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_8WAY | |
| 202 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_8WAY | |
| 203 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 204 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 205 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 206 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 207 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_8WAY | |
| 208 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_8WAY | |
| 209 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_8WAY | |
| 210 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) PORT_8WAY | |
| 211 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 212 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 213 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 214 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 215 | 215 | |
| 216 | 216 | INPUT_PORTS_END |
| 217 | 217 |
| r3115 | r3116 | |
|---|---|---|
| 30 | 30 | { |
| 31 | 31 | case 0: |
| 32 | 32 | starshp1_attract = data; |
| 33 | discrete_sound_w(machine, STARSHP1_ATTRACT, data); | |
| 33 | 34 | break; |
| 34 | 35 | case 1: |
| 35 | 36 | starshp1_phasor = data; |
| 37 | discrete_sound_w(machine, STARSHP1_PHASOR_ON, data); | |
| 36 | 38 | break; |
| 37 | 39 | case 2: |
| 38 | | |
| 40 | discrete_sound_w(machine, STARSHP1_KICKER, data); | |
| 39 | 41 | break; |
| 40 | 42 | case 3: |
| 41 | | |
| 43 | discrete_sound_w(machine, STARSHP1_SL1, data); | |
| 42 | 44 | break; |
| 43 | 45 | case 4: |
| 44 | | |
| 46 | discrete_sound_w(machine, STARSHP1_SL2, data); | |
| 45 | 47 | break; |
| 46 | 48 | case 5: |
| 47 | | |
| 49 | discrete_sound_w(machine, STARSHP1_MOLVL, data); | |
| 48 | 50 | break; |
| 49 | 51 | case 6: |
| 50 | | |
| 52 | discrete_sound_w(machine, STARSHP1_NOISE_FREQ, data); | |
| 51 | 53 | break; |
| 52 | 54 | } |
| 53 | 55 | |
| r3115 | r3116 | |
| 62 | 64 | } |
| 63 | 65 | |
| 64 | 66 | |
| 65 | static | |
| 67 | static CUSTOM_I | |
| 66 | 68 | { |
| 67 | 69 | int val = 0; |
| 68 | 70 | |
| 69 | 71 | switch (starshp1_analog_in_select) |
| 70 | 72 | { |
| 71 | 73 | case 0: |
| 72 | val = input_port_read(machine, "STICKY"); | |
| 74 | val = input_port_read(field->port->machine, "STICKY"); | |
| 73 | 75 | break; |
| 74 | 76 | case 1: |
| 75 | val = input_port_read(machine, "STICKX"); | |
| 77 | val = input_port_read(field->port->machine, "STICKX"); | |
| 76 | 78 | break; |
| 77 | 79 | case 2: |
| 78 | 80 | val = 0x20; /* DAC feedback, not used */ |
| 79 | 81 | break; |
| 80 | 82 | case 3: |
| 81 | val = input_port_read(machine, "PLAYTIME"); | |
| 83 | val = input_port_read(field->port->machine, "PLAYTIME"); | |
| 82 | 84 | break; |
| 83 | 85 | } |
| 84 | 86 | |
| 85 | return | |
| 87 | return | |
| 86 | 88 | } |
| 87 | 89 | |
| 88 | 90 | |
| 89 | static | |
| 91 | static CUSTOM_I | |
| 90 | 92 | { |
| 91 | return | |
| 93 | return | |
| 92 | 94 | } |
| 93 | 95 | |
| 94 | 96 | |
| r3115 | r3116 | |
| 106 | 108 | starshp1_ship_size = data; |
| 107 | 109 | break; |
| 108 | 110 | case 2: |
| 109 | | |
| 111 | discrete_sound_w(machine, STARSHP1_NOISE_AMPLITUDE, data); | |
| 110 | 112 | break; |
| 111 | 113 | case 3: |
| 112 | | |
| 114 | discrete_sound_w(machine, STARSHP1_TONE_PITCH, data); | |
| 113 | 115 | break; |
| 114 | 116 | case 4: |
| 115 | | |
| 117 | discrete_sound_w(machine, STARSHP1_MOTOR_SPEED, data); | |
| 116 | 118 | break; |
| 117 | 119 | case 5: |
| 118 | 120 | starshp1_circle_hpos = data; |
| r3115 | r3116 | |
| 164 | 166 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 165 | 167 | AM_RANGE(0x0000, 0x00ff) AM_READ(SMH_RAM) AM_MIRROR(0x100) |
| 166 | 168 | AM_RANGE(0x2c00, 0x3fff) AM_READ(SMH_ROM) |
| 167 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 168 | AM_RANGE(0xb000, 0xb000) AM_READ(starshp1_port_1_r) | |
| 169 | AM_RANGE(0xc400, 0xc400) AM_READ(starshp1_port_2_r) | |
| 169 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("SYSTEM") | |
| 170 | AM_RANGE(0xb000, 0xb000) AM_READ_PORT("VBLANK") | |
| 171 | AM_RANGE(0xc400, 0xc400) AM_READ_PORT("COINAGE") | |
| 170 | 172 | AM_RANGE(0xd800, 0xd800) AM_READ(starshp1_rng_r) |
| 171 | 173 | AM_RANGE(0xf000, 0xffff) AM_READ(SMH_ROM) |
| 172 | 174 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 203 | 205 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 204 | 206 | |
| 205 | 207 | PORT_START("VBLANK") |
| 206 | PORT_BIT( 0x3f, IP_ACTIVE_HIGH, IPT_ | |
| 208 | PORT_BIT( 0x3f, IP_ACTIVE_HIGH, IPT_ | |
| 207 | 209 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) |
| 208 | 210 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) |
| 209 | 211 | |
| 210 | 212 | PORT_START("COINAGE") |
| 211 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED ) /* collision latch */ | |
| 212 | PORT_DIPNAME( 0x70, 0x20, DEF_STR( Coinage )) | |
| 213 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C )) | |
| 214 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_1C )) | |
| 215 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C )) | |
| 213 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(collision_latch_r, NULL) /* collision latch */ | |
| 214 | PORT_DIPNAME( 0x70, 0x20, DEF_STR( Coinage ) ) | |
| 215 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 216 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_1C ) ) | |
| 217 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) | |
| 216 | 218 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) /* ground */ |
| 217 | 219 | |
| 218 | 220 | PORT_START("PLAYTIME") |
| r3115 | r3116 | |
| 320 | 322 | MDRV_VIDEO_EOF(starshp1) |
| 321 | 323 | |
| 322 | 324 | /* sound hardware */ |
| 325 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 326 | ||
| 327 | MDRV_SOUND_ADD("discrete", DISCRETE, 0) | |
| 328 | MDRV_SOUND_CONFIG_DISCRETE(starshp1) | |
| 329 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 323 | 330 | MACHINE_DRIVER_END |
| 324 | 331 | |
| 325 | 332 | |
| r3115 | r3116 | |
| 392 | 399 | ROM_END |
| 393 | 400 | |
| 394 | 401 | |
| 395 | GAME( 1977, starshp1, 0, starshp1, starshp1, 0, ORIENTATION_FLIP_X, "Atari", "Starship 1", GAME_NO_SOUND ) | |
| 396 | GAME( 1977, starshpp, starshp1, starshp1, starshp1, 0, ORIENTATION_FLIP_X, "Atari", "Starship 1 (prototype?)", GAME_NO_SOUND ) | |
| 402 | GAME( 1977, starshp1, 0, starshp1, starshp1, 0, ORIENTATION_FLIP_X, "Atari", "Starship 1", GAME_IMPERFECT_SOUND ) | |
| 403 | GAME( 1977, starshpp, starshp1, starshp1, starshp1, 0, ORIENTATION_FLIP_X, "Atari", "Starship 1 (prototype?)", GAME_IMPERFECT_SOUND ) |
| r3115 | r3116 | |
|---|---|---|
| 16 | 16 | #include "driver.h" |
| 17 | 17 | #include "cpu/m6809/m6809.h" |
| 18 | 18 | #include "cpu/z80/z80.h" |
| 19 | #include "cpu/ | |
| 19 | #include "cpu/mcs48 | |
| 20 | 20 | #include "sound/ay8910.h" |
| 21 | 21 | #include "sound/dac.h" |
| 22 | 22 | |
| r3115 | r3116 | |
| 140 | 140 | AM_RANGE(0x0000, 0x0fff) AM_READ(SMH_RAM) AM_SHARE(1)/* Work RAM (Shared with CPU A) */ |
| 141 | 141 | AM_RANGE(0x1000, 0x13ff) AM_READ(SMH_RAM) AM_SHARE(2) /* Color RAM (shared with CPU A) */ |
| 142 | 142 | AM_RANGE(0x1400, 0x17ff) AM_READ(SMH_RAM) AM_SHARE(3) /* Video RAM (shared with CPU A) */ |
| 143 | AM_RANGE(0x1800, 0x1800) AM_READ(input_port_0_r) /* DIPSW #1 */ | |
| 144 | AM_RANGE(0x1a00, 0x1a00) AM_READ(input_port_3_r) /* COINSW */ | |
| 145 | AM_RANGE(0x1a01, 0x1a01) AM_READ(input_port_4_r) /* 1P inputs */ | |
| 146 | AM_RANGE(0x1a02, 0x1a02) AM_READ(input_port_5_r) /* 2P inputs */ | |
| 147 | AM_RANGE(0x1a03, 0x1a03) AM_READ(input_port_2_r) /* DIPSW #3 */ | |
| 148 | AM_RANGE(0x1c00, 0x1c00) AM_READ(input_port_1_r) /* DISPW #2 */ | |
| 143 | AM_RANGE(0x1800, 0x1800) AM_READ_PORT("DSW1") | |
| 144 | AM_RANGE(0x1a00, 0x1a00) AM_READ_PORT("SYSTEM") | |
| 145 | AM_RANGE(0x1a01, 0x1a01) AM_READ_PORT("P1") | |
| 146 | AM_RANGE(0x1a02, 0x1a02) AM_READ_PORT("P2") | |
| 147 | AM_RANGE(0x1a03, 0x1a03) AM_READ_PORT("DSW3") | |
| 148 | AM_RANGE(0x1c00, 0x1c00) AM_READ_PORT("DSW2") | |
| 149 | 149 | // AM_RANGE(0x1e00, 0x1e00) AM_READ(SMH_NOP) /* ??? seems to be important */ |
| 150 | 150 | AM_RANGE(0xc000, 0xc7ff) AM_READ(SMH_RAM) AM_SHARE(4) /* Shared RAM with the CPU A */ |
| 151 | 151 | AM_RANGE(0xe000, 0xffff) AM_READ(SMH_ROM) /* ROM */ |
| r3115 | r3116 | |
| 191 | 191 | ADDRESS_MAP_END |
| 192 | 192 | |
| 193 | 193 | static ADDRESS_MAP_START( i8039_writeport, ADDRESS_SPACE_IO, 8 ) |
| 194 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(dac_0_data_w) | |
| 195 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(i8039_irqen_and_status_w) | |
| 194 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(dac_0_data_w) | |
| 195 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(i8039_irqen_and_status_w) | |
| 196 | 196 | ADDRESS_MAP_END |
| 197 | 197 | |
| 198 | 198 | |
| r3115 | r3116 | |
| 203 | 203 | ***************************************************************************/ |
| 204 | 204 | |
| 205 | 205 | static INPUT_PORTS_START( pandoras ) |
| 206 | PORT_START("DSW1") | |
| 206 | PORT_START("DSW1") | |
| 207 | 207 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) |
| 208 | 208 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 209 | 209 | PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 239 | 239 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) |
| 240 | 240 | // PORT_DIPSETTING( 0x00, "Invalid" ) |
| 241 | 241 | |
| 242 | PORT_START("DSW2") | |
| 242 | PORT_START("DSW2") | |
| 243 | 243 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 244 | 244 | PORT_DIPSETTING( 0x03, "3" ) |
| 245 | 245 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
| 262 | 262 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 263 | 263 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 264 | 264 | |
| 265 | PORT_START("DS | |
| 265 | PORT_START("DSW3") | |
| 266 | 266 | PORT_DIPNAME( 0x01, 0x01, "Freeze" ) |
| 267 | 267 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 268 | 268 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 288 | 288 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 289 | 289 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 290 | 290 | |
| 291 | PORT_START("SYSTEM") | |
| 291 | PORT_START("SYSTEM") | |
| 292 | 292 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 293 | 293 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 294 | 294 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 297 | 297 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 298 | 298 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 299 | 299 | |
| 300 | PORT_START("P1") | |
| 300 | PORT_START("P1") | |
| 301 | 301 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 302 | 302 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 303 | 303 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 305 | 305 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 306 | 306 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 307 | 307 | |
| 308 | PORT_START("P2") | |
| 308 | PORT_START("P2") | |
| 309 | 309 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 310 | 310 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 311 | 311 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
|---|---|---|
| 214 | 214 | AM_RANGE(0x500000, 0x501fff) AM_READWRITE(pandora_spriteram_LSB_r, pandora_spriteram_LSB_w ) // sprites |
| 215 | 215 | AM_RANGE(0x600000, 0x600fff) AM_RAM_WRITE(paletteram16_xGGGGGRRRRRBBBBB_word_w) AM_BASE(&paletteram16) // Palette |
| 216 | 216 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE(sandscrp_coin_counter_w) // Coin Counters (Lockout unused) |
| 217 | AM_RANGE(0xb00000, 0xb00001) AM_READ(input_port_0_word_r) // Inputs | |
| 218 | AM_RANGE(0xb00002, 0xb00003) AM_READ(input_port_1_word_r) // | |
| 219 | AM_RANGE(0xb00004, 0xb00005) AM_READ(input_port_2_word_r) // | |
| 220 | AM_RANGE(0xb00006, 0xb00007) AM_READ(input_port_3_word_r) // | |
| 217 | AM_RANGE(0xb00000, 0xb00001) AM_READ_PORT("P1") | |
| 218 | AM_RANGE(0xb00002, 0xb00003) AM_READ_PORT("P2") | |
| 219 | AM_RANGE(0xb00004, 0xb00005) AM_READ_PORT("SYSTEM") | |
| 220 | AM_RANGE(0xb00006, 0xb00007) AM_READ_PORT("UNK") | |
| 221 | 221 | AM_RANGE(0xec0000, 0xec0001) AM_READ(watchdog_reset16_r) // |
| 222 | 222 | AM_RANGE(0x800000, 0x800001) AM_READ(sandscrp_irq_cause_r) // IRQ Cause |
| 223 | 223 | AM_RANGE(0xe00000, 0xe00001) AM_READWRITE(sandscrp_soundlatch_word_r, sandscrp_soundlatch_word_w) // From/To Sound CPU |
| r3115 | r3116 | |
| 284 | 284 | ***************************************************************************/ |
| 285 | 285 | |
| 286 | 286 | static INPUT_PORTS_START( sandscrp ) |
| 287 | PORT_START("P1") / | |
| 287 | PORT_START("P1") /* | |
| 288 | 288 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 289 | 289 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 290 | 290 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 295 | 295 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 296 | 296 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 297 | 297 | |
| 298 | PORT_START("P2") / | |
| 298 | PORT_START("P2") /* | |
| 299 | 299 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 300 | 300 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 301 | 301 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| r3115 | r3116 | |
| 306 | 306 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 307 | 307 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 308 | 308 | |
| 309 | PORT_START("SYSTEM") / | |
| 309 | PORT_START("SYSTEM") /* | |
| 310 | 310 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 311 | 311 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) |
| 312 | 312 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r3115 | r3116 | |
| 317 | 317 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 318 | 318 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 319 | 319 | |
| 320 | PORT_START("UNK") / | |
| 320 | PORT_START("UNK") /* | |
| 321 | 321 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 322 | 322 | |
| 323 | PORT_START("DSW1") / | |
| 323 | PORT_START("DSW1") /* | |
| 324 | 324 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 325 | 325 | PORT_DIPSETTING( 0x02, "1" ) |
| 326 | 326 | PORT_DIPSETTING( 0x01, "2" ) |
| r3115 | r3116 | |
| 342 | 342 | PORT_DIPSETTING( 0x40, "500K, 1000K" ) |
| 343 | 343 | PORT_DIPSETTING( 0x00, "1000K, 3000K" ) |
| 344 | 344 | |
| 345 | PORT_START("DSW2") / | |
| 345 | PORT_START("DSW2") /* | |
| 346 | 346 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) ) |
| 347 | 347 | PORT_DIPSETTING( 0x0a, DEF_STR( 6C_1C ) ) |
| 348 | 348 | PORT_DIPSETTING( 0x0b, DEF_STR( 5C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 97 | 97 | /* end of extern code & data */ |
| 98 | 98 | |
| 99 | 99 | static emu_timer *scanline_timer; |
| 100 | static MACHINE_START( ddragon ); | |
| 101 | static WRITE8_HANDLER( ddragon_bankswitch_w ); | |
| 102 | 100 | |
| 103 | 101 | /* private globals */ |
| 104 | 102 | static UINT8 dd_sub_cpu_busy; |
| 105 | 103 | static UINT8 sprite_irq, sound_irq, ym_irq, snd_cpu; |
| 106 | 104 | static UINT32 adpcm_pos[2], adpcm_end[2]; |
| 107 | 105 | static UINT8 adpcm_idle[2]; |
| 106 | static int adpcm_data[2]; | |
| 108 | 107 | static UINT8 *darktowr_mcu_ports; |
| 109 | 108 | static UINT8 *rambase; |
| 110 | 109 | /* end of private globals */ |
| r3115 | r3116 | |
| 196 | 195 | static MACHINE_RESET( ddragon ) |
| 197 | 196 | { |
| 198 | 197 | dd_sub_cpu_busy = 1; |
| 198 | adpcm_pos[0] = adpcm_pos[1] = 0; | |
| 199 | adpcm_end[0] = adpcm_end[1] = 0; | |
| 199 | 200 | adpcm_idle[0] = adpcm_idle[1] = 1; |
| 201 | adpcm_data[0] = adpcm_data[1] = -1; | |
| 200 | 202 | timer_adjust_oneshot(scanline_timer, video_screen_get_time_until_pos(machine->primary_screen, 0, 0), 0); |
| 201 | 203 | } |
| 202 | 204 | |
| r3115 | r3116 | |
| 463 | 465 | |
| 464 | 466 | static void dd_adpcm_int(running_machine *machine, int chip) |
| 465 | 467 | { |
| 466 | static int adpcm_data[2] = { -1, -1 }; | |
| 467 | ||
| 468 | 468 | if (adpcm_pos[chip] >= adpcm_end[chip] || adpcm_pos[chip] >= 0x10000) |
| 469 | 469 | { |
| 470 | 470 | adpcm_idle[chip] = 1; |
| r3115 | r3116 | |
|---|---|---|
| 67 | 67 | /* bit 8 is EEPROM data */ |
| 68 | 68 | /* bit 9 is EEPROM ready */ |
| 69 | 69 | /* bit 10 is service button */ |
| 70 | res = | |
| 70 | res = | |
| 71 | 71 | |
| 72 | 72 | if (init_eeprom_count) |
| 73 | 73 | { |
| r3115 | r3116 | |
| 240 | 240 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 241 | 241 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 242 | 242 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START2 ) |
| 243 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_UNUSED ) // EEPROM data | |
| 244 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNUSED ) // EEPROM ready (always 1) | |
| 243 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) // EEPROM data | |
| 244 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNUSED ) // EEPROM ready (always 1) | |
| 245 | 245 | PORT_SERVICE_NO_TOGGLE(0x0400, IP_ACTIVE_LOW ) |
| 246 | 246 | PORT_BIT( 0xf800, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 247 | 247 | INPUT_PORTS_END |
| r3115 | r3116 | |
|---|---|---|
| 180 | 180 | |
| 181 | 181 | static ADDRESS_MAP_START( tubep_main_portmap, ADDRESS_SPACE_IO, 8 ) |
| 182 | 182 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 183 | AM_RANGE(0x80, 0x80) AM_READ(input_port_3_r) | |
| 184 | AM_RANGE(0x90, 0x90) AM_READ(input_port_4_r) | |
| 185 | AM_RANGE(0xa0, 0xa0) AM_READ(input_port_5_r) | |
| 183 | AM_RANGE(0x80, 0x80) AM_READ_PORT("DSW1") | |
| 184 | AM_RANGE(0x90, 0x90) AM_READ_PORT("DSW2") | |
| 185 | AM_RANGE(0xa0, 0xa0) AM_READ_PORT("DSW3") | |
| 186 | 186 | |
| 187 | AM_RANGE(0xb0, 0xb0) AM_READ(input_port_2_r) | |
| 188 | AM_RANGE(0xc0, 0xc0) AM_READ(input_port_1_r) | |
| 189 | AM_RANGE(0xd0, 0xd0) AM_READ(input_port_0_r) | |
| 187 | AM_RANGE(0xb0, 0xb0) AM_READ_PORT("SYSTEM") | |
| 188 | AM_RANGE(0xc0, 0xc0) AM_READ_PORT("P2") | |
| 189 | AM_RANGE(0xd0, 0xd0) AM_READ_PORT("P1") | |
| 190 | 190 | |
| 191 | 191 | AM_RANGE(0x80, 0x80) AM_WRITE(main_cpu_irq_line_clear_w) |
| 192 | 192 | AM_RANGE(0xb0, 0xb7) AM_WRITE(tubep_LS259_w) |
| r3115 | r3116 | |
| 422 | 422 | |
| 423 | 423 | static ADDRESS_MAP_START( rjammer_main_portmap, ADDRESS_SPACE_IO, 8 ) |
| 424 | 424 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 425 | AM_RANGE(0x00, 0x00) AM_READ(input_port_2_r) /* a bug in game code (during attract mode) */ | |
| 426 | AM_RANGE(0x80, 0x80) AM_READ(input_port_2_r) | |
| 427 | AM_RANGE(0x90, 0x90) AM_READ(input_port_3_r) | |
| 428 | AM_RANGE(0xa0, 0xa0) AM_READ(input_port_4_r) | |
| 429 | AM_RANGE(0xb0, 0xb0) AM_READ(input_port_0_r) | |
| 430 | AM_RANGE(0xc0, 0xc0) AM_READ(input_port_1_r) | |
| 425 | AM_RANGE(0x00, 0x00) AM_READ_PORT("DSW2") /* a bug in game code (during attract mode) */ | |
| 426 | AM_RANGE(0x80, 0x80) AM_READ_PORT("DSW2") | |
| 427 | AM_RANGE(0x90, 0x90) AM_READ_PORT("DSW1") | |
| 428 | AM_RANGE(0xa0, 0xa0) AM_READ_PORT("SYSTEM") | |
| 429 | AM_RANGE(0xb0, 0xb0) AM_READ_PORT("P1") | |
| 430 | AM_RANGE(0xc0, 0xc0) AM_READ_PORT("P2") | |
| 431 | 431 | |
| 432 | 432 | AM_RANGE(0xd0, 0xd7) AM_WRITE(rjammer_LS259_w) |
| 433 | 433 | AM_RANGE(0xe0, 0xe0) AM_WRITE(main_cpu_irq_line_clear_w) /* clear IRQ interrupt */ |
| r3115 | r3116 | |
| 683 | 683 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 684 | 684 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 685 | 685 | |
| 686 | PORT_START(" | |
| 686 | PORT_START(" | |
| 687 | 687 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 688 | 688 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 689 | 689 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) |
| r3115 | r3116 | |
| 795 | 795 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) |
| 796 | 796 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL |
| 797 | 797 | |
| 798 | PORT_START("DSW2") | |
| 799 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:6") | |
| 800 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 801 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 802 | PORT_DIPNAME( 0x02, 0x02, "Bonus Time" ) PORT_DIPLOCATION("SW2:5") | |
| 803 | PORT_DIPSETTING( 0x02, "100" ) | |
| 804 | PORT_DIPSETTING( 0x00, "200" ) | |
| 805 | PORT_DIPNAME( 0x0c, 0x0c, "Clear Men" ) PORT_DIPLOCATION("SW2:4,3") | |
| 806 | PORT_DIPSETTING( 0x0c, "20" ) | |
| 807 | PORT_DIPSETTING( 0x08, "30" ) | |
| 808 | PORT_DIPSETTING( 0x04, "40" ) | |
| 809 | PORT_DIPSETTING( 0x00, "50" ) | |
| 810 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:2") | |
| 811 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 812 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 813 | PORT_DIPNAME( 0x20, 0x20, "Time" ) PORT_DIPLOCATION("SW2:1") | |
| 814 | PORT_DIPSETTING( 0x20, "40" ) | |
| 815 | PORT_DIPSETTING( 0x00, "50" ) | |
| 798 | PORT_START("SYSTEM") | |
| 799 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 800 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 801 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 802 | PORT_SERVICE( 0x08, IP_ACTIVE_LOW ) | |
| 803 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 804 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 816 | 805 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 817 | 806 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 818 | 807 | |
| r3115 | r3116 | |
| 836 | 825 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 837 | 826 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 838 | 827 | |
| 839 | PORT_START("Coins_Service") | |
| 840 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 841 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 842 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 843 | PORT_SERVICE( 0x08, IP_ACTIVE_LOW ) | |
| 844 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 845 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 828 | PORT_START("DSW2") | |
| 829 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:6") | |
| 830 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 831 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 832 | PORT_DIPNAME( 0x02, 0x02, "Bonus Time" ) PORT_DIPLOCATION("SW2:5") | |
| 833 | PORT_DIPSETTING( 0x02, "100" ) | |
| 834 | PORT_DIPSETTING( 0x00, "200" ) | |
| 835 | PORT_DIPNAME( 0x0c, 0x0c, "Clear Men" ) PORT_DIPLOCATION("SW2:4,3") | |
| 836 | PORT_DIPSETTING( 0x0c, "20" ) | |
| 837 | PORT_DIPSETTING( 0x08, "30" ) | |
| 838 | PORT_DIPSETTING( 0x04, "40" ) | |
| 839 | PORT_DIPSETTING( 0x00, "50" ) | |
| 840 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:2") | |
| 841 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 842 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 843 | PORT_DIPNAME( 0x20, 0x20, "Time" ) PORT_DIPLOCATION("SW2:1") | |
| 844 | PORT_DIPSETTING( 0x20, "40" ) | |
| 845 | PORT_DIPSETTING( 0x00, "50" ) | |
| 846 | 846 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 847 | 847 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 848 | 848 | INPUT_PORTS_END |
| r3115 | r3116 | |
|---|---|---|
| 123 | 123 | The DIP sheet also seems to suggest the use of a 4-way joystick and 2 buttons, |
| 124 | 124 | one for shoot and one for select. |
| 125 | 125 | |
| 126 | ||
| 127 | 2008-08 | |
| 128 | Dip locations added based on the notes above. | |
| 129 | ||
| 126 | 130 | */ |
| 127 | 131 | |
| 128 | 132 | #include "driver.h" |
| r3115 | r3116 | |
| 169 | 173 | |
| 170 | 174 | static ADDRESS_MAP_START( ppmast93_cpu1_io, ADDRESS_SPACE_IO, 8 ) |
| 171 | 175 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 172 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) | |
| 173 | AM_RANGE(0x02, 0x02) AM_READ(input_port_1_r) | |
| 174 | AM_RANGE(0x04, 0x04) AM_READ(input_port_2_r) | |
| 175 | AM_RANGE(0x06, 0x06) AM_READ(input_port_3_r) | |
| 176 | AM_RANGE(0x08, 0x08) AM_READ(input_port_4_r) | |
| 176 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") | |
| 177 | AM_RANGE(0x02, 0x02) AM_READ_PORT("P2") | |
| 178 | AM_RANGE(0x04, 0x04) AM_READ_PORT("SYSTEM") | |
| 179 | AM_RANGE(0x06, 0x06) AM_READ_PORT("DSW1") | |
| 180 | AM_RANGE(0x08, 0x08) AM_READ_PORT("DSW2") | |
| 177 | 181 | |
| 178 | 182 | AM_RANGE(0x00, 0x00) AM_WRITE(soundlatch_w) |
| 179 | 183 | AM_RANGE(0x04, 0x04) AM_WRITE(ppmast93_port4_w) |
| r3115 | r3116 | |
| 202 | 206 | ADDRESS_MAP_END |
| 203 | 207 | |
| 204 | 208 | static INPUT_PORTS_START( ppmast93 ) |
| 205 | PORT_START("P1") | |
| 209 | PORT_START("P1") | |
| 206 | 210 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(1) |
| 207 | 211 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) |
| 208 | 212 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 212 | 216 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // nothing? |
| 213 | 217 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) |
| 214 | 218 | |
| 215 | PORT_START("P2") | |
| 219 | PORT_START("P2") | |
| 216 | 220 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(2) |
| 217 | 221 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(2) |
| 218 | 222 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 222 | 226 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) // nothing? |
| 223 | 227 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 224 | 228 | |
| 225 | PORT_START("SYSTEM") | |
| 229 | PORT_START("SYSTEM") | |
| 226 | 230 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 227 | 231 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 228 | 232 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 233 | 237 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 234 | 238 | |
| 235 | 239 | PORT_START("DSW1") |
| 236 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) | |
| 240 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4") | |
| 237 | 241 | PORT_DIPSETTING( 0x01, DEF_STR( 5C_1C ) ) |
| 238 | 242 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 239 | 243 | PORT_DIPSETTING( 0x07, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 250 | 254 | PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) |
| 251 | 255 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) |
| 252 | 256 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) |
| 253 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) | |
| 257 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7,8") | |
| 254 | 258 | PORT_DIPSETTING( 0x10, DEF_STR( 5C_1C ) ) |
| 255 | 259 | PORT_DIPSETTING( 0x40, DEF_STR( 4C_1C ) ) |
| 256 | 260 | PORT_DIPSETTING( 0x70, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 269 | 273 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) |
| 270 | 274 | |
| 271 | 275 | PORT_START("DSW2") |
| 272 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) | |
| 276 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 273 | 277 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) |
| 274 | 278 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 275 | 279 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) |
| 276 | 280 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) |
| 277 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) | |
| 281 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:3") | |
| 278 | 282 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 279 | 283 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 280 | PORT_SERVICE( 0x08, IP_ACTIVE_LOW ) | |
| 281 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 282 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 283 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 284 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 285 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 286 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 287 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 288 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 289 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 290 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 291 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 292 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 284 | PORT_SERVICE_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:4" ) | |
| 285 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "SW2:5" ) | |
| 286 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "SW2:6" ) | |
| 287 | PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "SW2:7" ) | |
| 288 | PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "SW2:8" ) | |
| 293 | 289 | INPUT_PORTS_END |
| 294 | 290 | |
| 295 | 291 | static const gfx_layout tiles8x8_layout = |
| r3115 | r3116 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 80 | 80 | AM_RANGE(0x0000, 0x07ff) AM_READ(SMH_RAM) |
| 81 | AM_RANGE(0x1800, 0x1800) AM_READ(input_port_0_r) | |
| 82 | AM_RANGE(0x1a00, 0x1a00) AM_READ(input_port_1_r) | |
| 83 | AM_RANGE(0x1c00, 0x1c00) AM_READ(input_port_2_r) | |
| 81 | AM_RANGE(0x1800, 0x1800) AM_READ_PORT("P1") | |
| 82 | AM_RANGE(0x1a00, 0x1a00) AM_READ_PORT("P2") | |
| 83 | AM_RANGE(0x1c00, 0x1c00) AM_READ_PORT("DSW") | |
| 84 | 84 | AM_RANGE(0x4000, 0x5fff) AM_READ(SMH_BANK1) |
| 85 | 85 | AM_RANGE(0x6000, 0x7fff) AM_READ(SMH_BANK2) |
| 86 | 86 | AM_RANGE(0x8000, 0xffff) AM_READ(SMH_ROM) |
| r3115 | r3116 | |
| 141 | 141 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 142 | 142 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 143 | 143 | |
| 144 | PORT_START("DSW") | |
| 144 | PORT_START("DSW") | |
| 145 | 145 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 146 | 146 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 147 | 147 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 69 | 69 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 70 | 70 | AM_RANGE(0x00, 0x7f) AM_READ(nb1413m3_sndrom_r) |
| 71 | 71 | AM_RANGE(0x81, 0x81) AM_READ(ay8910_read_port_0_r) |
| 72 | AM_RANGE(0x90, 0x90) AM_READ | |
| 72 | AM_RANGE(0x90, 0x90) AM_READ | |
| 73 | 73 | AM_RANGE(0xa0, 0xa0) AM_READ(nb1413m3_inputport1_r) |
| 74 | 74 | AM_RANGE(0xb0, 0xb0) AM_READ(nb1413m3_inputport2_r) |
| 75 | 75 | AM_RANGE(0xd0, 0xd0) AM_READ(SMH_NOP) // unknown |
| r3115 | r3116 | |
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | static INPUT_PORTS_START( hyhoo ) |
| 97 | PORT_START("DSWA") | |
| 97 | PORT_START("DSWA") | |
| 98 | 98 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) |
| 99 | 99 | PORT_DIPSETTING( 0x00, "4 (Easy)" ) |
| 100 | 100 | PORT_DIPSETTING( 0x01, "3" ) |
| r3115 | r3116 | |
| 115 | 115 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 116 | 116 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 117 | 117 | |
| 118 | PORT_START("DSWB") | |
| 118 | PORT_START("DSWB") | |
| 119 | 119 | PORT_DIPNAME( 0x01, 0x01, "Bonus Game" ) |
| 120 | 120 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 121 | 121 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 138 | 138 | PORT_DIPSETTING( 0x40, "90%" ) |
| 139 | 139 | PORT_DIPSETTING( 0x00, "95%" ) |
| 140 | 140 | |
| 141 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 142 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 141 | PORT_START("SYSTEM") | |
| 142 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 143 | 143 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // NOT USED |
| 144 | 144 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) // SERVICE |
| 145 | 145 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Memory Reset") // MEMORY RESET |
| r3115 | r3116 | |
| 148 | 148 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) // NOT USED |
| 149 | 149 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 |
| 150 | 150 | |
| 151 | PORT_START("IN0") | |
| 151 | PORT_START("IN0") | |
| 152 | 152 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 153 | 153 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 154 | 154 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 158 | 158 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 159 | 159 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 160 | 160 | |
| 161 | PORT_START("IN1") | |
| 161 | PORT_START("IN1") | |
| 162 | 162 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 163 | 163 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 164 | 164 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 ) |
| r3115 | r3116 | |
| 168 | 168 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 169 | 169 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 170 | 170 | |
| 171 | PORT_START("IN2") | |
| 171 | PORT_START("IN2") | |
| 172 | 172 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) |
| 173 | 173 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) |
| 174 | 174 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) |
| r3115 | r3116 | |
| 180 | 180 | INPUT_PORTS_END |
| 181 | 181 | |
| 182 | 182 | static INPUT_PORTS_START( hyhoo2 ) |
| 183 | PORT_START("DSWA") | |
| 183 | PORT_START("DSWA") | |
| 184 | 184 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) |
| 185 | 185 | PORT_DIPSETTING( 0x00, "4 (Easy)" ) |
| 186 | 186 | PORT_DIPSETTING( 0x01, "3" ) |
| r3115 | r3116 | |
| 203 | 203 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 204 | 204 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 205 | 205 | |
| 206 | PORT_START("DSWB") | |
| 206 | PORT_START("DSWB") | |
| 207 | 207 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 208 | 208 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 209 | 209 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r3115 | r3116 | |
| 213 | 213 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 214 | 214 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 215 | 215 | |
| 216 | PORT_START("SYSTEM") /* (2) PORT 0 */ | |
| 217 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // DRAW BUSY | |
| 216 | PORT_START("SYSTEM") | |
| 217 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_busyflag_r, NULL) // DRAW BUSY | |
| 218 | 218 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // NOT USED |
| 219 | 219 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) // SERVICE |
| 220 | 220 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Memory Reset") // MEMORY RESET |
| r3115 | r3116 | |
| 223 | 223 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) // NOT USED |
| 224 | 224 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) // COIN2 |
| 225 | 225 | |
| 226 | PORT_START("IN0") | |
| 226 | PORT_START("IN0") | |
| 227 | 227 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 228 | 228 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 229 | 229 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 233 | 233 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 234 | 234 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 235 | 235 | |
| 236 | PORT_START("IN1") | |
| 236 | PORT_START("IN1") | |
| 237 | 237 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 238 | 238 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 239 | 239 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 ) |
| r3115 | r3116 | |
| 243 | 243 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 244 | 244 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 245 | 245 | |
| 246 | PORT_START("IN2") | |
| 246 | PORT_START("IN2") | |
| 247 | 247 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) |
| 248 | 248 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) |
| 249 | 249 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) |
| r3115 | r3116 | |
|---|---|---|
| 59 | 59 | AM_RANGE(0xdc00, 0xdfff) AM_RAM_WRITE(solomon_videoram2_w) AM_BASE(&solomon_videoram2) |
| 60 | 60 | AM_RANGE(0xe000, 0xe07f) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 61 | 61 | AM_RANGE(0xe400, 0xe5ff) AM_RAM_WRITE(paletteram_xxxxBBBBGGGGRRRR_le_w) AM_BASE(&paletteram) |
| 62 | AM_RANGE(0xe600, 0xe600) AM_READ(input_port_0_r) | |
| 63 | AM_RANGE(0xe601, 0xe601) AM_READ(input_port_1_r) | |
| 64 | AM_RANGE(0xe602, 0xe602) AM_READ(input_port_2_r) | |
| 62 | AM_RANGE(0xe600, 0xe600) AM_READ_PORT("P1") | |
| 63 | AM_RANGE(0xe601, 0xe601) AM_READ_PORT("P2") | |
| 64 | AM_RANGE(0xe602, 0xe602) AM_READ_PORT("SYSTEM") | |
| 65 | 65 | AM_RANGE(0xe603, 0xe603) AM_READ(solomon_0xe603_r) |
| 66 | AM_RANGE(0xe604, 0xe604) AM_READ(input_port_3_r) /* DSW1 */ | |
| 67 | AM_RANGE(0xe605, 0xe605) AM_READ(input_port_4_r) /* DSW2 */ | |
| 66 | AM_RANGE(0xe604, 0xe604) AM_READ_PORT("DSW1") | |
| 67 | AM_RANGE(0xe605, 0xe605) AM_READ_PORT("DSW2") | |
| 68 | 68 | AM_RANGE(0xe600, 0xe600) AM_WRITE(interrupt_enable_w) |
| 69 | 69 | AM_RANGE(0xe604, 0xe604) AM_WRITE(solomon_flipscreen_w) |
| 70 | 70 | AM_RANGE(0xe800, 0xe800) AM_WRITE(solomon_sh_command_w) |
| r3115 | r3116 | |
| 91 | 91 | |
| 92 | 92 | |
| 93 | 93 | static INPUT_PORTS_START( solomon ) |
| 94 | PORT_START("P1") | |
| 94 | PORT_START("P1") | |
| 95 | 95 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 96 | 96 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 97 | 97 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 101 | 101 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 102 | 102 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 103 | 103 | |
| 104 | PORT_START("P2") | |
| 104 | PORT_START("P2") | |
| 105 | 105 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 106 | 106 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 107 | 107 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 111 | 111 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 112 | 112 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 113 | 113 | |
| 114 | PORT_START("SYSTEM") | |
| 114 | PORT_START("SYSTEM") | |
| 115 | 115 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) |
| 116 | 116 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 117 | 117 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r3115 | r3116 | |
| 121 | 121 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 122 | 122 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 123 | 123 | |
| 124 | PORT_START("DSW1") | |
| 124 | PORT_START("DSW1") | |
| 125 | 125 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 126 | 126 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 127 | 127 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 144 | 144 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) |
| 145 | 145 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_3C ) ) |
| 146 | 146 | |
| 147 | PORT_START("DSW2") | |
| 147 | PORT_START("DSW2") | |
| 148 | 148 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) |
| 149 | 149 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 150 | 150 | PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | static UINT16* main_ram; |
| 51 | 51 | |
| 52 | static INPUT_PORTS_START( puckpkmn ) /* Puckman Pockimon Input Ports */ | |
| 53 | PORT_START("P2") /* Player 2 Controls ($700011.b) */ | |
| 54 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 55 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 56 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) | |
| 57 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 58 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 59 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 60 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 61 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 52 | /* Puckman Pockimon Input Ports */ | |
| 62 | 53 | |
| 63 | PORT_START("P1") /* Player 1 Controls ($700013.b) */ | |
| 64 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 54 | static INPUT_PORTS_START( puckpkmn ) | |
| 55 | PORT_START("P2") /* $700011.b */ | |
| 56 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 57 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 58 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) | |
| 59 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 60 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 61 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 62 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 63 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 64 | ||
| 65 | PORT_START("P1") /* $700013.b */ | |
| 66 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 65 | 67 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(10) |
| 66 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) | |
| 67 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 68 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 69 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 70 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 71 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 68 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) | |
| 69 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 70 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 71 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 72 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 73 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 72 | 74 | |
| 73 | PORT_START(" | |
| 75 | PORT_START("UNK") /* | |
| 74 | 76 | |
| 75 | PORT_START("DSW1") /* | |
| 77 | PORT_START("DSW1") /* | |
| 76 | 78 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| 77 | 79 | PORT_DIPSETTING( 0x03, DEF_STR( 5C_1C ) ) |
| 78 | 80 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 92 | 94 | PORT_DIPSETTING( 0x08, "7" ) |
| 93 | 95 | PORT_DIPSETTING( 0x00, "8" ) |
| 94 | 96 | PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Difficulty ) ) |
| 95 | PORT_DIPSETTING( 0xc0, DEF_STR( Easy ) ) | |
| 96 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) | |
| 97 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) | |
| 97 | PORT_DIPSETTING( 0xc0, DEF_STR( Easy ) ) | |
| 98 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) | |
| 99 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) | |
| 98 | 100 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 99 | 101 | |
| 100 | PORT_START("DSW2") /* | |
| 102 | PORT_START("DSW2") /* | |
| 101 | 103 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 102 | 104 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Demo_Sounds ) ) |
| 103 | 105 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 145 | 147 | |
| 146 | 148 | static ADDRESS_MAP_START( puckpkmn_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 147 | 149 | AM_RANGE(0x000000, 0x1fffff) AM_READ(SMH_ROM) /* Main 68k Program Roms */ |
| 148 | AM_RANGE(0x700010, 0x700011) AM_READ(input_port_0_word_r) /* Input (P2) */ | |
| 149 | AM_RANGE(0x700012, 0x700013) AM_READ(input_port_1_word_r) /* Input (P1) */ | |
| 150 | AM_RANGE(0x700014, 0x700015) AM_READ(input_port_2_word_r) /* Input (?) */ | |
| 151 | AM_RANGE(0x700016, 0x700017) AM_READ(input_port_3_word_r) /* Input (DSW1) */ | |
| 152 | AM_RANGE(0x700018, 0x700019) AM_READ(input_port_4_word_r) /* Input (DSW2) */ | |
| 150 | AM_RANGE(0x700010, 0x700011) AM_READ_PORT("P2") | |
| 151 | AM_RANGE(0x700012, 0x700013) AM_READ_PORT("P1") | |
| 152 | AM_RANGE(0x700014, 0x700015) AM_READ_PORT("UNK") | |
| 153 | AM_RANGE(0x700016, 0x700017) AM_READ_PORT("DSW1") | |
| 154 | AM_RANGE(0x700018, 0x700019) AM_READ_PORT("DSW2") | |
| 153 | 155 | AM_RANGE(0x700022, 0x700023) AM_READ(okim6295_status_0_lsb_r) /* M6295 Sound Chip Status Register */ |
| 154 | 156 | AM_RANGE(0xa04000, 0xa04001) AM_READ(puckpkmn_YM3438_r) /* Ym3438 Sound Chip Status Register */ |
| 155 | 157 | AM_RANGE(0xc00000, 0xc0001f) AM_READ(genesis_vdp_r) /* VDP Access */ |
| 156 | AM_RANGE(0xe00000, 0xe1ffff) AM_READ(SMH_BANK1) /* VDP sees the roms here */ | |
| 157 | AM_RANGE(0xfe0000, 0xfeffff) AM_READ(SMH_BANK2) /* VDP sees the ram here */ | |
| 158 | AM_RANGE(0xff0000, 0xffffff) AM_READ(SMH_RAM ) /* Main Ram */ | |
| 158 | AM_RANGE(0xe00000, 0xe1ffff) AM_READ(SMH_BANK1) /* VDP sees the roms here */ | |
| 159 | AM_RANGE(0xfe0000, 0xfeffff) AM_READ(SMH_BANK2) /* VDP sees the ram here */ | |
| 160 | AM_RANGE(0xff0000, 0xffffff) AM_READ(SMH_RAM) /* Main Ram */ | |
| 159 | 161 | |
| 160 | 162 | /* Unknown reads: */ |
| 161 | // AM_RANGE(0xa10000, 0xa10001) AM_READ(SMH_NOP) /* ? once */ | |
| 163 | // AM_RANGE(0xa10000, 0xa10001) AM_READ(SMH_NOP) /* ? once */ | |
| 162 | 164 | AM_RANGE(0xa10002, 0xa10005) AM_READ(SMH_NOP) /* ? alternative way of reading inputs ? */ |
| 163 | 165 | AM_RANGE(0xa11100, 0xa11101) AM_READ(SMH_NOP) /* ? */ |
| 164 | 166 | ADDRESS_MAP_END |
| r3115 | r3116 | |
|---|---|---|
| 97 | 97 | /* bit 1 is EEPROM ready */ |
| 98 | 98 | /* bit 3 is service button */ |
| 99 | 99 | /* bits 4-7 are DIP switches */ |
| 100 | res = | |
| 100 | res = | |
| 101 | 101 | |
| 102 | 102 | if (init_eeprom_count) |
| 103 | 103 | { |
| r3115 | r3116 | |
| 480 | 480 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4 ) |
| 481 | 481 | |
| 482 | 482 | PORT_START("IN1") |
| 483 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* EEPROM data */ | |
| 483 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 484 | 484 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) /* EEPROM ready (always 1) */ |
| 485 | 485 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 486 | 486 | PORT_SERVICE_NO_TOGGLE(0x08, IP_ACTIVE_LOW) |
| 487 | 487 | PORT_DIPNAME( 0x10, 0x00, "Sound Output") |
| 488 | PORT_DIPSETTING( 0x10, DEF_STR( Mono )) | |
| 489 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo )) | |
| 488 | PORT_DIPSETTING( 0x10, DEF_STR( Mono ) ) | |
| 489 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo ) ) | |
| 490 | 490 | PORT_DIPNAME( 0x20, 0x20, "Coin Mechanism") |
| 491 | 491 | PORT_DIPSETTING( 0x20, "Common") |
| 492 | 492 | PORT_DIPSETTING( 0x00, "Independent") |
| r3115 | r3116 | |
|---|---|---|
| 119 | 119 | static read8_machine_func portf0_r; |
| 120 | 120 | static read8_machine_func portf1_r; |
| 121 | 121 | |
| 122 | static int adpcm_pos; | |
| 123 | static int adpcm_data; | |
| 124 | static int trackx,tracky; | |
| 125 | static int mux_ctrl = 0; | |
| 126 | static int extport; | |
| 127 | static int last_irq_level; | |
| 128 | static int high = 0; | |
| 129 | static int high2 = 0; | |
| 130 | ||
| 131 | static const UINT8 *mcu_reply; | |
| 132 | static int mcu_pos = 0, mcu_reply_len = 0; | |
| 133 | static int last_data_adr, last_data; | |
| 134 | static int cur_bank = 0; | |
| 135 | ||
| 122 | 136 | static void palette_notifier(int addr) |
| 123 | 137 | { |
| 124 | 138 | UINT8 *p = palette_ram + (addr & ~1); |
| r3115 | r3116 | |
| 166 | 180 | decodechar(machine->gfx[2], i, taitol_rambanks); |
| 167 | 181 | decodechar(machine->gfx[2], i+512, taitol_rambanks + 0x4000); |
| 168 | 182 | } |
| 183 | ||
| 184 | adpcm_pos = 0; | |
| 185 | adpcm_data = -1; | |
| 186 | trackx = tracky = 0; | |
| 187 | mux_ctrl = 0; | |
| 188 | extport = 0; | |
| 189 | last_irq_level = 0; | |
| 190 | high = 0; | |
| 191 | high2 = 0; | |
| 192 | ||
| 193 | mcu_pos = mcu_reply_len = 0; | |
| 194 | last_data_adr = last_data = 0; | |
| 195 | cur_bank = 0; | |
| 169 | 196 | } |
| 170 | 197 | |
| 171 | 198 | |
| r3115 | r3116 | |
| 261 | 288 | } |
| 262 | 289 | |
| 263 | 290 | |
| 264 | static int last_irq_level; | |
| 265 | ||
| 266 | 291 | static IRQ_CALLBACK(irq_callback) |
| 267 | 292 | { |
| 268 | 293 | return irq_adr_table[last_irq_level]; |
| r3115 | r3116 | |
| 323 | 348 | |
| 324 | 349 | static WRITE8_HANDLER( rombankswitch_w ) |
| 325 | 350 | { |
| 326 | static int high = 0; | |
| 327 | 351 | if(cur_rombank != data) |
| 328 | 352 | { |
| 329 | 353 | if(data>high) |
| r3115 | r3116 | |
| 340 | 364 | |
| 341 | 365 | static WRITE8_HANDLER( rombank2switch_w ) |
| 342 | 366 | { |
| 343 | static int high = 0; | |
| 344 | ||
| 345 | 367 | data &= 0xf; |
| 346 | 368 | |
| 347 | 369 | if(cur_rombank2 != data) |
| 348 | 370 | { |
| 349 | if(data>high) | |
| 371 | if(data>high2) | |
| 350 | 372 | { |
| 351 | high = data; | |
| 352 | logerror("New rom2 size : %x\n", (high+1)*0x4000); | |
| 373 | high2 = data; | |
| 374 | logerror("New rom2 size : %x\n", (high2+1)*0x4000); | |
| 353 | 375 | } |
| 354 | 376 | |
| 355 | 377 | // logerror("robs2 %02x (%04x)\n", data, activecpu_get_pc()); |
| r3115 | r3116 | |
| 449 | 471 | coin_counter_w(1,data & 0x08); |
| 450 | 472 | } |
| 451 | 473 | |
| 452 | static int extport; | |
| 453 | ||
| 454 | 474 | static READ8_HANDLER( portA_r ) |
| 455 | 475 | { |
| 456 | 476 | if (extport == 0) return porte0_r(machine,0); |
| r3115 | r3116 | |
| 475 | 495 | return ym2203_read_port_0_r(machine,offset); |
| 476 | 496 | } |
| 477 | 497 | |
| 478 | static const UINT8 *mcu_reply; | |
| 479 | static int mcu_pos = 0, mcu_reply_len = 0; | |
| 480 | static int last_data_adr, last_data; | |
| 481 | ||
| 482 | 498 | static const UINT8 puzznic_mcu_reply[] = { 0x50, 0x1f, 0xb6, 0xba, 0x06, 0x03, 0x47, 0x05, 0x00 }; |
| 483 | 499 | |
| 484 | 500 | static WRITE8_HANDLER( mcu_data_w ) |
| r3115 | r3116 | |
| 533 | 549 | shared_ram[offset] = data; |
| 534 | 550 | } |
| 535 | 551 | |
| 536 | static int mux_ctrl = 0; | |
| 537 | ||
| 538 | 552 | static READ8_HANDLER( mux_r ) |
| 539 | 553 | { |
| 540 | 554 | switch(mux_ctrl) |
| r3115 | r3116 | |
| 575 | 589 | |
| 576 | 590 | |
| 577 | 591 | |
| 578 | static int adpcm_pos; | |
| 579 | ||
| 580 | 592 | static void champwr_msm5205_vck(running_machine *machine, int chip) |
| 581 | 593 | { |
| 582 | static int adpcm_data = -1; | |
| 583 | ||
| 584 | 594 | if (adpcm_data != -1) |
| 585 | 595 | { |
| 586 | 596 | msm5205_data_w(0, adpcm_data & 0x0f); |
| r3115 | r3116 | |
| 622 | 632 | |
| 623 | 633 | |
| 624 | 634 | |
| 625 | static int trackx,tracky; | |
| 626 | ||
| 627 | 635 | static READ8_HANDLER( horshoes_tracky_reset_r ) |
| 628 | 636 | { |
| 629 | 637 | /* reset the trackball counter */ |
| r3115 | r3116 | |
| 1132 | 1140 | INPUT_PORTS_END |
| 1133 | 1141 | |
| 1134 | 1142 | static INPUT_PORTS_START( fhawkj ) |
| 1135 | PORT_START("DSWA") | |
| 1136 | TAITO_MACHINE_COCKTAIL | |
| 1137 | TAITO_COINAGE_JAPAN_OLD | |
| 1143 | PORT_INCLUDE( fhawk ) | |
| 1138 | 1144 | |
| 1139 | PORT_START("DSWB") | |
| 1140 | TAITO_DIFFICULTY | |
| 1141 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) // all in manual | |
| 1142 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1143 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1144 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) | |
| 1145 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1146 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1147 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) | |
| 1148 | PORT_DIPSETTING( 0x30, "3" ) | |
| 1149 | PORT_DIPSETTING( 0x20, "4" ) | |
| 1150 | PORT_DIPSETTING( 0x10, "5" ) | |
| 1151 | PORT_DIPSETTING( 0x00, "6" ) | |
| 1152 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) | |
| 1153 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1154 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1155 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 1156 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1157 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1158 | ||
| 1159 | PORT_START("IN0") | |
| 1160 | TAITO_JOY_UDLR_2_BUTTONS( 1 ) | |
| 1161 | ||
| 1162 | PORT_START("IN1") | |
| 1163 | TAITO_JOY_UDLR_2_BUTTONS( 2 ) | |
| 1164 | ||
| 1165 | TAITO_L_SYSTEM_INPUT( IP_ACTIVE_LOW, 4 ) | |
| 1145 | PORT_MODIFY("DSWA") | |
| 1146 | TAITO_COINAGE_JAPAN_OLD | |
| 1166 | 1147 | INPUT_PORTS_END |
| 1167 | 1148 | |
| 1168 | 1149 | static INPUT_PORTS_START( raimais ) |
| r3115 | r3116 | |
| 1200 | 1181 | INPUT_PORTS_END |
| 1201 | 1182 | |
| 1202 | 1183 | static INPUT_PORTS_START( raimaisj ) |
| 1203 | PORT_START("DSWA") | |
| 1204 | TAITO_MACHINE_COCKTAIL | |
| 1205 | TAITO_COINAGE_JAPAN_OLD | |
| 1184 | PORT_INCLUDE( raimais ) | |
| 1206 | 1185 | |
| 1207 | PORT_START("DSWB") | |
| 1208 | TAITO_DIFFICULTY | |
| 1209 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 1210 | PORT_DIPSETTING( 0x08, "80k and 160k" ) | |
| 1211 | PORT_DIPSETTING( 0x0c, "80k only" ) | |
| 1212 | PORT_DIPSETTING( 0x04, "160k only" ) | |
| 1213 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1214 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) | |
| 1215 | PORT_DIPSETTING( 0x30, "3" ) | |
| 1216 | PORT_DIPSETTING( 0x20, "4" ) | |
| 1217 | PORT_DIPSETTING( 0x10, "5" ) | |
| 1218 | PORT_DIPSETTING( 0x00, "6" ) | |
| 1219 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 1220 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1221 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1222 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Allow_Continue ) ) | |
| 1223 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1224 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1225 | ||
| 1226 | PORT_START("IN0") | |
| 1227 | TAITO_JOY_UDLR_2_BUTTONS( 1 ) | |
| 1228 | ||
| 1229 | PORT_START("IN1") | |
| 1230 | TAITO_JOY_UDLR_2_BUTTONS( 2 ) | |
| 1231 | ||
| 1232 | TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 1 ) | |
| 1186 | PORT_MODIFY("DSWA") | |
| 1187 | TAITO_COINAGE_JAPAN_OLD | |
| 1233 | 1188 | INPUT_PORTS_END |
| 1234 | 1189 | |
| 1235 | 1190 | static INPUT_PORTS_START( champwr ) |
| r3115 | r3116 | |
| 2105 | 2060 | |
| 2106 | 2061 | static WRITE8_HANDLER( portA_w ) |
| 2107 | 2062 | { |
| 2108 | static int cur_bank = 0; | |
| 2109 | ||
| 2110 | 2063 | if (cur_bank != (data & 0x03) ) |
| 2111 | 2064 | { |
| 2112 | 2065 | int bankaddress; |
| r3115 | r3116 | |
|---|---|---|
| 57 | 57 | |
| 58 | 58 | #include "driver.h" |
| 59 | 59 | #include "machine/konami1.h" |
| 60 | #include "cpu/ | |
| 60 | #include "cpu/mcs48 | |
| 61 | 61 | #include "sound/ay8910.h" |
| 62 | 62 | #include "sound/discrete.h" |
| 63 | 63 | |
| r3115 | r3116 | |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | |
| 103 | static WRITE8_HANDLER(gyruss_dac_w) | |
| 103 | static WRITE8_HANDLER( gyruss_dac_w ) | |
| 104 | 104 | { |
| 105 | 105 | discrete_sound_w(machine, NODE(16), data); |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | static WRITE8_HANDLER( gyruss_irq_clear_w ) | |
| 109 | { | |
| 110 | cputag_set_input_line(machine, "audio2", 0, CLEAR_LINE); | |
| 111 | } | |
| 112 | ||
| 108 | 113 | static void filter_w(running_machine *machine, int chip, int data) |
| 109 | 114 | { |
| 110 | 115 | int i; |
| r3115 | r3116 | |
| 133 | 138 | static WRITE8_HANDLER( gyruss_sh_irqtrigger_w ) |
| 134 | 139 | { |
| 135 | 140 | /* writing to this register triggers IRQ on the sound CPU */ |
| 136 | cpu | |
| 141 | cputag_set_input_line_and_vector(machine, "audio", 0, HOLD_LINE, 0xff); | |
| 137 | 142 | } |
| 138 | 143 | |
| 139 | 144 | static WRITE8_HANDLER( gyruss_i8039_irq_w ) |
| 140 | 145 | { |
| 141 | cpu | |
| 146 | cputag_set_input_line(machine, "audio2", 0, A | |
| 142 | 147 | } |
| 143 | 148 | |
| 144 | 149 | |
| r3115 | r3116 | |
| 201 | 206 | |
| 202 | 207 | static ADDRESS_MAP_START( audio_cpu2_io_map, ADDRESS_SPACE_IO, 8 ) |
| 203 | 208 | AM_RANGE(0x00, 0xff) AM_READ(soundlatch2_r) |
| 204 | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(gyruss_dac_w) | |
| 205 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(SMH_NOP) | |
| 209 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(gyruss_dac_w) | |
| 210 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(gyruss_irq_clear_w) | |
| 206 | 211 | ADDRESS_MAP_END |
| 207 | 212 | |
| 208 | 213 |
| r3115 | r3116 | |
|---|---|---|
| 168 | 168 | AM_RANGE(0x00000000, 0x000fffff) AM_RAM //maybe 0 - 2fffff ? |
| 169 | 169 | AM_RANGE(0x002f0000, 0x002f7fff) AM_RAM |
| 170 | 170 | AM_RANGE(0x01000000, 0x01000003) AM_WRITE(SMH_RAM) // 0xaa .. watchdog ? |
| 171 | AM_RANGE(0x01800004, 0x01800007) AM_READ(input_port_0_dword_r) | |
| 172 | AM_RANGE(0x01800008, 0x0180000b) AM_READ(input_port_1_dword_r) | |
| 171 | AM_RANGE(0x01800004, 0x01800007) AM_READ_PORT("IN0") | |
| 172 | AM_RANGE(0x01800008, 0x0180000b) AM_READ_PORT("IN1") | |
| 173 | 173 | AM_RANGE(0x0180000c, 0x0180000f) AM_WRITE(bank_w) |
| 174 | AM_RANGE(0x01800010, 0x01800013) AM_READ(input_port_2_dword_r) //multiplexed controls (selected by writes to 1c) | |
| 175 | AM_RANGE(0x01800014, 0x01800017) AM_READ(input_port_3_dword_r) | |
| 174 | AM_RANGE(0x01800010, 0x01800013) AM_READ_PORT("IN2") //multiplexed controls (selected by writes to 1c) | |
| 175 | AM_RANGE(0x01800014, 0x01800017) AM_READ_PORT("IN3") | |
| 176 | 176 | AM_RANGE(0x0180001c, 0x0180001f) AM_WRITE(SMH_RAM)//c1 c2 c4 c8 => mahjong inputs (at $10) - bits 0-3 |
| 177 | 177 | AM_RANGE(0x01800200, 0x0180020f) AM_RAM //sound related ? only few writes after boot |
| 178 | 178 | AM_RANGE(0x01a00000, 0x01bfffff) AM_READ(data_r) |
| r3115 | r3116 | |
|---|---|---|
| 42 | 42 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 43 | 43 | AM_RANGE(0x8000, 0xbfff) AM_ROM |
| 44 | 44 | AM_RANGE(0xc000, 0xc1ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 45 | AM_RANGE(0xc800, 0xc800) AM_READ(input_port_0_r) | |
| 46 | AM_RANGE(0xd000, 0xd000) AM_READ(input_port_1_r) | |
| 47 | AM_RANGE(0xd800, 0xd800) AM_READ(input_port_2_r) | |
| 48 | AM_RANGE(0xe000, 0xe000) AM_READ(input_port_3_r) | |
| 49 | AM_RANGE(0xe001, 0xe001) AM_READ(input_port_4_r) | |
| 45 | AM_RANGE(0xc800, 0xc800) AM_READ_PORT("SYSTEM") | |
| 46 | AM_RANGE(0xd000, 0xd000) AM_READ_PORT("P1") | |
| 47 | AM_RANGE(0xd800, 0xd800) AM_READ_PORT("P2") | |
| 48 | AM_RANGE(0xe000, 0xe000) AM_READ_PORT("DSW1") | |
| 49 | AM_RANGE(0xe001, 0xe001) AM_READ_PORT("DSW2") | |
| 50 | 50 | AM_RANGE(0xe800, 0xe800) AM_WRITE(suprloco_soundport_w) |
| 51 | 51 | AM_RANGE(0xe801, 0xe801) AM_READWRITE(suprloco_control_r, suprloco_control_w) |
| 52 | 52 | AM_RANGE(0xf000, 0xf6ff) AM_RAM_WRITE(suprloco_videoram_w) AM_BASE(&suprloco_videoram) |
| r3115 | r3116 | |
| 66 | 66 | |
| 67 | 67 | |
| 68 | 68 | static INPUT_PORTS_START( suprloco ) |
| 69 | PORT_START(" | |
| 69 | PORT_START("SYSTEM") | |
| 70 | 70 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 71 | 71 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 72 | 72 | PORT_SERVICE_NO_TOGGLE(0x04, IP_ACTIVE_LOW) |
| r3115 | r3116 | |
| 75 | 75 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 76 | 76 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 77 | 77 | |
| 78 | PORT_START(" | |
| 78 | PORT_START("P | |
| 79 | 79 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 80 | 80 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 81 | 81 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 84 | 84 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 85 | 85 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 86 | 86 | |
| 87 | PORT_START(" | |
| 87 | PORT_START("P | |
| 88 | 88 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 89 | 89 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 90 | 90 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 142 | 142 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) |
| 143 | 143 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 144 | 144 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) |
| 145 | ||
| 146 | 145 | INPUT_PORTS_END |
| 147 | 146 | |
| 148 | 147 |
| r3115 | r3116 | |
|---|---|---|
| 1 | 1 | /* |
| 2 | 2 | Hal21 |
| 3 | ASO | |
| 4 | Alpha Mission | |
| 5 | 3 | |
| 6 | 4 | |
| 7 | 5 | Change Log |
| r3115 | r3116 | |
| 10 | 8 | AT08XX03: |
| 11 | 9 | |
| 12 | 10 | [Common] |
| 13 | - cleaned and consolidated VIDEO_UPDATE() | |
| 14 | 11 | - added shadows and highlights |
| 15 | 12 | |
| 16 | * A.S.O and HAL21 do a lot of palette cycling therefore | |
| 17 | conversion to tilemaps may be disadvantageous. | |
| 18 | Cocktail mode involves changing tile offsets and sprite | |
| 13 | * Cocktail mode involves changing tile offsets and sprite | |
| 19 | 14 | coordinates and is still unsupported. |
| 20 | 15 | |
| 21 | 16 | * Manuals show both boards have noise filters to smooth out |
| r3115 | r3116 | |
| 24 | 19 | [HAL21] |
| 25 | 20 | - installed NMI scheduler to prevent music trashing |
| 26 | 21 | |
| 27 | [ASO] | |
| 28 | - fixed music and sound effects being cut short | |
| 29 | - fixed service mode(hold P1 start during ROM test) | |
| 30 | - improved scrolling and color | |
| 31 | ||
| 32 | * Stage 5 boss' sky and the first half of stage 6's background | |
| 33 | appear to have consistent color as shown in Beep! magazine: | |
| 34 | ||
| 35 | http://qtq.hp.infoseek.co.jp/kouryaku/aso/aso2.jpg | |
| 36 | http://qtq.hp.infoseek.co.jp/kouryaku/aso/aso3.png | |
| 37 | ||
| 38 | Compared to MAME these areas are blacked out under pens | |
| 39 | 0xf0-0xff. On the other hand pens 0x170-0x17f suit them | |
| 40 | perfectly but they are never used in the first two loops. | |
| 41 | (I played through the game and logged pen usage. Only four | |
| 42 | color codes have blue pen15 so it's not difficult to tell.) | |
| 43 | ||
| 44 | There are unknown bits embedded in RGB triplets and the whole | |
| 45 | upper half of the palette is simply unused. The fact that ASO's | |
| 46 | color PROMs are identical in every set dismissed bad dumps but | |
| 47 | increased the likelyhood of proprietary logic which is quite | |
| 48 | obvious in Touchdown Fever and HAL21. | |
| 49 | ||
| 50 | 22 | [TODO] |
| 51 | - find out what "really" messes up ASO's scrolling | |
| 52 | - verify color effects in both games | |
| 23 | - verify color effects | |
| 53 | 24 | */ |
| 54 | 25 | |
| 55 | 26 | #include "driver.h" |
| r3115 | r3116 | |
| 60 | 31 | |
| 61 | 32 | static UINT8 *hal21_vreg, *hal21_sndfifo; |
| 62 | 33 | static UINT8 *textram; |
| 63 | static UINT8 *aso_scroll_sync; | |
| 64 | 34 | static int color[2]; |
| 65 | 35 | static int snk_blink_parity; // FIXME likely wrong |
| 36 | static int snk_sound_busy_bit; | |
| 66 | 37 | |
| 67 | 38 | /**************************************************************************/ |
| 68 | // Test Handlers | |
| 69 | 39 | |
| 70 | static WRITE8_HANDLER( aso_scroll_sync_w ) | |
| 71 | { | |
| 72 | if (data == 0x7f && (program_read_byte(0xdcd2) & 1)) data++; | |
| 73 | aso_scroll_sync[offset] = data; | |
| 74 | } | |
| 75 | ||
| 76 | 40 | static void hal21_sound_scheduler(running_machine *machine, int mode, int data) |
| 77 | 41 | { |
| 78 | 42 | static int busy, hold, ffcount, ffhead, fftail; |
| r3115 | r3116 | |
| 129 | 93 | static WRITE8_HANDLER( hal21_vreg3_w ){ hal21_vreg[3] = data; } |
| 130 | 94 | static WRITE8_HANDLER( hal21_vreg4_w ){ hal21_vreg[4] = data; } |
| 131 | 95 | static WRITE8_HANDLER( hal21_vreg5_w ){ hal21_vreg[5] = data; } |
| 132 | static WRITE8_HANDLER( hal21_vreg6_w ){ hal21_vreg[6] = data; } | |
| 133 | static WRITE8_HANDLER( hal21_vreg7_w ){ hal21_vreg[7] = data; } | |
| 134 | 96 | |
| 135 | 97 | |
| 136 | 98 | PALETTE_INIT( aso ) |
| r3115 | r3116 | |
| 175 | 137 | gfx_drawmode_table[7] = DRAWMODE_NONE; |
| 176 | 138 | } |
| 177 | 139 | |
| 178 | static VIDEO_START( a | |
| 140 | static VIDEO_START( hal21 ) | |
| 179 | 141 | { |
| 180 | 142 | snk_blink_parity = 0; |
| 181 | 143 | } |
| r3115 | r3116 | |
| 255 | 217 | } |
| 256 | 218 | } |
| 257 | 219 | |
| 258 | static void aso_draw_background(bitmap_t *bitmap, const rectangle *cliprect, int scrollx, int scrolly, int attrs, | |
| 259 | const gfx_element *gfx ) | |
| 220 | static void tnk3_draw_text(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int bank, UINT8 *source ) | |
| 260 | 221 | { |
| 261 | | |
| 222 | const g | |
| 262 | 223 | |
| 263 | bankbase = attrs<<4 & 0x300; | |
| 264 | c = attrs & 0x0f; | |
| 265 | if (c == 7) c = 15; | |
| 224 | int tile_number, color, sx, sy; | |
| 225 | int x, y; | |
| 266 | 226 | |
| 267 | offsx = ((scrollx>>3) + 0) & 0x3f; | |
| 268 | dx = -(scrollx & 7) + 0; | |
| 269 | offsy = ((scrolly>>3) + 0) & 0x3f; | |
| 270 | dy = -(scrolly & 7) + 0; | |
| 227 | for(x=0; x<32; x++) for(y=0; y<32; y++) | |
| 228 | { | |
| 229 | tile_number = source[(x<<5)+y]; | |
| 271 | 230 | |
| 272 | for (x=2; x<35; x++) | |
| 273 | for (y=0; y<28; y++) | |
| 274 | { | |
| 275 | offs = (((offsx+x)&0x3f)<<6) + ((offsy+y)&0x3f); | |
| 276 | sx = (x<<3) + dx; | |
| 277 | sy = (y<<3) + dy; | |
| 278 | tile_number = bankbase + videoram[offs]; | |
| 231 | if(tile_number == 0x20 || tile_number == 0xff) continue; | |
| 279 | 232 | |
| 280 | drawgfx(bitmap, gfx, | |
| 281 | tile_number, c, | |
| 282 | 0, 0, | |
| 283 | sx, sy, | |
| 284 | cliprect, TRANSPARENCY_NONE, 0); | |
| 233 | if(bank == -1) color = 8; | |
| 234 | else | |
| 235 | { | |
| 236 | color = tile_number >> 5; | |
| 237 | tile_number |= bank << 8; | |
| 285 | 238 | } |
| 239 | sx = (x+2) << 3; | |
| 240 | sy = (y+1) << 3; | |
| 241 | ||
| 242 | drawgfx(bitmap,gfx,tile_number,color,0,0,sx,sy,cliprect,TRANSPARENCY_PEN,15); | |
| 243 | } | |
| 286 | 244 | } |
| 287 | 245 | |
| 288 | static void aso_draw_sprites(bitmap_t *bitmap, const rectangle *cliprect, int scrollx, int scrolly, | |
| 289 | const gfx_element *gfx ) | |
| 246 | static void tnk3_draw_status_main(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int bank, UINT8 *source, int start ) | |
| 290 | 247 | { |
| 291 | UINT8 *sprptr, *endptr; | |
| 292 | int attrs, tile, x, y, color; | |
| 248 | const gfx_element *gfx = machine->gfx[0]; | |
| 293 | 249 | |
| 294 | sprptr = spriteram; | |
| 295 | endptr = spriteram + 0x100; | |
| 250 | int tile_number, color, sx, sy; | |
| 251 | int x, y; | |
| 296 | 252 | |
| 297 | for | |
| 253 | for | |
| 298 | 254 | { |
| 299 | i | |
| 255 | tile_numbe | |
| 300 | 256 | |
| 301 | attrs = sprptr[3]; /* YBBX.CCCC */ | |
| 302 | tile = sprptr[1] + (attrs<<2 & 0x100) + (~attrs<<4 & 0x200); | |
| 303 | color = attrs & 0x0f; | |
| 304 | y = (sprptr[0] + (attrs<<4 & 0x100) - scrolly) & 0x1ff; | |
| 305 | x = (0x100 - (sprptr[2] + (attrs<<1 & 0x100) - scrollx)) & 0x1ff; | |
| 306 | if (y > 512-16) y -= 512; | |
| 307 | if (x > 512-16) x -= 512; | |
| 257 | if(bank == -1) color = 8; | |
| 258 | else | |
| 259 | { | |
| 260 | color = tile_number >> 5; | |
| 261 | tile_number |= (bank << 8); | |
| 262 | } | |
| 263 | sx = ((x+34)&0x3f) << 3; | |
| 264 | sy = (y+1) << 3; | |
| 308 | 265 | |
| 309 | drawgfx(bitmap, gfx, | |
| 310 | tile, color, | |
| 311 | 0, 0, | |
| 312 | x, y, | |
| 313 | cliprect, TRANSPARENCY_PEN_TABLE, 7); | |
| 266 | drawgfx(bitmap,gfx,tile_number,color,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); | |
| 314 | 267 | } |
| 315 | 268 | } |
| 316 | 269 | |
| 317 | static | |
| 270 | static void tnk3_draw_status(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int bank, UINT8 *source ) | |
| 318 | 271 | { |
| 272 | tnk3_draw_status_main(machine,bitmap,cliprect,bank,source, 0); | |
| 273 | tnk3_draw_status_main(machine,bitmap,cliprect,bank,source,30); | |
| 274 | } | |
| 275 | ||
| 276 | static VIDEO_UPDATE( hal21 ) | |
| 277 | { | |
| 319 | 278 | int attr, msbs, spsy, spsx, bgsy, bgsx, bank, i; |
| 320 | 279 | |
| 321 | 280 | attr = (int)hal21_vreg[0]; |
| r3115 | r3116 | |
| 325 | 284 | bgsy = (int)hal21_vreg[4] + (msbs<<4 & 0x100) - 8; |
| 326 | 285 | bgsx = (int)hal21_vreg[5] - 16; |
| 327 | 286 | |
| 328 | if (snk_gamegroup) | |
| 329 | { | |
| 330 | hal21_draw_background(screen->machine, bitmap, cliprect, bgsx+(msbs<<7 & 0x100), bgsy, attr, screen->machine->gfx[1]); | |
| 287 | hal21_draw_background(screen->machine, bitmap, cliprect, bgsx+(msbs<<7 & 0x100), bgsy, attr, screen->machine->gfx[1]); | |
| 331 | 288 | |
| 332 | attr = snk_blink_parity; | |
| 333 | snk_blink_parity ^= 0xdf; | |
| 334 | for (i=6; i<0x80; i+=8) { palette_set_color(screen->machine, i, MAKE_RGB(attr, attr, attr)); } | |
| 289 | attr = snk_blink_parity; | |
| 290 | snk_blink_parity ^= 0xdf; | |
| 291 | for (i=6; i<0x80; i+=8) { palette_set_color(screen->machine, i, MAKE_RGB(attr, attr, attr)); } | |
| 335 | 292 | |
| 336 | hal21_draw_sprites(bitmap, cliprect, spsx, spsy, screen->machine->gfx[2]); | |
| 337 | } | |
| 338 | else | |
| 339 | { | |
| 340 | aso_draw_background(bitmap, cliprect, bgsx+(~msbs<<7 & 0x100), bgsy, attr, screen->machine->gfx[1]); | |
| 341 | aso_draw_sprites(bitmap, cliprect, spsx, spsy, screen->machine->gfx[2]); | |
| 342 | } | |
| 293 | hal21_draw_sprites(bitmap, cliprect, spsx, spsy, screen->machine->gfx[2]); | |
| 343 | 294 | |
| 344 | 295 | bank = msbs>>6 & 1; |
| 345 | 296 | tnk3_draw_text(screen->machine, bitmap, cliprect, bank, &textram[0]); |
| r3115 | r3116 | |
| 433 | 384 | |
| 434 | 385 | /**************************************************************************/ |
| 435 | 386 | |
| 436 | static INPUT_PORTS_START( aso ) | |
| 437 | PORT_START("SYSTEM") | |
| 438 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 439 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 440 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 441 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) | |
| 442 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) | |
| 443 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(sound_status_r, NULL) /* sound CPU status */ | |
| 444 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 445 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 446 | ||
| 447 | PORT_START("P1") | |
| 448 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 449 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 450 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 451 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 452 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 453 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 454 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 455 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 456 | ||
| 457 | PORT_START("P2") | |
| 458 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 459 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 460 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 461 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 462 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 463 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 464 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 465 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 466 | ||
| 467 | PORT_START("DSW1") | |
| 468 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) | |
| 469 | PORT_DIPSETTING( 0x01, DEF_STR( No ) ) | |
| 470 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 471 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 472 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 473 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) | |
| 474 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 475 | PORT_DIPSETTING( 0x04, "3" ) | |
| 476 | PORT_DIPSETTING( 0x00, "5" ) | |
| 477 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coinage ) ) | |
| 478 | PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C) ) | |
| 479 | PORT_DIPSETTING( 0x28, DEF_STR( 3C_1C) ) | |
| 480 | PORT_DIPSETTING( 0x30, DEF_STR( 2C_1C) ) | |
| 481 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C) ) | |
| 482 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C) ) | |
| 483 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_3C) ) | |
| 484 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_4C) ) | |
| 485 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C) ) | |
| 486 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life ) ) | |
| 487 | PORT_DIPSETTING( 0xc0, "50k 100k" ) | |
| 488 | PORT_DIPSETTING( 0x80, "60k 120k" ) | |
| 489 | PORT_DIPSETTING( 0x40, "100k 200k" ) | |
| 490 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 491 | ||
| 492 | PORT_START("DSW2") | |
| 493 | PORT_DIPNAME( 0x01, 0x01, "Bonus Occurrence" ) | |
| 494 | PORT_DIPSETTING( 0x01, "1st & every 2nd" ) | |
| 495 | PORT_DIPSETTING( 0x00, "1st & 2nd only" ) | |
| 496 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) | |
| 497 | PORT_DIPSETTING( 0x06, DEF_STR( Easy ) ) | |
| 498 | PORT_DIPSETTING( 0x04, DEF_STR( Normal ) ) | |
| 499 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 500 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 501 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 502 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 503 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 504 | PORT_DIPNAME( 0x10, 0x10, "Effect of some kind (Cheat)") | |
| 505 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 506 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 507 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) | |
| 508 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 509 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 510 | PORT_DIPNAME( 0xc0, 0xc0, "Start Area" ) | |
| 511 | PORT_DIPSETTING( 0xc0, "1" ) | |
| 512 | PORT_DIPSETTING( 0x80, "2" ) | |
| 513 | PORT_DIPSETTING( 0x40, "3" ) | |
| 514 | PORT_DIPSETTING( 0x00, "4" ) | |
| 515 | INPUT_PORTS_END | |
| 516 | ||
| 517 | ||
| 518 | /**************************************************************************/ | |
| 519 | ||
| 520 | 387 | static const gfx_layout char256 = { |
| 521 | 388 | 8,8, |
| 522 | 389 | 0x100, |
| r3115 | r3116 | |
| 574 | 441 | return data; |
| 575 | 442 | } |
| 576 | 443 | |
| 577 | static WRITE8_HANDLER( aso_soundcommand_w ) | |
| 578 | { | |
| 579 | snk_sound_busy_bit = 0x01; | |
| 580 | soundlatch_w(machine, 0, data); | |
| 581 | cpunum_set_input_line(machine, 2, 0, HOLD_LINE ); | |
| 582 | } | |
| 583 | ||
| 584 | 444 | static INTERRUPT_GEN( hal21_sound_interrupt ) |
| 585 | 445 | { |
| 586 | 446 | hal21_sound_scheduler(machine, 3, 0); |
| r3115 | r3116 | |
| 588 | 448 | |
| 589 | 449 | /**************************************************************************/ |
| 590 | 450 | |
| 591 | static ADDRESS_MAP_START( aso_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 592 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 593 | AM_RANGE(0xc000, 0xc7ff) AM_RAM | |
| 594 | AM_RANGE(0xd000, 0xd000) AM_READ(hal21_soundcommand_r) | |
| 595 | AM_RANGE(0xe000, 0xe000) AM_READ(CPUC_ready_r) | |
| 596 | AM_RANGE(0xf000, 0xf000) AM_READWRITE(ym3526_status_port_0_r, ym3526_control_port_0_w) /* YM3526 #1 control port? */ | |
| 597 | AM_RANGE(0xf001, 0xf001) AM_WRITE(ym3526_write_port_0_w) /* YM3526 #1 write port? */ | |
| 598 | AM_RANGE(0xf002, 0xf002) AM_READNOP // unknown read | |
| 599 | AM_RANGE(0xf004, 0xf004) AM_READNOP // unknown read | |
| 600 | AM_RANGE(0xf006, 0xf006) AM_READNOP // unknown read | |
| 601 | ADDRESS_MAP_END | |
| 602 | ||
| 603 | /**************************************************************************/ | |
| 604 | ||
| 605 | 451 | static ADDRESS_MAP_START( hal21_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 606 | 452 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 607 | 453 | AM_RANGE(0x8000, 0x87ff) AM_RAM |
| r3115 | r3116 | |
| 619 | 465 | AM_RANGE(0x0000, 0x0000) AM_NOP // external sound ROM detection? |
| 620 | 466 | ADDRESS_MAP_END |
| 621 | 467 | |
| 622 | /**************************** ASO/Alpha Mission *************************/ | |
| 623 | ||
| 624 | static ADDRESS_MAP_START( aso_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 625 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 626 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("SYSTEM") | |
| 627 | AM_RANGE(0xc100, 0xc100) AM_READ_PORT("P1") | |
| 628 | AM_RANGE(0xc200, 0xc200) AM_READ_PORT("P2") | |
| 629 | AM_RANGE(0xc400, 0xc400) AM_WRITE(aso_soundcommand_w) | |
| 630 | AM_RANGE(0xc500, 0xc500) AM_READ_PORT("DSW1") | |
| 631 | AM_RANGE(0xc600, 0xc600) AM_READ_PORT("DSW2") | |
| 632 | AM_RANGE(0xc700, 0xc700) AM_READWRITE(snk_cpuB_nmi_trigger_r, snk_cpuA_nmi_ack_w) | |
| 633 | AM_RANGE(0xc800, 0xc800) AM_WRITE(hal21_vreg1_w) | |
| 634 | AM_RANGE(0xc900, 0xc900) AM_WRITE(hal21_vreg2_w) | |
| 635 | AM_RANGE(0xca00, 0xca00) AM_WRITE(hal21_vreg3_w) | |
| 636 | AM_RANGE(0xcb00, 0xcb00) AM_WRITE(hal21_vreg4_w) | |
| 637 | AM_RANGE(0xcc00, 0xcc00) AM_WRITE(hal21_vreg5_w) | |
| 638 | AM_RANGE(0xcd00, 0xcd00) AM_WRITE(hal21_vreg6_w) | |
| 639 | AM_RANGE(0xce00, 0xce00) AM_WRITE(hal21_vreg7_w) | |
| 640 | AM_RANGE(0xcf00, 0xcf00) AM_WRITE(hal21_vreg0_w) | |
| 641 | AM_RANGE(0xdcf8, 0xdcf8) AM_WRITE(aso_scroll_sync_w) AM_BASE(&aso_scroll_sync) | |
| 642 | AM_RANGE(0xd800, 0xe7ff) AM_RAM AM_SHARE(2) | |
| 643 | AM_RANGE(0xe000, 0xe7ff) AM_RAM AM_BASE(&spriteram) | |
| 644 | AM_RANGE(0xe800, 0xf7ff) AM_RAM AM_SHARE(3) AM_BASE(&videoram) | |
| 645 | AM_RANGE(0xf800, 0xffff) AM_RAM AM_SHARE(1) AM_BASE(&textram) | |
| 646 | ADDRESS_MAP_END | |
| 647 | ||
| 648 | static ADDRESS_MAP_START( aso_cpuB_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 649 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 650 | AM_RANGE(0xc000, 0xc000) AM_READWRITE(snk_cpuA_nmi_trigger_r, snk_cpuB_nmi_ack_w) | |
| 651 | AM_RANGE(0xc800, 0xd7ff) AM_RAM AM_SHARE(2) | |
| 652 | AM_RANGE(0xd800, 0xe7ff) AM_RAM AM_SHARE(3) | |
| 653 | AM_RANGE(0xe800, 0xf7ff) AM_RAM | |
| 654 | AM_RANGE(0xf800, 0xffff) AM_RAM AM_SHARE(1) | |
| 655 | ADDRESS_MAP_END | |
| 656 | ||
| 657 | 468 | /**************************** HAL21 *************************/ |
| 658 | 469 | |
| 659 | 470 | static ADDRESS_MAP_START( hal21_cpuA_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| r3115 | r3116 | |
| 686 | 497 | |
| 687 | 498 | /**************************************************************************/ |
| 688 | 499 | |
| 689 | static DRIVER_INIT( aso ) | |
| 690 | { | |
| 691 | hal21_vreg = auto_malloc(16); | |
| 692 | snk_gamegroup = 0; | |
| 693 | } | |
| 694 | ||
| 695 | 500 | static DRIVER_INIT( hal21 ) |
| 696 | 501 | { |
| 697 | 502 | hal21_vreg = auto_malloc(24); |
| 698 | 503 | hal21_sndfifo = hal21_vreg + 8; |
| 699 | snk_gamegroup = 1; | |
| 700 | 504 | } |
| 701 | 505 | |
| 702 | 506 | static MACHINE_RESET( aso ) |
| r3115 | r3116 | |
| 706 | 510 | snk_sound_busy_bit = 0; |
| 707 | 511 | } |
| 708 | 512 | |
| 709 | static MACHINE_DRIVER_START( aso ) | |
| 710 | ||
| 711 | /* basic machine hardware */ | |
| 712 | MDRV_CPU_ADD("main", Z80, 4000000) | |
| 713 | MDRV_CPU_PROGRAM_MAP(aso_cpuA_map,0) | |
| 714 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 715 | ||
| 716 | MDRV_CPU_ADD("sub", Z80, 4000000) | |
| 717 | MDRV_CPU_PROGRAM_MAP(aso_cpuB_map,0) | |
| 718 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 719 | ||
| 720 | MDRV_CPU_ADD("audio", Z80, 4000000) | |
| 721 | MDRV_CPU_PROGRAM_MAP(aso_sound_map,0) | |
| 722 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) | |
| 723 | ||
| 724 | MDRV_INTERLEAVE(100) | |
| 725 | ||
| 726 | /* video hardware */ | |
| 727 | MDRV_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS) | |
| 728 | ||
| 729 | MDRV_SCREEN_ADD("main", RASTER) | |
| 730 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 731 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 732 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 733 | MDRV_SCREEN_SIZE(36*8, 28*8) | |
| 734 | MDRV_SCREEN_VISIBLE_AREA(0*8, 36*8-1, 1*8, 28*8-1) | |
| 735 | ||
| 736 | MDRV_GFXDECODE(aso) | |
| 737 | MDRV_PALETTE_LENGTH(1024) | |
| 738 | ||
| 739 | MDRV_MACHINE_RESET(aso) | |
| 740 | ||
| 741 | MDRV_PALETTE_INIT(aso) | |
| 742 | MDRV_VIDEO_START(aso) | |
| 743 | MDRV_VIDEO_RESET(aso) | |
| 744 | MDRV_VIDEO_UPDATE(aso) | |
| 745 | ||
| 746 | /* sound hardware */ | |
| 747 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 748 | ||
| 749 | MDRV_SOUND_ADD("ym", YM3526, 4000000) | |
| 750 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 751 | MACHINE_DRIVER_END | |
| 752 | ||
| 753 | 513 | static MACHINE_DRIVER_START( hal21 ) |
| 754 | 514 | |
| 755 | 515 | /* basic machine hardware */ |
| r3115 | r3116 | |
| 785 | 545 | MDRV_MACHINE_RESET(aso) |
| 786 | 546 | |
| 787 | 547 | MDRV_PALETTE_INIT(aso) |
| 788 | MDRV_VIDEO_START(a | |
| 548 | MDRV_VIDEO_START(hal21) | |
| 789 | 549 | MDRV_VIDEO_RESET(aso) |
| 790 | MDRV_VIDEO_UPDATE(a | |
| 550 | MDRV_VIDEO_UPDATE(hal21) | |
| 791 | 551 | |
| 792 | 552 | /* sound hardware */ |
| 793 | 553 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r3115 | r3116 | |
| 875 | 635 | ROM_LOAD( "hal21_1.prm", 0x800, 0x400, CRC(195768fc) SHA1(c88bc9552d57d52fb4b030d118f48fedccf563f4) ) |
| 876 | 636 | ROM_END |
| 877 | 637 | |
| 878 | ROM_START( aso ) | |
| 879 | ROM_REGION( 0x10000, "main", 0 ) /* 64k for cpuA code */ | |
| 880 | ROM_LOAD( "p1.bin", 0x0000, 0x8000, CRC(3fc9d5e4) SHA1(1318904d3d896affd5affd8e475ac9ee6929b955) ) | |
| 881 | ROM_LOAD( "p3.bin", 0x8000, 0x4000, CRC(39a666d2) SHA1(b5426520eb600d44bc5566d742d7b88194076494) ) | |
| 882 | 638 | |
| 883 | ROM_REGION( 0x10000, "sub", 0 ) /* 64k for cpuB code */ | |
| 884 | ROM_LOAD( "p4.bin", 0x0000, 0x8000, CRC(2429792b) SHA1(674e81880f359f7e8d34d0ad9074267360afadbf) ) | |
| 885 | ROM_LOAD( "p6.bin", 0x8000, 0x4000, CRC(c0bfdf1f) SHA1(65b15ce9c2e78df79cb603c58639421d29701633) ) | |
| 886 | 639 | |
| 887 | ROM_REGION( 0x10000, "audio", 0 ) /* 64k for sound code */ | |
| 888 | ROM_LOAD( "p7.bin", 0x0000, 0x8000, CRC(49258162) SHA1(c265b79d012be1e065389f910f7b4ce61f5b27ce) ) /* YM3526 */ | |
| 889 | ROM_LOAD( "p9.bin", 0x8000, 0x4000, CRC(aef5a4f4) SHA1(e908e79e27ff892fe75d1ba5cb0bc9dc6b7b4268) ) | |
| 890 | 640 | |
| 891 | ROM_REGION( 0x2000, "gfx1", ROMREGION_DISPOSE ) /* characters */ | |
| 892 | ROM_LOAD( "p14.bin", 0x0000, 0x2000, CRC(8baa2253) SHA1(e6e4a5aa005e89744c4e2a19a080cf322edc6b52) ) | |
| 893 | ||
| 894 | ROM_REGION( 0x8000, "gfx2", ROMREGION_DISPOSE ) /* background tiles */ | |
| 895 | ROM_LOAD( "p10.bin", 0x0000, 0x8000, CRC(00dff996) SHA1(4f6ce4c0f2da0d2a711bcbf9aa998b4e31d0d9bf) ) | |
| 896 | ||
| 897 | ROM_REGION( 0x18000, "gfx3", ROMREGION_DISPOSE ) /* 16x16 sprites */ | |
| 898 | ROM_LOAD( "p11.bin", 0x00000, 0x8000, CRC(7feac86c) SHA1(13b81f006ec587583416c1e7432da4c3f0375924) ) | |
| 899 | ROM_LOAD( "p12.bin", 0x08000, 0x8000, CRC(6895990b) SHA1(e84554cae9a768021c3dc7183bc3d28e2dd768ee) ) | |
| 900 | ROM_LOAD( "p13.bin", 0x10000, 0x8000, CRC(87a81ce1) SHA1(28c1069e6c08ecd579f99620c1cb6df01ad1aa74) ) | |
| 901 | ||
| 902 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 903 | ROM_LOAD( "mb7122h.f12", 0x000, 0x00400, CRC(5b0a0059) SHA1(f61e17c8959f1cd6cc12b38f2fb7c6190ebd0e0c) ) | |
| 904 | ROM_LOAD( "mb7122h.f13", 0x400, 0x00400, CRC(37e28dd8) SHA1(681726e490872a574dd0295823a44d64ef3a7b45) ) | |
| 905 | ROM_LOAD( "mb7122h.f14", 0x800, 0x00400, CRC(c3fd1dd3) SHA1(c48030cc458f0bebea0ffccf3d3c43260da6a7fb) ) | |
| 906 | ||
| 907 | ROM_REGION( 0x0600, "plds", ROMREGION_DISPOSE ) | |
| 908 | ROM_LOAD( "pal16l8a-1.bin", 0x0000, 0x0104, CRC(4e3f9e0d) SHA1(de448d50c0d1cdef159a8c4028846142210eba0b) ) | |
| 909 | ROM_LOAD( "pal16l8a-2.bin", 0x0200, 0x0104, CRC(2a681f9e) SHA1(b26eb631d3e4fa6850a109a9a63d377cf86923bc) ) | |
| 910 | ROM_LOAD( "pal16r6a.bin", 0x0400, 0x0104, CRC(59c03681) SHA1(d21090b35596c28d44862782386e84dfc1feff0c) ) | |
| 911 | ROM_END | |
| 912 | ||
| 913 | ROM_START( alphamis ) | |
| 914 | ROM_REGION( 0x10000, "main", 0 ) /* 64k for cpuA code */ | |
| 915 | ROM_LOAD( "p1.rom", 0x0000, 0x4000, CRC(69af874b) SHA1(11a13574614e7e3b9e33c2b2827571946a805376) ) | |
| 916 | ROM_LOAD( "p2.rom", 0x4000, 0x4000, CRC(7707bfe3) SHA1(fb1f4ef862f6762d2479e537fc67a819d11ace76) ) | |
| 917 | ROM_LOAD( "p3.rom", 0x8000, 0x4000, CRC(b970d642) SHA1(d3a8045f05f001e5e2fae8ef7900cf87ab17fc74) ) | |
| 918 | ||
| 919 | ROM_REGION( 0x10000, "sub", 0 ) /* 64k for cpuB code */ | |
| 920 | ROM_LOAD( "p4.rom", 0x0000, 0x4000, CRC(91a89d3c) SHA1(46ef8718c81aac2f09dd1884538750edf9662760) ) | |
| 921 | ROM_LOAD( "p5.rom", 0x4000, 0x4000, CRC(9879e506) SHA1(0bce5fcb9d05ce77cd8e9ad1cac04ef617928db0) ) | |
| 922 | ROM_LOAD( "p6.bin", 0x8000, 0x4000, CRC(c0bfdf1f) SHA1(65b15ce9c2e78df79cb603c58639421d29701633) ) | |
| 923 | ||
| 924 | ROM_REGION( 0x10000, "audio", 0 ) /* 64k for sound code */ | |
| 925 | ROM_LOAD( "p7.rom", 0x0000, 0x4000, CRC(dbc19736) SHA1(fe365d70ead8243374979d2162c395fed9870405) ) /* YM3526 */ | |
| 926 | ROM_LOAD( "p8.rom", 0x4000, 0x4000, CRC(537726a9) SHA1(ddf66946be71d2e6ab2cc53150e3b36d45dde2eb) ) | |
| 927 | ROM_LOAD( "p9.bin", 0x8000, 0x4000, CRC(aef5a4f4) SHA1(e908e79e27ff892fe75d1ba5cb0bc9dc6b7b4268) ) | |
| 928 | ||
| 929 | ROM_REGION( 0x2000, "gfx1", ROMREGION_DISPOSE ) /* characters */ | |
| 930 | ROM_LOAD( "p14.rom", 0x0000, 0x2000, CRC(acbe29b2) SHA1(e304c6d30888fa7549d25e6329ba94d5088bd8b7) ) | |
| 931 | ||
| 932 | ROM_REGION( 0x8000, "gfx2", ROMREGION_DISPOSE ) /* background tiles */ | |
| 933 | ROM_LOAD( "p10.bin", 0x0000, 0x8000, CRC(00dff996) SHA1(4f6ce4c0f2da0d2a711bcbf9aa998b4e31d0d9bf) ) | |
| 934 | ||
| 935 | ROM_REGION( 0x18000, "gfx3", ROMREGION_DISPOSE ) /* 16x16 sprites */ | |
| 936 | ROM_LOAD( "p11.bin", 0x00000, 0x8000, CRC(7feac86c) SHA1(13b81f006ec587583416c1e7432da4c3f0375924) ) | |
| 937 | ROM_LOAD( "p12.bin", 0x08000, 0x8000, CRC(6895990b) SHA1(e84554cae9a768021c3dc7183bc3d28e2dd768ee) ) | |
| 938 | ROM_LOAD( "p13.bin", 0x10000, 0x8000, CRC(87a81ce1) SHA1(28c1069e6c08ecd579f99620c1cb6df01ad1aa74) ) | |
| 939 | ||
| 940 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 941 | ROM_LOAD( "mb7122h.f12", 0x000, 0x00400, CRC(5b0a0059) SHA1(f61e17c8959f1cd6cc12b38f2fb7c6190ebd0e0c) ) | |
| 942 | ROM_LOAD( "mb7122h.f13", 0x400, 0x00400, CRC(37e28dd8) SHA1(681726e490872a574dd0295823a44d64ef3a7b45) ) | |
| 943 | ROM_LOAD( "mb7122h.f14", 0x800, 0x00400, CRC(c3fd1dd3) SHA1(c48030cc458f0bebea0ffccf3d3c43260da6a7fb) ) | |
| 944 | ||
| 945 | ROM_REGION( 0x0600, "plds", ROMREGION_DISPOSE ) | |
| 946 | ROM_LOAD( "pal16l8a-1.bin", 0x0000, 0x0104, CRC(4e3f9e0d) SHA1(de448d50c0d1cdef159a8c4028846142210eba0b) ) | |
| 947 | ROM_LOAD( "pal16l8a-2.bin", 0x0200, 0x0104, CRC(2a681f9e) SHA1(b26eb631d3e4fa6850a109a9a63d377cf86923bc) ) | |
| 948 | ROM_LOAD( "pal16r6a.bin", 0x0400, 0x0104, CRC(59c03681) SHA1(d21090b35596c28d44862782386e84dfc1feff0c) ) | |
| 949 | ROM_END | |
| 950 | ||
| 951 | ROM_START( arian ) | |
| 952 | ROM_REGION( 0x10000, "main", 0 ) /* 64k for cpuA code */ | |
| 953 | ROM_LOAD( "p1.d8", 0x0000, 0x4000, CRC(0ca89307) SHA1(d0ecb97b1e147a4001a4383fd5709394e2358a45) ) /* roms that differ from above sets all had a red stripe on the label */ | |
| 954 | ROM_LOAD( "p2.d7", 0x4000, 0x4000, CRC(724518c3) SHA1(debbfe2a485af5f452d208a04705dbd48d47d90f) ) /* IE: P1 through P4 and P14 */ | |
| 955 | ROM_LOAD( "p3.d6", 0x8000, 0x4000, CRC(4d8db650) SHA1(184141847d38077737ee7140861d94832018e2e2) ) | |
| 956 | ||
| 957 | ROM_REGION( 0x10000, "sub", 0 ) /* 64k for cpuB code */ | |
| 958 | ROM_LOAD( "p4.d3", 0x0000, 0x4000, CRC(47baf1db) SHA1(3947a679745811e5499d690f2b73b4f28b1d47f9) ) | |
| 959 | ROM_LOAD( "p5.rom", 0x4000, 0x4000, CRC(9879e506) SHA1(0bce5fcb9d05ce77cd8e9ad1cac04ef617928db0) ) | |
| 960 | ROM_LOAD( "p6.bin", 0x8000, 0x4000, CRC(c0bfdf1f) SHA1(65b15ce9c2e78df79cb603c58639421d29701633) ) | |
| 961 | ||
| 962 | ROM_REGION( 0x10000, "audio", 0 ) /* 64k for sound code */ | |
| 963 | ROM_LOAD( "p7.rom", 0x0000, 0x4000, CRC(dbc19736) SHA1(fe365d70ead8243374979d2162c395fed9870405) ) /* YM3526 */ | |
| 964 | ROM_LOAD( "p8.rom", 0x4000, 0x4000, CRC(537726a9) SHA1(ddf66946be71d2e6ab2cc53150e3b36d45dde2eb) ) | |
| 965 | ROM_LOAD( "p9.bin", 0x8000, 0x4000, CRC(aef5a4f4) SHA1(e908e79e27ff892fe75d1ba5cb0bc9dc6b7b4268) ) | |
| 966 | ||
| 967 | ROM_REGION( 0x2000, "gfx1", ROMREGION_DISPOSE ) /* characters */ | |
| 968 | ROM_LOAD( "p14.h1", 0x0000, 0x2000, CRC(e599bd30) SHA1(bf70aae9a15d548bb532ca1fc8d7220dfa150d6e) ) | |
| 969 | ||
| 970 | ROM_REGION( 0x8000, "gfx2", ROMREGION_DISPOSE ) /* background tiles */ | |
| 971 | ROM_LOAD( "p10.bin", 0x0000, 0x8000, CRC(00dff996) SHA1(4f6ce4c0f2da0d2a711bcbf9aa998b4e31d0d9bf) ) | |
| 972 | ||
| 973 | ROM_REGION( 0x18000, "gfx3", ROMREGION_DISPOSE ) /* 16x16 sprites */ | |
| 974 | ROM_LOAD( "p11.bin", 0x00000, 0x8000, CRC(7feac86c) SHA1(13b81f006ec587583416c1e7432da4c3f0375924) ) | |
| 975 | ROM_LOAD( "p12.bin", 0x08000, 0x8000, CRC(6895990b) SHA1(e84554cae9a768021c3dc7183bc3d28e2dd768ee) ) | |
| 976 | ROM_LOAD( "p13.bin", 0x10000, 0x8000, CRC(87a81ce1) SHA1(28c1069e6c08ecd579f99620c1cb6df01ad1aa74) ) | |
| 977 | ||
| 978 | ROM_REGION( 0x0c00, "proms", 0 ) | |
| 979 | ROM_LOAD( "mb7122h.f12", 0x000, 0x00400, CRC(5b0a0059) SHA1(f61e17c8959f1cd6cc12b38f2fb7c6190ebd0e0c) ) | |
| 980 | ROM_LOAD( "mb7122h.f13", 0x400, 0x00400, CRC(37e28dd8) SHA1(681726e490872a574dd0295823a44d64ef3a7b45) ) | |
| 981 | ROM_LOAD( "mb7122h.f14", 0x800, 0x00400, CRC(c3fd1dd3) SHA1(c48030cc458f0bebea0ffccf3d3c43260da6a7fb) ) | |
| 982 | ||
| 983 | ROM_REGION( 0x0600, "plds", ROMREGION_DISPOSE ) | |
| 984 | ROM_LOAD( "pal16l8a-1.bin", 0x0000, 0x0104, CRC(4e3f9e0d) SHA1(de448d50c0d1cdef159a8c4028846142210eba0b) ) | |
| 985 | ROM_LOAD( "pal16l8a-2.bin", 0x0200, 0x0104, CRC(2a681f9e) SHA1(b26eb631d3e4fa6850a109a9a63d377cf86923bc) ) | |
| 986 | ROM_LOAD( "pal16r6a.bin", 0x0400, 0x0104, CRC(59c03681) SHA1(d21090b35596c28d44862782386e84dfc1feff0c) ) | |
| 987 | ROM_END | |
| 988 | ||
| 989 | GAME( 1985, aso, 0, aso, aso, aso, ROT270, "SNK", "ASO - Armored Scrum Object", GAME_NO_COCKTAIL ) | |
| 990 | GAME( 1985, alphamis, aso, aso, aso, aso, ROT270, "SNK", "Alpha Mission", GAME_NO_COCKTAIL ) | |
| 991 | GAME( 1985, arian, aso, aso, aso, aso, ROT270, "SNK", "Arian Mission", GAME_NO_COCKTAIL ) | |
| 992 | 641 | GAME( 1985, hal21, 0, hal21, hal21, hal21, ROT270, "SNK", "HAL21", GAME_IMPERFECT_COLORS | GAME_NO_COCKTAIL ) |
| 993 | 642 | GAME( 1985, hal21j, hal21, hal21, hal21, hal21, ROT270, "SNK", "HAL21 (Japan)", GAME_IMPERFECT_COLORS | GAME_NO_COCKTAIL ) |
| r3115 | r3116 | |
|---|---|---|
| 144 | 144 | |
| 145 | 145 | static READ8_HANDLER( vendetta_eeprom_r ) |
| 146 | 146 | { |
| 147 | int res; | |
| 147 | int res = 0; | |
| 148 | 148 | |
| 149 | res = eeprom_read_bit(); | |
| 150 | ||
| 151 | 149 | res |= 0x02; //konami_eeprom_ack() << 5; /* add the ack */ |
| 152 | 150 | |
| 153 | res |= input_port_read(machine, "EEPROM") & 0x0 | |
| 151 | res |= input_port_read(machine, "EEPROM") & 0x0d; /* test switch */ | |
| 154 | 152 | |
| 155 | 153 | if (init_eeprom_count) |
| 156 | 154 | { |
| r3115 | r3116 | |
| 394 | 392 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 395 | 393 | |
| 396 | 394 | PORT_START("EEPROM") |
| 397 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* EEPROM data */ | |
| 395 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 398 | 396 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* EEPROM ready */ |
| 399 | 397 | PORT_SERVICE_NO_TOGGLE(0x04, IP_ACTIVE_LOW) |
| 400 | 398 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) /* not really vblank, object related. Its timed, otherwise sprites flicker */ |
| r3115 | r3116 | |
| 473 | 471 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 474 | 472 | |
| 475 | 473 | PORT_START("EEPROM") |
| 476 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* EEPROM data */ | |
| 474 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CUSTOM(eeprom_bit_r, NULL) /* EEPROM data */ | |
| 477 | 475 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* EEPROM ready */ |
| 478 | 476 | PORT_SERVICE_NO_TOGGLE(0x04, IP_ACTIVE_LOW) |
| 479 | 477 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_VBLANK ) /* not really vblank, object related. Its timed, otherwise sprites flicker */ |
| r3115 | r3116 | |
|---|---|---|
| 3406 | 3406 | |
| 3407 | 3407 | /************************************************************************************************************************** |
| 3408 | 3408 | Alien Syndrome, Sega System 16B |
| 3409 | CPU: | |
| 3409 | CPU: FD1089A (317-0033) | |
| 3410 | 3410 | ROM Board: 171-5358? |
| 3411 | 3411 | */ |
| 3412 | 3412 | ROM_START( aliensy3 ) |
| r3115 | r3116 | |
| 3438 | 3438 | ROM_LOAD( "epr10724.a8", 0x10000, 0x8000, CRC(f971a817) SHA1(502c95638e4fd5f87e5fc837cb44b39a5d62f4e4) ) |
| 3439 | 3439 | ROM_LOAD( "epr10725.a9", 0x20000, 0x8000, CRC(6a50e08f) SHA1(d34b2ccadb8b07d5ad99cab5c5b5b79642c65574) ) |
| 3440 | 3440 | ROM_LOAD( "epr10726.a10", 0x30000, 0x8000, CRC(d50b7736) SHA1(b1f8e3b0cf2ffee5382098100cfabe21b383cd51) ) |
| 3441 | ||
| 3442 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 3443 | ROM_LOAD( "317-0033.key", 0x0000, 0x2000, CRC(49e882e5) SHA1(29d87af8fc775b22a9a546c112f8f5e7f700ac1a) ) | |
| 3441 | 3444 | ROM_END |
| 3442 | 3445 | |
| 3443 | 3446 | |
| r3115 | r3116 | |
| 3864 | 3867 | ROM_LOAD( "epr13448.a10", 0x00000, 0x08000, CRC(b5183fb9) SHA1(c8372b57fa486256d49dc5851d6b17c92de593fb) ) |
| 3865 | 3868 | ROM_LOAD( "mpr13449.a11", 0x10000, 0x20000, CRC(d3d9aaf9) SHA1(0fb3a8cb11033accceb3a43a691fb424cf8b9619) ) |
| 3866 | 3869 | ROM_RELOAD( 0x30000, 0x20000 ) |
| 3870 | ||
| 3871 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 3872 | ROM_LOAD( "317-0168.key", 0x0000, 0x2000, CRC(bc2d1792) SHA1(e66d2582eb74ae35f27715fcc9df3e77aba67509) ) | |
| 3867 | 3873 | ROM_END |
| 3868 | 3874 | |
| 3869 | 3875 | /************************************************************************************************************************** |
| r3115 | r3116 | |
| 3929 | 3935 | ROM_LOAD( "epr13448.a10", 0x00000, 0x08000, CRC(b5183fb9) SHA1(c8372b57fa486256d49dc5851d6b17c92de593fb) ) |
| 3930 | 3936 | ROM_LOAD( "mpr13449.a11", 0x10000, 0x20000, CRC(d3d9aaf9) SHA1(0fb3a8cb11033accceb3a43a691fb424cf8b9619) ) |
| 3931 | 3937 | ROM_RELOAD( 0x30000, 0x20000 ) |
| 3938 | ||
| 3939 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 3940 | ROM_LOAD( "317-0167.key", 0x0000, 0x2000, CRC(bc2d1792) SHA1(e66d2582eb74ae35f27715fcc9df3e77aba67509) ) | |
| 3932 | 3941 | ROM_END |
| 3933 | 3942 | |
| 3934 | 3943 | |
| r3115 | r3116 | |
| 4278 | 4287 | ROM_LOAD( "epr10474.a8", 0x10000, 0x08000, CRC(419a656e) SHA1(aa734ae835761badeb069f99acc5fded2a19b3a3) ) |
| 4279 | 4288 | ROM_LOAD( "epr10475.a9", 0x20000, 0x08000, CRC(17d55e85) SHA1(0c414bafecbfaa82679cc155f15f5255c186358d) ) |
| 4280 | 4289 | ROM_LOAD( "epr10476.a10", 0x30000, 0x08000, CRC(a6be0956) SHA1(fc4d6e25e0b46679f94fddbb1850fb0b02f8d84b) ) |
| 4290 | ||
| 4291 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 4292 | ROM_LOAD( "317-0022.key", 0x0000, 0x2000, CRC(4eedc66d) SHA1(50588fa13bf25a2d1322579cdc9937450543c978) ) | |
| 4281 | 4293 | ROM_END |
| 4282 | 4294 | |
| 4283 | 4295 | |
| r3115 | r3116 | |
| 5229 | 5241 | |
| 5230 | 5242 | ROM_REGION( 0x10000, "sound", 0 ) /* sound CPU */ |
| 5231 | 5243 | ROM_LOAD( "10775.a7", 0x0000, 0x8000, CRC(4cbd55a8) SHA1(8af2c52ab61338c8a9f1a74a05470dd3d5e0c42f) ) |
| 5244 | ||
| 5245 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 5246 | ROM_LOAD( "317-0028.key", 0x0000, 0x2000, BAD_DUMP CRC(9a5307b2) SHA1(2fcc576ed95b96ff6ea71252c3fab33b8b3fc1f5) ) | |
| 5232 | 5247 | ROM_END |
| 5233 | 5248 | |
| 5234 | 5249 | /************************************************************************************************************************** |
| r3115 | r3116 | |
| 5264 | 5279 | |
| 5265 | 5280 | ROM_REGION( 0x10000, "sound", 0 ) /* sound CPU */ |
| 5266 | 5281 | ROM_LOAD( "10775.a7", 0x0000, 0x8000, CRC(4cbd55a8) SHA1(8af2c52ab61338c8a9f1a74a05470dd3d5e0c42f) ) |
| 5282 | ||
| 5283 | ROM_REGION( 0x2000, "fd1089a_key", 0 ) /* decryption key */ | |
| 5284 | ROM_LOAD( "317-0028.key", 0x0000, 0x2000, BAD_DUMP CRC(9a5307b2) SHA1(2fcc576ed95b96ff6ea71252c3fab33b8b3fc1f5) ) | |
| 5267 | 5285 | ROM_END |
| 5268 | 5286 | |
| 5269 | 5287 | /************************************************************************************************************************** |
| r3115 | r3116 | |
| 5533 | 5551 | ROM_LOAD( "epr12246.a9", 0x20000, 0x8000, CRC(f1242582) SHA1(f5734b31b449f3f09a0cacc712059644eedee006) ) |
| 5534 | 5552 | ROM_LOAD( "epr12247.a10",0x30000, 0x8000, CRC(ef8a64c6) SHA1(525e0d968c72c6dd73df69b55b8626495d154649) ) |
| 5535 | 5553 | ROM_LOAD( "epr12248.a11",0x40000, 0x8000, CRC(d1eabdab) SHA1(f255a66e082353768e8d2bb574e883a4a45f7670) ) |
| 5554 | ||
| 5555 | ROM_REGION( 0x2000, "fd1089b_key", 0 ) /* decryption key */ | |
| 5556 | ROM_LOAD( "317-5021.key", 0x0000, 0x2000, BAD_DUMP CRC(4a3422e4) SHA1(69a32a6987ff2481f6d6cbbe399269a2461b8bad) ) | |
| 5536 | 5557 | ROM_END |
| 5537 | 5558 | |
| 5538 | 5559 | |
| r3115 | r3116 | |
| 6131 | 6152 | static DRIVER_INIT( aliensy3_5358 ) |
| 6132 | 6153 | { |
| 6133 | 6154 | DRIVER_INIT_CALL(generic_5358); |
| 6134 | fd1089_decrypt | |
| 6155 | fd1089a_decrypt | |
| 6135 | 6156 | } |
| 6136 | 6157 | |
| 6137 | 6158 | |
| r3115 | r3116 | |
| 6166 | 6187 | static DRIVER_INIT( aurail1_5704 ) |
| 6167 | 6188 | { |
| 6168 | 6189 | DRIVER_INIT_CALL(generic_5704); |
| 6169 | fd1089_decrypt | |
| 6190 | fd1089b_decrypt | |
| 6170 | 6191 | } |
| 6171 | 6192 | |
| 6172 | 6193 | |
| 6173 | 6194 | static DRIVER_INIT( aurailj_5704 ) |
| 6174 | 6195 | { |
| 6175 | 6196 | DRIVER_INIT_CALL(generic_5704); |
| 6176 | fd1089_decrypt | |
| 6197 | fd1089a_decrypt | |
| 6177 | 6198 | } |
| 6178 | 6199 | |
| 6179 | 6200 | |
| r3115 | r3116 | |
| 6187 | 6208 | static DRIVER_INIT( dunkshot_5358 ) |
| 6188 | 6209 | { |
| 6189 | 6210 | DRIVER_INIT_CALL(generic_5358); |
| 6190 | fd1089_decrypt | |
| 6211 | fd1089a_decrypt | |
| 6191 | 6212 | custom_io_r = dunkshot_custom_io_r; |
| 6192 | 6213 | } |
| 6193 | 6214 | |
| r3115 | r3116 | |
| 6232 | 6253 | static DRIVER_INIT( defense_5358 ) |
| 6233 | 6254 | { |
| 6234 | 6255 | DRIVER_INIT_CALL(generic_5358); |
| 6235 | fd1089_decrypt | |
| 6256 | fd1089a_decrypt | |
| 6236 | 6257 | custom_io_r = sdi_custom_io_r; |
| 6237 | 6258 | } |
| 6238 | 6259 | |
| r3115 | r3116 | |
| 6254 | 6275 | static DRIVER_INIT( sjryuko_5358 ) |
| 6255 | 6276 | { |
| 6256 | 6277 | DRIVER_INIT_CALL(generic_5358); |
| 6257 | fd1089_decrypt | |
| 6278 | fd1089b_decrypt | |
| 6258 | 6279 | custom_io_r = sjryuko_custom_io_r; |
| 6259 | 6280 | custom_io_w = sjryuko_custom_io_w; |
| 6260 | 6281 | } |
| r3115 | r3116 | |
|---|---|---|
| 59 | 59 | AM_RANGE(0x100000, 0x101fff) AM_READ(SMH_RAM) /* Video RAM */ |
| 60 | 60 | AM_RANGE(0x200000, 0x2007ff) AM_READ(SMH_RAM) /* Palette */ |
| 61 | 61 | AM_RANGE(0x440000, 0x440fff) AM_READ(SMH_RAM) /* Sprite RAM */ |
| 62 | AM_RANGE(0x700000, 0x700001) AM_READ(input_port_0_word_r)/* DIPSW #2 */ | |
| 63 | AM_RANGE(0x700002, 0x700003) AM_READ(input_port_1_word_r)/* DIPSW #1 */ | |
| 64 | AM_RANGE(0x700004, 0x700005) AM_READ(input_port_2_word_r)/* INPUT #1 */ | |
| 65 | AM_RANGE(0x700006, 0x700007) AM_READ(input_port_3_word_r)/* INPUT #2 */ | |
| 66 | AM_RANGE(0x700008, 0x700009) AM_READ(input_port_4_word_r)/* INPUT #3 */ | |
| 62 | AM_RANGE(0x700000, 0x700001) AM_READ_PORT("DSW2") | |
| 63 | AM_RANGE(0x700002, 0x700003) AM_READ_PORT("DSW1") | |
| 64 | AM_RANGE(0x700004, 0x700005) AM_READ_PORT("P1") | |
| 65 | AM_RANGE(0x700006, 0x700007) AM_READ_PORT("P2") | |
| 66 | AM_RANGE(0x700008, 0x700009) AM_READ_PORT("SYSTEM") | |
| 67 | 67 | AM_RANGE(0x70000e, 0x70000f) AM_READ(okim6295_status_0_lsb_r)/* OKI6295 status register */ |
| 68 | 68 | AM_RANGE(0xfe0000, 0xfeffff) AM_READ(SMH_RAM) /* Work RAM (partially shared with DS5002FP) */ |
| 69 | 69 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 111 | 111 | |
| 112 | 112 | |
| 113 | 113 | static INPUT_PORTS_START( thoop2 ) |
| 114 | ||
| 115 | PORT_START("DSW2") /* DSW #2 */ | |
| 116 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 117 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 118 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 119 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 120 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 121 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 122 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 123 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 124 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) ) | |
| 125 | PORT_DIPSETTING( 0x18, "2" ) | |
| 126 | PORT_DIPSETTING( 0x10, "3" ) | |
| 127 | PORT_DIPSETTING( 0x08, "4" ) | |
| 128 | PORT_DIPSETTING( 0x00, "1" ) | |
| 129 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 130 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 131 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 132 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 133 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 134 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 135 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 136 | ||
| 137 | ||
| 138 | PORT_START("DSW1") /* DSW #1 */ | |
| 114 | PORT_START("DSW1") | |
| 139 | 115 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_B ) ) |
| 140 | 116 | PORT_DIPSETTING( 0x02, DEF_STR( 6C_1C ) ) |
| 141 | 117 | PORT_DIPSETTING( 0x03, DEF_STR( 5C_1C ) ) |
| r3115 | r3116 | |
| 161 | 137 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 162 | 138 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 163 | 139 | |
| 164 | PORT_START("P1") /* 1P INPUTS & COINSW */ | |
| 140 | PORT_START("DSW2") | |
| 141 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 142 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 143 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 144 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 145 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 146 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 147 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 148 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 149 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) ) | |
| 150 | PORT_DIPSETTING( 0x18, "2" ) | |
| 151 | PORT_DIPSETTING( 0x10, "3" ) | |
| 152 | PORT_DIPSETTING( 0x08, "4" ) | |
| 153 | PORT_DIPSETTING( 0x00, "1" ) | |
| 154 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 155 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 156 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 157 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 158 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 159 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 160 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 161 | ||
| 162 | PORT_START("P1") | |
| 165 | 163 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 166 | 164 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 167 | 165 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 171 | 169 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 172 | 170 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 173 | 171 | |
| 174 | PORT_START("P2") | |
| 172 | PORT_START("P2") | |
| 175 | 173 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 176 | 174 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 177 | 175 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 181 | 179 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 182 | 180 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 183 | 181 | |
| 184 | PORT_START("SYSTEM") | |
| 182 | PORT_START("SYSTEM") | |
| 185 | 183 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 186 | 184 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE2 ) /* test button */ |
| 187 | 185 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| r3115 | r3116 | |
|---|---|---|
| 163 | 163 | |
| 164 | 164 | /* should we really be using these to read the i/o in the BOOTLEG? |
| 165 | 165 | these look like i/o through protection ... */ |
| 166 | AM_RANGE(0x167842, 0x167843) AM_READ(input_port_2_word_r) // player controls | |
| 167 | AM_RANGE(0x167c4c, 0x167c4d) AM_READ(input_port_1_word_r) | |
| 168 | AM_RANGE(0x167db2, 0x167db3) AM_READ(input_port_0_word_r) | |
| 166 | AM_RANGE(0x167842, 0x167843) AM_READ_PORT("INPUTS") | |
| 167 | AM_RANGE(0x167c4c, 0x167c4d) AM_READ_PORT("DSW") | |
| 168 | AM_RANGE(0x167db2, 0x167db3) AM_READ_PORT("SYSTEM") | |
| 169 | 169 | |
| 170 | 170 | AM_RANGE(0x167d10, 0x167d11) AM_READ(pckgaldx_protection_r) // check code at 6ea |
| 171 | 171 | AM_RANGE(0x167d1a, 0x167d1b) AM_READ(pckgaldx_protection_r) // check code at 7C4 |
| r3115 | r3116 | |
| 205 | 205 | /**********************************************************************************/ |
| 206 | 206 | |
| 207 | 207 | static INPUT_PORTS_START( pktgaldx ) |
| 208 | PORT_START(" | |
| 208 | PORT_START("SYSTEM") | |
| 209 | 209 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 210 | 210 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 211 | 211 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 216 | 216 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 217 | 217 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 218 | 218 | |
| 219 | PORT_START("DSW") /* 16bit */ | |
| 219 | PORT_START("INPUTS") | |
| 220 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 221 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 222 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 223 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 224 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 225 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 226 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 227 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 228 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 229 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 230 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 231 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 232 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 233 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 234 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 235 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 236 | ||
| 237 | PORT_START("DSW") | |
| 220 | 238 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 221 | 239 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| 222 | 240 | PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) ) |
| r3115 | r3116 | |
| 263 | 281 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 264 | 282 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 265 | 283 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 266 | ||
| 267 | PORT_START("IN1") /* 16bit */ | |
| 268 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 269 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 270 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 271 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 272 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 273 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 274 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 275 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 ) | |
| 276 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 277 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 278 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 279 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 280 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 281 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 282 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 283 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 284 | 284 | INPUT_PORTS_END |
| 285 | 285 | |
| 286 | 286 | static const gfx_layout tile_8x8_layout = |
| r3115 | r3116 | |
|---|---|---|
| 112 | 112 | return ((in_1 >> in_1_shift++) & 0x01) | 0x40; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | static | |
| 115 | static CUSTOM_I | |
| 116 | 116 | { |
| 117 | 117 | /* bit 0: serial input (dsw) |
| 118 | 118 | bit 1: coin */ |
| 119 | return ((multigam_in_dsw >> multigam_in_dsw_shift++) & 0x01) | | |
| 120 | input_port_read(machine, "IN0"); | |
| 119 | return (multigam_in_dsw >> multigam_in_dsw_shift++) & 0x01; | |
| 121 | 120 | } |
| 122 | 121 | |
| 123 | 122 | |
| r3115 | r3116 | |
| 183 | 182 | AM_RANGE(0x4000, 0x4013) AM_READWRITE(nes_psg_0_r, nes_psg_0_w) /* PSG primary registers */ |
| 184 | 183 | AM_RANGE(0x4014, 0x4014) AM_WRITE(sprite_dma_w) |
| 185 | 184 | AM_RANGE(0x4015, 0x4015) AM_READWRITE(psg_4015_r, psg_4015_w) /* PSG status / first control register */ |
| 186 | AM_RANGE(0x4016, 0x4016) AM_READWRITE(multigam_IN0_r, multigam_IN0_w) /* IN0 - input port 1 */ | |
| 187 | AM_RANGE(0x4017, 0x4017) AM_READWRITE(multigam_IN1_r, psg_4017_w) /* IN1 - input port 2 / PSG second control register */ | |
| 185 | AM_RANGE(0x4016, 0x4016) AM_READWRITE(multigam_IN0_r, multigam_IN0_w) /* IN0 - input port 1 */ | |
| 186 | AM_RANGE(0x4017, 0x4017) AM_READWRITE(multigam_IN1_r, psg_4017_w) /* IN1 - input port 2 / PSG second control register */ | |
| 188 | 187 | AM_RANGE(0x5002, 0x5002) AM_WRITENOP |
| 189 | 188 | AM_RANGE(0x5000, 0x5ffe) AM_ROM |
| 190 | AM_RANGE(0x5fff, 0x5fff) AM_READ | |
| 189 | AM_RANGE(0x5fff, 0x5fff) AM_READ | |
| 191 | 190 | AM_RANGE(0x6000, 0x7fff) AM_ROM |
| 192 | 191 | AM_RANGE(0x6fff, 0x6fff) AM_WRITE(multigam_switch_prg_rom) |
| 193 | 192 | AM_RANGE(0x7fff, 0x7fff) AM_WRITE(multigam_switch_gfx_rom) |
| r3115 | r3116 | |
| 431 | 430 | AM_RANGE(0x4000, 0x4013) AM_READWRITE(nes_psg_0_r, nes_psg_0_w) /* PSG primary registers */ |
| 432 | 431 | AM_RANGE(0x4014, 0x4014) AM_WRITE(sprite_dma_w) |
| 433 | 432 | AM_RANGE(0x4015, 0x4015) AM_READWRITE(psg_4015_r, psg_4015_w) /* PSG status / first control register */ |
| 434 | AM_RANGE(0x4016, 0x4016) AM_READWRITE(multigam_IN0_r, multigam_IN0_w) /* IN0 - input port 1 */ | |
| 435 | AM_RANGE(0x4017, 0x4017) AM_READWRITE(multigam_IN1_r, psg_4017_w) /* IN1 - input port 2 / PSG second control register */ | |
| 433 | AM_RANGE(0x4016, 0x4016) AM_READWRITE(multigam_IN0_r, multigam_IN0_w) /* IN0 - input port 1 */ | |
| 434 | AM_RANGE(0x4017, 0x4017) AM_READWRITE(multigam_IN1_r, psg_4017_w) /* IN1 - input port 2 / PSG second control register */ | |
| 436 | 435 | AM_RANGE(0x5001, 0x5001) AM_WRITE(multigm3_switch_prg_rom) |
| 437 | 436 | AM_RANGE(0x5002, 0x5002) AM_WRITENOP |
| 438 | 437 | AM_RANGE(0x5003, 0x5003) AM_WRITE(multigam_switch_gfx_rom) |
| 439 | 438 | AM_RANGE(0x5000, 0x5ffe) AM_ROM |
| 440 | AM_RANGE(0x5fff, 0x5fff) AM_READ | |
| 439 | AM_RANGE(0x5fff, 0x5fff) AM_READ | |
| 441 | 440 | AM_RANGE(0x6000, 0x7fff) AM_RAMBANK(1) |
| 442 | 441 | AM_RANGE(0x6fff, 0x6fff) AM_WRITENOP /* 0x00 in attract mode, 0xff during play */ |
| 443 | 442 | AM_RANGE(0x8000, 0xffff) AM_ROM AM_WRITE(multigm3_mapper2_w) |
| r3115 | r3116 | |
| 450 | 449 | *******************************************************/ |
| 451 | 450 | |
| 452 | 451 | static INPUT_PORTS_START( multigam_common ) |
| 453 | PORT_START("P1") | |
| 452 | PORT_START("P1") | |
| 454 | 453 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 455 | 454 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 456 | 455 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) /* Select */ |
| r3115 | r3116 | |
| 460 | 459 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 461 | 460 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 462 | 461 | |
| 463 | PORT_START("P2") | |
| 462 | PORT_START("P2") | |
| 464 | 463 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 465 | 464 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 466 | 465 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) /* Select */ |
| r3115 | r3116 | |
| 470 | 469 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 471 | 470 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 472 | 471 | |
| 473 | PORT_START("IN0") /* IN2 */ | |
| 472 | PORT_START("IN0") | |
| 473 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(multigam_inputs_r, NULL) | |
| 474 | 474 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 475 | 475 | INPUT_PORTS_END |
| 476 | 476 | |
| 477 | 477 | static INPUT_PORTS_START( multigam ) |
| 478 | 478 | PORT_INCLUDE( multigam_common ) |
| 479 | 479 | |
| 480 | PORT_START("DSW") | |
| 480 | PORT_START("DSW") | |
| 481 | 481 | PORT_DIPNAME( 0x06, 0x00, "Coin/Time" ) |
| 482 | PORT_DIPSETTING( 0x00, "3 min" ) | |
| 483 | PORT_DIPSETTING( 0x04, "5 min" ) | |
| 484 | PORT_DIPSETTING( 0x02, "7 min" ) | |
| 485 | PORT_DIPSETTING( 0x06, "10 min" ) | |
| 482 | PORT_DIPSETTING( 0x00, "3 min" ) | |
| 483 | PORT_DIPSETTING( 0x04, "5 min" ) | |
| 484 | PORT_DIPSETTING( 0x02, "7 min" ) | |
| 485 | PORT_DIPSETTING( 0x06, "10 min" ) | |
| 486 | 486 | INPUT_PORTS_END |
| 487 | 487 | |
| 488 | 488 | static INPUT_PORTS_START( multigm3 ) |
| 489 | 489 | PORT_INCLUDE( multigam_common ) |
| 490 | 490 | |
| 491 | PORT_START("DSW") | |
| 491 | PORT_START("DSW") | |
| 492 | 492 | PORT_DIPNAME( 0x06, 0x00, "Coin/Time" ) |
| 493 | PORT_DIPSETTING( 0x00, "15 min" ) | |
| 494 | PORT_DIPSETTING( 0x04, "8 min" ) | |
| 495 | PORT_DIPSETTING( 0x02, "11 min" ) | |
| 496 | PORT_DIPSETTING( 0x06, "5 min" ) | |
| 493 | PORT_DIPSETTING( 0x00, "15 min" ) | |
| 494 | PORT_DIPSETTING( 0x04, "8 min" ) | |
| 495 | PORT_DIPSETTING( 0x02, "11 min" ) | |
| 496 | PORT_DIPSETTING( 0x06, "5 min" ) | |
| 497 | 497 | INPUT_PORTS_END |
| 498 | 498 | |
| 499 | 499 |
| r3115 | r3116 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | static void update_interrupts(running_machine *machine) |
| 51 | 51 | { |
| 52 | int newstate = 0; | |
| 53 | ||
| 54 | if (atarigen_video_int_state) | |
| 55 | newstate = 4; | |
| 56 | if (atarigen_sound_int_state) | |
| 57 | newstate = 5; | |
| 58 | ||
| 59 | if (newstate) | |
| 60 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 61 | else | |
| 62 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 52 | cpunum_set_input_line(machine, 0, 4, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 53 | cpunum_set_input_line(machine, 0, 5, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 63 | 54 | } |
| 64 | 55 | |
| 65 | 56 |
| r3115 | r3116 | |
|---|---|---|
| 69 | 69 | |
| 70 | 70 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 71 | 71 | AM_RANGE(0x0000, 0x9fff) AM_ROM |
| 72 | AM_RANGE(0xc000, 0xc000) AM_READ(input_port_0_r) | |
| 73 | AM_RANGE(0xc001, 0xc001) AM_READ(input_port_1_r) | |
| 74 | AM_RANGE(0xc002, 0xc002) AM_READ(input_port_2_r) | |
| 75 | AM_RANGE(0xc003, 0xc003) AM_READ(input_port_3_r) | |
| 76 | AM_RANGE(0xc004, 0xc004) AM_READ(input_port_4_r) | |
| 72 | AM_RANGE(0xc000, 0xc000) AM_READ_PORT("SYSTEM") | |
| 73 | AM_RANGE(0xc001, 0xc001) AM_READ_PORT("P1") | |
| 74 | AM_RANGE(0xc002, 0xc002) AM_READ_PORT("P2") | |
| 75 | AM_RANGE(0xc003, 0xc003) AM_READ_PORT("DSW1") | |
| 76 | AM_RANGE(0xc004, 0xc004) AM_READ_PORT("DSW2") | |
| 77 | 77 | AM_RANGE(0xc800, 0xc800) AM_WRITE(soundlatch_w) |
| 78 | 78 | AM_RANGE(0xc802, 0xc803) AM_RAM AM_BASE(&vulgus_scroll_low) |
| 79 | 79 | AM_RANGE(0xc804, 0xc804) AM_WRITE(vulgus_c804_w) |
| r3115 | r3116 | |
| 98 | 98 | |
| 99 | 99 | |
| 100 | 100 | static INPUT_PORTS_START( vulgus ) |
| 101 | PORT_START("SYSTEM") | |
| 101 | PORT_START("SYSTEM") | |
| 102 | 102 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 103 | 103 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 104 | 104 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ |
| r3115 | r3116 | |
| 108 | 108 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 109 | 109 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 110 | 110 | |
| 111 | PORT_START("P1") | |
| 111 | PORT_START("P1") | |
| 112 | 112 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 113 | 113 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 114 | 114 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| r3115 | r3116 | |
| 118 | 118 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 119 | 119 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 120 | 120 | |
| 121 | PORT_START("P2") | |
| 121 | PORT_START("P2") | |
| 122 | 122 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 123 | 123 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 124 | 124 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 128 | 128 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 129 | 129 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 130 | 130 | |
| 131 | PORT_START("DSW1") | |
| 131 | PORT_START("DSW1") | |
| 132 | 132 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 133 | 133 | PORT_DIPSETTING( 0x01, "1" ) |
| 134 | 134 | PORT_DIPSETTING( 0x02, "2" ) |
| r3115 | r3116 | |
| 155 | 155 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) |
| 156 | 156 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 157 | 157 | |
| 158 | PORT_START("DSW2") | |
| 158 | PORT_START("DSW2") | |
| 159 | 159 | /* Not sure about difficulty |
| 160 | 160 | Code perform a read and (& 0x03). NDMix */ |
| 161 | 161 | PORT_DIPNAME( 0x03, 0x03, "Difficulty?" ) |
| r3115 | r3116 | |
|---|---|---|
| 114 | 114 | static ADDRESS_MAP_START( shangha3_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 115 | 115 | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 116 | 116 | AM_RANGE(0x100000, 0x100fff) AM_READ(SMH_RAM) |
| 117 | AM_RANGE(0x200000, 0x200001) AM_READ(input_port_0_word_r) | |
| 118 | AM_RANGE(0x200002, 0x200003) AM_READ(input_port_1_word_r) | |
| 117 | AM_RANGE(0x200000, 0x200001) AM_READ_PORT("INPUTS") | |
| 118 | AM_RANGE(0x200002, 0x200003) AM_READ_PORT("SYSTEM") | |
| 119 | 119 | AM_RANGE(0x20001e, 0x20001f) AM_READ(ay8910_read_port_0_lsb_r) |
| 120 | 120 | AM_RANGE(0x20004e, 0x20004f) AM_READ(shangha3_prot_r) |
| 121 | 121 | AM_RANGE(0x20006e, 0x20006f) AM_READ(okim6295_status_0_lsb_r) |
| r3115 | r3116 | |
| 141 | 141 | static ADDRESS_MAP_START( heberpop_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 142 | 142 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 143 | 143 | AM_RANGE(0x100000, 0x100fff) AM_READ(SMH_RAM) |
| 144 | AM_RANGE(0x200000, 0x200001) AM_READ(input_port_0_word_r) | |
| 145 | AM_RANGE(0x200002, 0x200003) AM_READ(input_port_1_word_r) | |
| 146 | AM_RANGE(0x200004, 0x200005) AM_READ(input_port_2_word_r) | |
| 144 | AM_RANGE(0x200000, 0x200001) AM_READ_PORT("INPUTS") | |
| 145 | AM_RANGE(0x200002, 0x200003) AM_READ_PORT("SYSTEM") | |
| 146 | AM_RANGE(0x200004, 0x200005) AM_READ_PORT("DSW") | |
| 147 | 147 | AM_RANGE(0x300000, 0x30ffff) AM_READ(SMH_RAM) |
| 148 | 148 | AM_RANGE(0x800000, 0xb7ffff) AM_READ(heberpop_gfxrom_r) |
| 149 | 149 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 162 | 162 | |
| 163 | 163 | static ADDRESS_MAP_START( blocken_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 164 | 164 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 165 | AM_RANGE(0x100000, 0x100001) AM_READ(input_port_0_word_r) | |
| 166 | AM_RANGE(0x100002, 0x100003) AM_READ(input_port_1_word_r) | |
| 167 | AM_RANGE(0x100004, 0x100005) AM_READ(input_port_2_word_r) | |
| 165 | AM_RANGE(0x100000, 0x100001) AM_READ_PORT("INPUTS") | |
| 166 | AM_RANGE(0x100002, 0x100003) AM_READ_PORT("SYSTEM") | |
| 167 | AM_RANGE(0x100004, 0x100005) AM_READ_PORT("DSW") | |
| 168 | 168 | AM_RANGE(0x200000, 0x200fff) AM_READ(SMH_RAM) |
| 169 | 169 | AM_RANGE(0x300000, 0x30ffff) AM_READ(SMH_RAM) |
| 170 | 170 | AM_RANGE(0x800000, 0xb7ffff) AM_READ(heberpop_gfxrom_r) |
| r3115 | r3116 | |
| 212 | 212 | |
| 213 | 213 | |
| 214 | 214 | static INPUT_PORTS_START( shangha3 ) |
| 215 | PORT_START("IN | |
| 215 | PORT_START("INPUTS") | |
| 216 | 216 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 217 | 217 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 218 | 218 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 230 | 230 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 231 | 231 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 232 | 232 | |
| 233 | PORT_START(" | |
| 233 | PORT_START("SYSTEM") | |
| 234 | 234 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 235 | 235 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 236 | 236 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 291 | 291 | INPUT_PORTS_END |
| 292 | 292 | |
| 293 | 293 | static INPUT_PORTS_START( heberpop ) |
| 294 | PORT_START("IN | |
| 294 | PORT_START("INPUTS") | |
| 295 | 295 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 296 | 296 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 297 | 297 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 309 | 309 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 310 | 310 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_VBLANK ) /* vblank?? has to toggle */ |
| 311 | 311 | |
| 312 | PORT_START(" | |
| 312 | PORT_START("SYSTEM") | |
| 313 | 313 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 314 | 314 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 315 | 315 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 370 | 370 | INPUT_PORTS_END |
| 371 | 371 | |
| 372 | 372 | static INPUT_PORTS_START( blocken ) |
| 373 | PORT_START("IN | |
| 373 | PORT_START("INPUTS") | |
| 374 | 374 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 375 | 375 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 376 | 376 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 388 | 388 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 389 | 389 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_VBLANK ) /* vblank?? has to toggle */ |
| 390 | 390 | |
| 391 | PORT_START(" | |
| 391 | PORT_START("SYSTEM") | |
| 392 | 392 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 393 | 393 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 394 | 394 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
|---|---|---|
| 103 | 103 | AM_RANGE(0x046000, 0x046fff) AM_RAM_WRITE(pkscramble_bgtilemap_w) AM_BASE(&pkscramble_bgtilemap_ram) // bg tilemap |
| 104 | 104 | AM_RANGE(0x047000, 0x047fff) AM_RAM // unused |
| 105 | 105 | AM_RANGE(0x048000, 0x048fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 106 | AM_RANGE(0x049000, 0x049001) AM_READ(input_port_0_word_r) | |
| 107 | AM_RANGE(0x049004, 0x049005) AM_READ(input_port_1_word_r) | |
| 106 | AM_RANGE(0x049000, 0x049001) AM_READ_PORT("DSW") | |
| 107 | AM_RANGE(0x049004, 0x049005) AM_READ_PORT("INPUTS") | |
| 108 | 108 | AM_RANGE(0x049008, 0x049009) AM_WRITE(pkscramble_output_w) |
| 109 | 109 | AM_RANGE(0x049010, 0x049011) AM_WRITENOP |
| 110 | 110 | AM_RANGE(0x049014, 0x049015) AM_WRITENOP |
| r3115 | r3116 | |
| 118 | 118 | |
| 119 | 119 | |
| 120 | 120 | static INPUT_PORTS_START( pkscramble ) |
| 121 | PORT_START("DSW") | |
| 121 | PORT_START("DSW") | |
| 122 | 122 | PORT_DIPNAME( 0x0007, 0x0003, "Level" ) |
| 123 | 123 | PORT_DIPSETTING( 0x0000, "0" ) |
| 124 | 124 | PORT_DIPSETTING( 0x0001, "1" ) |
| r3115 | r3116 | |
| 166 | 166 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) |
| 167 | 167 | PORT_SERVICE( 0x8000, IP_ACTIVE_HIGH ) |
| 168 | 168 | |
| 169 | PORT_START("INPUTS") | |
| 169 | PORT_START("INPUTS") | |
| 170 | 170 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_BUTTON1 ) // Kick |
| 171 | 171 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_BUTTON2 ) // Left |
| 172 | 172 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_BUTTON3 ) // Center |
| r3115 | r3116 | |
|---|---|---|
| 145 | 145 | static ADDRESS_MAP_START( cpu2_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 146 | 146 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 147 | 147 | AM_RANGE(0x4000, 0x40ff) AM_READWRITE(vastar_sharedram_r, vastar_sharedram_w) |
| 148 | AM_RANGE(0x8000, 0x8000) AM_READ(input_port_1_r) | |
| 149 | AM_RANGE(0x8040, 0x8040) AM_READ(input_port_0_r) | |
| 150 | AM_RANGE(0x8080, 0x8080) AM_READ(input_port_2_r) | |
| 148 | AM_RANGE(0x8000, 0x8000) AM_READ_PORT("P2") | |
| 149 | AM_RANGE(0x8040, 0x8040) AM_READ_PORT("P1") | |
| 150 | AM_RANGE(0x8080, 0x8080) AM_READ_PORT("SYSTEM") | |
| 151 | 151 | ADDRESS_MAP_END |
| 152 | 152 | |
| 153 | 153 | static ADDRESS_MAP_START( cpu2_port_map, ADDRESS_SPACE_IO, 8 ) |
| r3115 | r3116 | |
| 159 | 159 | |
| 160 | 160 | |
| 161 | 161 | static INPUT_PORTS_START( vastar ) |
| 162 | PORT_START(" | |
| 162 | PORT_START("P1 | |
| 163 | 163 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 164 | 164 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 165 | 165 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 169 | 169 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 170 | 170 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 171 | 171 | |
| 172 | PORT_START(" | |
| 172 | PORT_START("P2 | |
| 173 | 173 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 174 | 174 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 175 | 175 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 179 | 179 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 180 | 180 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 181 | 181 | |
| 182 | PORT_START(" | |
| 182 | PORT_START("SYSTEM") | |
| 183 | 183 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 184 | 184 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 185 | 185 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) |
| r3115 | r3116 | |
| 189 | 189 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 190 | 190 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 191 | 191 | |
| 192 | PORT_START("DSW | |
| 192 | PORT_START("DSW1") | |
| 193 | 193 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 194 | 194 | PORT_DIPSETTING( 0x03, "3" ) |
| 195 | 195 | PORT_DIPSETTING( 0x02, "4" ) |
| r3115 | r3116 | |
| 214 | 214 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 215 | 215 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 216 | 216 | |
| 217 | PORT_START("DSW | |
| 217 | PORT_START("DSW2") | |
| 218 | 218 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 219 | 219 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| 220 | 220 | PORT_DIPSETTING( 0x01, DEF_STR( 3C_2C ) ) |
| r3115 | r3116 | |
|---|---|---|
| 102 | 102 | AM_RANGE(0x800000, 0x803fff) AM_RAM_WRITE(taotaido_bgvideoram_w) AM_BASE(&taotaido_bgram) // bg ram? |
| 103 | 103 | AM_RANGE(0xa00000, 0xa01fff) AM_RAM AM_BASE(&taotaido_spriteram) // sprite ram |
| 104 | 104 | AM_RANGE(0xc00000, 0xc0ffff) AM_RAM AM_BASE(&taotaido_spriteram2) // sprite tile lookup ram |
| 105 | AM_RANGE(0xfe0000, 0xfeffff) AM_RAM // main ram | |
| 105 | AM_RANGE(0xfe0000, 0xfeffff) AM_RAM // main ram | |
| 106 | 106 | AM_RANGE(0xffc000, 0xffcfff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) // palette ram |
| 107 | 107 | AM_RANGE(0xffe000, 0xffe3ff) AM_RAM AM_BASE(&taotaido_scrollram) // rowscroll / rowselect / scroll ram |
| 108 | AM_RANGE(0xffff80, 0xffff81) AM_READ(input_port_0_word_r) // player 1 inputs | |
| 109 | AM_RANGE(0xffff82, 0xffff83) AM_READ(input_port_1_word_r) // player 2 inputs | |
| 110 | AM_RANGE(0xffff84, 0xffff85) AM_READ(input_port_2_word_r) // system inputs | |
| 111 | AM_RANGE(0xffff86, 0xffff87) AM_READ(input_port_3_word_r) // DSWA | |
| 112 | AM_RANGE(0xffff88, 0xffff89) AM_READ(input_port_4_word_r) // DSWB | |
| 113 | AM_RANGE(0xffff8a, 0xffff8b) AM_READ(input_port_5_word_r) // DSWC | |
| 114 | AM_RANGE(0xffff8c, 0xffff8d) AM_READ(SMH_RAM) // unknown | |
| 115 | AM_RANGE(0xffff8e, 0xffff8f) AM_READ(input_port_6_word_r) // jumpers | |
| 108 | AM_RANGE(0xffff80, 0xffff81) AM_READ_PORT("P1") | |
| 109 | AM_RANGE(0xffff82, 0xffff83) AM_READ_PORT("P2") | |
| 110 | AM_RANGE(0xffff84, 0xffff85) AM_READ_PORT("SYSTEM") | |
| 111 | AM_RANGE(0xffff86, 0xffff87) AM_READ_PORT("DSW1") | |
| 112 | AM_RANGE(0xffff88, 0xffff89) AM_READ_PORT("DSW2") | |
| 113 | AM_RANGE(0xffff8a, 0xffff8b) AM_READ_PORT("DSW3") | |
| 114 | AM_RANGE(0xffff8c, 0xffff8d) AM_READ(SMH_RAM) // unknown | |
| 115 | AM_RANGE(0xffff8e, 0xffff8f) AM_READ_PORT("JP") | |
| 116 | 116 | #if TAOTAIDO_SHOW_ALL_INPUTS |
| 117 | AM_RANGE(0xffffa0, 0xffffa1) AM_READ(input_port_7_word_r) // player 3 inputs (unused) | |
| 118 | AM_RANGE(0xffffa2, 0xffffa3) AM_READ(input_port_8_word_r) // player 4 inputs (unused) | |
| 117 | AM_RANGE(0xffffa0, 0xffffa1) AM_READ_PORT("P3") // unused | |
| 118 | AM_RANGE(0xffffa2, 0xffffa3) AM_READ_PORT("P4") // unused | |
| 119 | 119 | #endif |
| 120 | 120 | AM_RANGE(0xffff00, 0xffff0f) AM_WRITE(taotaido_tileregs_w) |
| 121 | 121 | AM_RANGE(0xffff10, 0xffff11) AM_WRITE(SMH_NOP) // unknown |
| 122 | 122 | AM_RANGE(0xffff20, 0xffff21) AM_WRITE(SMH_NOP) // unknown - flip screen related |
| 123 | 123 | AM_RANGE(0xffff40, 0xffff47) AM_WRITE(taotaido_sprite_character_bank_select_w) |
| 124 | AM_RANGE(0xffffc0, 0xffffc1) AM_WRITE(sound_command_w) | |
| 124 | AM_RANGE(0xffffc0, 0xffffc1) AM_WRITE(sound_command_w) | |
| 125 | 125 | AM_RANGE(0xffffe0, 0xffffe1) AM_READ(pending_command_r) // guess - seems to be needed for all the sounds to work |
| 126 | 126 | ADDRESS_MAP_END |
| 127 | 127 | |
| r3115 | r3116 | |
| 159 | 159 | |
| 160 | 160 | |
| 161 | 161 | static INPUT_PORTS_START( taotaido ) |
| 162 | PORT_START(" | |
| 162 | PORT_START("P1 | |
| 163 | 163 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 164 | 164 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 165 | 165 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 173 | 173 | #endif |
| 174 | 174 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 175 | 175 | |
| 176 | PORT_START(" | |
| 176 | PORT_START("P2 | |
| 177 | 177 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 178 | 178 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 179 | 179 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 187 | 187 | #endif |
| 188 | 188 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 189 | 189 | |
| 190 | PORT_START(" | |
| 190 | PORT_START("SYSTEM") /* | |
| 191 | 191 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 192 | 192 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) // see notes |
| 193 | 193 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) |
| r3115 | r3116 | |
| 201 | 201 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) // see notes - SERVICE in "test mode" |
| 202 | 202 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) // VBLANK ? The game freezes when ON |
| 203 | 203 | |
| 204 | PORT_START("DSW | |
| 204 | PORT_START("DSW1") /* | |
| 205 | 205 | PORT_DIPNAME( 0x01, 0x01, "Coin Slot" ) |
| 206 | 206 | PORT_DIPSETTING( 0x01, "Same" ) |
| 207 | 207 | PORT_DIPSETTING( 0x00, "Individual" ) |
| r3115 | r3116 | |
| 221 | 221 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 222 | 222 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 223 | 223 | |
| 224 | PORT_START("DSW | |
| 224 | PORT_START("DSW2") /* | |
| 225 | 225 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) // check code at 0x0963e2 or 0x845e2 |
| 226 | 226 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 227 | 227 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 238 | 238 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) |
| 239 | 239 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) |
| 240 | 240 | |
| 241 | PORT_START("DSW | |
| 241 | PORT_START("DSW3") /* | |
| 242 | 242 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) // doesn't seem to be demo sounds |
| 243 | 243 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 244 | 244 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 252 | 252 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) |
| 253 | 253 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) |
| 254 | 254 | |
| 255 | PORT_START("JP | |
| 255 | PORT_START("JP | |
| 256 | 256 | PORT_DIPNAME( 0x0f, 0x08, "Country" ) |
| 257 | 257 | PORT_DIPSETTING( 0x00, "US" ) // also (c) Mc O'River Inc |
| 258 | 258 | PORT_DIPSETTING( 0x01, DEF_STR( Japan ) ) |
| r3115 | r3116 | |
| 267 | 267 | |
| 268 | 268 | #if TAOTAIDO_SHOW_ALL_INPUTS |
| 269 | 269 | /* These inputs are only to fit the test mode - leftover from another game ? */ |
| 270 | PORT_START(" | |
| 270 | PORT_START("P | |
| 271 | 271 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) |
| 272 | 272 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) |
| 273 | 273 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) |
| r3115 | r3116 | |
| 277 | 277 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) |
| 278 | 278 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 279 | 279 | |
| 280 | PORT_START(" | |
| 280 | PORT_START("P | |
| 281 | 281 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) |
| 282 | 282 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) |
| 283 | 283 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) |
| r3115 | r3116 | |
| 292 | 292 | static INPUT_PORTS_START( taotaida ) |
| 293 | 293 | PORT_INCLUDE(taotaido) |
| 294 | 294 | |
| 295 | PORT_MODIFY(" | |
| 295 | PORT_MODIFY("P1 | |
| 296 | 296 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) |
| 297 | 297 | |
| 298 | PORT_MODIFY(" | |
| 298 | PORT_MODIFY("P2 | |
| 299 | 299 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 300 | 300 | INPUT_PORTS_END |
| 301 | 301 |
| r3115 | r3116 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | static void update_interrupts(running_machine *machine) |
| 46 | 46 | { |
| 47 | int newstate = 0; | |
| 48 | ||
| 49 | if (atarigen_scanline_int_state) | |
| 50 | newstate = 4; | |
| 51 | ||
| 52 | if (newstate) | |
| 53 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 54 | else | |
| 55 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 47 | cpunum_set_input_line(machine, 0, 4, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 56 | 48 | } |
| 57 | 49 | |
| 58 | 50 |
| r3115 | r3116 | |
|---|---|---|
| 1000 | 1000 | ROM_LOAD( "7_c6.bin", 0x6000, 0x2000, CRC(6d51521e) SHA1(2809bd2e61f40dcd31d43c62520982bdcfb0a865) ) /* vr.7h */ |
| 1001 | 1001 | ROM_LOAD( "1_a6.bin", 0x8000, 0x1000, CRC(20f2207e) SHA1(b1ed2237d0bd50ddbe593fd2fbff9f1d67c1eb11) ) /* vr.7k */ |
| 1002 | 1002 | |
| 1003 | ROM_REGION( 0x2000, "MCU", 0 ) | |
| 1004 | ROM_LOAD( "8303.bin", 0x0000, 0x2000, CRC(66adcb37) SHA1(e1c72ecb161129dcbddc0b16dd90e716d0c79311) ) | |
| 1005 | ||
| 1003 | 1006 | ROM_REGION( 0x04000, "gfx1", ROMREGION_DISPOSE ) // 3bpp chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 1004 | 1007 | ROM_LOAD( "vr.5a", 0x0000, 0x2000, CRC(4ff1783d) SHA1(c45074864c3a4bcbf3a87d164027ae16dca53d9c) ) /* planes 0,1 */ |
| 1005 | 1008 | ROM_LOAD( "vr.5c", 0x2000, 0x2000, CRC(1fb84ee6) SHA1(56ceb86c509be783f806403ac21e7c9684760d5f) ) /* plane 3 */ |
| r3115 | r3116 | |
| 1077 | 1080 | GAME( 1983, exctsccr, 0, exctsccr, exctsccr, exctsccr, ROT270, "Alpha Denshi Co.", "Exciting Soccer", 0 ) |
| 1078 | 1081 | GAME( 1983, exctscca, exctsccr, exctsccr, exctsccr, exctsccr, ROT270, "Alpha Denshi Co.", "Exciting Soccer (alternate music)", 0 ) |
| 1079 | 1082 | GAME( 1983, exctsccb, exctsccr, exctsccb, exctsccr, exctsccr, ROT270, "bootleg", "Exciting Soccer (bootleg)", 0 ) |
| 1080 | GAME( 1984, exctscc2, 0, exctsccr, exctsccr, exctsccr, ROT270, "Alpha Denshi Co.", "Exciting Soccer II", | |
| 1083 | GAME( 1984, exctscc2, 0, exctsccr, exctsccr, exctsccr, ROT270, "Alpha Denshi Co.", "Exciting Soccer II", 0 |
| r3115 | r3116 | |
|---|---|---|
| 992 | 992 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 993 | 993 | |
| 994 | 994 | PORT_START("SSIO.IP1") /* J4 10-13,15-18 */ |
| 995 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 996 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 997 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 998 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 995 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 996 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 997 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 998 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 999 | 999 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1000 | 1000 | |
| 1001 | 1001 | PORT_START("SSIO.IP2") /* J5 1-8 */ |
| 1002 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1003 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1004 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1005 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1002 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1003 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1004 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1005 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1006 | 1006 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 1007 | 1007 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1008 | 1008 | |
| r3115 | r3116 | |
| 1042 | 1042 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) |
| 1043 | 1043 | |
| 1044 | 1044 | PORT_START("SSIO.IP1") /* J4 10-13,15-18 */ |
| 1045 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1046 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1047 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1048 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1045 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1046 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1047 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 1048 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1049 | 1049 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1050 | 1050 | |
| 1051 | 1051 | PORT_START("SSIO.IP2") /* J5 1-8 */ |
| 1052 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1053 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1054 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1055 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1052 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1053 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1054 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1055 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1056 | 1056 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 1057 | 1057 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1058 | 1058 |
| r3115 | r3116 | |
|---|---|---|
| 157 | 157 | [ Main CPU - System A / Z ] |
| 158 | 158 | ***************************************************************************/ |
| 159 | 159 | |
| 160 | static READ16_HANDLER( dsw1_r ) {return input_port_read(machine, "DSW1");} // DSW 1 | |
| 161 | static READ16_HANDLER( dsw2_r ) {return input_port_read(machine, "DSW2");} // DSW 2 | |
| 162 | static READ16_HANDLER( dsw_r ) {return input_port_read(machine, "DSW1") * 256 + | |
| 163 | input_port_read(machine, "DSW2");} // < DSW 1 | DSW 2 > | |
| 164 | ||
| 165 | ||
| 166 | 160 | #define INTERRUPT_NUM_A 3 |
| 167 | 161 | static INTERRUPT_GEN( interrupt_A ) |
| 168 | 162 | { |
| r3115 | r3116 | |
| 181 | 175 | AM_RANGE(0x080000, 0x080001) AM_READ_PORT("SYSTEM") |
| 182 | 176 | AM_RANGE(0x080002, 0x080003) AM_READ_PORT("P1") |
| 183 | 177 | AM_RANGE(0x080004, 0x080005) AM_READ_PORT("P2") |
| 184 | AM_RANGE(0x080006, 0x080007) AM_READ | |
| 178 | AM_RANGE(0x080006, 0x080007) AM_READ | |
| 185 | 179 | AM_RANGE(0x080008, 0x080009) AM_READ(soundlatch2_word_r) /* from sound cpu */ |
| 186 | 180 | AM_RANGE(0x084000, 0x084fff) AM_READ(SMH_RAM) |
| 187 | 181 | AM_RANGE(0x088000, 0x0887ff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 253 | 247 | switch (i) |
| 254 | 248 | { |
| 255 | 249 | case 0 : return input_port_read(machine, "SYSTEM"); break; |
| 256 | case 1 : return input_port_read(machine, "P1"); break; | |
| 257 | case 2 : return input_port_read(machine, "P2"); break; | |
| 258 | case 3 : return dsw1_r(machine,0,0xffff); break; | |
| 259 | case 4 : return dsw2_r(machine,0,0xffff); break; | |
| 250 | case 1 : return input_port_read(machine, "P1"); break; | |
| 251 | case 2 : return input_port_read(machine, "P2"); break; | |
| 252 | case 3 : return input_port_read(machine, "DSW1"); break; | |
| 253 | case 4 : return input_port_read(machine, "DSW2"); break; | |
| 260 | 254 | default : return 0x0006; |
| 261 | 255 | } |
| 262 | 256 | } |
| r3115 | r3116 | |
| 351 | 345 | AM_RANGE(0x0d0000, 0x0d3fff) AM_READ(SMH_RAM) |
| 352 | 346 | AM_RANGE(0x0d4000, 0x0d7fff) AM_READ(SMH_RAM) |
| 353 | 347 | AM_RANGE(0x0d8000, 0x0d87ff) AM_MIRROR(0x3000) AM_READ(SMH_RAM) |
| 354 | AM_RANGE(0x0e0000, 0x0e0001) AM_READ | |
| 348 | AM_RANGE(0x0e0000, 0x0e0001) AM_READ | |
| 355 | 349 | AM_RANGE(0x0e8000, 0x0ebfff) AM_READ(SMH_RAM) |
| 356 | 350 | AM_RANGE(0x0f0000, 0x0f0001) AM_READ_PORT("SYSTEM") |
| 357 | 351 | AM_RANGE(0x0f8000, 0x0f8001) AM_READ(okim6295_status_0_lsb_r) |
| r3115 | r3116 | |
| 951 | 945 | COINAGE_8BITS |
| 952 | 946 | |
| 953 | 947 | PORT_START("DSW2") |
| 954 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 955 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 956 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 957 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 958 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 959 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 960 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Allow_Continue ) ) | |
| 961 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 962 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 963 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) | |
| 964 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 965 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) | |
| 966 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) | |
| 967 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 968 | PORT_DIPNAME( 0x60, 0x20, DEF_STR( Lives ) ) | |
| 969 | PORT_DIPSETTING( 0x40, "1" ) | |
| 970 | PORT_DIPSETTING( 0x60, "2" ) | |
| 971 | PORT_DIPSETTING( 0x20, "3" ) | |
| 972 | PORT_DIPSETTING( 0x00, "5" ) | |
| 973 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 948 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 949 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 950 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 951 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 952 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 953 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 954 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Allow_Continue ) ) | |
| 955 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 956 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) | |
| 957 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) | |
| 958 | PORT_DIPSETTING( 0x0010, DEF_STR( Easy ) ) | |
| 959 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) | |
| 960 | PORT_DIPSETTING( 0x0008, DEF_STR( Hard ) ) | |
| 961 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 962 | PORT_DIPNAME( 0x0060, 0x0020, DEF_STR( Lives ) ) | |
| 963 | PORT_DIPSETTING( 0x0040, "1" ) | |
| 964 | PORT_DIPSETTING( 0x0060, "2" ) | |
| 965 | PORT_DIPSETTING( 0x0020, "3" ) | |
| 966 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 967 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 974 | 968 | INPUT_PORTS_END |
| 975 | 969 | |
| 976 | 970 | |
| r3115 | r3116 | |
| 1083 | 1077 | JOY_3BUTTONS(2) |
| 1084 | 1078 | RESERVE |
| 1085 | 1079 | |
| 1086 | PORT_START("DSW1") /* 0x80006.b */ | |
| 1087 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) | |
| 1088 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1089 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) | |
| 1090 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) | |
| 1091 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 1092 | // PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) // 1_2 shown in test mode | |
| 1093 | // PORT_DIPSETTING( 0x05, DEF_STR( 1C_1C ) ) // 1_3 | |
| 1094 | // PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) // 1_4 | |
| 1095 | // PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) // 1_5 | |
| 1096 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) | |
| 1097 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1098 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) | |
| 1099 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 1100 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1101 | // PORT_DIPSETTING( 0x18, DEF_STR( 1C_1C ) ) // 1_2 shown in test mode | |
| 1102 | // PORT_DIPSETTING( 0x28, DEF_STR( 1C_1C ) ) // 1_3 | |
| 1103 | // PORT_DIPSETTING( 0x08, DEF_STR( 1C_1C ) ) // 1_4 | |
| 1104 | // PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) // 1_5 | |
| 1105 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1106 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1107 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1108 | PORT_DIPNAME( 0x80, 0x80, "Test Mode" ) | |
| 1109 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1110 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1080 | PORT_START("DSW") | |
| 1081 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) // according to manual | |
| 1082 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1083 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1084 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown ) ) // according to manual | |
| 1085 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1086 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1087 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Bonus_Life ) ) | |
| 1088 | PORT_DIPSETTING( 0x0004, "30k 70k 110k then every 30k" ) | |
| 1089 | PORT_DIPSETTING( 0x0000, "50k 100k then every 40k" ) | |
| 1090 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Lives ) ) | |
| 1091 | PORT_DIPSETTING( 0x0008, "2" ) | |
| 1092 | PORT_DIPSETTING( 0x0018, "3" ) | |
| 1093 | PORT_DIPSETTING( 0x0010, "4" ) | |
| 1094 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 1095 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Difficulty ) ) | |
| 1096 | PORT_DIPSETTING( 0x0020, DEF_STR( Normal ) ) | |
| 1097 | PORT_DIPSETTING( 0x0000, DEF_STR( Hard ) ) | |
| 1098 | PORT_DIPNAME( 0x0040, 0x0040, "Swap 1P/2P Controls" ) | |
| 1099 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1100 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1101 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 1102 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1103 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1111 | 1104 | |
| 1112 | PORT_START("DSW2") /* 0x80007.b */ | |
| 1113 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) // according to manual | |
| 1114 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1115 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1116 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) // according to manual | |
| 1117 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1118 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1119 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Bonus_Life ) ) | |
| 1120 | PORT_DIPSETTING( 0x04, "30k 70k 110k then every 30k" ) | |
| 1121 | PORT_DIPSETTING( 0x00, "50k 100k then every 40k" ) | |
| 1122 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) ) | |
| 1123 | PORT_DIPSETTING( 0x08, "2" ) | |
| 1124 | PORT_DIPSETTING( 0x18, "3" ) | |
| 1125 | PORT_DIPSETTING( 0x10, "4" ) | |
| 1126 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1127 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) | |
| 1128 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) | |
| 1129 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 1130 | PORT_DIPNAME( 0x40, 0x40, "Swap 1P/2P Controls" ) | |
| 1131 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1132 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1133 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 1134 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1135 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1136 | ||
| 1105 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) | |
| 1106 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) | |
| 1107 | PORT_DIPSETTING( 0x0400, DEF_STR( 3C_1C ) ) | |
| 1108 | PORT_DIPSETTING( 0x0200, DEF_STR( 2C_1C ) ) | |
| 1109 | PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) ) | |
| 1110 | // PORT_DIPSETTING( 0x0300, DEF_STR( 1C_1C ) ) // 1_2 shown in test mode | |
| 1111 | // PORT_DIPSETTING( 0x0500, DEF_STR( 1C_1C ) ) // 1_3 | |
| 1112 | // PORT_DIPSETTING( 0x0100, DEF_STR( 1C_1C ) ) // 1_4 | |
| 1113 | // PORT_DIPSETTING( 0x0600, DEF_STR( 1C_1C ) ) // 1_5 | |
| 1114 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) | |
| 1115 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) | |
| 1116 | PORT_DIPSETTING( 0x2000, DEF_STR( 3C_1C ) ) | |
| 1117 | PORT_DIPSETTING( 0x1000, DEF_STR( 2C_1C ) ) | |
| 1118 | PORT_DIPSETTING( 0x3800, DEF_STR( 1C_1C ) ) | |
| 1119 | // PORT_DIPSETTING( 0x1800, DEF_STR( 1C_1C ) ) // 1_2 shown in test mode | |
| 1120 | // PORT_DIPSETTING( 0x2800, DEF_STR( 1C_1C ) ) // 1_3 | |
| 1121 | // PORT_DIPSETTING( 0x0800, DEF_STR( 1C_1C ) ) // 1_4 | |
| 1122 | // PORT_DIPSETTING( 0x3000, DEF_STR( 1C_1C ) ) // 1_5 | |
| 1123 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1124 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 1125 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1126 | PORT_DIPNAME( 0x8000, 0x8000, "Test Mode" ) | |
| 1127 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 1128 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1137 | 1129 | INPUT_PORTS_END |
| 1138 | 1130 | |
| 1139 | 1131 | |
| r3115 | r3116 | |
| 1339 | 1331 | COINAGE_8BITS |
| 1340 | 1332 | |
| 1341 | 1333 | PORT_START("DSW2") |
| 1342 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 1343 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1344 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1345 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1346 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1347 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1348 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Allow_Continue ) ) | |
| 1349 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1350 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1351 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) | |
| 1352 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) | |
| 1353 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) | |
| 1354 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 1355 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1356 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) ) | |
| 1357 | PORT_DIPSETTING( 0x20, DEF_STR( Upright ) ) | |
| 1358 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1359 | PORT_DIPNAME( 0x40, 0x40, "Test Mode" ) // freeze & slow motion via P1 + P2 start | |
| 1360 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1361 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1362 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 1334 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1335 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1336 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1337 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1338 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1339 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1340 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Allow_Continue ) ) | |
| 1341 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1342 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) | |
| 1343 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) | |
| 1344 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 1345 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) | |
| 1346 | PORT_DIPSETTING( 0x0010, DEF_STR( Hard ) ) | |
| 1347 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1348 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Cabinet ) ) | |
| 1349 | PORT_DIPSETTING( 0x0020, DEF_STR( Upright ) ) | |
| 1350 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) | |
| 1351 | PORT_DIPNAME( 0x0040, 0x0040, "Test Mode" ) // freeze & slow motion via P1 + P2 start | |
| 1352 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1353 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1354 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1363 | 1355 | INPUT_PORTS_END |
| 1364 | 1356 | |
| 1365 | 1357 | |
| 1358 | static INPUT_PORTS_START( phantasm ) | |
| 1359 | PORT_START("SYSTEM") | |
| 1360 | COINS | |
| 1366 | 1361 | |
| 1362 | PORT_START("P1") | |
| 1363 | JOY_2BUTTONS(1) | |
| 1364 | ||
| 1365 | PORT_START("P2") | |
| 1366 | JOY_2BUTTONS(2) | |
| 1367 | RESERVE | |
| 1368 | ||
| 1369 | PORT_START("DSW") | |
| 1370 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1371 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1372 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1373 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1374 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1375 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1376 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Allow_Continue ) ) | |
| 1377 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1378 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) | |
| 1379 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) | |
| 1380 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) | |
| 1381 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) | |
| 1382 | PORT_DIPSETTING( 0x0010, DEF_STR( Hard ) ) | |
| 1383 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1384 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Cabinet ) ) | |
| 1385 | PORT_DIPSETTING( 0x0020, DEF_STR( Upright ) ) | |
| 1386 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) | |
| 1387 | PORT_DIPNAME( 0x0040, 0x0040, "Test Mode" ) // freeze & slow motion via P1 + P2 start | |
| 1388 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1389 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1390 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1391 | ||
| 1392 | PORT_DIPNAME( 0x0f00, 0x0f00, DEF_STR( Coin_A ) ) | |
| 1393 | PORT_DIPSETTING( 0x0700, DEF_STR( 4C_1C ) ) | |
| 1394 | PORT_DIPSETTING( 0x0800, DEF_STR( 3C_1C ) ) | |
| 1395 | PORT_DIPSETTING( 0x0900, DEF_STR( 2C_1C ) ) | |
| 1396 | PORT_DIPSETTING( 0x0f00, DEF_STR( 1C_1C ) ) | |
| 1397 | /* PORT_DIPSETTING( 0x0500, DEF_STR( 1C_1C ) )*/ | |
| 1398 | /* PORT_DIPSETTING( 0x0400, DEF_STR( 1C_1C ) )*/ | |
| 1399 | /* PORT_DIPSETTING( 0x0300, DEF_STR( 1C_1C ) )*/ | |
| 1400 | /* PORT_DIPSETTING( 0x0200, DEF_STR( 1C_1C ) )*/ | |
| 1401 | /* PORT_DIPSETTING( 0x0100, DEF_STR( 1C_1C ) )*/ | |
| 1402 | PORT_DIPSETTING( 0x0600, DEF_STR( 2C_3C ) ) | |
| 1403 | PORT_DIPSETTING( 0x0e00, DEF_STR( 1C_2C ) ) | |
| 1404 | PORT_DIPSETTING( 0x0d00, DEF_STR( 1C_3C ) ) | |
| 1405 | PORT_DIPSETTING( 0x0c00, DEF_STR( 1C_4C ) ) | |
| 1406 | PORT_DIPSETTING( 0x0b00, DEF_STR( 1C_5C ) ) | |
| 1407 | PORT_DIPSETTING( 0x0a00, DEF_STR( 1C_6C ) ) | |
| 1408 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 1409 | PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coin_B ) ) | |
| 1410 | PORT_DIPSETTING( 0x7000, DEF_STR( 4C_1C ) ) | |
| 1411 | PORT_DIPSETTING( 0x8000, DEF_STR( 3C_1C ) ) | |
| 1412 | PORT_DIPSETTING( 0x9000, DEF_STR( 2C_1C ) ) | |
| 1413 | PORT_DIPSETTING( 0xf000, DEF_STR( 1C_1C ) ) | |
| 1414 | /* PORT_DIPSETTING( 0x5000, DEF_STR( 1C_1C ) )*/ | |
| 1415 | /* PORT_DIPSETTING( 0x4000, DEF_STR( 1C_1C ) )*/ | |
| 1416 | /* PORT_DIPSETTING( 0x3000, DEF_STR( 1C_1C ) )*/ | |
| 1417 | /* PORT_DIPSETTING( 0x2000, DEF_STR( 1C_1C ) )*/ | |
| 1418 | /* PORT_DIPSETTING( 0x1000, DEF_STR( 1C_1C ) )*/ | |
| 1419 | PORT_DIPSETTING( 0x6000, DEF_STR( 2C_3C ) ) | |
| 1420 | PORT_DIPSETTING( 0xe000, DEF_STR( 1C_2C ) ) | |
| 1421 | PORT_DIPSETTING( 0xd000, DEF_STR( 1C_3C ) ) | |
| 1422 | PORT_DIPSETTING( 0xc000, DEF_STR( 1C_4C ) ) | |
| 1423 | PORT_DIPSETTING( 0xb000, DEF_STR( 1C_5C ) ) | |
| 1424 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_6C ) ) | |
| 1425 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 1426 | INPUT_PORTS_END | |
| 1427 | ||
| 1428 | ||
| 1429 | ||
| 1367 | 1430 | /*************************************************************************** |
| 1368 | 1431 | |
| 1369 | 1432 | [ Big Striker ] |
| r3115 | r3116 | |
| 1437 | 1500 | RESERVE |
| 1438 | 1501 | |
| 1439 | 1502 | PORT_START("DSW1") |
| 1440 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) | |
| 1441 | PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) | |
| 1442 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) | |
| 1443 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) | |
| 1444 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) | |
| 1445 | PORT_DIPSETTING( 0x05, DEF_STR( 2C_3C ) ) | |
| 1446 | // PORT_DIPSETTING( 0x04, DEF_STR( 2C_3C ) ) | |
| 1447 | // PORT_DIPSETTING( 0x03, DEF_STR( 2C_3C ) ) | |
| 1448 | // PORT_DIPSETTING( 0x02, DEF_STR( 2C_3C ) ) | |
| 1449 | // PORT_DIPSETTING( 0x01, DEF_STR( 2C_3C ) ) | |
| 1450 | // PORT_DIPSETTING( 0x06, DEF_STR( 2C_3C ) ) | |
| 1451 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) | |
| 1452 | PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) | |
| 1453 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) | |
| 1454 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) | |
| 1455 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) | |
| 1456 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1457 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) | |
| 1458 | PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) | |
| 1459 | PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) | |
| 1460 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) | |
| 1461 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) | |
| 1462 | PORT_DIPSETTING( 0x50, DEF_STR( 2C_3C ) ) | |
| 1463 | // PORT_DIPSETTING( 0x40, DEF_STR( 2C_3C ) ) | |
| 1464 | // PORT_DIPSETTING( 0x30, DEF_STR( 2C_3C ) ) | |
| 1465 | // PORT_DIPSETTING( 0x20, DEF_STR( 2C_3C ) ) | |
| 1466 | // PORT_DIPSETTING( 0x10, DEF_STR( 2C_3C ) ) | |
| 1467 | // PORT_DIPSETTING( 0x60, DEF_STR( 2C_3C ) ) | |
| 1468 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) | |
| 1469 | PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) | |
| 1470 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) | |
| 1471 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) | |
| 1472 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) | |
| 1473 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1503 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) | |
| 1504 | PORT_DIPSETTING( 0x0007, DEF_STR( 4C_1C ) ) | |
| 1505 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) | |
| 1506 | PORT_DIPSETTING( 0x0009, DEF_STR( 2C_1C ) ) | |
| 1507 | PORT_DIPSETTING( 0x000f, DEF_STR( 1C_1C ) ) | |
| 1508 | PORT_DIPSETTING( 0x0005, DEF_STR( 2C_3C ) ) | |
| 1509 | // PORT_DIPSETTING( 0x0004, DEF_STR( 2C_3C ) ) | |
| 1510 | // PORT_DIPSETTING( 0x0003, DEF_STR( 2C_3C ) ) | |
| 1511 | // PORT_DIPSETTING( 0x0002, DEF_STR( 2C_3C ) ) | |
| 1512 | // PORT_DIPSETTING( 0x0001, DEF_STR( 2C_3C ) ) | |
| 1513 | // PORT_DIPSETTING( 0x0006, DEF_STR( 2C_3C ) ) | |
| 1514 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_2C ) ) | |
| 1515 | PORT_DIPSETTING( 0x000d, DEF_STR( 1C_3C ) ) | |
| 1516 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_4C ) ) | |
| 1517 | PORT_DIPSETTING( 0x000b, DEF_STR( 1C_5C ) ) | |
| 1518 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) | |
| 1519 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 1520 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) | |
| 1521 | PORT_DIPSETTING( 0x0070, DEF_STR( 4C_1C ) ) | |
| 1522 | PORT_DIPSETTING( 0x0080, DEF_STR( 3C_1C ) ) | |
| 1523 | PORT_DIPSETTING( 0x0090, DEF_STR( 2C_1C ) ) | |
| 1524 | PORT_DIPSETTING( 0x00f0, DEF_STR( 1C_1C ) ) | |
| 1525 | PORT_DIPSETTING( 0x0050, DEF_STR( 2C_3C ) ) | |
| 1526 | // PORT_DIPSETTING( 0x0040, DEF_STR( 2C_3C ) ) | |
| 1527 | // PORT_DIPSETTING( 0x0030, DEF_STR( 2C_3C ) ) | |
| 1528 | // PORT_DIPSETTING( 0x0020, DEF_STR( 2C_3C ) ) | |
| 1529 | // PORT_DIPSETTING( 0x0010, DEF_STR( 2C_3C ) ) | |
| 1530 | // PORT_DIPSETTING( 0x0060, DEF_STR( 2C_3C ) ) | |
| 1531 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_2C ) ) | |
| 1532 | PORT_DIPSETTING( 0x00d0, DEF_STR( 1C_3C ) ) | |
| 1533 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_4C ) ) | |
| 1534 | PORT_DIPSETTING( 0x00b0, DEF_STR( 1C_5C ) ) | |
| 1535 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_6C ) ) | |
| 1536 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 1474 | 1537 | |
| 1475 | 1538 | PORT_START("DSW2") |
| 1476 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 1477 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1478 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1479 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) | |
| 1480 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 1481 | PORT_DIPSETTING( 0x06, DEF_STR( Normal ) ) | |
| 1482 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 1483 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1484 | PORT_DIPNAME( 0x18, 0x18, "Time" ) | |
| 1485 | PORT_DIPSETTING( 0x00, "Very Short" ) | |
| 1486 | PORT_DIPSETTING( 0x10, "Short" ) | |
| 1487 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) | |
| 1488 | PORT_DIPSETTING( 0x08, "Long" ) | |
| 1489 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) | |
| 1490 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1491 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1492 | PORT_DIPNAME( 0x40, 0x40, "1 Credit 2 Play" ) | |
| 1493 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1494 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1495 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 1496 | ||
| 1539 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1540 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1541 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1542 | PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Difficulty ) ) | |
| 1543 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) | |
| 1544 | PORT_DIPSETTING( 0x0006, DEF_STR( Normal ) ) | |
| 1545 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) | |
| 1546 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1547 | PORT_DIPNAME( 0x0018, 0x0018, "Time" ) | |
| 1548 | PORT_DIPSETTING( 0x0000, "Very Short" ) | |
| 1549 | PORT_DIPSETTING( 0x0010, "Short" ) | |
| 1550 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) | |
| 1551 | PORT_DIPSETTING( 0x0008, "Long" ) | |
| 1552 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) | |
| 1553 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1554 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 1555 | PORT_DIPNAME( 0x0040, 0x0040, "1 Credit 2 Play" ) | |
| 1556 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1557 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1558 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1497 | 1559 | INPUT_PORTS_END |
| 1498 | 1560 | |
| 1499 | 1561 | |
| r3115 | r3116 | |
| 1556 | 1618 | RESERVE // Unused |
| 1557 | 1619 | |
| 1558 | 1620 | PORT_START("DSW1") |
| 1559 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 1560 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1561 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1562 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1563 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1564 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1565 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Allow_Continue ) ) | |
| 1566 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1567 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1568 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) | |
| 1569 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 1570 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) | |
| 1571 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) | |
| 1572 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1573 | PORT_DIPNAME( 0x60, 0x20, DEF_STR( Lives ) ) | |
| 1574 | PORT_DIPSETTING( 0x40, "1" ) | |
| 1575 | PORT_DIPSETTING( 0x60, "2" ) | |
| 1576 | PORT_DIPSETTING( 0x20, "3" ) | |
| 1577 | PORT_DIPSETTING( 0x00, "4" ) | |
| 1578 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 1621 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 1622 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1623 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1624 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1625 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1626 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1627 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Allow_Continue ) ) | |
| 1628 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1629 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) | |
| 1630 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) | |
| 1631 | PORT_DIPSETTING( 0x0010, DEF_STR( Easy ) ) | |
| 1632 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) | |
| 1633 | PORT_DIPSETTING( 0x0008, DEF_STR( Hard ) ) | |
| 1634 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 1635 | PORT_DIPNAME( 0x0060, 0x0020, DEF_STR( Lives ) ) | |
| 1636 | PORT_DIPSETTING( 0x0040, "1" ) | |
| 1637 | PORT_DIPSETTING( 0x0060, "2" ) | |
| 1638 | PORT_DIPSETTING( 0x0020, "3" ) | |
| 1639 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 1640 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1579 | 1641 | |
| 1580 | 1642 | PORT_START("DSW2") |
| 1581 | 1643 | COINAGE_8BITS |
| r3115 | r3116 | |
| 1681 | 1743 | RESERVE // Unused |
| 1682 | 1744 | |
| 1683 | 1745 | PORT_START("DSW1") /*1fd2d9.b, !1fd009.b */ |
| 1684 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) | |
| 1685 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1686 | PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C ) ) | |
| 1687 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) | |
| 1688 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 1689 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_3C ) ) | |
| 1690 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 1691 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 1692 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 1693 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) | |
| 1694 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) | |
| 1695 | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) | |
| 1696 | PORT_DIPSETTING( 0x18, DEF_STR( 2C_1C ) ) | |
| 1697 | PORT_DIPSETTING( 0x38, DEF_STR( 1C_1C ) ) | |
| 1698 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_3C ) ) | |
| 1699 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) | |
| 1700 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) | |
| 1701 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) | |
| 1702 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Free_Play ) ) | |
| 1703 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1704 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1705 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 1746 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 1747 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) | |
| 1748 | PORT_DIPSETTING( 0x0001, DEF_STR( 3C_1C ) ) | |
| 1749 | PORT_DIPSETTING( 0x0003, DEF_STR( 2C_1C ) ) | |
| 1750 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) | |
| 1751 | PORT_DIPSETTING( 0x0002, DEF_STR( 2C_3C ) ) | |
| 1752 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) | |
| 1753 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) | |
| 1754 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) | |
| 1755 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 1756 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) | |
| 1757 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) | |
| 1758 | PORT_DIPSETTING( 0x0018, DEF_STR( 2C_1C ) ) | |
| 1759 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) | |
| 1760 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_3C ) ) | |
| 1761 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) ) | |
| 1762 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) | |
| 1763 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) | |
| 1764 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) ) | |
| 1765 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1766 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1767 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1706 | 1768 | |
| 1707 | 1769 | PORT_START("DSW2") /* 1fd2d7.b, !1fd007.b */ |
| 1708 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 1709 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 1710 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 1711 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 1712 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) | |
| 1713 | PORT_DIPNAME( 0x04, 0x04, "Disable Instruction Screen" ) /* Manual states this dip is "Unused" */ | |
| 1714 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1715 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1716 | PORT_DIPNAME( 0x18, 0x018, DEF_STR( Allow_Continue ) ) | |
| 1717 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1718 | PORT_DIPSETTING( 0x10, "Up to Mission 4" ) | |
| 1719 | PORT_DIPSETTING( 0x08, "Not on Final Mission" ) | |
| 1720 | PORT_DIPSETTING( 0x18, DEF_STR( On ) ) | |
| 1721 | PORT_DIPNAME( 0x20, 0x20, "Intro Music" ) | |
| 1722 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1723 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1724 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1725 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1726 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1727 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 1728 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1729 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1730 | ||
| 1770 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 1771 | PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) ) | |
| 1772 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) | |
| 1773 | PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) ) | |
| 1774 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) | |
| 1775 | PORT_DIPNAME( 0x0004, 0x0004, "Disable Instruction Screen" ) /* Manual states this dip is "Unused" */ | |
| 1776 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 1777 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1778 | PORT_DIPNAME( 0x0018, 0x00018, DEF_STR( Allow_Continue ) ) | |
| 1779 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1780 | PORT_DIPSETTING( 0x0010, "Up to Mission 4" ) | |
| 1781 | PORT_DIPSETTING( 0x0008, "Not on Final Mission" ) | |
| 1782 | PORT_DIPSETTING( 0x0018, DEF_STR( On ) ) | |
| 1783 | PORT_DIPNAME( 0x0020, 0x0020, "Intro Music" ) | |
| 1784 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 1785 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) | |
| 1786 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1787 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1788 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1789 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 1790 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1791 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1731 | 1792 | INPUT_PORTS_END |
| 1732 | 1793 | |
| 1733 | 1794 | |
| r3115 | r3116 | |
| 1840 | 1901 | RESERVE |
| 1841 | 1902 | |
| 1842 | 1903 | PORT_START("DSW1") |
| 1843 | COINAGE_6BITS | |
| 1844 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) | |
| 1845 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1846 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1847 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 1904 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) | |
| 1905 | PORT_DIPSETTING( 0x0004, DEF_STR( 3C_1C ) ) | |
| 1906 | PORT_DIPSETTING( 0x0002, DEF_STR( 2C_1C ) ) | |
| 1907 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) | |
| 1908 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_2C ) ) | |
| 1909 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) | |
| 1910 | PORT_DIPSETTING( 0x0001, DEF_STR( 1C_4C ) ) | |
| 1911 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_5C ) ) | |
| 1912 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 1913 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) ) | |
| 1914 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) | |
| 1915 | PORT_DIPSETTING( 0x0020, DEF_STR( 3C_1C ) ) | |
| 1916 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) | |
| 1917 | PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) ) | |
| 1918 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) | |
| 1919 | PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) ) | |
| 1920 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_4C ) ) | |
| 1921 | PORT_DIPSETTING( 0x0030, DEF_STR( 1C_5C ) ) | |
| 1922 | PORT_DIPNAME( 0x000040, 0x000040, DEF_STR( Demo_Sounds ) ) | |
| 1923 | PORT_DIPSETTING( 0x000000, DEF_STR( Off ) ) | |
| 1924 | PORT_DIPSETTING( 0x000040, DEF_STR( On ) ) | |
| 1925 | PORT_SERVICE( 0x000080, IP_ACTIVE_LOW ) | |
| 1848 | 1926 | |
| 1849 | 1927 | PORT_START("DSW2") /* 0x66007.b */ |
| 1850 | PORT_DIPNAME( 0x07, 0x07, "DSW-B bits 2-0" ) | |
| 1851 | PORT_DIPSETTING( 0x00, "0" ) | |
| 1852 | PORT_DIPSETTING( 0x01, "1" ) | |
| 1853 | PORT_DIPSETTING( 0x02, "2" ) | |
| 1854 | PORT_DIPSETTING( 0x03, "3" ) | |
| 1855 | PORT_DIPSETTING( 0x04, "4" ) | |
| 1856 | PORT_DIPSETTING( 0x05, "5" ) | |
| 1857 | PORT_DIPSETTING( 0x06, "6" ) | |
| 1858 | PORT_DIPSETTING( 0x07, "7" ) | |
| 1859 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Lives ) ) | |
| 1860 | PORT_DIPSETTING( 0x08, "3" ) | |
| 1861 | PORT_DIPSETTING( 0x00, "4" ) | |
| 1862 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 1863 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1864 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 1865 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 1866 | PORT_DIPSETTING( 0x20, DEF_STR( Very_Hard ) ) | |
| 1867 | PORT_DIPNAME( 0x40, 0x40, "DSW-B bit 6" ) | |
| 1868 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1869 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1870 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 1871 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1872 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1928 | PORT_DIPNAME( 0x0007, 0x0007, "DSW-B bits 2-0" ) | |
| 1929 | PORT_DIPSETTING( 0x0000, "0" ) | |
| 1930 | PORT_DIPSETTING( 0x0001, "1" ) | |
| 1931 | PORT_DIPSETTING( 0x0002, "2" ) | |
| 1932 | PORT_DIPSETTING( 0x0003, "3" ) | |
| 1933 | PORT_DIPSETTING( 0x0004, "4" ) | |
| 1934 | PORT_DIPSETTING( 0x0005, "5" ) | |
| 1935 | PORT_DIPSETTING( 0x0006, "6" ) | |
| 1936 | PORT_DIPSETTING( 0x0007, "7" ) | |
| 1937 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Lives ) ) | |
| 1938 | PORT_DIPSETTING( 0x0008, "3" ) | |
| 1939 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 1940 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Difficulty ) ) | |
| 1941 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 1942 | PORT_DIPSETTING( 0x0030, DEF_STR( Normal ) ) | |
| 1943 | PORT_DIPSETTING( 0x0010, DEF_STR( Hard ) ) | |
| 1944 | PORT_DIPSETTING( 0x0020, DEF_STR( Very_Hard ) ) | |
| 1945 | PORT_DIPNAME( 0x0040, 0x0040, "DSW-B bit 6" ) | |
| 1946 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1947 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1948 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 1949 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1950 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1873 | 1951 | INPUT_PORTS_END |
| 1874 | 1952 | |
| 1875 | 1953 | |
| r3115 | r3116 | |
| 1939 | 2017 | JOY_2BUTTONS(2) |
| 1940 | 2018 | RESERVE |
| 1941 | 2019 | |
| 1942 | PORT_START("DSW1") /* 0x80006.b */ | |
| 2020 | PORT_START("DSW") | |
| 2021 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) /* Manual states dips 1-4 & 6 are "Unused" */ | |
| 2022 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 2023 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2024 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) | |
| 2025 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 2026 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2027 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 2028 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 2029 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2030 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 2031 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 2032 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2033 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Difficulty ) ) | |
| 2034 | PORT_DIPSETTING( 0x0030, DEF_STR( Normal ) ) | |
| 2035 | PORT_DIPSETTING( 0x0020, DEF_STR( Hard ) ) | |
| 2036 | PORT_DIPSETTING( 0x0010, DEF_STR( Harder ) ) | |
| 2037 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 2038 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 2039 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 2040 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2041 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 2042 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2043 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2044 | ||
| 1943 | 2045 | COINAGE_6BITS |
| 1944 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) | |
| 1945 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1946 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1947 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 1948 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1949 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1950 | ||
| 1951 | PORT_START("DSW2") /* 0x80007.b */ | |
| 1952 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Manual states dips 1-4 & 6 are "Unused" */ | |
| 1953 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1954 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1955 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unused ) ) | |
| 1956 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1957 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1958 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) | |
| 1959 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1960 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1961 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) | |
| 1962 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1963 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1964 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 1965 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 1966 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 1967 | PORT_DIPSETTING( 0x10, DEF_STR( Harder ) ) | |
| 1968 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1969 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) | |
| 1970 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1971 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1972 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 1973 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1974 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2046 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 2047 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 2048 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 2049 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) | |
| 2050 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 2051 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1975 | 2052 | INPUT_PORTS_END |
| 1976 | 2053 | |
| 1977 | 2054 | |
| r3115 | r3116 | |
| 2087 | 2164 | COINAGE_8BITS |
| 2088 | 2165 | |
| 2089 | 2166 | PORT_START("DSW2") /* 0x69353.b */ |
| 2090 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) | |
| 2091 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 2092 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2093 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Demo_Sounds ) ) | |
| 2094 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2095 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 2096 | PORT_DIPNAME( 0x04, 0x04, "Unknown 2-2" ) | |
| 2097 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 2098 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2099 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) | |
| 2100 | PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) | |
| 2101 | PORT_DIPSETTING( 0x18, DEF_STR( Normal ) ) | |
| 2102 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) | |
| 2103 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2104 | PORT_DIPNAME( 0x20, 0x20, "Points To Win" ) | |
| 2105 | PORT_DIPSETTING( 0x00, "10" ) | |
| 2106 | PORT_DIPSETTING( 0x20, "15" ) | |
| 2107 | PORT_DIPNAME( 0x40, 0x40, "Unknown 2-6" ) | |
| 2108 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2109 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2110 | PORT_DIPNAME( 0x80, 0x80, "Unknown 2-7" ) | |
| 2111 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2112 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2167 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) | |
| 2168 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 2169 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2170 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) | |
| 2171 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 2172 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) | |
| 2173 | PORT_DIPNAME( 0x0004, 0x0004, "Unknown 2-2" ) | |
| 2174 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 2175 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2176 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) | |
| 2177 | PORT_DIPSETTING( 0x0010, DEF_STR( Easy ) ) | |
| 2178 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) | |
| 2179 | PORT_DIPSETTING( 0x0008, DEF_STR( Hard ) ) | |
| 2180 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 2181 | PORT_DIPNAME( 0x0020, 0x0020, "Points To Win" ) | |
| 2182 | PORT_DIPSETTING( 0x0000, "10" ) | |
| 2183 | PORT_DIPSETTING( 0x0020, "15" ) | |
| 2184 | PORT_DIPNAME( 0x0040, 0x0040, "Unknown 2-6" ) | |
| 2185 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 2186 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2187 | PORT_DIPNAME( 0x0080, 0x0080, "Unknown 2-7" ) | |
| 2188 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2189 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2113 | 2190 | INPUT_PORTS_END |
| 2114 | 2191 | |
| 2115 | 2192 | |
| r3115 | r3116 | |
| 2217 | 2294 | JOY_2BUTTONS(2) |
| 2218 | 2295 | RESERVE |
| 2219 | 2296 | |
| 2220 | PORT_START("DSW1") /* 0x80006.b */ | |
| 2297 | PORT_START("DSW") | |
| 2298 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) | |
| 2299 | PORT_DIPSETTING( 0x0003, "2" ) | |
| 2300 | PORT_DIPSETTING( 0x0001, "3" ) | |
| 2301 | PORT_DIPSETTING( 0x0002, "4" ) | |
| 2302 | PORT_DIPSETTING( 0x0000, "Infinite (Cheat)" ) | |
| 2303 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Bonus_Life ) ) | |
| 2304 | PORT_DIPSETTING( 0x0004, "50k" ) | |
| 2305 | PORT_DIPSETTING( 0x0000, "200k" ) | |
| 2306 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Allow_Continue ) ) | |
| 2307 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 2308 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) | |
| 2309 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Difficulty ) ) | |
| 2310 | PORT_DIPSETTING( 0x0030, DEF_STR( Normal ) ) | |
| 2311 | PORT_DIPSETTING( 0x0020, DEF_STR( Hard ) ) | |
| 2312 | PORT_DIPSETTING( 0x0010, DEF_STR( Harder ) ) | |
| 2313 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 2314 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Cabinet ) ) | |
| 2315 | PORT_DIPSETTING( 0x0000, DEF_STR( Upright ) ) | |
| 2316 | PORT_DIPSETTING( 0x0040, DEF_STR( Cocktail ) ) | |
| 2317 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 2318 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2319 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2320 | ||
| 2221 | 2321 | COINAGE_6BITS |
| 2222 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 2223 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2224 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2225 | PORT_DIPNAME( 0x80, 0x80, "Freeze Screen (Cheat)") | |
| 2226 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2227 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2228 | ||
| 2229 | PORT_START("DSW2") /* 0x80007.b */ | |
| 2230 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 2231 | PORT_DIPSETTING( 0x03, "2" ) | |
| 2232 | PORT_DIPSETTING( 0x01, "3" ) | |
| 2233 | PORT_DIPSETTING( 0x02, "4" ) | |
| 2234 | PORT_DIPSETTING( 0x00, "Infinite (Cheat)" ) | |
| 2235 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Bonus_Life ) ) | |
| 2236 | PORT_DIPSETTING( 0x04, "50k" ) | |
| 2237 | PORT_DIPSETTING( 0x00, "200k" ) | |
| 2238 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Allow_Continue ) ) | |
| 2239 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2240 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 2241 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 2242 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 2243 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 2244 | PORT_DIPSETTING( 0x10, DEF_STR( Harder ) ) | |
| 2245 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2246 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 2247 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2248 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 2249 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 2250 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2251 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2322 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 2323 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 2324 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2325 | PORT_DIPNAME( 0x8000, 0x8000, "Freeze Screen (Cheat)") | |
| 2326 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 2327 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2252 | 2328 | INPUT_PORTS_END |
| 2253 | 2329 | |
| 2254 | 2330 | |
| r3115 | r3116 | |
| 2321 | 2397 | JOY_3BUTTONS(2) |
| 2322 | 2398 | RESERVE |
| 2323 | 2399 | |
| 2324 | PORT_START("DSW1") /* 0x80006.b */ | |
| 2400 | PORT_START("DSW") | |
| 2401 | PORT_DIPNAME( 0x0001, 0x0001, "2 Player Innings per Credit" ) | |
| 2402 | PORT_DIPSETTING( 0x0001, "2" ) | |
| 2403 | PORT_DIPSETTING( 0x0000, "3" ) | |
| 2404 | PORT_DIPNAME( 0x0002, 0x0002, "Difficulty for Catching Ball" ) | |
| 2405 | PORT_DIPSETTING( 0x0002, DEF_STR( Normal ) ) // $200-140 | |
| 2406 | PORT_DIPSETTING( 0x0000, DEF_STR( Hard ) ) // $400-140 | |
| 2407 | PORT_DIPNAME( 0x003c, 0x003c, "Franchise (Increase Batting Power)" ) | |
| 2408 | PORT_DIPSETTING( 0x003c, DEF_STR( Normal ) ) | |
| 2409 | PORT_DIPSETTING( 0x0038, "G" ) | |
| 2410 | PORT_DIPSETTING( 0x0034, "D" ) | |
| 2411 | PORT_DIPSETTING( 0x0030, "C" ) /* I hope the Japanese Baseball crowd knows what these leagues are ;-) */ | |
| 2412 | PORT_DIPSETTING( 0x002c, "S" ) | |
| 2413 | PORT_DIPSETTING( 0x0028, "W (B)" ) | |
| 2414 | PORT_DIPSETTING( 0x0024, "T" ) | |
| 2415 | PORT_DIPSETTING( 0x0020, "L" ) | |
| 2416 | PORT_DIPSETTING( 0x001c, "Br (Bw)" ) | |
| 2417 | PORT_DIPSETTING( 0x0018, "F" ) | |
| 2418 | PORT_DIPSETTING( 0x0014, "H" ) | |
| 2419 | PORT_DIPSETTING( 0x0010, "O (M)" ) | |
| 2420 | PORT_DIPSETTING( 0x000c, "Bu" ) | |
| 2421 | // PORT_DIPSETTING( 0x0008, "13" ) | |
| 2422 | // PORT_DIPSETTING( 0x0004, "14" ) | |
| 2423 | // PORT_DIPSETTING( 0x0000, "15" ) | |
| 2424 | PORT_DIPNAME( 0x0040, 0x0040, "Scroll Is Based On" ) | |
| 2425 | PORT_DIPSETTING( 0x0040, "Shadow of Baseball" ) | |
| 2426 | PORT_DIPSETTING( 0x0000, "The Baseball Itself" ) | |
| 2427 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 2428 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2429 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2430 | ||
| 2325 | 2431 | COINAGE_6BITS |
| 2326 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 2327 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2328 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2329 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 2330 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2331 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2332 | ||
| 2333 | PORT_START("DSW2") /* 0x80007.b */ | |
| 2334 | PORT_DIPNAME( 0x01, 0x01, "2 Player Innings per Credit" ) | |
| 2335 | PORT_DIPSETTING( 0x01, "2" ) | |
| 2336 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2337 | PORT_DIPNAME( 0x02, 0x02, "Difficulty for Catching Ball" ) | |
| 2338 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) // $200-140 | |
| 2339 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) // $400-140 | |
| 2340 | PORT_DIPNAME( 0x3c, 0x3c, "Franchise (Increase Batting Power)" ) | |
| 2341 | PORT_DIPSETTING( 0x3c, DEF_STR( Normal ) ) | |
| 2342 | PORT_DIPSETTING( 0x38, "G" ) | |
| 2343 | PORT_DIPSETTING( 0x34, "D" ) | |
| 2344 | PORT_DIPSETTING( 0x30, "C" ) /* I hope the Japanese Baseball crowd knows what these leagues are ;-) */ | |
| 2345 | PORT_DIPSETTING( 0x2c, "S" ) | |
| 2346 | PORT_DIPSETTING( 0x28, "W (B)" ) | |
| 2347 | PORT_DIPSETTING( 0x24, "T" ) | |
| 2348 | PORT_DIPSETTING( 0x20, "L" ) | |
| 2349 | PORT_DIPSETTING( 0x1c, "Br (Bw)" ) | |
| 2350 | PORT_DIPSETTING( 0x18, "F" ) | |
| 2351 | PORT_DIPSETTING( 0x14, "H" ) | |
| 2352 | PORT_DIPSETTING( 0x10, "O (M)" ) | |
| 2353 | PORT_DIPSETTING( 0x0c, "Bu" ) | |
| 2354 | // PORT_DIPSETTING( 0x08, "13" ) | |
| 2355 | // PORT_DIPSETTING( 0x04, "14" ) | |
| 2356 | // PORT_DIPSETTING( 0x00, "15" ) | |
| 2357 | PORT_DIPNAME( 0x40, 0x40, "Scroll Is Based On" ) | |
| 2358 | PORT_DIPSETTING( 0x40, "Shadow of Baseball" ) | |
| 2359 | PORT_DIPSETTING( 0x00, "The Baseball Itself" ) | |
| 2360 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 2361 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2362 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2363 | ||
| 2432 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 2433 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 2434 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2435 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) | |
| 2436 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 2437 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2364 | 2438 | INPUT_PORTS_END |
| 2365 | 2439 | |
| 2366 | 2440 | |
| r3115 | r3116 | |
| 2446 | 2520 | JOY_2BUTTONS(2) |
| 2447 | 2521 | RESERVE |
| 2448 | 2522 | |
| 2449 | PORT_START("DSW1") /* 0x80006.b */ | |
| 2450 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) | |
| 2451 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) | |
| 2452 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2453 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) | |
| 2454 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) | |
| 2455 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 2456 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) | |
| 2457 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) | |
| 2458 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 2459 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) | |
| 2460 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 2461 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2462 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) | |
| 2463 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 2464 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2465 | PORT_DIPNAME( 0x20, 0x20, "Freeze Screen (Cheat)" ) | |
| 2466 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 2467 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2468 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 2469 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2470 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2471 | PORT_DIPNAME( 0x80, 0x80, "Text" ) | |
| 2472 | PORT_DIPSETTING( 0x80, DEF_STR( Japanese ) ) | |
| 2473 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) // show "Japan Only" warning | |
| 2523 | PORT_START("DSW") | |
| 2524 | PORT_DIPNAME( 0x0003, 0x0003, "Time" ) // -> !f0082.w | |
| 2525 | PORT_DIPSETTING( 0x0003, "3'" ) | |
| 2526 | PORT_DIPSETTING( 0x0002, "4'" ) | |
| 2527 | PORT_DIPSETTING( 0x0001, "5'" ) | |
| 2528 | PORT_DIPSETTING( 0x0000, "6'" ) | |
| 2529 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) /* Manual states dips 3 & 4 are "Unused" */ | |
| 2530 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 2531 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2532 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 2533 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 2534 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2535 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Difficulty ) ) | |
| 2536 | PORT_DIPSETTING( 0x0030, DEF_STR( Normal ) ) | |
| 2537 | PORT_DIPSETTING( 0x0020, DEF_STR( Hard ) ) | |
| 2538 | PORT_DIPSETTING( 0x0010, DEF_STR( Harder ) ) | |
| 2539 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 2540 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Controls ) ) | |
| 2541 | PORT_DIPSETTING( 0x0040, DEF_STR( Trackball ) ) | |
| 2542 | PORT_DIPSETTING( 0x0000, DEF_STR( Joystick ) ) | |
| 2543 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 2544 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2545 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2474 | 2546 | |
| 2475 | PORT_START("DSW2") /* 0x80007.b */ | |
| 2476 | PORT_DIPNAME( 0x03, 0x03, "Time" ) // -> !f0082.w | |
| 2477 | PORT_DIPSETTING( 0x03, "3'" ) | |
| 2478 | PORT_DIPSETTING( 0x02, "4'" ) | |
| 2479 | PORT_DIPSETTING( 0x01, "5'" ) | |
| 2480 | PORT_DIPSETTING( 0x00, "6'" ) | |
| 2481 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) /* Manual states dips 3 & 4 are "Unused" */ | |
| 2482 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 2483 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2484 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) | |
| 2485 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 2486 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2487 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 2488 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 2489 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 2490 | PORT_DIPSETTING( 0x10, DEF_STR( Harder ) ) | |
| 2491 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 2492 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Controls ) ) | |
| 2493 | PORT_DIPSETTING( 0x40, DEF_STR( Trackball ) ) | |
| 2494 | PORT_DIPSETTING( 0x00, DEF_STR( Joystick ) ) | |
| 2495 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 2496 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2497 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2547 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) | |
| 2548 | PORT_DIPSETTING( 0x0100, DEF_STR( 4C_1C ) ) | |
| 2549 | PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) ) | |
| 2550 | PORT_DIPSETTING( 0x0300, DEF_STR( 2C_1C ) ) | |
| 2551 | PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) ) | |
| 2552 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_2C ) ) | |
| 2553 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) ) | |
| 2554 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) | |
| 2555 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 2556 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) ) | |
| 2557 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 2558 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2559 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unused ) ) | |
| 2560 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 2561 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2562 | PORT_DIPNAME( 0x2000, 0x2000, "Freeze Screen (Cheat)" ) | |
| 2563 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 2564 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2565 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 2566 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 2567 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2568 | PORT_DIPNAME( 0x8000, 0x8000, "Text" ) | |
| 2569 | PORT_DIPSETTING( 0x8000, DEF_STR( Japanese ) ) | |
| 2570 | PORT_DIPSETTING( 0x0000, DEF_STR( English ) ) // show "Japan Only" warning | |
| 2498 | 2571 | INPUT_PORTS_END |
| 2499 | 2572 | |
| 2500 | 2573 | |
| r3115 | r3116 | |
| 2565 | 2638 | JOY_2BUTTONS(2) |
| 2566 | 2639 | RESERVE |
| 2567 | 2640 | |
| 2568 | PORT_START("DSW1") /* 0x80006.b */ | |
| 2641 | PORT_START("DSW") | |
| 2642 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) | |
| 2643 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 2644 | PORT_DIPSETTING( 0x0003, "3" ) | |
| 2645 | PORT_DIPSETTING( 0x0002, "4" ) | |
| 2646 | PORT_DIPSETTING( 0x0001, "5" ) | |
| 2647 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) | |
| 2648 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 2649 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2650 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) | |
| 2651 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 2652 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2653 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Difficulty ) ) // boss enemy damage bar | |
| 2654 | PORT_DIPSETTING( 0x0030, DEF_STR( Easy ) ) // 6 dots | |
| 2655 | PORT_DIPSETTING( 0x0020, DEF_STR( Normal ) ) // 8 dots | |
| 2656 | PORT_DIPSETTING( 0x0010, DEF_STR( Hard ) ) // 9 dots | |
| 2657 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) // 12 dots | |
| 2658 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Cabinet ) ) | |
| 2659 | PORT_DIPSETTING( 0x0000, DEF_STR( Upright ) ) | |
| 2660 | PORT_DIPSETTING( 0x0040, DEF_STR( Cocktail ) ) | |
| 2661 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 2662 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2663 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2664 | ||
| 2569 | 2665 | COINAGE_6BITS_2 |
| 2570 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 2571 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2572 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2573 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") | |
| 2574 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2575 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2576 | ||
| 2577 | PORT_START("DSW2") /* 0x80007.b */ | |
| 2578 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 2579 | PORT_DIPSETTING( 0x00, "2" ) | |
| 2580 | PORT_DIPSETTING( 0x03, "3" ) | |
| 2581 | PORT_DIPSETTING( 0x02, "4" ) | |
| 2582 | PORT_DIPSETTING( 0x01, "5" ) | |
| 2583 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 2584 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 2585 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2586 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 2587 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 2588 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2589 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) // boss enemy damage bar | |
| 2590 | PORT_DIPSETTING( 0x30, DEF_STR( Easy ) ) // 6 dots | |
| 2591 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) // 8 dots | |
| 2592 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) // 9 dots | |
| 2593 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) // 12 dots | |
| 2594 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 2595 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2596 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 2597 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 2598 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2599 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2666 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 2667 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 2668 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2669 | PORT_DIPNAME( 0x8000, 0x8000, "Invulnerability (Cheat)") | |
| 2670 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 2671 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2600 | 2672 | INPUT_PORTS_END |
| 2601 | 2673 | |
| 2602 | 2674 | |
| r3115 | r3116 | |
| 2747 | 2819 | JOY_2BUTTONS(2) |
| 2748 | 2820 | RESERVE |
| 2749 | 2821 | |
| 2750 | PORT_START("DSW1") /* 0x80006.b */ | |
| 2822 | PORT_START("DSW") | |
| 2823 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) | |
| 2824 | PORT_DIPSETTING( 0x0002, "2" ) | |
| 2825 | PORT_DIPSETTING( 0x0003, "3" ) | |
| 2826 | PORT_DIPSETTING( 0x0001, "4" ) | |
| 2827 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 2828 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) /* Manual states dips 3 & 4 are "Unused" */ | |
| 2829 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 2830 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2831 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 2832 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 2833 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2834 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Difficulty ) ) | |
| 2835 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 2836 | PORT_DIPSETTING( 0x0030, DEF_STR( Normal ) ) | |
| 2837 | PORT_DIPSETTING( 0x0020, DEF_STR( Hard ) ) | |
| 2838 | PORT_DIPSETTING( 0x0010, DEF_STR( Hardest ) ) | |
| 2839 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) /* Manual states this dip is "Unused" */ | |
| 2840 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 2841 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2842 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 2843 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2844 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2845 | ||
| 2751 | 2846 | COINAGE_6BITS_2 |
| 2752 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) | |
| 2753 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2754 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 2755 | PORT_DIPNAME( 0x80, 0x80, "Invulnerability (Cheat)") | |
| 2756 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2757 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2758 | ||
| 2759 | PORT_START("DSW2") /* 0x80007.b */ | |
| 2760 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 2761 | PORT_DIPSETTING( 0x02, "2" ) | |
| 2762 | PORT_DIPSETTING( 0x03, "3" ) | |
| 2763 | PORT_DIPSETTING( 0x01, "4" ) | |
| 2764 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2765 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) /* Manual states dips 3 & 4 are "Unused" */ | |
| 2766 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 2767 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2768 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) | |
| 2769 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 2770 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2771 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 2772 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 2773 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 2774 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 2775 | PORT_DIPSETTING( 0x10, DEF_STR( Hardest ) ) | |
| 2776 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) /* Manual states this dip is "Unused" */ | |
| 2777 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2778 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2779 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 2780 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2781 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2847 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 2848 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 2849 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 2850 | PORT_DIPNAME( 0x8000, 0x8000, "Invulnerability (Cheat)") | |
| 2851 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 2852 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2782 | 2853 | INPUT_PORTS_END |
| 2783 | 2854 | |
| 2784 | 2855 | |
| r3115 | r3116 | |
| 2932 | 3003 | PEEKABOO_PADDLE(2) PORT_COCKTAIL |
| 2933 | 3004 | RESERVE |
| 2934 | 3005 | |
| 2935 | PORT_START("DSW1") /* 1f003a.b<-e0000.b */ | |
| 3006 | PORT_START("DSW") | |
| 3007 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) // 1f0358<-! | |
| 3008 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 3009 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) | |
| 3010 | PORT_DIPSETTING( 0x0002, DEF_STR( Hard ) ) | |
| 3011 | PORT_DIPSETTING( 0x0001, DEF_STR( Hardest ) ) | |
| 3012 | PORT_SERVICE( 0x0004, IP_ACTIVE_LOW ) | |
| 3013 | PORT_DIPNAME( 0x0008, 0x0008, "Movement" ) // 1f0392<-! | |
| 3014 | PORT_DIPSETTING( 0x0008, "Paddles" ) | |
| 3015 | PORT_DIPSETTING( 0x0000, "Buttons" ) | |
| 3016 | PORT_DIPNAME( 0x0030, 0x0030, "Nudity" ) // 1f0356<-! | |
| 3017 | PORT_DIPSETTING( 0x0030, "Female and Male (Full)" ) | |
| 3018 | PORT_DIPSETTING( 0x0020, "Female (Full)" ) | |
| 3019 | PORT_DIPSETTING( 0x0010, "Female (Partial)" ) | |
| 3020 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) | |
| 3021 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Cabinet ) ) // 1f006a<-! | |
| 3022 | PORT_DIPSETTING( 0x0040, DEF_STR( Upright ) ) | |
| 3023 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) | |
| 3024 | PORT_DIPNAME( 0x0080, 0x0080, "Number of controllers" ) // 1f0074<-! | |
| 3025 | PORT_DIPSETTING( 0x0080, "1" ) | |
| 3026 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 3027 | ||
| 2936 | 3028 | COINAGE_6BITS_2 |
| 2937 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) // 1f0354<- | |
| 2938 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2939 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 2940 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) // 1f0022/6e<-! | |
| 2941 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2942 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2943 | ||
| 2944 | PORT_START("DSW2") /* 1f003b.b<-e0001.b */ | |
| 2945 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) // 1f0358<-! | |
| 2946 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 2947 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 2948 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 2949 | PORT_DIPSETTING( 0x01, DEF_STR( Hardest ) ) | |
| 2950 | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) | |
| 2951 | PORT_DIPNAME( 0x08, 0x08, "Movement" ) // 1f0392<-! | |
| 2952 | PORT_DIPSETTING( 0x08, "Paddles" ) | |
| 2953 | PORT_DIPSETTING( 0x00, "Buttons" ) | |
| 2954 | PORT_DIPNAME( 0x30, 0x30, "Nudity" ) // 1f0356<-! | |
| 2955 | PORT_DIPSETTING( 0x30, "Female and Male (Full)" ) | |
| 2956 | PORT_DIPSETTING( 0x20, "Female (Full)" ) | |
| 2957 | PORT_DIPSETTING( 0x10, "Female (Partial)" ) | |
| 2958 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 2959 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Cabinet ) ) // 1f006a<-! | |
| 2960 | PORT_DIPSETTING( 0x40, DEF_STR( Upright ) ) | |
| 2961 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 2962 | PORT_DIPNAME( 0x80, 0x80, "Number of controllers" ) // 1f0074<-! | |
| 2963 | PORT_DIPSETTING( 0x80, "1" ) | |
| 2964 | PORT_DIPSETTING( 0x00, "2" ) | |
| 3029 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) // 1f0354<- | |
| 3030 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 3031 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 3032 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Flip_Screen ) ) // 1f0022/6e<-! | |
| 3033 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 3034 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2965 | 3035 | INPUT_PORTS_END |
| 2966 | 3036 | |
| 2967 | 3037 | |
| r3115 | r3116 | |
| 3068 | 3138 | JOY_2BUTTONS(2) |
| 3069 | 3139 | RESERVE |
| 3070 | 3140 | |
| 3071 | PORT_START("DSW1") /* 0x80006.b */ | |
| 3141 | PORT_START("DSW") | |
| 3142 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) | |
| 3143 | PORT_DIPSETTING( 0x0003, "3" ) | |
| 3144 | PORT_DIPSETTING( 0x0002, "4" ) | |
| 3145 | PORT_DIPSETTING( 0x0001, "5" ) | |
| 3146 | PORT_DIPSETTING( 0x0000, "Infinite (Cheat)" ) | |
| 3147 | PORT_DIPNAME( 0x0004, 0x0004, "Hyper Laser Beams" ) | |
| 3148 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 3149 | PORT_DIPSETTING( 0x0004, "3" ) | |
| 3150 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Bonus_Life ) ) | |
| 3151 | PORT_DIPSETTING( 0x0008, "70k and every 200k") /* As stated in manual, but was 70K & Every 130K */ | |
| 3152 | PORT_DIPSETTING( 0x0000, "100k and 300k Only") /* As stated in manual, but was 100K & Every 200K */ | |
| 3153 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Difficulty ) ) | |
| 3154 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 3155 | PORT_DIPSETTING( 0x0030, DEF_STR( Normal ) ) | |
| 3156 | PORT_DIPSETTING( 0x0010, DEF_STR( Hard ) ) | |
| 3157 | PORT_DIPSETTING( 0x0020, DEF_STR( Hardest ) ) | |
| 3158 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Cabinet ) ) | |
| 3159 | PORT_DIPSETTING( 0x0000, DEF_STR( Upright ) ) | |
| 3160 | PORT_DIPSETTING( 0x0040, DEF_STR( Cocktail ) ) | |
| 3161 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 3162 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 3163 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3164 | ||
| 3072 | 3165 | COINAGE_6BITS |
| 3073 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) | |
| 3074 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3075 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3076 | PORT_DIPNAME( 0x80, 0x80, "Freeze Screen (Cheat)") | |
| 3077 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3078 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3079 | ||
| 3080 | PORT_START("DSW2") /* 0x80007.b */ | |
| 3081 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 3082 | PORT_DIPSETTING( 0x03, "3" ) | |
| 3083 | PORT_DIPSETTING( 0x02, "4" ) | |
| 3084 | PORT_DIPSETTING( 0x01, "5" ) | |
| 3085 | PORT_DIPSETTING( 0x00, "Infinite (Cheat)" ) | |
| 3086 | PORT_DIPNAME( 0x04, 0x04, "Hyper Laser Beams" ) | |
| 3087 | PORT_DIPSETTING( 0x00, "2" ) | |
| 3088 | PORT_DIPSETTING( 0x04, "3" ) | |
| 3089 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) | |
| 3090 | PORT_DIPSETTING( 0x08, "70k and every 200k") /* As stated in manual, but was 70K & Every 130K */ | |
| 3091 | PORT_DIPSETTING( 0x00, "100k and 300k Only") /* As stated in manual, but was 100K & Every 200K */ | |
| 3092 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 3093 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 3094 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) | |
| 3095 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 3096 | PORT_DIPSETTING( 0x20, DEF_STR( Hardest ) ) | |
| 3097 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 3098 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3099 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 3100 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 3101 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3102 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3166 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 3167 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 3168 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 3169 | PORT_DIPNAME( 0x8000, 0x8000, "Freeze Screen (Cheat)") | |
| 3170 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 3171 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3103 | 3172 | INPUT_PORTS_END |
| 3104 | 3173 | |
| 3105 | 3174 | |
| r3115 | r3116 | |
| 3260 | 3329 | JOY_2BUTTONS(2) |
| 3261 | 3330 | RESERVE |
| 3262 | 3331 | |
| 3263 | PORT_START("DSW1") /* 0x80006.b */ | |
| 3332 | PORT_START("DSW") | |
| 3333 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) /* according to manual */ | |
| 3334 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 3335 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3336 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) /* according to manual */ | |
| 3337 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 3338 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3339 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Lives ) ) | |
| 3340 | PORT_DIPSETTING( 0x0004, "2" ) | |
| 3341 | PORT_DIPSETTING( 0x000c, "3" ) | |
| 3342 | PORT_DIPSETTING( 0x0008, "4" ) | |
| 3343 | PORT_DIPSETTING( 0x0000, "Infinite (Cheat)") | |
| 3344 | PORT_DIPNAME( 0x0010, 0x0010, "Default episode" ) | |
| 3345 | PORT_DIPSETTING( 0x0010, "1" ) | |
| 3346 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 3347 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) | |
| 3348 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 3349 | PORT_DIPSETTING( 0x0060, DEF_STR( Normal ) ) | |
| 3350 | PORT_DIPSETTING( 0x0020, DEF_STR( Hard ) ) | |
| 3351 | PORT_DIPSETTING( 0x0040, DEF_STR( Hardest ) ) | |
| 3352 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 3353 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 3354 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3355 | ||
| 3264 | 3356 | COINAGE_6BITS |
| 3265 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 3266 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 3267 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3268 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 3269 | ||
| 3270 | PORT_START("DSW2") /* 0x80007.b */ | |
| 3271 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* according to manual */ | |
| 3272 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 3273 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3274 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unused ) ) /* according to manual */ | |
| 3275 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 3276 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3277 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) | |
| 3278 | PORT_DIPSETTING( 0x04, "2" ) | |
| 3279 | PORT_DIPSETTING( 0x0c, "3" ) | |
| 3280 | PORT_DIPSETTING( 0x08, "4" ) | |
| 3281 | PORT_DIPSETTING( 0x00, "Infinite (Cheat)") | |
| 3282 | PORT_DIPNAME( 0x10, 0x10, "Default episode" ) | |
| 3283 | PORT_DIPSETTING( 0x10, "1" ) | |
| 3284 | PORT_DIPSETTING( 0x00, "2" ) | |
| 3285 | PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) | |
| 3286 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 3287 | PORT_DIPSETTING( 0x60, DEF_STR( Normal ) ) | |
| 3288 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 3289 | PORT_DIPSETTING( 0x40, DEF_STR( Hardest ) ) | |
| 3290 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 3291 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3292 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3357 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 3358 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 3359 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3360 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) | |
| 3293 | 3361 | INPUT_PORTS_END |
| 3294 | 3362 | |
| 3295 | 3363 | |
| r3115 | r3116 | |
| 3356 | 3424 | JOY_2BUTTONS(2) |
| 3357 | 3425 | RESERVE |
| 3358 | 3426 | |
| 3359 | PORT_START("DSW1") /* 0x80006.b */ | |
| 3427 | PORT_START("DSW") | |
| 3428 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) | |
| 3429 | PORT_DIPSETTING( 0x0002, "2" ) | |
| 3430 | PORT_DIPSETTING( 0x0003, "3" ) | |
| 3431 | PORT_DIPSETTING( 0x0001, "4" ) | |
| 3432 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 3433 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) /* Manual states dips 3 & 4 are "Unused" */ | |
| 3434 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 3435 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3436 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 3437 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 3438 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3439 | PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Difficulty ) ) | |
| 3440 | PORT_DIPSETTING( 0x0030, DEF_STR( Easy ) ) | |
| 3441 | PORT_DIPSETTING( 0x0020, DEF_STR( Normal ) ) | |
| 3442 | PORT_DIPSETTING( 0x0010, DEF_STR( Hard ) ) | |
| 3443 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 3444 | PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Cabinet ) ) | |
| 3445 | PORT_DIPSETTING( 0x0000, DEF_STR( Upright ) ) | |
| 3446 | PORT_DIPSETTING( 0x0040, DEF_STR( Cocktail ) ) | |
| 3447 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 3448 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 3449 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3450 | ||
| 3360 | 3451 | COINAGE_6BITS_2 |
| 3361 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) | |
| 3362 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3363 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3364 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) // used? | |
| 3365 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3366 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3367 | ||
| 3368 | PORT_START("DSW2") /* 0x80007.b */ | |
| 3369 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 3370 | PORT_DIPSETTING( 0x02, "2" ) | |
| 3371 | PORT_DIPSETTING( 0x03, "3" ) | |
| 3372 | PORT_DIPSETTING( 0x01, "4" ) | |
| 3373 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3374 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) /* Manual states dips 3 & 4 are "Unused" */ | |
| 3375 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 3376 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3377 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) | |
| 3378 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 3379 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3380 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) | |
| 3381 | PORT_DIPSETTING( 0x30, DEF_STR( Easy ) ) | |
| 3382 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) | |
| 3383 | PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) | |
| 3384 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3385 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 3386 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3387 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 3388 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 3389 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3390 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3452 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 3453 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 3454 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 3455 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) // used? | |
| 3456 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 3457 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3391 | 3458 | INPUT_PORTS_END |
| 3392 | 3459 | |
| 3393 | 3460 | |
| r3115 | r3116 | |
| 3448 | 3515 | JOY_2BUTTONS(2) |
| 3449 | 3516 | RESERVE |
| 3450 | 3517 | |
| 3451 | PORT_START("DSW1") /* 0x80006.b */ | |
| 3518 | PORT_START("DSW") | |
| 3519 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) | |
| 3520 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) | |
| 3521 | PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) ) | |
| 3522 | PORT_DIPSETTING( 0x0002, DEF_STR( Hard ) ) | |
| 3523 | PORT_DIPSETTING( 0x0001, DEF_STR( Hardest )) | |
| 3524 | PORT_DIPNAME( 0x000c, 0x000c, "Games To Play (Vs)" ) | |
| 3525 | PORT_DIPSETTING( 0x0000, "1" ) | |
| 3526 | PORT_DIPSETTING( 0x000c, "2" ) | |
| 3527 | PORT_DIPSETTING( 0x0008, "3" ) | |
| 3528 | PORT_DIPSETTING( 0x0004, "4" ) | |
| 3529 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Allow_Continue ) ) | |
| 3530 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 3531 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) | |
| 3532 | PORT_DIPNAME( 0x0020, 0x0020, "Credits To Start (Vs)" ) | |
| 3533 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 3534 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 3535 | PORT_DIPNAME( 0x0040, 0x0040, "Credits To Continue (Vs)" ) | |
| 3536 | PORT_DIPSETTING( 0x0040, "1" ) | |
| 3537 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 3538 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 3539 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 3540 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3541 | ||
| 3452 | 3542 | COINAGE_6BITS_2 |
| 3453 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) | |
| 3454 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3455 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3456 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 3457 | ||
| 3458 | PORT_START("DSW2") /* 0x80007.b */ | |
| 3459 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 3460 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 3461 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 3462 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 3463 | PORT_DIPSETTING( 0x01, DEF_STR( Hardest )) | |
| 3464 | PORT_DIPNAME( 0x0c, 0x0c, "Games To Play (Vs)" ) | |
| 3465 | PORT_DIPSETTING( 0x00, "1" ) | |
| 3466 | PORT_DIPSETTING( 0x0c, "2" ) | |
| 3467 | PORT_DIPSETTING( 0x08, "3" ) | |
| 3468 | PORT_DIPSETTING( 0x04, "4" ) | |
| 3469 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) | |
| 3470 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3471 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3472 | PORT_DIPNAME( 0x20, 0x20, "Credits To Start (Vs)" ) | |
| 3473 | PORT_DIPSETTING( 0x20, "1" ) | |
| 3474 | PORT_DIPSETTING( 0x00, "2" ) | |
| 3475 | PORT_DIPNAME( 0x40, 0x40, "Credits To Continue (Vs)" ) | |
| 3476 | PORT_DIPSETTING( 0x40, "1" ) | |
| 3477 | PORT_DIPSETTING( 0x00, "2" ) | |
| 3478 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 3479 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3480 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3543 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 3544 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 3545 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 3546 | PORT_SERVICE( 0x8000, IP_ACTIVE_LOW ) | |
| 3481 | 3547 | INPUT_PORTS_END |
| 3482 | 3548 | |
| 3483 | 3549 | static READ16_HANDLER( soldamj_spriteram16_r ) |
| r3115 | r3116 | |
| 3586 | 3652 | JOY_3BUTTONS(2) |
| 3587 | 3653 | RESERVE |
| 3588 | 3654 | |
| 3589 | PORT_START("DSW1") /* 0x80006.b */ | |
| 3655 | PORT_START("DSW") | |
| 3656 | PORT_DIPNAME( 0x0003, 0x0001, DEF_STR( Lives ) ) | |
| 3657 | PORT_DIPSETTING( 0x0003, "2" ) | |
| 3658 | PORT_DIPSETTING( 0x0001, "3" ) | |
| 3659 | PORT_DIPSETTING( 0x0002, "4" ) | |
| 3660 | PORT_DIPSETTING( 0x0000, "Infinite (Cheat)" ) | |
| 3661 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Bonus_Life ) ) | |
| 3662 | PORT_DIPSETTING( 0x000c, "20k" ) | |
| 3663 | PORT_DIPSETTING( 0x0004, "30k" ) | |
| 3664 | PORT_DIPSETTING( 0x0008, "40k" ) | |
| 3665 | PORT_DIPSETTING( 0x0000, "50k" ) | |
| 3666 | PORT_DIPNAME( 0x0030, 0x0010, DEF_STR( Difficulty ) ) // damage when hit | |
| 3667 | PORT_DIPSETTING( 0x0030, DEF_STR( Easy ) ) // 0 | |
| 3668 | PORT_DIPSETTING( 0x0010, DEF_STR( Normal ) ) // 1 | |
| 3669 | PORT_DIPSETTING( 0x0020, DEF_STR( Hard ) ) // 2 | |
| 3670 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) // 3 | |
| 3671 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Allow_Continue ) ) | |
| 3672 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 3673 | PORT_DIPSETTING( 0x0040, DEF_STR( On ) ) | |
| 3674 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) | |
| 3675 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 3676 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 3677 | ||
| 3590 | 3678 | COINAGE_6BITS |
| 3591 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) | |
| 3592 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3593 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3594 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) | |
| 3595 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3596 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3597 | ||
| 3598 | PORT_START("DSW2") /* 0x80007.b */ | |
| 3599 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 3600 | PORT_DIPSETTING( 0x03, "2" ) | |
| 3601 | PORT_DIPSETTING( 0x01, "3" ) | |
| 3602 | PORT_DIPSETTING( 0x02, "4" ) | |
| 3603 | PORT_DIPSETTING( 0x00, "Infinite (Cheat)" ) | |
| 3604 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 3605 | PORT_DIPSETTING( 0x0c, "20k" ) | |
| 3606 | PORT_DIPSETTING( 0x04, "30k" ) | |
| 3607 | PORT_DIPSETTING( 0x08, "40k" ) | |
| 3608 | PORT_DIPSETTING( 0x00, "50k" ) | |
| 3609 | PORT_DIPNAME( 0x30, 0x10, DEF_STR( Difficulty ) ) // damage when hit | |
| 3610 | PORT_DIPSETTING( 0x30, DEF_STR( Easy ) ) // 0 | |
| 3611 | PORT_DIPSETTING( 0x10, DEF_STR( Normal ) ) // 1 | |
| 3612 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) // 2 | |
| 3613 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) // 3 | |
| 3614 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) | |
| 3615 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3616 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3617 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) | |
| 3618 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3619 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3679 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) | |
| 3680 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 3681 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 3682 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unused ) ) | |
| 3683 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 3684 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) | |
| 3620 | 3685 | INPUT_PORTS_END |
| 3621 | 3686 | |
| 3622 | 3687 | |
| r3115 | r3116 | |
| 4016 | 4081 | GAME( 1990, rodlandj, rodland, system_A, rodland, rodlandj, ROT0, "Jaleco", "Rod-Land (Japan)", 0 ) |
| 4017 | 4082 | GAME( 1990, rodlndjb, rodland, system_A, rodland, 0, ROT0, "Jaleco", "Rod-Land (Japan bootleg)", 0 ) |
| 4018 | 4083 | GAME( 1991, avspirit, 0, system_B, avspirit, avspirit, ROT0, "Jaleco", "Avenging Spirit", 0 ) |
| 4019 | GAME( 1990, phantasm, avspirit, system_A, | |
| 4084 | GAME( 1990, phantasm, avspirit, system_A, | |
| 4020 | 4085 | GAME( 1990, monkelf, avspirit, system_B, avspirit, monkelf, ROT0, "bootleg", "Monky Elf (Korean bootleg of Avenging Spirit)", GAME_NOT_WORKING ) |
| 4021 | 4086 | GAME( 1991, edf, 0, system_B, edf, edf, ROT0, "Jaleco", "E.D.F. : Earth Defense Force", 0 ) |
| 4022 | 4087 | GAME( 1991, edfu, edf, system_B, edf, edf, ROT0, "Jaleco", "E.D.F. : Earth Defense Force (North America)", 0 ) |
| r3115 | r3116 | |
|---|---|---|
| 62 | 62 | static void update_irq_state(running_machine *machine) |
| 63 | 63 | { |
| 64 | 64 | int i; |
| 65 | ||
| 66 | /* loop from high priority to low; if we find a live IRQ, assert it */ | |
| 67 | for (i = 4; i >= 0; i--) | |
| 68 | if (irq_state[i]) | |
| 69 | { | |
| 70 | cpunum_set_input_line(machine, 0, i, ASSERT_LINE); | |
| 71 | return; | |
| 72 | } | |
| 73 | ||
| 74 | /* otherwise, clear them all */ | |
| 75 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 65 | for (i = 1; i < 5; i++) | |
| 66 | cpunum_set_input_line(machine, 0, i, irq_state[i] ? ASSERT_LINE : CLEAR_LINE); | |
| 76 | 67 | } |
| 77 | 68 | |
| 78 | 69 |
| r3115 | r3116 | |
|---|---|---|
| 493 | 493 | AM_RANGE(0x800000, 0x800007) AM_READ(cave_irq_cause_r ) // IRQ Cause |
| 494 | 494 | /**/AM_RANGE(0x900000, 0x900005) AM_READ(SMH_RAM ) // Layer 0 Control |
| 495 | 495 | /**/AM_RANGE(0xa00000, 0xa00005) AM_READ(SMH_RAM ) // Layer 1 Control |
| 496 | AM_RANGE(0xb00000, 0xb00001) AM_READ_PORT("IN0") // Inputs | |
| 497 | AM_RANGE(0xb00002, 0xb00003) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 496 | AM_RANGE(0xb00000, 0xb00001) AM_READ_PORT("IN0" ) // Inputs | |
| 497 | AM_RANGE(0xb00002, 0xb00003) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 498 | 498 | ADDRESS_MAP_END |
| 499 | 499 | |
| 500 | 500 | static ADDRESS_MAP_START( dfeveron_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 501 | 501 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM ) // ROM |
| 502 | 502 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM ) // RAM |
| 503 | 503 | AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w ) // YMZ280 |
| 504 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size | |
| 504 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size | |
| 505 | 505 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) |
| 506 | 506 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 507 | 507 | AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 508 | 508 | AM_RANGE(0x708000, 0x708fff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram16) AM_SIZE(&cave_paletteram_size) // Palette |
| 509 | AM_RANGE(0x710c00, 0x710fff) AM_WRITE(SMH_RAM ) // ? | |
| 510 | AM_RANGE(0x800000, 0x80007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 509 | AM_RANGE(0x710c00, 0x710fff) AM_WRITE(SMH_RAM ) // ? | |
| 510 | AM_RANGE(0x800000, 0x80007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 511 | 511 | AM_RANGE(0x900000, 0x900005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 512 | 512 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 513 | AM_RANGE(0xc00000, 0xc00001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM | |
| 513 | AM_RANGE(0xc00000, 0xc00001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM | |
| 514 | 514 | ADDRESS_MAP_END |
| 515 | 515 | |
| 516 | 516 | |
| r3115 | r3116 | |
| 532 | 532 | /**/AM_RANGE(0xa00000, 0xa00005) AM_READ(SMH_RAM ) // Layer 1 Control |
| 533 | 533 | /**/AM_RANGE(0xb00000, 0xb00005) AM_READ(SMH_RAM ) // Layer 2 Control |
| 534 | 534 | /**/AM_RANGE(0xc00000, 0xc0ffff) AM_READ(SMH_RAM ) // Palette |
| 535 | AM_RANGE(0xd00000, 0xd00001) AM_READ_PORT("IN0") // Inputs | |
| 536 | AM_RANGE(0xd00002, 0xd00003) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 535 | AM_RANGE(0xd00000, 0xd00001) AM_READ_PORT("IN0" ) // Inputs | |
| 536 | AM_RANGE(0xd00002, 0xd00003) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 537 | 537 | ADDRESS_MAP_END |
| 538 | 538 | |
| 539 | 539 | static ADDRESS_MAP_START( ddonpach_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 540 | 540 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM ) // ROM |
| 541 | 541 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM ) // RAM |
| 542 | 542 | AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w ) // YMZ280 |
| 543 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites | |
| 544 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) | |
| 545 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 | |
| 546 | AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 | |
| 543 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) // Sprites | |
| 544 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2 ) | |
| 545 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 | |
| 546 | AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 | |
| 547 | 547 | AM_RANGE(0x700000, 0x70ffff) AM_WRITE(cave_vram_2_8x8_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| 548 | AM_RANGE(0x800000, 0x80007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 548 | AM_RANGE(0x800000, 0x80007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 549 | 549 | AM_RANGE(0x900000, 0x900005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 550 | 550 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 551 | 551 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 552 | 552 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram16) AM_SIZE(&cave_paletteram_size) // Palette |
| 553 | AM_RANGE(0xe00000, 0xe00001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM | |
| 553 | AM_RANGE(0xe00000, 0xe00001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM | |
| 554 | 554 | ADDRESS_MAP_END |
| 555 | 555 | |
| 556 | 556 | |
| r3115 | r3116 | |
| 598 | 598 | /**/AM_RANGE(0xa08000, 0xa08fff) AM_READ(SMH_RAM ) // Palette |
| 599 | 599 | AM_RANGE(0xb00000, 0xb00001) AM_READ(okim6295_status_0_lsb_r ) // M6295 |
| 600 | 600 | AM_RANGE(0xb00010, 0xb00011) AM_READ(okim6295_status_1_lsb_r ) // |
| 601 | AM_RANGE(0xc00000, 0xc00001) AM_READ_PORT("IN0") // Inputs | |
| 602 | AM_RANGE(0xc00002, 0xc00003) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 601 | AM_RANGE(0xc00000, 0xc00001) AM_READ_PORT("IN0" ) // Inputs | |
| 602 | AM_RANGE(0xc00002, 0xc00003) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 603 | 603 | ADDRESS_MAP_END |
| 604 | 604 | |
| 605 | 605 | static ADDRESS_MAP_START( donpachi_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 606 | 606 | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM ) // ROM |
| 607 | 607 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM ) // RAM |
| 608 | AM_RANGE(0x200000, 0x207fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 | |
| 609 | AM_RANGE(0x300000, 0x307fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 | |
| 608 | AM_RANGE(0x200000, 0x207fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 | |
| 609 | AM_RANGE(0x300000, 0x307fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 | |
| 610 | 610 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(cave_vram_2_8x8_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| 611 | 611 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites |
| 612 | AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) | |
| 612 | AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2 ) | |
| 613 | 613 | AM_RANGE(0x600000, 0x600005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 614 | 614 | AM_RANGE(0x700000, 0x700005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 615 | 615 | AM_RANGE(0x800000, 0x800005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 616 | AM_RANGE(0x900000, 0x90007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 616 | AM_RANGE(0x900000, 0x90007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 617 | 617 | AM_RANGE(0xa08000, 0xa08fff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram16) AM_SIZE(&cave_paletteram_size) // Palette |
| 618 | 618 | AM_RANGE(0xb00000, 0xb00003) AM_WRITE(okim6295_data_0_lsb_w ) // M6295 |
| 619 | 619 | AM_RANGE(0xb00010, 0xb00013) AM_WRITE(okim6295_data_1_lsb_w ) // |
| r3115 | r3116 | |
| 640 | 640 | /**/AM_RANGE(0xa00000, 0xa00005) AM_READ(SMH_RAM ) // Layer 1 Control |
| 641 | 641 | /**/AM_RANGE(0xb00000, 0xb00005) AM_READ(SMH_RAM ) // Layer 2 Control |
| 642 | 642 | /**/AM_RANGE(0xc00000, 0xc0ffff) AM_READ(SMH_RAM ) // Palette |
| 643 | AM_RANGE(0xd00000, 0xd00001) AM_READ_PORT("IN0") // Inputs | |
| 644 | AM_RANGE(0xd00002, 0xd00003) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 643 | AM_RANGE(0xd00000, 0xd00001) AM_READ_PORT("IN0" ) // Inputs | |
| 644 | AM_RANGE(0xd00002, 0xd00003) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 645 | 645 | ADDRESS_MAP_END |
| 646 | 646 | |
| 647 | 647 | static ADDRESS_MAP_START( esprade_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 648 | 648 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM ) // ROM |
| 649 | 649 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM ) // RAM |
| 650 | 650 | AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w ) // YMZ280 |
| 651 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size | |
| 651 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size | |
| 652 | 652 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) // Sprites? |
| 653 | 653 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 654 | 654 | AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 655 | 655 | AM_RANGE(0x700000, 0x707fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| 656 | AM_RANGE(0x800000, 0x80007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 656 | AM_RANGE(0x800000, 0x80007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 657 | 657 | AM_RANGE(0x900000, 0x900005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 658 | 658 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 659 | 659 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| r3115 | r3116 | |
| 683 | 683 | /**/AM_RANGE(0xa00000, 0xa00005) AM_READ(SMH_RAM ) // Layer 1 Control |
| 684 | 684 | /**/AM_RANGE(0xb00000, 0xb00005) AM_READ(SMH_RAM ) // Layer 2 Control |
| 685 | 685 | AM_RANGE(0xc00000, 0xc0ffff) AM_READ(SMH_RAM ) // Palette |
| 686 | AM_RANGE(0xd00010, 0xd00011) AM_READ_PORT("IN0") // Inputs | |
| 687 | AM_RANGE(0xd00012, 0xd00013) AM_READ_PORT("IN1") // Inputs | |
| 688 | AM_RANGE(0xd00014, 0xd00015) AM_READ_PORT("DSW") // Dips | |
| 686 | AM_RANGE(0xd00010, 0xd00011) AM_READ_PORT("IN0" ) // Inputs | |
| 687 | AM_RANGE(0xd00012, 0xd00013) AM_READ_PORT("IN1" ) // Inputs | |
| 688 | AM_RANGE(0xd00014, 0xd00015) AM_READ_PORT("DSW" ) // Dips | |
| 689 | 689 | ADDRESS_MAP_END |
| 690 | 690 | |
| 691 | 691 | static ADDRESS_MAP_START( gaia_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r3115 | r3116 | |
| 693 | 693 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM ) // RAM |
| 694 | 694 | AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w ) // YMZ280 |
| 695 | 695 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprite bank 1 |
| 696 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) | |
| 696 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2 ) // Sprite bank 2 | |
| 697 | 697 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 698 | AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM ) // More Layer 0, Tested but not used? | |
| 698 | AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM ) // More Layer 0, Tested but not used? | |
| 699 | 699 | AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 700 | AM_RANGE(0x608000, 0x60ffff) AM_WRITE(SMH_RAM ) // More Layer 1, Tested but not used? | |
| 700 | AM_RANGE(0x608000, 0x60ffff) AM_WRITE(SMH_RAM ) // More Layer 1, Tested but not used? | |
| 701 | 701 | AM_RANGE(0x700000, 0x707fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| 702 | AM_RANGE(0x708000, 0x70ffff) AM_WRITE(SMH_RAM ) // More Layer 2, Tested but not used? | |
| 703 | AM_RANGE(0x800000, 0x80007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 702 | AM_RANGE(0x708000, 0x70ffff) AM_WRITE(SMH_RAM ) // More Layer 2, Tested but not used? | |
| 703 | AM_RANGE(0x800000, 0x80007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 704 | 704 | AM_RANGE(0x900000, 0x900005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 705 | 705 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 706 | 706 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| r3115 | r3116 | |
| 728 | 728 | /**/AM_RANGE(0xa00000, 0xa00005) AM_READ(SMH_RAM ) // Layer 1 Control |
| 729 | 729 | /**/AM_RANGE(0xb00000, 0xb00005) AM_READ(SMH_RAM ) // Layer 2 Control |
| 730 | 730 | /**/AM_RANGE(0xc00000, 0xc0ffff) AM_READ(SMH_RAM ) // Palette |
| 731 | AM_RANGE(0xd00010, 0xd00011) AM_READ_PORT("IN0") // Inputs | |
| 732 | AM_RANGE(0xd00012, 0xd00013) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 731 | AM_RANGE(0xd00010, 0xd00011) AM_READ_PORT("IN0" ) // Inputs | |
| 732 | AM_RANGE(0xd00012, 0xd00013) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 733 | 733 | ADDRESS_MAP_END |
| 734 | 734 | |
| 735 | 735 | static ADDRESS_MAP_START( guwange_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 736 | 736 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM ) // ROM |
| 737 | 737 | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(SMH_RAM ) // RAM |
| 738 | AM_RANGE(0x300000, 0x30007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 739 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites | |
| 740 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) | |
| 738 | AM_RANGE(0x300000, 0x30007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 739 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) // Sprites | |
| 740 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2 ) | |
| 741 | 741 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 742 | 742 | AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 743 | 743 | AM_RANGE(0x700000, 0x707fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| 744 | AM_RANGE(0x800000, 0x800003) AM_WRITE(cave_sound_w ) // YMZ280 | |
| 744 | AM_RANGE(0x800000, 0x800003) AM_WRITE(cave_sound_w ) // YMZ280 | |
| 745 | 745 | AM_RANGE(0x900000, 0x900005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 746 | 746 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 747 | 747 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 748 | 748 | AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram16) AM_SIZE(&cave_paletteram_size) // Palette |
| 749 | 749 | AM_RANGE(0xd00010, 0xd00011) AM_WRITE(cave_eeprom_lsb_w ) // EEPROM |
| 750 | // AM_RANGE(0xd00012, 0xd00013) AM_WRITE(SMH_NOP ) // ? | |
| 751 | // AM_RANGE(0xd00014, 0xd00015) AM_WRITE(SMH_NOP ) // ? $800068 in dfeveron ? probably Watchdog | |
| 750 | // AM_RANGE(0xd00012, 0xd00013) AM_WRITE(SMH_NOP ) // ? | |
| 751 | // AM_RANGE(0xd00014, 0xd00015) AM_WRITE(SMH_NOP ) // ? $800068 in dfeveron ? probably Watchdog | |
| 752 | 752 | ADDRESS_MAP_END |
| 753 | 753 | |
| 754 | 754 | |
| r3115 | r3116 | |
| 768 | 768 | /**/AM_RANGE(0xb00000, 0xb00005) AM_READ(SMH_RAM ) // Layer 0 Control |
| 769 | 769 | /**/AM_RANGE(0xb80000, 0xb80005) AM_READ(SMH_RAM ) // Layer 1 Control |
| 770 | 770 | /**/AM_RANGE(0xc00000, 0xc00005) AM_READ(SMH_RAM ) // Layer 2 Control |
| 771 | AM_RANGE(0xc80000, 0xc80001) AM_READ_PORT("IN0") // Inputs | |
| 772 | AM_RANGE(0xc80002, 0xc80003) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 771 | AM_RANGE(0xc80000, 0xc80001) AM_READ_PORT("IN0" ) // Inputs | |
| 772 | AM_RANGE(0xc80002, 0xc80003) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 773 | 773 | /**/AM_RANGE(0xf00000, 0xf07fff) AM_READ(SMH_RAM ) // Sprites |
| 774 | 774 | /**/AM_RANGE(0xf08000, 0xf0ffff) AM_READ(SMH_RAM ) // Sprites? |
| 775 | 775 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 781 | 781 | AM_RANGE(0x880000, 0x887fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 782 | 782 | AM_RANGE(0x900000, 0x907fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 783 | 783 | AM_RANGE(0x980000, 0x987fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| 784 | AM_RANGE(0xa8006e, 0xa8006f) AM_WRITE(sound_cmd_w ) // To Sound CPU | |
| 785 | AM_RANGE(0xa80000, 0xa8007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 784 | AM_RANGE(0xa8006e, 0xa8006f) AM_WRITE(sound_cmd_w ) // To Sound CPU | |
| 785 | AM_RANGE(0xa80000, 0xa8007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 786 | 786 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 787 | 787 | AM_RANGE(0xb80000, 0xb80005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 788 | 788 | AM_RANGE(0xc00000, 0xc00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 789 | AM_RANGE(0xd00000, 0xd00001) AM_WRITE(hotdogst_eeprom_msb_w ) // EEPROM | |
| 790 | AM_RANGE(0xd00002, 0xd00003) AM_WRITE(SMH_NOP ) // ??? | |
| 791 | AM_RANGE(0xf00000, 0xf07fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites | |
| 789 | AM_RANGE(0xd00000, 0xd00001) AM_WRITE(hotdogst_eeprom_msb_w ) // EEPROM | |
| 790 | AM_RANGE(0xd00002, 0xd00003) AM_WRITE(SMH_NOP ) // ??? | |
| 791 | AM_RANGE(0xf00000, 0xf07fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) // Sprites | |
| 792 | 792 | AM_RANGE(0xf08000, 0xf0ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) |
| 793 | 793 | ADDRESS_MAP_END |
| 794 | 794 | |
| r3115 | r3116 | |
| 868 | 868 | AM_RANGE(0x1c0000, 0x1c0007) AM_READ( cave_irq_cause_r ) // IRQ Cause |
| 869 | 869 | // AM_RANGE(0x200000, 0x207fff) AM_READ( SMH_RAM ) // Palette |
| 870 | 870 | // AM_RANGE(0x240000, 0x240003) AM_READ( cave_sound_r ) // YMZ280 |
| 871 | AM_RANGE(0x280000, 0x280001) AM_READ_PORT("IN0") // Inputs + ??? | |
| 872 | AM_RANGE(0x280002, 0x280003) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 871 | AM_RANGE(0x280000, 0x280001) AM_READ_PORT("IN0" ) // Inputs + ??? | |
| 872 | AM_RANGE(0x280002, 0x280003) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 873 | 873 | AM_RANGE(0x300000, 0x30ffff) AM_READ( SMH_RAM ) // RAM |
| 874 | 874 | ADDRESS_MAP_END |
| 875 | 875 | |
| 876 | 876 | static ADDRESS_MAP_START( korokoro_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 877 | 877 | AM_RANGE(0x000000, 0x07ffff) AM_WRITE( SMH_ROM ) // ROM |
| 878 | AM_RANGE(0x100000, 0x107fff) AM_WRITE( cave_vram_0_w | |
| 878 | AM_RANGE(0x100000, 0x107fff) AM_WRITE( cave_vram_0_w | |
| 879 | 879 | AM_RANGE(0x140000, 0x140005) AM_WRITE( SMH_RAM ) AM_BASE( &cave_vctrl_0 ) // Layer 0 Control |
| 880 | 880 | AM_RANGE(0x180000, 0x187fff) AM_WRITE( SMH_RAM ) AM_BASE( &spriteram16 ) AM_SIZE(&spriteram_size ) // Sprites |
| 881 | 881 | AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE( SMH_RAM ) AM_BASE( &cave_videoregs ) // Video Regs |
| r3115 | r3116 | |
| 883 | 883 | AM_RANGE(0x240000, 0x240003) AM_WRITE( cave_sound_w ) // YMZ280 |
| 884 | 884 | AM_RANGE(0x280008, 0x280009) AM_WRITE( korokoro_leds_w ) |
| 885 | 885 | AM_RANGE(0x28000a, 0x28000b) AM_WRITE( korokoro_eeprom_msb_w ) // EEPROM |
| 886 | AM_RANGE(0x28000c, 0x28000d) AM_WRITE( SMH_NOP ) // 0 (watchdog?) | |
| 887 | AM_RANGE(0x300000, 0x30ffff) AM_WRITE( SMH_RAM ) // RAM | |
| 886 | AM_RANGE(0x28000c, 0x28000d) AM_WRITE( SMH_NOP ) // 0 (watchdog?) | |
| 887 | AM_RANGE(0x300000, 0x30ffff) AM_WRITE( SMH_RAM ) // RAM | |
| 888 | 888 | ADDRESS_MAP_END |
| 889 | 889 | |
| 890 | 890 | |
| r3115 | r3116 | |
| 903 | 903 | /**/AM_RANGE(0x504000, 0x507fff) AM_READ(SMH_RAM ) // Layer 0 |
| 904 | 904 | /**/AM_RANGE(0x600000, 0x600005) AM_READ(SMH_RAM ) // Layer 1 Control |
| 905 | 905 | /**/AM_RANGE(0x700000, 0x700005) AM_READ(SMH_RAM ) // Layer 0 Control |
| 906 | AM_RANGE(0x800000, 0x800001) AM_READ_PORT("IN0") // Inputs | |
| 907 | AM_RANGE(0x800002, 0x800003) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 906 | AM_RANGE(0x800000, 0x800001) AM_READ_PORT("IN0" ) // Inputs | |
| 907 | AM_RANGE(0x800002, 0x800003) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 908 | 908 | /**/AM_RANGE(0xc08000, 0xc0ffff) AM_READ(SMH_RAM ) // Palette |
| 909 | 909 | AM_RANGE(0xd00000, 0xd7ffff) AM_READ(SMH_BANK1 ) // ROM |
| 910 | 910 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 912 | 912 | static ADDRESS_MAP_START( mazinger_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 913 | 913 | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM ) // ROM |
| 914 | 914 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM ) // RAM |
| 915 | AM_RANGE(0x200000, 0x207fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size | |
| 915 | AM_RANGE(0x200000, 0x207fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size | |
| 916 | 916 | AM_RANGE(0x208000, 0x20ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) |
| 917 | 917 | AM_RANGE(0x300068, 0x300069) AM_WRITE(watchdog_reset16_w ) // Watchdog |
| 918 | 918 | AM_RANGE(0x30006e, 0x30006f) AM_WRITE(sound_cmd_w ) // To Sound CPU |
| 919 | AM_RANGE(0x300000, 0x30007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs | |
| 919 | AM_RANGE(0x300000, 0x30007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs | |
| 920 | 920 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(cave_vram_1_8x8_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 921 | 921 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_8x8_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 922 | 922 | AM_RANGE(0x600000, 0x600005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| r3115 | r3116 | |
| 949 | 949 | /**/AM_RANGE(0xb00000, 0xb00005) AM_READ(SMH_RAM ) // Layer 0 Control |
| 950 | 950 | /**/AM_RANGE(0xb80000, 0xb80005) AM_READ(SMH_RAM ) // Layer 1 Control |
| 951 | 951 | /**/AM_RANGE(0xc00000, 0xc00005) AM_READ(SMH_RAM ) // Layer 2 Control |
| 952 | AM_RANGE(0xc80000, 0xc80001) AM_READ_PORT("IN0") // Inputs | |
| 953 | AM_RANGE(0xc80002, 0xc80003) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 952 | AM_RANGE(0xc80000, 0xc80001) AM_READ_PORT("IN0" ) // Inputs | |
| 953 | AM_RANGE(0xc80002, 0xc80003) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 954 | 954 | AM_RANGE(0xf00000, 0xf07fff) AM_READ(SMH_RAM ) // Sprites |
| 955 | 955 | AM_RANGE(0xf08000, 0xf0ffff) AM_READ(SMH_RAM ) // RAM |
| 956 | 956 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 961 | 961 | AM_RANGE(0x200000, 0x27ffff) AM_WRITE(SMH_ROM ) // ROM |
| 962 | 962 | AM_RANGE(0x408000, 0x408fff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram16) AM_SIZE(&cave_paletteram_size) // Palette |
| 963 | 963 | AM_RANGE(0x880000, 0x887fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| 964 | AM_RANGE(0x888000, 0x88ffff) AM_WRITE(SMH_RAM ) // | |
| 964 | AM_RANGE(0x888000, 0x88ffff) AM_WRITE(SMH_RAM ) // | |
| 965 | 965 | AM_RANGE(0x900000, 0x907fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 966 | AM_RANGE(0x908000, 0x90ffff) AM_WRITE(SMH_RAM ) // | |
| 966 | AM_RANGE(0x908000, 0x90ffff) AM_WRITE(SMH_RAM ) // | |
| 967 | 967 | AM_RANGE(0x980000, 0x987fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 968 | AM_RANGE(0x988000, 0x98ffff) AM_WRITE(SMH_RAM ) // | |
| 969 | AM_RANGE(0xa80068, 0xa80069) AM_WRITE(watchdog_reset16_w ) // Watchdog? | |
| 970 | AM_RANGE(0xa8006c, 0xa8006d) AM_WRITE(SMH_NOP ) // ? | |
| 971 | AM_RANGE(0xa8006e, 0xa8006f) AM_WRITE(sound_cmd_w ) // To Sound CPU | |
| 972 | AM_RANGE(0xa80000, 0xa8007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 968 | AM_RANGE(0x988000, 0x98ffff) AM_WRITE(SMH_RAM ) // | |
| 969 | AM_RANGE(0xa80068, 0xa80069) AM_WRITE(watchdog_reset16_w ) // Watchdog? | |
| 970 | AM_RANGE(0xa8006c, 0xa8006d) AM_WRITE(SMH_NOP ) // ? | |
| 971 | AM_RANGE(0xa8006e, 0xa8006f) AM_WRITE(sound_cmd_w ) // To Sound CPU | |
| 972 | AM_RANGE(0xa80000, 0xa8007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 973 | 973 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 974 | 974 | AM_RANGE(0xb80000, 0xb80005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 975 | 975 | AM_RANGE(0xc00000, 0xc00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 976 | AM_RANGE(0xd00000, 0xd00001) AM_WRITE(metmqstr_eeprom_msb_w ) // EEPROM | |
| 977 | AM_RANGE(0xf00000, 0xf07fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites | |
| 976 | AM_RANGE(0xd00000, 0xd00001) AM_WRITE(metmqstr_eeprom_msb_w ) // EEPROM | |
| 977 | AM_RANGE(0xf00000, 0xf07fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) // Sprites | |
| 978 | 978 | AM_RANGE(0xf08000, 0xf0ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) |
| 979 | 979 | ADDRESS_MAP_END |
| 980 | 980 | |
| r3115 | r3116 | |
| 1011 | 1011 | static ADDRESS_MAP_START( pwrinst2_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1012 | 1012 | AM_RANGE(0x000000, 0x1fffff) AM_READ(SMH_ROM ) // ROM |
| 1013 | 1013 | AM_RANGE(0x400000, 0x40ffff) AM_READ(SMH_RAM ) // RAM |
| 1014 | AM_RANGE(0x500000, 0x500001) AM_READ_PORT("IN0") // Inputs | |
| 1015 | AM_RANGE(0x500002, 0x500003) AM_READ_PORT("IN1") // | |
| 1014 | AM_RANGE(0x500000, 0x500001) AM_READ_PORT("IN0" ) // Inputs | |
| 1015 | AM_RANGE(0x500002, 0x500003) AM_READ_PORT("IN1" ) // | |
| 1016 | 1016 | AM_RANGE(0x600000, 0x6fffff) AM_READ(SMH_ROM) AM_REGION("user1", 0) // extra data ROM space |
| 1017 | 1017 | AM_RANGE(0x800000, 0x807fff) AM_READ(SMH_RAM ) // Layer 2 |
| 1018 | 1018 | AM_RANGE(0x880000, 0x887fff) AM_READ(SMH_RAM ) // Layer 0 |
| r3115 | r3116 | |
| 1026 | 1026 | /**/AM_RANGE(0xc00000, 0xc00005) AM_READ(SMH_RAM ) // Layer 1 Control |
| 1027 | 1027 | /**/AM_RANGE(0xc80000, 0xc80005) AM_READ(SMH_RAM ) // Layer 3 Control |
| 1028 | 1028 | AM_RANGE(0xa80000, 0xa8007f) AM_READ(donpachi_videoregs_r ) // Video Regs |
| 1029 | AM_RANGE(0xd80000, 0xd80001) AM_READ( | |
| 1029 | AM_RANGE(0xd80000, 0xd80001) AM_READ(soundlatch_ack_r ) // ? From Sound CPU | |
| 1030 | 1030 | AM_RANGE(0xe80000, 0xe80001) AM_READ(pwrinst2_eeprom_r ) // EEPROM |
| 1031 | 1031 | AM_RANGE(0xf00000, 0xf04fff) AM_READ(SMH_RAM ) // Palette |
| 1032 | 1032 | ADDRESS_MAP_END |
| 1033 | 1033 | |
| 1034 | 1034 | static ADDRESS_MAP_START( pwrinst2_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1035 | AM_RANGE(0x000000, 0x1fffff) AM_WRITE(SMH_ROM ) // ROM | |
| 1036 | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SMH_RAM ) // RAM | |
| 1037 | AM_RANGE(0x700000, 0x700001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM | |
| 1035 | AM_RANGE(0x000000, 0x1fffff) AM_WRITE(SMH_ROM ) // ROM | |
| 1036 | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SMH_RAM ) // RAM | |
| 1037 | AM_RANGE(0x700000, 0x700001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM | |
| 1038 | 1038 | AM_RANGE(0x800000, 0x807fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 |
| 1039 | 1039 | AM_RANGE(0x880000, 0x887fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 1040 | 1040 | AM_RANGE(0x900000, 0x907fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 |
| 1041 | AM_RANGE(0x980000, 0x987fff) AM_WRITE(cave_vram_3_8x8_w) AM_BASE(&cave_vram_3 | |
| 1041 | AM_RANGE(0x980000, 0x987fff) AM_WRITE(cave_vram_3_8x8_w) AM_BASE(&cave_vram_3 | |
| 1042 | 1042 | AM_RANGE(0xa00000, 0xa07fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites |
| 1043 | 1043 | AM_RANGE(0xa08000, 0xa0ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) |
| 1044 | AM_RANGE(0xa10000, 0xa1ffff) AM_WRITE(SMH_RAM ) // Sprites? | |
| 1044 | AM_RANGE(0xa10000, 0xa1ffff) AM_WRITE(SMH_RAM ) // Sprites? | |
| 1045 | 1045 | AM_RANGE(0xa80000, 0xa8007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs |
| 1046 | 1046 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(pwrinst2_vctrl_2_w) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control |
| 1047 | 1047 | AM_RANGE(0xb80000, 0xb80005) AM_WRITE(pwrinst2_vctrl_0_w) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 1048 | 1048 | AM_RANGE(0xc00000, 0xc00005) AM_WRITE(pwrinst2_vctrl_1_w) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control |
| 1049 | 1049 | AM_RANGE(0xc80000, 0xc80005) AM_WRITE(pwrinst2_vctrl_3_w) AM_BASE(&cave_vctrl_3 ) // Layer 3 Control |
| 1050 | AM_RANGE(0xe00000, 0xe00001) AM_WRITE(sound_cmd_w ) // To Sound CPU | |
| 1050 | AM_RANGE(0xe00000, 0xe00001) AM_WRITE(sound_cmd_w ) // To Sound CPU | |
| 1051 | 1051 | AM_RANGE(0xf00000, 0xf04fff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram16) AM_SIZE(&cave_paletteram_size) // Palette |
| 1052 | 1052 | ADDRESS_MAP_END |
| 1053 | 1053 | |
| r3115 | r3116 | |
| 1089 | 1089 | AM_RANGE(0x508000, 0x50ffff) AM_READ(SMH_RAM ) // Sprites? |
| 1090 | 1090 | AM_RANGE(0x510000, 0x510001) AM_READ(SMH_RAM ) // (agallet) |
| 1091 | 1091 | AM_RANGE(0x600000, 0x600001) AM_READ(sailormn_input0_r ) // Inputs + Watchdog! |
| 1092 | AM_RANGE(0x600002, 0x600003) AM_READ_PORT("IN1" | |
| 1092 | AM_RANGE(0x600002, 0x600003) AM_READ_PORT("IN1" | |
| 1093 | 1093 | AM_RANGE(0x800000, 0x887fff) AM_READ(SMH_RAM ) // Layer 0 |
| 1094 | 1094 | AM_RANGE(0x880000, 0x887fff) AM_READ(SMH_RAM ) // Layer 1 |
| 1095 | 1095 | AM_RANGE(0x900000, 0x907fff) AM_READ(SMH_RAM ) // Layer 2 |
| r3115 | r3116 | |
| 1103 | 1103 | ADDRESS_MAP_END |
| 1104 | 1104 | |
| 1105 | 1105 | static ADDRESS_MAP_START( sailormn_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1106 | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM ) // ROM | |
| 1107 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM ) // RAM | |
| 1108 | AM_RANGE(0x110000, 0x110001) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1109 | AM_RANGE(0x200000, 0x3fffff) AM_WRITE(SMH_ROM ) // ROM | |
| 1110 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1106 | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM ) // ROM | |
| 1107 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM ) // RAM | |
| 1108 | AM_RANGE(0x110000, 0x110001) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1109 | AM_RANGE(0x200000, 0x3fffff) AM_WRITE(SMH_ROM ) // ROM | |
| 1110 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1111 | 1111 | AM_RANGE(0x408000, 0x40bfff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram16) AM_SIZE(&cave_paletteram_size) // Palette |
| 1112 | AM_RANGE(0x40c000, 0x40ffff) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1113 | AM_RANGE(0x410000, 0x410001) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1114 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites | |
| 1112 | AM_RANGE(0x40c000, 0x40ffff) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1113 | AM_RANGE(0x410000, 0x410001) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1114 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) // Sprites | |
| 1115 | 1115 | AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) |
| 1116 | AM_RANGE(0x510000, 0x510001) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1117 | AM_RANGE(0x700000, 0x700001) AM_WRITE(sailormn_eeprom_msb_w ) // EEPROM | |
| 1118 | AM_RANGE(0x800000, 0x807fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 | |
| 1119 | AM_RANGE(0x880000, 0x887fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 | |
| 1120 | AM_RANGE(0x900000, 0x907fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 | |
| 1121 | AM_RANGE(0x908000, 0x908001) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1122 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control | |
| 1123 | AM_RANGE(0xa80000, 0xa80005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control | |
| 1124 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control | |
| 1125 | AM_RANGE(0xb8006e, 0xb8006f) AM_WRITE(sound_cmd_w ) // To Sound CPU | |
| 1116 | AM_RANGE(0x510000, 0x510001) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1117 | AM_RANGE(0x700000, 0x700001) AM_WRITE(sailormn_eeprom_msb_w ) // EEPROM | |
| 1118 | AM_RANGE(0x800000, 0x807fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 | |
| 1119 | AM_RANGE(0x880000, 0x887fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1 ) // Layer 1 | |
| 1120 | AM_RANGE(0x900000, 0x907fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2 ) // Layer 2 | |
| 1121 | AM_RANGE(0x908000, 0x908001) AM_WRITE(SMH_RAM ) // (agallet) | |
| 1122 | AM_RANGE(0xa00000, 0xa00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control | |
| 1123 | AM_RANGE(0xa80000, 0xa80005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1 ) // Layer 1 Control | |
| 1124 | AM_RANGE(0xb00000, 0xb00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2 ) // Layer 2 Control | |
| 1125 | AM_RANGE(0xb8006e, 0xb8006f) AM_WRITE(sound_cmd_w ) // To Sound CPU | |
| 1126 | 1126 | AM_RANGE(0xb80000, 0xb8007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs |
| 1127 | 1127 | ADDRESS_MAP_END |
| 1128 | 1128 | |
| r3115 | r3116 | |
| 1141 | 1141 | AM_RANGE(0x600000, 0x600007) AM_READ(cave_irq_cause_r ) // IRQ Cause |
| 1142 | 1142 | /**/AM_RANGE(0x700000, 0x700005) AM_READ(SMH_RAM ) // Layer 0 Control |
| 1143 | 1143 | /**/AM_RANGE(0x800000, 0x80ffff) AM_READ(SMH_RAM ) // Palette |
| 1144 | AM_RANGE(0x900000, 0x900001) AM_READ_PORT("IN0") // Inputs | |
| 1145 | AM_RANGE(0x900002, 0x900003) AM_READ_PORT("IN1") // Inputs + EEPROM | |
| 1144 | AM_RANGE(0x900000, 0x900001) AM_READ_PORT("IN0" ) // Inputs | |
| 1145 | AM_RANGE(0x900002, 0x900003) AM_READ_PORT("IN1" ) // Inputs + EEPROM | |
| 1146 | 1146 | ADDRESS_MAP_END |
| 1147 | 1147 | |
| 1148 | 1148 | static ADDRESS_MAP_START( uopoko_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1149 | 1149 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM ) // ROM |
| 1150 | 1150 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM ) // RAM |
| 1151 | 1151 | AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w ) // YMZ280 |
| 1152 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites | |
| 1153 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) | |
| 1152 | AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) // Sprites | |
| 1153 | AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2 ) | |
| 1154 | 1154 | AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0 ) // Layer 0 |
| 1155 | AM_RANGE(0x600000, 0x60007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 1155 | AM_RANGE(0x600000, 0x60007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs ) // Video Regs | |
| 1156 | 1156 | AM_RANGE(0x700000, 0x700005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0 ) // Layer 0 Control |
| 1157 | 1157 | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram16) AM_SIZE(&cave_paletteram_size) // Palette |
| 1158 | 1158 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE(cave_eeprom_msb_w ) // EEPROM |
| r3115 | r3116 | |
| 1206 | 1206 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 1207 | 1207 | AM_RANGE(0x30, 0x30) AM_READ(soundlatch_lo_r ) // From Main CPU |
| 1208 | 1208 | AM_RANGE(0x40, 0x40) AM_READ(soundlatch_hi_r ) // |
| 1209 | AM_RANGE(0x50, 0x50) AM_READ(ym2203_status_port_0_r ) // YM2203 | |
| 1209 | AM_RANGE(0x50, 0x50) AM_READ(ym2203_status_port_0_r ) // YM2203 | |
| 1210 | 1210 | AM_RANGE(0x51, 0x51) AM_READ(ym2203_read_port_0_r ) // |
| 1211 | 1211 | AM_RANGE(0x60, 0x60) AM_READ(okim6295_status_0_r ) // M6295 |
| 1212 | 1212 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 1251 | 1251 | static ADDRESS_MAP_START( mazinger_sound_readport, ADDRESS_SPACE_IO, 8 ) |
| 1252 | 1252 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 1253 | 1253 | AM_RANGE(0x30, 0x30) AM_READ(soundlatch_lo_r ) // From Main CPU |
| 1254 | AM_RANGE(0x52, 0x52) AM_READ(ym2203_status_port_0_r ) // YM2203 | |
| 1254 | AM_RANGE(0x52, 0x52) AM_READ(ym2203_status_port_0_r ) // YM2203 | |
| 1255 | 1255 | ADDRESS_MAP_END |
| 1256 | 1256 | |
| 1257 | 1257 | static ADDRESS_MAP_START( mazinger_sound_writeport, ADDRESS_SPACE_IO, 8 ) |
| r3115 | r3116 | |
| 1313 | 1313 | AM_RANGE(0x20, 0x20) AM_READ(soundflags_r ) // Communication |
| 1314 | 1314 | AM_RANGE(0x30, 0x30) AM_READ(soundlatch_lo_r ) // From Main CPU |
| 1315 | 1315 | AM_RANGE(0x40, 0x40) AM_READ(soundlatch_hi_r ) // |
| 1316 | AM_RANGE(0x51, 0x51) AM_READ(ym2151_status_port_0_r ) // YM2151 | |
| 1316 | AM_RANGE(0x51, 0x51) AM_READ(ym2151_status_port_0_r ) // YM2151 | |
| 1317 | 1317 | ADDRESS_MAP_END |
| 1318 | 1318 | |
| 1319 | 1319 | static ADDRESS_MAP_START( metmqstr_sound_writeport, ADDRESS_SPACE_IO, 8 ) |
| r3115 | r3116 | |
| 1357 | 1357 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 1358 | 1358 | AM_RANGE(0x00, 0x00) AM_READ(okim6295_status_0_r ) // M6295 |
| 1359 | 1359 | AM_RANGE(0x08, 0x08) AM_READ(okim6295_status_1_r ) // |
| 1360 | AM_RANGE(0x40, 0x40) AM_READ(ym2203_status_port_0_r ) // YM2203 | |
| 1360 | AM_RANGE(0x40, 0x40) AM_READ(ym2203_status_port_0_r ) // YM2203 | |
| 1361 | 1361 | AM_RANGE(0x41, 0x41) AM_READ(ym2203_read_port_0_r ) // |
| 1362 | 1362 | AM_RANGE(0x60, 0x60) AM_READ(soundlatch_hi_r ) // From Main CPU |
| 1363 | 1363 | AM_RANGE(0x70, 0x70) AM_READ(soundlatch_lo_r ) // |
| r3115 | r3116 | |
| 1370 | 1370 | AM_RANGE(0x10, 0x17) AM_WRITE(NMK112_okibank_w ) // Samples bank |
| 1371 | 1371 | AM_RANGE(0x40, 0x40) AM_WRITE(ym2203_control_port_0_w ) // YM2203 |
| 1372 | 1372 | AM_RANGE(0x41, 0x41) AM_WRITE(ym2203_write_port_0_w ) // |
| 1373 | // AM_RANGE(0x50, 0x50) AM_WRITE(SMH_NOP ) // ?? volume | |
| 1374 | // AM_RANGE(0x51, 0x51) AM_WRITE(SMH_NOP ) // ?? volume | |
| 1373 | AM_RANGE(0x50, 0x50) AM_WRITE(soundlatch_ack_w ) // To Main CPU | |
| 1374 | // AM_RANGE(0x51, 0x51) AM_WRITE(SMH_NOP ) // ?? volume | |
| 1375 | 1375 | AM_RANGE(0x80, 0x80) AM_WRITE(pwrinst2_rombank_w ) // ROM bank |
| 1376 | 1376 | ADDRESS_MAP_END |
| 1377 | 1377 | |
| r3115 | r3116 | |
| 1418 | 1418 | } |
| 1419 | 1419 | |
| 1420 | 1420 | static ADDRESS_MAP_START( sailormn_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1421 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM ) // ROM | |
| 1422 | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK1 ) // ROM (Banked) | |
| 1423 | AM_RANGE(0xc000, 0xdfff) AM_READ(mirror_ram_r ) // RAM | |
| 1424 | AM_RANGE(0xe000, 0xffff) AM_READ(mirror_ram_r ) // Mirrored RAM (agallet) | |
| 1421 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM ) // ROM | |
| 1422 | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK1 ) // ROM (Banked) | |
| 1423 | AM_RANGE(0xc000, 0xdfff) AM_READ(mirror_ram_r ) // RAM | |
| 1424 | AM_RANGE(0xe000, 0xffff) AM_READ(mirror_ram_r ) // Mirrored RAM (agallet) | |
| 1425 | 1425 | ADDRESS_MAP_END |
| 1426 | 1426 | |
| 1427 | 1427 | static ADDRESS_MAP_START( sailormn_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1428 | 1428 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM ) // ROM |
| 1429 | 1429 | AM_RANGE(0x4000, 0x7fff) AM_WRITE(SMH_ROM ) // ROM (Banked) |
| 1430 | AM_RANGE(0xc000, 0xdfff) AM_WRITE(mirror_ram_w) AM_BASE(&mirror_ram | |
| 1430 | AM_RANGE(0xc000, 0xdfff) AM_WRITE(mirror_ram_w) AM_BASE(&mirror_ram | |
| 1431 | 1431 | AM_RANGE(0xe000, 0xffff) AM_WRITE(mirror_ram_w ) // Mirrored RAM (agallet) |
| 1432 | 1432 | ADDRESS_MAP_END |
| 1433 | 1433 | |
| r3115 | r3116 | |
| 1436 | 1436 | AM_RANGE(0x20, 0x20) AM_READ(soundflags_r ) // Communication |
| 1437 | 1437 | AM_RANGE(0x30, 0x30) AM_READ(soundlatch_lo_r ) // From Main CPU |
| 1438 | 1438 | AM_RANGE(0x40, 0x40) AM_READ(soundlatch_hi_r ) // |
| 1439 | AM_RANGE(0x51, 0x51) AM_READ(ym2151_status_port_0_r ) // YM2151 | |
| 1439 | AM_RANGE(0x51, 0x51) AM_READ(ym2151_status_port_0_r ) // YM2151 | |
| 1440 | 1440 | AM_RANGE(0x60, 0x60) AM_READ(okim6295_status_0_r ) // M6295 #0 |
| 1441 | 1441 | AM_RANGE(0x80, 0x80) AM_READ(okim6295_status_1_r ) // M6295 #1 |
| 1442 | 1442 | ADDRESS_MAP_END |
| r3115 | r3116 | |
|---|---|---|
| 18 | 18 | #include "sound/msm5205.h" |
| 19 | 19 | #include "rendlay.h" |
| 20 | 20 | |
| 21 | static int adpcm_pos[2],adpcm_end[2]; | |
| 22 | static int adpcm_data[2]; | |
| 23 | static UINT8 *shared_ram; | |
| 24 | ||
| 21 | 25 | /* in video/tbowl.c */ |
| 22 | 26 | extern UINT8 *tbowl_txvideoram, *tbowl_bgvideoram, *tbowl_bg2videoram; |
| 23 | 27 | extern UINT8 *tbowl_spriteram; |
| r3115 | r3116 | |
| 71 | 75 | |
| 72 | 76 | ***/ |
| 73 | 77 | |
| 74 | static UINT8 *shared_ram; | |
| 75 | ||
| 76 | 78 | static READ8_HANDLER( shared_r ) |
| 77 | 79 | { |
| 78 | 80 | return shared_ram[offset]; |
| r3115 | r3116 | |
| 110 | 112 | // AM_RANGE(0xf000, 0xf000) AM_WRITE(unknown_write) * written during start-up, not again */ |
| 111 | 113 | AM_RANGE(0xf000, 0xf7ff) AM_READWRITE(SMH_BANK1, SMH_ROM) |
| 112 | 114 | AM_RANGE(0xf800, 0xfbff) AM_READWRITE(shared_r, shared_w) AM_BASE(&shared_ram) /* check */ |
| 113 | AM_RANGE(0xfc00, 0xfc00) AM_READWRITE(input_port_0_r, tbowlb_bankswitch_w) /* Player 1 inputs */ | |
| 114 | AM_RANGE(0xfc01, 0xfc01) AM_READ(input_port_1_r) /* Player 2 inputs */ | |
| 115 | AM_RANGE(0xfc00, 0xfc00) AM_READ_PORT("P1") AM_WRITE(tbowlb_bankswitch_w) | |
| 116 | AM_RANGE(0xfc01, 0xfc01) AM_READ_PORT("P2") | |
| 115 | 117 | // AM_RANGE(0xfc01, 0xfc01) AM_WRITE(unknown_write) /* written during start-up, not again */ |
| 116 | AM_RANGE(0xfc02, 0xfc02) AM_READ | |
| 118 | AM_RANGE(0xfc02, 0xfc02) AM_READ | |
| 117 | 119 | // AM_RANGE(0xfc02, 0xfc02) AM_WRITE(unknown_write) /* written during start-up, not again */ |
| 118 | AM_RANGE(0xfc03, 0xfc03) AM_READWRITE( | |
| 120 | AM_RANGE(0xfc03, 0xfc03) AM_READ_PORT("P4") AM_WRITE( | |
| 119 | 121 | // AM_RANGE(0xfc05, 0xfc05) AM_WRITE(unknown_write) /* no idea */ |
| 120 | 122 | // AM_RANGE(0xfc06, 0xfc06) AM_READ(dummy_r) /* Read During NMI */ |
| 121 | AM_RANGE(0xfc07, 0xfc07) AM_READ(input_port_4_r) /* System inputs */ | |
| 122 | AM_RANGE(0xfc08, 0xfc08) AM_READ(input_port_5_r) /* DSW1 */ | |
| 123 | AM_RANGE(0xfc07, 0xfc07) AM_READ_PORT("SYSTEM") | |
| 124 | AM_RANGE(0xfc08, 0xfc08) AM_READ_PORT("DSW1") | |
| 123 | 125 | // AM_RANGE(0xfc08, 0xfc08) AM_WRITE(unknown_write) /* hardly used .. */ |
| 124 | AM_RANGE(0xfc09, 0xfc09) AM_READ(input_port_6_r) /* DSW2 */ | |
| 125 | AM_RANGE(0xfc0a, 0xfc0a) AM_READ(input_port_7_r) /* DSW3 */ | |
| 126 | AM_RANGE(0xfc09, 0xfc09) AM_READ_PORT("DSW2") | |
| 127 | AM_RANGE(0xfc0a, 0xfc0a) AM_READ_PORT("DSW3") | |
| 126 | 128 | // AM_RANGE(0xfc0a, 0xfc0a) AM_WRITE(unknown_write) /* hardly used .. */ |
| 127 | 129 | AM_RANGE(0xfc0d, 0xfc0d) AM_WRITE(tbowl_sound_command_w) /* not sure, used quite a bit */ |
| 128 | 130 | AM_RANGE(0xfc10, 0xfc10) AM_WRITE(tbowl_bg2xscroll_lo) |
| r3115 | r3116 | |
| 159 | 161 | |
| 160 | 162 | /* Board A */ |
| 161 | 163 | |
| 162 | static int adpcm_pos[2],adpcm_end[2]; | |
| 163 | ||
| 164 | 164 | static WRITE8_HANDLER( tbowl_adpcm_start_w ) |
| 165 | 165 | { |
| 166 | 166 | adpcm_pos[offset & 1] = data << 8; |
| r3115 | r3116 | |
| 179 | 179 | |
| 180 | 180 | static void tbowl_adpcm_int(running_machine *machine, int num) |
| 181 | 181 | { |
| 182 | static int adpcm_data[2] = { -1, -1 }; | |
| 183 | ||
| 184 | 182 | if (adpcm_pos[num] >= adpcm_end[num] || |
| 185 | 183 | adpcm_pos[num] >= memory_region_length(machine, "adpcm")/2) |
| 186 | 184 | msm5205_reset_w(num,1); |
| r3115 | r3116 | |
| 271 | 269 | |
| 272 | 270 | |
| 273 | 271 | static INPUT_PORTS_START( tbowl ) |
| 274 | PORT_START("P1") /* | |
| 272 | PORT_START("P1") /* | |
| 275 | 273 | TBOWL_PLAYER_INPUT(1) |
| 276 | 274 | |
| 277 | PORT_START("P2") /* | |
| 275 | PORT_START("P2") /* | |
| 278 | 276 | TBOWL_PLAYER_INPUT(2) |
| 279 | 277 | |
| 280 | PORT_START("P3") /* | |
| 278 | PORT_START("P3") /* | |
| 281 | 279 | TBOWL_PLAYER_INPUT(3) |
| 282 | 280 | |
| 283 | PORT_START("P4") /* | |
| 281 | PORT_START("P4") /* | |
| 284 | 282 | TBOWL_PLAYER_INPUT(4) |
| 285 | 283 | |
| 286 | PORT_START("SYSTEM") /* | |
| 284 | PORT_START("SYSTEM") /* | |
| 287 | 285 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 288 | 286 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 289 | 287 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) |
| r3115 | r3116 | |
| 293 | 291 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 294 | 292 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 295 | 293 | |
| 296 | PORT_START("DSW1") /* | |
| 294 | PORT_START("DSW1") /* | |
| 297 | 295 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) |
| 298 | 296 | PORT_DIPSETTING ( 0x00, DEF_STR( 8C_1C ) ) |
| 299 | 297 | PORT_DIPSETTING ( 0x01, DEF_STR( 7C_1C ) ) |
| r3115 | r3116 | |
| 337 | 335 | PORT_DIPSETTING ( 0xf0, "0:25" ) |
| 338 | 336 | // PORT_DIPSETTING ( 0xf8, "1:00" ) |
| 339 | 337 | |
| 340 | PORT_START("DSW2") /* | |
| 338 | PORT_START("DSW2") /* | |
| 341 | 339 | PORT_DIPNAME( 0x03, 0x03, "Difficulty (unused ?)" ) // To be checked again |
| 342 | 340 | PORT_DIPSETTING ( 0x00, "0x00" ) |
| 343 | 341 | PORT_DIPSETTING ( 0x01, "0x01" ) |
| r3115 | r3116 | |
| 360 | 358 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) |
| 361 | 359 | PORT_DIPSETTING ( 0x80, DEF_STR( On ) ) |
| 362 | 360 | |
| 363 | PORT_START("DSW3") /* | |
| 361 | PORT_START("DSW3") /* | |
| 364 | 362 | PORT_DIPNAME( 0x03, 0x03, "Time (Quarter)" ) |
| 365 | 363 | PORT_DIPSETTING ( 0x00, "8:00" ) |
| 366 | 364 | PORT_DIPSETTING ( 0x01, "5:00" ) |
| r3115 | r3116 | |
| 377 | 375 | /* same as 'tbowl', but different "Quarter Time" Dip Switch |
| 378 | 376 | ("3:00" and "4:00" are inverted) */ |
| 379 | 377 | static INPUT_PORTS_START( tbowlj ) |
| 380 | PORT_START("P1") /* player 1 inputs (0xfc00) */ | |
| 381 | TBOWL_PLAYER_INPUT(1) | |
| 378 | PORT_INCLUDE( tbowl ) | |
| 382 | 379 | |
| 383 | PORT_START("P2") /* player 2 inputs (0xfc01) */ | |
| 384 | TBOWL_PLAYER_INPUT(2) | |
| 385 | ||
| 386 | PORT_START("P3") /* player 3 inputs (0xfc02) */ | |
| 387 | TBOWL_PLAYER_INPUT(3) | |
| 388 | ||
| 389 | PORT_START("P4") /* player 4 inputs (0xfc03) */ | |
| 390 | TBOWL_PLAYER_INPUT(4) | |
| 391 | ||
| 392 | PORT_START("SYSTEM") /* system inputs (0xfc07 -> 0x80f9) */ | |
| 393 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 394 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 395 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 396 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN4 ) | |
| 397 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Service (General)") PORT_CODE(KEYCODE_F1) | |
| 398 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 399 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 400 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 401 | ||
| 402 | PORT_START("DSW1") /* DSW1 (0xfc08 -> 0xffb4) */ | |
| 403 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) ) | |
| 404 | PORT_DIPSETTING ( 0x00, DEF_STR( 8C_1C ) ) | |
| 405 | PORT_DIPSETTING ( 0x01, DEF_STR( 7C_1C ) ) | |
| 406 | PORT_DIPSETTING ( 0x02, DEF_STR( 6C_1C ) ) | |
| 407 | PORT_DIPSETTING ( 0x03, DEF_STR( 5C_1C ) ) | |
| 408 | PORT_DIPSETTING ( 0x04, DEF_STR( 4C_1C ) ) | |
| 409 | PORT_DIPSETTING ( 0x05, DEF_STR( 3C_1C ) ) | |
| 410 | PORT_DIPSETTING ( 0x06, DEF_STR( 2C_1C ) ) | |
| 411 | PORT_DIPSETTING ( 0x07, DEF_STR( 1C_1C ) ) | |
| 412 | PORT_DIPNAME( 0xf8, 0xb8, "Time (Players)" ) | |
| 413 | PORT_DIPSETTING ( 0x00, "7:00" ) | |
| 414 | PORT_DIPSETTING ( 0x08, "6:00" ) | |
| 415 | PORT_DIPSETTING ( 0x10, "5:00" ) | |
| 416 | PORT_DIPSETTING ( 0x18, "4:30" ) | |
| 417 | PORT_DIPSETTING ( 0x20, "3:40" ) | |
| 418 | PORT_DIPSETTING ( 0x28, "3:20" ) | |
| 419 | PORT_DIPSETTING ( 0x30, "3:00" ) | |
| 420 | PORT_DIPSETTING ( 0x38, "2:50" ) | |
| 421 | PORT_DIPSETTING ( 0x40, "2:40" ) | |
| 422 | PORT_DIPSETTING ( 0x48, "2:30" ) | |
| 423 | PORT_DIPSETTING ( 0x50, "2:20" ) | |
| 424 | PORT_DIPSETTING ( 0x58, "2:10" ) | |
| 425 | PORT_DIPSETTING ( 0x60, "2:00" ) | |
| 426 | PORT_DIPSETTING ( 0x68, "1:55" ) | |
| 427 | PORT_DIPSETTING ( 0x70, "1:50" ) | |
| 428 | PORT_DIPSETTING ( 0x78, "1:45" ) | |
| 429 | PORT_DIPSETTING ( 0x80, "1:40" ) | |
| 430 | PORT_DIPSETTING ( 0x88, "1:35" ) | |
| 431 | PORT_DIPSETTING ( 0x90, "1:25" ) | |
| 432 | PORT_DIPSETTING ( 0x98, "1:20" ) | |
| 433 | PORT_DIPSETTING ( 0xa0, "1:15" ) | |
| 434 | PORT_DIPSETTING ( 0xa8, "1:10" ) | |
| 435 | PORT_DIPSETTING ( 0xb0, "1:05" ) | |
| 436 | PORT_DIPSETTING ( 0xb8, "1:00" ) | |
| 437 | PORT_DIPSETTING ( 0xc0, "0:55" ) | |
| 438 | PORT_DIPSETTING ( 0xc8, "0:50" ) | |
| 439 | PORT_DIPSETTING ( 0xd0, "0:45" ) | |
| 440 | PORT_DIPSETTING ( 0xd8, "0:40" ) | |
| 441 | PORT_DIPSETTING ( 0xe0, "0:35" ) | |
| 442 | PORT_DIPSETTING ( 0xe8, "0:30" ) | |
| 443 | PORT_DIPSETTING ( 0xf0, "0:25" ) | |
| 444 | // PORT_DIPSETTING ( 0xf8, "1:00" ) | |
| 445 | ||
| 446 | PORT_START("DSW2") /* DSW2 (0xfc09 -> 0xffb5) */ | |
| 447 | PORT_DIPNAME( 0x03, 0x03, "Difficulty (unused ?)" ) // To be checked again | |
| 448 | PORT_DIPSETTING ( 0x00, "0x00" ) | |
| 449 | PORT_DIPSETTING ( 0x01, "0x01" ) | |
| 450 | PORT_DIPSETTING ( 0x02, "0x02" ) | |
| 451 | PORT_DIPSETTING ( 0x03, "0x03" ) | |
| 452 | PORT_DIPNAME( 0x0c, 0x0c, "Extra Time (Players)" ) // For multiple "credits" | |
| 453 | PORT_DIPSETTING ( 0x00, "0:30" ) | |
| 454 | PORT_DIPSETTING ( 0x04, "0:20" ) | |
| 455 | PORT_DIPSETTING ( 0x08, "0:10" ) | |
| 456 | PORT_DIPSETTING ( 0x0c, DEF_STR( None ) ) | |
| 457 | PORT_DIPNAME( 0x30, 0x30, "Timer Speed" ) | |
| 458 | PORT_DIPSETTING ( 0x00, "56/60" ) | |
| 459 | PORT_DIPSETTING ( 0x10, "51/60" ) | |
| 460 | PORT_DIPSETTING ( 0x30, "47/60" ) | |
| 461 | PORT_DIPSETTING ( 0x20, "42/60" ) | |
| 462 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) // Check code at 0x0393 | |
| 463 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 464 | PORT_DIPSETTING ( 0x40, DEF_STR( On ) ) | |
| 465 | PORT_DIPNAME( 0x80, 0x80, "Hi-Score Reset" ) // Only if P1 buttons 1 and 2 are pressed during P.O.S.T. ! | |
| 466 | PORT_DIPSETTING ( 0x00, DEF_STR( Off ) ) | |
| 467 | PORT_DIPSETTING ( 0x80, DEF_STR( On ) ) | |
| 468 | ||
| 469 | PORT_START("DSW3") /* DSW3 (0xfc0a -> 0xffb6) */ | |
| 380 | PORT_MODIFY("DSW3") | |
| 470 | 381 | PORT_DIPNAME( 0x03, 0x03, "Time (Quarter)" ) |
| 471 | 382 | PORT_DIPSETTING ( 0x00, "8:00" ) |
| 472 | 383 | PORT_DIPSETTING ( 0x01, "5:00" ) |
| r3115 | r3116 | |
| 477 | 388 | PORT_DIPSETTING ( 0x04, "0x04 = 0x5402" ) |
| 478 | 389 | PORT_DIPSETTING ( 0x08, "0x08 = 0x54f0" ) |
| 479 | 390 | PORT_DIPSETTING ( 0x0c, "0x0c = 0x54de" ) |
| 480 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 481 | 391 | INPUT_PORTS_END |
| 482 | 392 | |
| 483 | 393 | |
| r3115 | r3116 | |
| 559 | 469 | |
| 560 | 470 | ***/ |
| 561 | 471 | |
| 472 | static MACHINE_RESET( tbowl ) | |
| 473 | { | |
| 474 | adpcm_pos[0] = adpcm_pos[1] = 0; | |
| 475 | adpcm_end[0] = adpcm_end[1] = 0; | |
| 476 | adpcm_data[0] = adpcm_data[1] = -1; | |
| 477 | } | |
| 478 | ||
| 562 | 479 | static MACHINE_DRIVER_START( tbowl ) |
| 563 | 480 | |
| 564 | 481 | /* CPU on Board '6206B' */ |
| r3115 | r3116 | |
| 599 | 516 | MDRV_VIDEO_START(tbowl) |
| 600 | 517 | MDRV_VIDEO_UPDATE(tbowl) |
| 601 | 518 | |
| 519 | MDRV_MACHINE_RESET( tbowl ) | |
| 520 | ||
| 602 | 521 | /* sound hardware */ |
| 603 | 522 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 604 | 523 |
| r3115 | r3116 | |
|---|---|---|
| 56 | 56 | |
| 57 | 57 | static void update_interrupts(running_machine *machine) |
| 58 | 58 | { |
| 59 | int newstate = 0; | |
| 60 | ||
| 61 | if (atarigen_sound_int_state) | |
| 62 | newstate = 3; | |
| 63 | if (atarigen_video_int_state) | |
| 64 | newstate = 4; | |
| 65 | if (atarigen_scanline_int_state) | |
| 66 | newstate = 6; | |
| 67 | ||
| 68 | if (newstate) | |
| 69 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 70 | else | |
| 71 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 59 | cpunum_set_input_line(machine, 0, 3, atarigen_sound_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 60 | cpunum_set_input_line(machine, 0, 4, atarigen_video_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 61 | cpunum_set_input_line(machine, 0, 6, atarigen_scanline_int_state ? ASSERT_LINE : CLEAR_LINE); | |
| 72 | 62 | } |
| 73 | 63 | |
| 74 | 64 |
| r3115 | r3116 | |
|---|---|---|
| 79 | 79 | |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | static READ16_HANDLER( eeprom_r ) | |
| 83 | { | |
| 84 | return (eeprom_read_bit() << 15)|(input_port_read(machine, "IN3") & 0x7fff); | |
| 85 | } | |
| 86 | ||
| 87 | 82 | static WRITE16_HANDLER( eeprom_w ) |
| 88 | 83 | { |
| 89 | 84 | //bad ? |
| r3115 | r3116 | |
| 108 | 103 | AM_RANGE(0xb00000, 0xb00001) AM_WRITE(eeprom_w) |
| 109 | 104 | AM_RANGE(0xC00000, 0xC00001) AM_READ_PORT("IN0") AM_WRITE(gms_write1) |
| 110 | 105 | AM_RANGE(0xC08000, 0xC08001) AM_READ_PORT("IN1") AM_WRITE(gms_write2) |
| 111 | AM_RANGE(0xC10000, 0xC10001) AM_READ | |
| 106 | AM_RANGE(0xC10000, 0xC10001) AM_READ | |
| 112 | 107 | AM_RANGE(0xC18080, 0xC18081) AM_READ(gms_read) |
| 113 | 108 | AM_RANGE(0xC20000, 0xC20001) AM_READ_PORT("IN2") |
| 114 | 109 | AM_RANGE(0xC28000, 0xC28001) AM_WRITE(gms_write3) |
| r3115 | r3116 | |
| 116 | 111 | |
| 117 | 112 | |
| 118 | 113 | static INPUT_PORTS_START( rbmk ) |
| 119 | ||
| 120 | PORT_START("IN0") /* 16bit */ | |
| 121 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Controls ) ) | |
| 122 | PORT_DIPSETTING( 0x0080, DEF_STR( Joystick ) ) | |
| 123 | PORT_DIPSETTING( 0x0000, "Keyboard" ) | |
| 124 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Version ) ) | |
| 125 | PORT_DIPSETTING( 0x4000, "8.8" ) | |
| 126 | PORT_DIPSETTING( 0x0000, "8.8-" ) | |
| 127 | ||
| 128 | ||
| 114 | PORT_START("IN0") | |
| 129 | 115 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 130 | 116 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 131 | 117 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 147 | 133 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) |
| 148 | 134 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 149 | 135 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 136 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Controls ) ) | |
| 137 | PORT_DIPSETTING( 0x0080, DEF_STR( Joystick ) ) | |
| 138 | PORT_DIPSETTING( 0x0000, "Keyboard" ) | |
| 150 | 139 | |
| 151 | 140 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) |
| 152 | 141 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 166 | 155 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) |
| 167 | 156 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) |
| 168 | 157 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 169 | ||
| 158 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Version ) ) | |
| 159 | PORT_DIPSETTING( 0x4000, "8.8" ) | |
| 160 | PORT_DIPSETTING( 0x0000, "8.8-" ) | |
| 170 | 161 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) |
| 171 | 162 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 172 | 163 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 187 | 178 | |
| 188 | 179 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| 189 | 180 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 190 | ||
| 191 | 181 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 192 | 182 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_MAHJONG_BET ) |
| 193 | 183 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| r3115 | r3116 | |
| 302 | 292 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) |
| 303 | 293 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) |
| 304 | 294 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 305 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) | |
| 306 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 307 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 295 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) | |
| 308 | 296 | |
| 309 | 297 | PORT_START("IN4") /* 16bit */ |
| 310 | 298 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| r3115 | r3116 | |
| 405 | 393 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) |
| 406 | 394 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 407 | 395 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 408 | ||
| 409 | 396 | INPUT_PORTS_END |
| 410 | 397 | |
| 411 | 398 |
| r3115 | r3116 | |
|---|---|---|
| 69 | 69 | /* call this whenever the interrupt state has changed */ |
| 70 | 70 | static void update_interrupts(running_machine *machine) |
| 71 | 71 | { |
| 72 | int level = 0; | |
| 73 | ||
| 74 | /* determine which interrupt is active */ | |
| 75 | if (irq2_int) level = 2; | |
| 76 | if (scanline_int) level = 4; | |
| 77 | if (vblank_int) level = 6; | |
| 78 | ||
| 79 | /* either set or clear the appropriate lines */ | |
| 80 | if (level) | |
| 81 | cpunum_set_input_line(machine, 0, level, ASSERT_LINE); | |
| 82 | else | |
| 83 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 72 | cpunum_set_input_line(machine, 0, 2, irq2_int ? ASSERT_LINE : CLEAR_LINE); | |
| 73 | cpunum_set_input_line(machine, 0, 4, scanline_int ? ASSERT_LINE : CLEAR_LINE); | |
| 74 | cpunum_set_input_line(machine, 0, 6, vblank_int ? ASSERT_LINE : CLEAR_LINE); | |
| 84 | 75 | } |
| 85 | 76 | |
| 86 | 77 |
| r3115 | r3116 | |
|---|---|---|
| 172 | 172 | AM_RANGE(0x9840, 0x985f) AM_RAM AM_BASE(&thepit_spriteram) AM_SIZE(&thepit_spriteram_size) |
| 173 | 173 | AM_RANGE(0x9860, 0x98ff) AM_RAM |
| 174 | 174 | AM_RANGE(0xa000, 0xa000) AM_READWRITE(thepit_input_port_0_r, SMH_NOP) // Not hooked up according to the schematics |
| 175 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 176 | AM_RANGE(0xb000, 0xb000) AM_READWRITE(input_port_2_r, interrupt_enable_w) | |
| 175 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("IN1") | |
| 176 | AM_RANGE(0xb000, 0xb000) AM_READ_PORT("DSW") AM_WRITE(interrupt_enable_w) | |
| 177 | 177 | AM_RANGE(0xb001, 0xb001) AM_WRITE(SMH_NOP) // Unused, but initialized |
| 178 | 178 | AM_RANGE(0xb002, 0xb002) AM_WRITE(SMH_NOP) // coin_lockout_w |
| 179 | 179 | AM_RANGE(0xb003, 0xb003) AM_WRITE(thepit_sound_enable_w) |
| r3115 | r3116 | |
| 193 | 193 | AM_RANGE(0x9840, 0x985f) AM_RAM AM_BASE(&thepit_spriteram) AM_SIZE(&thepit_spriteram_size) |
| 194 | 194 | AM_RANGE(0x9860, 0x98ff) AM_RAM |
| 195 | 195 | AM_RANGE(0xa000, 0xa000) AM_READ(thepit_input_port_0_r) |
| 196 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 197 | AM_RANGE(0xb000, 0xb000) AM_READWRITE(input_port_2_r, interrupt_enable_w) | |
| 196 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("IN1") | |
| 197 | AM_RANGE(0xb000, 0xb000) AM_READ_PORT("DSW") AM_WRITE(interrupt_enable_w) | |
| 198 | 198 | AM_RANGE(0xb001, 0xb001) AM_WRITE(SMH_NOP) // Unused, but initialized |
| 199 | 199 | AM_RANGE(0xb002, 0xb002) AM_WRITE(SMH_NOP) // coin_lockout_w |
| 200 | 200 | AM_RANGE(0xb003, 0xb003) AM_WRITE(thepit_sound_enable_w) |
| r3115 | r3116 | |
|---|---|---|
| 212 | 212 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 213 | 213 | AM_RANGE(0x00, 0x00) AM_WRITE(ay8910_control_port_0_w) |
| 214 | 214 | AM_RANGE(0x01, 0x01) AM_WRITE(ay8910_write_port_0_w) |
| 215 | AM_RANGE(0x02, 0x02) AM_READ | |
| 215 | AM_RANGE(0x02, 0x02) AM_READ | |
| 216 | 216 | AM_RANGE(0x80, 0x80) AM_WRITE(trvmadns_banking_w) |
| 217 | 217 | ADDRESS_MAP_END |
| 218 | 218 |
| r3115 | r3116 | |
|---|---|---|
| 163 | 163 | * |
| 164 | 164 | *************************************/ |
| 165 | 165 | |
| 166 | static | |
| 166 | static CUSTOM_I | |
| 167 | 167 | { |
| 168 | return input_port_read( | |
| 168 | return input_port_read( | |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | |
| 172 | ||
| 173 | 172 | /************************************* |
| 174 | 173 | * |
| 175 | 174 | * Sound I/O |
| r3115 | r3116 | |
| 245 | 244 | AM_RANGE(0x040000, 0x04ffff) AM_READ(SMH_RAM) |
| 246 | 245 | AM_RANGE(0x060000, 0x060fff) AM_READ(SMH_RAM) |
| 247 | 246 | AM_RANGE(0x080000, 0x083fff) AM_READ(SMH_RAM) |
| 248 | AM_RANGE(0x0c0018, 0x0c001b) AM_READ(common_port_r) | |
| 247 | AM_RANGE(0x0c0018, 0x0c0019) AM_READ_PORT("P1") | |
| 248 | AM_RANGE(0x0c001a, 0x0c001b) AM_READ_PORT("P2") | |
| 249 | 249 | AM_RANGE(0x0c001c, 0x0c001d) AM_READ_PORT("DSW") |
| 250 | 250 | AM_RANGE(0x0c001e, 0x0c001f) AM_READ(sound_busy_r) |
| 251 | 251 | AM_RANGE(0x0a0000, 0x0a07ff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 310 | 310 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 311 | 311 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 312 | 312 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 313 | PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 313 | PORT_BIT( 0x00c0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 314 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(hi_bits_r, NULL) | |
| 314 | 315 | |
| 315 | 316 | PORT_START("P2") /* c001a lower 8 bits */ |
| 316 | 317 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
| 319 | 320 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 320 | 321 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 321 | 322 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 322 | PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 323 | PORT_BIT( 0x00c0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 324 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(hi_bits_r, NULL) | |
| 323 | 325 | |
| 324 | 326 | PORT_START("SERVICE") /* c0018/c001a upper 8 bits */ |
| 325 | PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 326 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 327 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_SERVICE ) /* Hold F2 at bootup */ | |
| 328 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Freeze game */ | |
| 329 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 330 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 331 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 332 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 333 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 327 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 328 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) /* Hold F2 at bootup */ | |
| 329 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Freeze game */ | |
| 330 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 331 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 332 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 333 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 334 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 334 | 335 | |
| 335 | 336 | PORT_START("DSW") /* c001c DIP switches */ |
| 336 | PORT_DIPNAME( 0x000f, 0x0000, DEF_STR( Coin_A )) PORT_DIPLOCATION("SWA:1,2,3,4") | |
| 337 | PORT_DIPSETTING( 0x000d, DEF_STR( 3C_1C )) | |
| 338 | PORT_DIPSETTING( 0x000c, DEF_STR( 2C_1C )) | |
| 337 | PORT_DIPNAME( 0x000f, 0x0000, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4") | |
| 338 | PORT_DIPSETTING( 0x000d, DEF_STR( 3C_1C ) ) | |
| 339 | PORT_DIPSETTING( 0x000c, DEF_STR( 2C_1C ) ) | |
| 339 | 340 | PORT_DIPSETTING( 0x0005, "6 Coins/4 Credits") |
| 340 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C )) | |
| 341 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 341 | 342 | PORT_DIPSETTING( 0x0003, "5 Coins/6 Credits" ) |
| 342 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_5C )) | |
| 343 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_3C )) | |
| 344 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_2C )) | |
| 345 | PORT_DIPSETTING( 0x0009, DEF_STR( 1C_3C )) | |
| 346 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_4C )) | |
| 347 | PORT_DIPSETTING( 0x000b, DEF_STR( 1C_5C )) | |
| 348 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_6C )) | |
| 349 | PORT_DIPNAME( 0x00f0, 0x0000, DEF_STR( Coin_B )) PORT_DIPLOCATION("SWA:5,6,7,8") | |
| 350 | PORT_DIPSETTING( 0x00d0, DEF_STR( 3C_1C )) | |
| 351 | PORT_DIPSETTING( 0x00c0, DEF_STR( 2C_1C )) | |
| 343 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_5C ) ) | |
| 344 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_3C ) ) | |
| 345 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_2C ) ) | |
| 346 | PORT_DIPSETTING( 0x0009, DEF_STR( 1C_3C ) ) | |
| 347 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_4C ) ) | |
| 348 | PORT_DIPSETTING( 0x000b, DEF_STR( 1C_5C ) ) | |
| 349 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_6C ) ) | |
| 350 | PORT_DIPNAME( 0x00f0, 0x0000, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWA:5,6,7,8") | |
| 351 | PORT_DIPSETTING( 0x00d0, DEF_STR( 3C_1C ) ) | |
| 352 | PORT_DIPSETTING( 0x00c0, DEF_STR( 2C_1C ) ) | |
| 352 | 353 | PORT_DIPSETTING( 0x0050, "6 Coins/4 Credits") |
| 353 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C )) | |
| 354 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) | |
| 354 | 355 | PORT_DIPSETTING( 0x0030, "5 Coins/6 Credits" ) |
| 355 | PORT_DIPSETTING( 0x0020, DEF_STR( 4C_5C )) | |
| 356 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_3C )) | |
| 357 | PORT_DIPSETTING( 0x0080, DEF_STR( 1C_2C )) | |
| 358 | PORT_DIPSETTING( 0x0090, DEF_STR( 1C_3C )) | |
| 359 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_4C )) | |
| 360 | PORT_DIPSETTING( 0x00b0, DEF_STR( 1C_5C )) | |
| 361 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_6C )) | |
| 356 | PORT_DIPSETTING( 0x0020, DEF_STR( 4C_5C ) ) | |
| 357 | PORT_DIPSETTING( 0x0060, DEF_STR( 2C_3C ) ) | |
| 358 | PORT_DIPSETTING( 0x0080, DEF_STR( 1C_2C ) ) | |
| 359 | PORT_DIPSETTING( 0x0090, DEF_STR( 1C_3C ) ) | |
| 360 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_4C ) ) | |
| 361 | PORT_DIPSETTING( 0x00b0, DEF_STR( 1C_5C ) ) | |
| 362 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_6C ) ) | |
| 362 | 363 | |
| 363 | 364 | |
| 364 | PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Difficulty )) PORT_DIPLOCATION("SWB:1,2") | |
| 365 | PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:1,2") | |
| 365 | 366 | PORT_DIPSETTING( 0x0200, DEF_STR( Easy ) ) |
| 366 | 367 | PORT_DIPSETTING( 0x0000, DEF_STR( Normal ) ) |
| 367 | 368 | PORT_DIPSETTING( 0x0100, DEF_STR( Hard ) ) |
| 368 | 369 | PORT_DIPSETTING( 0x0300, DEF_STR( Hardest ) ) |
| 369 | PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Lives )) PORT_DIPLOCATION("SWB:3") | |
| 370 | PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWB:3") | |
| 370 | 371 | PORT_DIPSETTING( 0x0000, "2" ) |
| 371 | 372 | PORT_DIPSETTING( 0x0400, "3" ) |
| 372 | 373 | PORT_DIPNAME( 0x0800, 0x0000, "Laser" ) PORT_DIPLOCATION("SWB:4") |
| r3115 | r3116 | |
| 375 | 376 | PORT_DIPNAME( 0x1000, 0x0000, "Extended Play" ) PORT_DIPLOCATION("SWB:5") |
| 376 | 377 | PORT_DIPSETTING( 0x0000, "500000 points" ) |
| 377 | 378 | PORT_DIPSETTING( 0x1000, DEF_STR( None ) ) |
| 378 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SWB:6") | |
| 379 | PORT_DIPSETTING( 0x0000, DEF_STR( Off )) | |
| 380 | PORT_DIPSETTING( 0x2000, DEF_STR( On )) | |
| 379 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:6") | |
| 380 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 381 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) | |
| 381 | 382 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Continues ) ) PORT_DIPLOCATION("SWB:7") |
| 382 | PORT_DIPSETTING( 0x4000, DEF_STR( Off )) | |
| 383 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 384 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Flip_Screen )) PORT_DIPLOCATION("SWB:8") | |
| 385 | PORT_DIPSETTING( 0x0000, DEF_STR( Off )) | |
| 386 | PORT_DIPSETTING( 0x8000, DEF_STR( On )) | |
| 383 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 384 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 385 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWB:8") | |
| 386 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 387 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) | |
| 387 | 388 | INPUT_PORTS_END |
| 388 | 389 | |
| 389 | 390 | |
| r3115 | r3116 | |
| 391 | 392 | PORT_INCLUDE( rpunch ) |
| 392 | 393 | |
| 393 | 394 | PORT_MODIFY("DSW") |
| 394 | PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Lives )) PORT_DIPLOCATION("SWB:3") | |
| 395 | PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWB:3") | |
| 395 | 396 | PORT_DIPSETTING( 0x0000, "3" ) |
| 396 | 397 | PORT_DIPSETTING( 0x0400, "2" ) |
| 397 | 398 | PORT_DIPNAME( 0x0800, 0x0000, "Laser" ) PORT_DIPLOCATION("SWB:4") |
| r3115 | r3116 | |
| 400 | 401 | PORT_DIPNAME( 0x1000, 0x0000, "Extended Play" ) PORT_DIPLOCATION("SWB:5") |
| 401 | 402 | PORT_DIPSETTING( 0x0000, "500000 points" ) |
| 402 | 403 | PORT_DIPSETTING( 0x1000, "300000 points" ) |
| 403 | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SWB:6") | |
| 404 | PORT_DIPSETTING( 0x2000, DEF_STR( Off )) | |
| 405 | PORT_DIPSETTING( 0x0000, DEF_STR( On )) | |
| 404 | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:6") | |
| 405 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 406 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 406 | 407 | INPUT_PORTS_END |
| 407 | 408 | |
| 408 | 409 | |
| r3115 | r3116 | |
| 414 | 415 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 415 | 416 | |
| 416 | 417 | PORT_MODIFY("DSW") |
| 417 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Game_Time )) PORT_DIPLOCATION("SWB:1") | |
| 418 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Game_Time ) ) PORT_DIPLOCATION("SWB:1") | |
| 418 | 419 | PORT_DIPSETTING( 0x0100, "2 min/1 min" ) |
| 419 | 420 | PORT_DIPSETTING( 0x0000, "3 min/1.5 min" ) |
| 420 | 421 | PORT_DIPNAME( 0x0600, 0x0000, "2P Starting Score" ) PORT_DIPLOCATION("SWB:2,3") |
| r3115 | r3116 | |
| 428 | 429 | PORT_DIPSETTING( 0x0800, "10-11" ) |
| 429 | 430 | PORT_DIPSETTING( 0x0000, "11-11" ) |
| 430 | 431 | PORT_SERVICE_DIPLOC( 0x2000, IP_ACTIVE_HIGH, "SWB:6" ) |
| 431 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SWB:7") | |
| 432 | PORT_DIPSETTING( 0x0000, DEF_STR( Off )) | |
| 433 | PORT_DIPSETTING( 0x4000, DEF_STR( On )) | |
| 432 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:7") | |
| 433 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 434 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) | |
| 434 | 435 | INPUT_PORTS_END |
| 435 | 436 | |
| 436 | 437 |
| r3115 | r3116 | |
|---|---|---|
| 445 | 445 | } |
| 446 | 446 | |
| 447 | 447 | |
| 448 | static READ32_HANDLER( rabbit_input_r ) | |
| 449 | { | |
| 450 | int rv; | |
| 451 | ||
| 452 | rv = (input_port_read(machine, "IN1")<<16)|(input_port_read(machine, "IN0")); | |
| 453 | rv &= ~1; | |
| 454 | rv |= eeprom_read_bit(); // as per code at 4d932 | |
| 455 | return rv; | |
| 456 | } | |
| 457 | ||
| 458 | static READ32_HANDLER( tmmjprd_input_r ) | |
| 459 | { | |
| 460 | int rv; | |
| 461 | ||
| 462 | rv = (input_port_read(machine, "IN1")<<16)|(input_port_read(machine, "IN0")); | |
| 463 | rv &= ~0x80; | |
| 464 | rv |= (eeprom_read_bit()<<7); // as per code at 778 | |
| 465 | return rv; | |
| 466 | } | |
| 467 | ||
| 468 | 448 | static WRITE32_HANDLER( rabbit_paletteram_dword_w ) |
| 469 | 449 | { |
| 470 | 450 | int r,g,b; |
| r3115 | r3116 | |
| 504 | 484 | |
| 505 | 485 | static ADDRESS_MAP_START( rabbit_readmem, ADDRESS_SPACE_PROGRAM, 32 ) |
| 506 | 486 | AM_RANGE(0x000000, 0x1fffff) AM_READ(SMH_ROM) |
| 507 | AM_RANGE(0x200000, 0x200003) AM_READ | |
| 487 | AM_RANGE(0x200000, 0x200003) AM_READ | |
| 508 | 488 | AM_RANGE(0x400010, 0x400013) AM_READ(randomrabbits) // gfx chip status? |
| 509 | 489 | AM_RANGE(0x400980, 0x400983) AM_READ(randomrabbits) // sound chip status? |
| 510 | 490 | AM_RANGE(0x400984, 0x400987) AM_READ(randomrabbits) // sound chip status? |
| r3115 | r3116 | |
| 781 | 761 | AM_RANGE(0x288000, 0x28bfff) AM_READ(rabbit_tilemap2_r) |
| 782 | 762 | AM_RANGE(0x28c000, 0x28ffff) AM_READ(rabbit_tilemap3_r) |
| 783 | 763 | AM_RANGE(0x290000, 0x29ffff) AM_READ(SMH_RAM) |
| 784 | AM_RANGE(0x400000, 0x400003) AM_READ | |
| 764 | AM_RANGE(0x400000, 0x400003) AM_READ | |
| 785 | 765 | AM_RANGE(0xf00000, 0xffffff) AM_READ(SMH_RAM) |
| 786 | 766 | ADDRESS_MAP_END |
| 787 | 767 | |
| r3115 | r3116 | |
| 828 | 808 | ADDRESS_MAP_END |
| 829 | 809 | |
| 830 | 810 | static INPUT_PORTS_START( rabbit ) |
| 831 | PORT_START("IN0") /* 16bit */ | |
| 832 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SPECIAL ) // Eeprom | |
| 833 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unlabeled in input test | |
| 834 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 835 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 836 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 837 | PORT_SERVICE( 0x0020, IP_ACTIVE_LOW ) | |
| 838 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 839 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 840 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 841 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 842 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 843 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 844 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 845 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 846 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 847 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 811 | PORT_START("INPUTS") | |
| 812 | PORT_BIT( 0x00000001, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) // as per code at 4d932 | |
| 813 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unlabeled in input test | |
| 814 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 815 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 816 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 817 | PORT_SERVICE( 0x00000020, IP_ACTIVE_LOW ) | |
| 818 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 819 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 820 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 821 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 822 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 823 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 824 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 825 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 826 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 827 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 848 | 828 | |
| 849 | PORT_START("IN1") /* 16bit */ | |
| 850 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 851 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 852 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 853 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 854 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 855 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 856 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 857 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 858 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) | |
| 859 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 860 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 861 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) | |
| 862 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 863 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 864 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) | |
| 865 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 866 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 867 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) | |
| 868 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 869 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 870 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) | |
| 871 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 872 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 873 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) | |
| 874 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 875 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 876 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) | |
| 877 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 878 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 879 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) | |
| 880 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 881 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 829 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 830 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 831 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 832 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 833 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 834 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 835 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 836 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 837 | PORT_DIPNAME( 0x01000000, 0x01000000, DEF_STR( Unknown ) ) | |
| 838 | PORT_DIPSETTING( 0x01000000, DEF_STR( Off ) ) | |
| 839 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 840 | PORT_DIPNAME( 0x02000000, 0x02000000, DEF_STR( Unknown ) ) | |
| 841 | PORT_DIPSETTING( 0x02000000, DEF_STR( Off ) ) | |
| 842 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 843 | PORT_DIPNAME( 0x04000000, 0x04000000, DEF_STR( Unknown ) ) | |
| 844 | PORT_DIPSETTING( 0x04000000, DEF_STR( Off ) ) | |
| 845 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 846 | PORT_DIPNAME( 0x08000000, 0x08000000, DEF_STR( Unknown ) ) | |
| 847 | PORT_DIPSETTING( 0x08000000, DEF_STR( Off ) ) | |
| 848 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 849 | PORT_DIPNAME( 0x10000000, 0x10000000, DEF_STR( Unknown ) ) | |
| 850 | PORT_DIPSETTING( 0x10000000, DEF_STR( Off ) ) | |
| 851 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 852 | PORT_DIPNAME( 0x20000000, 0x20000000, DEF_STR( Unknown ) ) | |
| 853 | PORT_DIPSETTING( 0x20000000, DEF_STR( Off ) ) | |
| 854 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 855 | PORT_DIPNAME( 0x40000000, 0x40000000, DEF_STR( Unknown ) ) | |
| 856 | PORT_DIPSETTING( 0x40000000, DEF_STR( Off ) ) | |
| 857 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 858 | PORT_DIPNAME( 0x80000000, 0x80000000, DEF_STR( Unknown ) ) | |
| 859 | PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) | |
| 860 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 882 | 861 | INPUT_PORTS_END |
| 883 | 862 | |
| 884 | 863 | static INPUT_PORTS_START( tmmjprd ) |
| 885 | PORT_START("IN0") /* 16bit */ | |
| 886 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 887 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unlabeled in input test | |
| 888 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 889 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 890 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 891 | PORT_SERVICE( 0x0020, IP_ACTIVE_LOW ) | |
| 892 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 893 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SPECIAL ) // Eeprom | |
| 894 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 895 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 896 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 897 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 898 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 899 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 900 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 901 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 864 | PORT_START("INPUTS") | |
| 865 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 866 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_UNKNOWN ) // unlabeled in input test | |
| 867 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_START1 ) | |
| 868 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_START2 ) | |
| 869 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 870 | PORT_SERVICE( 0x00000020, IP_ACTIVE_LOW ) | |
| 871 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 872 | PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) // as per code at 778 | |
| 873 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 874 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 875 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 876 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 877 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 878 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 879 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 880 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) | |
| 902 | 881 | |
| 903 | PORT_START("IN1") /* 16bit */ | |
| 904 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 905 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 906 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 907 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 908 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 909 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 910 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 911 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 912 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) | |
| 913 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 914 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 915 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) | |
| 916 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 917 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 918 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) | |
| 919 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 920 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 921 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) | |
| 922 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 923 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 924 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) | |
| 925 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 926 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 927 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) | |
| 928 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 929 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 930 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) | |
| 931 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 932 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 933 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) | |
| 934 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 935 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 882 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 883 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 884 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 885 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 886 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 887 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 888 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 889 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) | |
| 890 | PORT_DIPNAME( 0x01000000, 0x01000000, DEF_STR( Unknown ) ) | |
| 891 | PORT_DIPSETTING( 0x01000000, DEF_STR( Off ) ) | |
| 892 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 893 | PORT_DIPNAME( 0x02000000, 0x02000000, DEF_STR( Unknown ) ) | |
| 894 | PORT_DIPSETTING( 0x02000000, DEF_STR( Off ) ) | |
| 895 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 896 | PORT_DIPNAME( 0x04000000, 0x04000000, DEF_STR( Unknown ) ) | |
| 897 | PORT_DIPSETTING( 0x04000000, DEF_STR( Off ) ) | |
| 898 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 899 | PORT_DIPNAME( 0x08000000, 0x08000000, DEF_STR( Unknown ) ) | |
| 900 | PORT_DIPSETTING( 0x08000000, DEF_STR( Off ) ) | |
| 901 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 902 | PORT_DIPNAME( 0x10000000, 0x10000000, DEF_STR( Unknown ) ) | |
| 903 | PORT_DIPSETTING( 0x10000000, DEF_STR( Off ) ) | |
| 904 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 905 | PORT_DIPNAME( 0x20000000, 0x20000000, DEF_STR( Unknown ) ) | |
| 906 | PORT_DIPSETTING( 0x20000000, DEF_STR( Off ) ) | |
| 907 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 908 | PORT_DIPNAME( 0x40000000, 0x40000000, DEF_STR( Unknown ) ) | |
| 909 | PORT_DIPSETTING( 0x40000000, DEF_STR( Off ) ) | |
| 910 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 911 | PORT_DIPNAME( 0x80000000, 0x80000000, DEF_STR( Unknown ) ) | |
| 912 | PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) | |
| 913 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) | |
| 936 | 914 | INPUT_PORTS_END |
| 937 | 915 | |
| 938 | 916 |
| r3115 | r3116 | |
|---|---|---|
| 135 | 135 | |
| 136 | 136 | |
| 137 | 137 | static ADDRESS_MAP_START( sstrangr_io_map, ADDRESS_SPACE_IO, 8 ) |
| 138 | AM_RANGE(0x41, 0x41) AM_READ(input_port_0_r) | |
| 139 | AM_RANGE(0x42, 0x42) AM_READ(input_port_1_r) | |
| 140 | AM_RANGE(0x44, 0x44) AM_READWRITE(input_port_2_r, port_w) | |
| 138 | AM_RANGE(0x41, 0x41) AM_READ_PORT("DSW") | |
| 139 | AM_RANGE(0x42, 0x42) AM_READ_PORT("INPUTS") | |
| 140 | AM_RANGE(0x44, 0x44) AM_READ_PORT("EXT") AM_WRITE(port_w) | |
| 141 | 141 | ADDRESS_MAP_END |
| 142 | 142 | |
| 143 | 143 | |
| 144 | 144 | |
| 145 | 145 | static INPUT_PORTS_START( sstrangr ) |
| 146 | PORT_START("DSW | |
| 146 | PORT_START("DSW | |
| 147 | 147 | PORT_DIPNAME( 0x03, 0x01, "Extra Play" ) |
| 148 | 148 | PORT_DIPSETTING( 0x00, "Never" ) |
| 149 | 149 | PORT_DIPSETTING( 0x01, "3000" ) |
| r3115 | r3116 | |
| 160 | 160 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 161 | 161 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 162 | 162 | |
| 163 | PORT_START("IN | |
| 163 | PORT_START("INPUTS") | |
| 164 | 164 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 165 | 165 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 166 | 166 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| r3115 | r3116 | |
| 210 | 210 | /* color version of Space Stranger, board has Stranger 2 written on it */ |
| 211 | 211 | |
| 212 | 212 | static INPUT_PORTS_START( sstrngr2 ) |
| 213 | PORT_START("DSW | |
| 213 | PORT_START("DSW | |
| 214 | 214 | PORT_DIPNAME( 0x03, 0x01, "Extra Play" ) |
| 215 | 215 | PORT_DIPSETTING( 0x00, "Never" ) |
| 216 | 216 | PORT_DIPSETTING( 0x01, "3000" ) |
| r3115 | r3116 | |
| 229 | 229 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 230 | 230 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 231 | 231 | |
| 232 | PORT_START("IN | |
| 232 | PORT_START("INPUTS") | |
| 233 | 233 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 234 | 234 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 235 | 235 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| r3115 | r3116 | |
|---|---|---|
| 231 | 231 | VIDEO_UPDATE( asuka ); |
| 232 | 232 | VIDEO_UPDATE( bonzeadv ); |
| 233 | 233 | |
| 234 | static int adpcm_pos; | |
| 235 | static int adpcm_data; | |
| 236 | ||
| 237 | ||
| 234 | 238 | /*********************************************************** |
| 235 | 239 | INTERRUPTS |
| 236 | 240 | ***********************************************************/ |
| r3115 | r3116 | |
| 258 | 262 | |
| 259 | 263 | |
| 260 | 264 | |
| 261 | static int adpcm_pos; | |
| 262 | ||
| 263 | 265 | static void asuka_msm5205_vck(running_machine *machine, int chip) |
| 264 | 266 | { |
| 265 | static int adpcm_data = -1; | |
| 266 | ||
| 267 | 267 | if (adpcm_data != -1) |
| 268 | 268 | { |
| 269 | 269 | msm5205_data_w(0, adpcm_data & 0x0f); |
| r3115 | r3116 | |
| 304 | 304 | state_save_register_global(adpcm_pos); |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | static MACHINE_RESET( asuka ) | |
| 308 | { | |
| 309 | adpcm_pos = 0; | |
| 310 | adpcm_data = -1; | |
| 311 | } | |
| 307 | 312 | |
| 308 | 313 | |
| 309 | 314 | /*********************************************************** |
| r3115 | r3116 | |
| 803 | 808 | MDRV_PALETTE_LENGTH(4096) |
| 804 | 809 | |
| 805 | 810 | MDRV_MACHINE_START(asuka) |
| 811 | MDRV_MACHINE_RESET(asuka) | |
| 806 | 812 | |
| 807 | 813 | MDRV_VIDEO_START(asuka) |
| 808 | 814 | MDRV_VIDEO_EOF(asuka) |
| r3115 | r3116 | |
| 841 | 847 | MDRV_PALETTE_LENGTH(4096) |
| 842 | 848 | |
| 843 | 849 | MDRV_MACHINE_START(asuka) |
| 850 | MDRV_MACHINE_RESET(asuka) | |
| 844 | 851 | |
| 845 | 852 | MDRV_VIDEO_START(asuka) |
| 846 | 853 | MDRV_VIDEO_EOF(asuka) |
| r3115 | r3116 | |
| 882 | 889 | MDRV_PALETTE_LENGTH(4096) |
| 883 | 890 | |
| 884 | 891 | MDRV_MACHINE_START(asuka) |
| 892 | MDRV_MACHINE_RESET(asuka) | |
| 885 | 893 | |
| 886 | 894 | MDRV_VIDEO_START(cadash) |
| 887 | 895 | MDRV_VIDEO_EOF(asuka) |
| r3115 | r3116 | |
| 919 | 927 | MDRV_PALETTE_LENGTH(4096) /* only Mofflott uses full palette space */ |
| 920 | 928 | |
| 921 | 929 | MDRV_MACHINE_START(asuka) |
| 930 | MDRV_MACHINE_RESET(asuka) | |
| 922 | 931 | |
| 923 | 932 | MDRV_VIDEO_START(galmedes) |
| 924 | 933 | MDRV_VIDEO_EOF(asuka) |
| r3115 | r3116 | |
| 960 | 969 | MDRV_PALETTE_LENGTH(4096) /* only Mofflott uses full palette space */ |
| 961 | 970 | |
| 962 | 971 | MDRV_MACHINE_START(asuka) |
| 972 | MDRV_MACHINE_RESET(asuka) | |
| 963 | 973 | |
| 964 | 974 | MDRV_VIDEO_START(galmedes) |
| 965 | 975 | MDRV_VIDEO_EOF(asuka) |
| r3115 | r3116 | |
| 997 | 1007 | MDRV_PALETTE_LENGTH(4096) |
| 998 | 1008 | |
| 999 | 1009 | MDRV_MACHINE_START(asuka) |
| 1010 | MDRV_MACHINE_RESET(asuka) | |
| 1000 | 1011 | |
| 1001 | 1012 | MDRV_VIDEO_START(galmedes) |
| 1002 | 1013 | MDRV_VIDEO_EOF(asuka) |
| r3115 | r3116 | |
|---|---|---|
| 79 | 79 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 80 | 80 | AM_RANGE(0x0020, 0x0020) AM_READ(watchdog_reset_r) |
| 81 | 81 | AM_RANGE(0x0030, 0x0031) AM_READ(rollerg_sound_r) /* K053260 */ |
| 82 | AM_RANGE(0x0050, 0x0050) AM_READ(input_port_0_r) | |
| 83 | AM_RANGE(0x0051, 0x0051) AM_READ(input_port_1_r) | |
| 84 | AM_RANGE(0x0052, 0x0052) AM_READ(input_port_4_r) | |
| 85 | AM_RANGE(0x0053, 0x0053) AM_READ(input_port_2_r) | |
| 86 | AM_RANGE(0x0060, 0x0060) AM_READ(input_port_3_r) | |
| 82 | AM_RANGE(0x0050, 0x0050) AM_READ_PORT("P1") | |
| 83 | AM_RANGE(0x0051, 0x0051) AM_READ_PORT("P2") | |
| 84 | AM_RANGE(0x0052, 0x0052) AM_READ_PORT("DSW3") | |
| 85 | AM_RANGE(0x0053, 0x0053) AM_READ_PORT("DSW1") | |
| 86 | AM_RANGE(0x0060, 0x0060) AM_READ_PORT("DSW2") | |
| 87 | 87 | AM_RANGE(0x0061, 0x0061) AM_READ(pip_r) /* ????? */ |
| 88 | 88 | AM_RANGE(0x0300, 0x030f) AM_READ(K053244_r) |
| 89 | 89 | AM_RANGE(0x0800, 0x0fff) AM_READ(rollerg_K051316_r) |
| r3115 | r3116 | |
|---|---|---|
| 130 | 130 | AM_RANGE(0x1000, 0x13ff) AM_READ(SMH_RAM) |
| 131 | 131 | AM_RANGE(0x1800, 0x1bff) AM_READ(SMH_RAM) |
| 132 | 132 | AM_RANGE(0x2000, 0x20ff) AM_READ(SMH_RAM) |
| 133 | AM_RANGE(0x3000, 0x3000) AM_READ(input_port_0_r) | |
| 134 | AM_RANGE(0x3001, 0x3001) AM_READ(input_port_1_r) | |
| 135 | AM_RANGE(0x3002, 0x3002) AM_READ(input_port_2_r) | |
| 136 | AM_RANGE(0x3003, 0x3003) AM_READ(input_port_3_r) | |
| 133 | AM_RANGE(0x3000, 0x3000) AM_READ_PORT("P1") | |
| 134 | AM_RANGE(0x3001, 0x3001) AM_READ_PORT("P2") | |
| 135 | AM_RANGE(0x3002, 0x3002) AM_READ_PORT("DSW1") | |
| 136 | AM_RANGE(0x3003, 0x3003) AM_READ_PORT("DSW2") | |
| 137 | 137 | AM_RANGE(0x3014, 0x3014) AM_READ(sidepckt_i8751_r) |
| 138 | 138 | AM_RANGE(0x4000, 0xffff) AM_READ(SMH_ROM) |
| 139 | 139 | ADDRESS_MAP_END |
| r3115 | r3116 | |
| 178 | 178 | /******************************************************************************/ |
| 179 | 179 | |
| 180 | 180 | static INPUT_PORTS_START( sidepckt ) |
| 181 | PORT_START(" | |
| 181 | PORT_START("P1 | |
| 182 | 182 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 183 | 183 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 184 | 184 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r3115 | r3116 | |
| 188 | 188 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 189 | 189 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 190 | 190 | |
| 191 | PORT_START(" | |
| 191 | PORT_START("P2 | |
| 192 | 192 | /* I haven't found a way to make the game use the 2p controls */ |
| 193 | 193 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 194 | 194 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| r3115 | r3116 | |
| 199 | 199 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 200 | 200 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 201 | 201 | |
| 202 | PORT_START(" | |
| 202 | PORT_START("DSW1 | |
| 203 | 203 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) ) |
| 204 | 204 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_2C ) ) |
| 205 | 205 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) |
| r3115 | r3116 | |
| 223 | 223 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 224 | 224 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 225 | 225 | |
| 226 | PORT_START(" | |
| 226 | PORT_START("DSW2 | |
| 227 | 227 | PORT_DIPNAME( 0x03, 0x03, "Timer Speed" ) |
| 228 | 228 | PORT_DIPSETTING( 0x00, "Stopped (Cheat)") |
| 229 | 229 | PORT_DIPSETTING( 0x03, "Slow" ) |
| r3115 | r3116 | |
|---|---|---|
| 142 | 142 | // logerror("%06x: out_w %04x\n",activecpu_get_pc(),data); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | static | |
| 145 | static CUSTOM_I | |
| 146 | 146 | { |
| 147 | 147 | // static int prot = 0xa3; |
| 148 | 148 | int bit; |
| r3115 | r3116 | |
| 169 | 169 | #endif |
| 170 | 170 | bit = 1; |
| 171 | 171 | |
| 172 | /* bit 4 is EEPROM data, bit 7 is protection */ | |
| 173 | return input_port_read(machine, "IN1") | (eeprom_read_bit() << 4) | (bit << 7); | |
| 172 | return bit; | |
| 174 | 173 | } |
| 175 | 174 | |
| 176 | 175 | |
| r3115 | r3116 | |
| 180 | 179 | static ADDRESS_MAP_START( pirates_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 181 | 180 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 182 | 181 | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 183 | AM_RANGE(0x300000, 0x300001) AM_READ_PORT("IN0") | |
| 184 | AM_RANGE(0x400000, 0x400001) AM_READ(pirates_in1_r) | |
| 182 | AM_RANGE(0x300000, 0x300001) AM_READ_PORT("INPUTS") | |
| 183 | AM_RANGE(0x400000, 0x400001) AM_READ_PORT("SYSTEM") | |
| 185 | 184 | // AM_RANGE(0x500000, 0x5007ff) AM_READ(SMH_RAM) |
| 186 | 185 | AM_RANGE(0x800000, 0x803fff) AM_READ(SMH_RAM) |
| 187 | 186 | // AM_RANGE(0x900000, 0x903fff) AM_READ(SMH_RAM) |
| r3115 | r3116 | |
| 210 | 209 | /* Input Ports */ |
| 211 | 210 | |
| 212 | 211 | static INPUT_PORTS_START( pirates ) |
| 213 | PORT_START("IN | |
| 212 | PORT_START("INPUTS") /* | |
| 214 | 213 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 215 | 214 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 216 | 215 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 228 | 227 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 229 | 228 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 ) |
| 230 | 229 | |
| 231 | PORT_START(" | |
| 230 | PORT_START("SYSTEM") /* | |
| 232 | 231 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 233 | 232 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 234 | 233 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 235 | 234 | PORT_SERVICE_NO_TOGGLE( 0x0008, IP_ACTIVE_LOW ) |
| 236 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH,IPT_SPECIAL ) | |
| 235 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH,IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) // EEPROM data | |
| 237 | 236 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // seems checked in "test mode" |
| 238 | 237 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // seems checked in "test mode" |
| 239 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH,IPT_SPECIAL ) // protection | |
| 238 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH,IPT_SPECIAL ) PORT_CUSTOM(prot_r, NULL) // protection | |
| 240 | 239 | /* What do these bits do ? */ |
| 241 | 240 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 242 | 241 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r3115 | r3116 | |
|---|---|---|
| 80 | 80 | ADDRESS_MAP_END |
| 81 | 81 | |
| 82 | 82 | static ADDRESS_MAP_START( rotaryf_io_map, ADDRESS_SPACE_IO, 8 ) |
| 83 | // AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) | |
| 84 | AM_RANGE(0x21, 0x21) AM_READ(input_port_1_r) | |
| 85 | AM_RANGE(0x26, 0x26) AM_READ(input_port_3_r) | |
| 86 | AM_RANGE(0x29, 0x29) AM_READ(input_port_2_r) | |
| 83 | // AM_RANGE(0x00, 0x00) AM_READ_PORT("UNK") | |
| 84 | AM_RANGE(0x21, 0x21) AM_READ_PORT("COIN") | |
| 85 | AM_RANGE(0x26, 0x26) AM_READ_PORT("DSW") | |
| 86 | AM_RANGE(0x29, 0x29) AM_READ_PORT("INPUTS") | |
| 87 | 87 | ADDRESS_MAP_END |
| 88 | 88 | |
| 89 | 89 | |
| 90 | 90 | static INPUT_PORTS_START( rotaryf ) |
| 91 | PORT_START(" | |
| 91 | PORT_START("UNK") | |
| 92 | 92 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 93 | 93 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 94 | 94 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 98 | 98 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 99 | 99 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 100 | 100 | |
| 101 | PORT_START("IN | |
| 101 | PORT_START("COIN | |
| 102 | 102 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) |
| 103 | 103 | |
| 104 | PORT_START("IN | |
| 104 | PORT_START("INPUTS") | |
| 105 | 105 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 106 | 106 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 107 | 107 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| r3115 | r3116 | |
| 111 | 111 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 112 | 112 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 113 | 113 | |
| 114 | PORT_START("DSW") | |
| 114 | PORT_START("DSW") | |
| 115 | 115 | PORT_DIPNAME( 0x81, 0x00, DEF_STR( Lives ) ) |
| 116 | 116 | PORT_DIPSETTING( 0x81, "3" ) |
| 117 | 117 | PORT_DIPSETTING( 0x01, "4" ) |
| 118 | 118 | PORT_DIPSETTING( 0x80, "5" ) |
| 119 | 119 | PORT_DIPSETTING( 0x00, "6" ) |
| 120 | 120 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) |
| 121 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 122 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 121 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 122 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 123 | 123 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) |
| 124 | PORT_DIPSETTING( 0x04, "1000" ) | |
| 125 | PORT_DIPSETTING( 0x00, "1500" ) | |
| 124 | PORT_DIPSETTING( 0x04, "1000" ) | |
| 125 | PORT_DIPSETTING( 0x00, "1500" ) | |
| 126 | 126 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Coinage ) ) |
| 127 | 127 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) |
| 128 | 128 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 129 | 129 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) |
| 130 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 131 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 130 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 131 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 132 | 132 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) |
| 133 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 134 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 133 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 134 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 135 | 135 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) |
| 136 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 137 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 136 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 137 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 138 | 138 | // PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 139 | 139 | // PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 140 | 140 | // PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| r3115 | r3116 | |
|---|---|---|
| 469 | 469 | static ADDRESS_MAP_START( tharrier_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 470 | 470 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 471 | 471 | AM_RANGE(0x080000, 0x080001) AM_READ_PORT("IN0") |
| 472 | AM_RANGE(0x080002, 0x080003) AM_READ(tharrier_mcu_r) // | |
| 472 | AM_RANGE(0x080002, 0x080003) AM_READ(tharrier_mcu_r) // AM | |
| 473 | 473 | AM_RANGE(0x080004, 0x080005) AM_READ_PORT("DSW1") |
| 474 | 474 | AM_RANGE(0x08000e, 0x08000f) AM_READ(soundlatch2_word_r) /* from Z80 */ |
| 475 | 475 | AM_RANGE(0x080202, 0x080203) AM_READ_PORT("IN2") |
| r3115 | r3116 | |
| 765 | 765 | static ADDRESS_MAP_START( hachamf_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 766 | 766 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 767 | 767 | /* I/O Region */ |
| 768 | AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r) | |
| 769 | AM_RANGE(0x080002, 0x080003) AM_READ(input_port_1_word_r) | |
| 770 | AM_RANGE(0x080008, 0x080009) AM_READ(input_port_2_word_r) | |
| 771 | AM_RANGE(0x08000a, 0x08000b) AM_READ(input_port_3_word_r) | |
| 768 | AM_RANGE(0x080000, 0x080001) AM_READ_PORT("IN0") | |
| 769 | AM_RANGE(0x080002, 0x080003) AM_READ_PORT("IN1") | |
| 770 | AM_RANGE(0x080008, 0x080009) AM_READ_PORT("DSW1") | |
| 771 | AM_RANGE(0x08000a, 0x08000b) AM_READ_PORT("UNK") | |
| 772 | 772 | AM_RANGE(0x08000e, 0x08000f) AM_READ(NMK004_r) |
| 773 | 773 | AM_RANGE(0x080014, 0x080015) AM_WRITE(nmk_flipscreen_w) |
| 774 | 774 | AM_RANGE(0x080018, 0x080019) AM_WRITE(nmk_tilebank_w) |
| r3115 | r3116 | |
| 1141 | 1141 | |
| 1142 | 1142 | |
| 1143 | 1143 | static INPUT_PORTS_START( vandyke ) |
| 1144 | PORT_START("IN0") | |
| 1144 | PORT_START("IN0") | |
| 1145 | 1145 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1146 | 1146 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1147 | 1147 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1151 | 1151 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 1152 | 1152 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 1153 | 1153 | |
| 1154 | PORT_START("IN1") | |
| 1154 | PORT_START("IN1") | |
| 1155 | 1155 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1156 | 1156 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1157 | 1157 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1169 | 1169 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1170 | 1170 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1171 | 1171 | |
| 1172 | PORT_START("DSW1") | |
| 1172 | PORT_START("DSW1") | |
| 1173 | 1173 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) /* The manual states this dip is "Unused" */ |
| 1174 | 1174 | PORT_DIPSETTING( 0x00, "2" ) |
| 1175 | 1175 | PORT_DIPSETTING( 0x01, "3" ) |
| r3115 | r3116 | |
| 1192 | 1192 | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| 1193 | 1193 | PORT_DIPSETTING( 0x80, DEF_STR( Hardest ) ) |
| 1194 | 1194 | |
| 1195 | PORT_START("DSW2") | |
| 1195 | PORT_START("DSW2") | |
| 1196 | 1196 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1197 | 1197 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1198 | 1198 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1220 | 1220 | INPUT_PORTS_END |
| 1221 | 1221 | |
| 1222 | 1222 | static INPUT_PORTS_START( blkheart ) |
| 1223 | PORT_START("IN0") | |
| 1223 | PORT_START("IN0") | |
| 1224 | 1224 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1225 | 1225 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1226 | 1226 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1230 | 1230 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 1231 | 1231 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 1232 | 1232 | |
| 1233 | PORT_START("IN1") | |
| 1233 | PORT_START("IN1") | |
| 1234 | 1234 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1235 | 1235 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1236 | 1236 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1248 | 1248 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1249 | 1249 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1250 | 1250 | |
| 1251 | PORT_START("DSW1") | |
| 1251 | PORT_START("DSW1") | |
| 1252 | 1252 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 1253 | 1253 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1254 | 1254 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1270 | 1270 | PORT_DIPSETTING( 0x80, "4" ) |
| 1271 | 1271 | PORT_DIPSETTING( 0x00, "5" ) |
| 1272 | 1272 | |
| 1273 | PORT_START("DSW2") | |
| 1273 | PORT_START("DSW2") | |
| 1274 | 1274 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1275 | 1275 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1276 | 1276 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1298 | 1298 | INPUT_PORTS_END |
| 1299 | 1299 | |
| 1300 | 1300 | static INPUT_PORTS_START( manybloc ) |
| 1301 | PORT_START("IN0") /* | |
| 1301 | PORT_START("IN0") /* | |
| 1302 | 1302 | PORT_BIT( 0x7fff, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1303 | 1303 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // VBLANK ? Check code at 0x005640 |
| 1304 | 1304 | |
| 1305 | PORT_START("IN1") /* | |
| 1305 | PORT_START("IN1") /* | |
| 1306 | 1306 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1307 | 1307 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) // select fruits |
| 1308 | 1308 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) // help |
| r3115 | r3116 | |
| 1320 | 1320 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 1321 | 1321 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 1322 | 1322 | |
| 1323 | PORT_START("DSW1") /* | |
| 1323 | PORT_START("DSW1") /* | |
| 1324 | 1324 | PORT_DIPNAME( 0x0001, 0x0000, "Slot System" ) |
| 1325 | 1325 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1326 | 1326 | PORT_DIPSETTING( 0x0001, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1377 | 1377 | |
| 1378 | 1378 | |
| 1379 | 1379 | static INPUT_PORTS_START( tharrier ) |
| 1380 | PORT_START("IN0") | |
| 1380 | PORT_START("IN0") | |
| 1381 | 1381 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1382 | 1382 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 1383 | 1383 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1386 | 1386 | PORT_BIT( 0x7fe0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1387 | 1387 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SPECIAL ) /* Mcu status? */ |
| 1388 | 1388 | |
| 1389 | PORT_START("IN1") | |
| 1389 | PORT_START("IN1") | |
| 1390 | 1390 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1) |
| 1391 | 1391 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2) //title |
| 1392 | 1392 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r3115 | r3116 | |
| 1404 | 1404 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1405 | 1405 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1406 | 1406 | |
| 1407 | PORT_START("DSW1") | |
| 1407 | PORT_START("DSW1") | |
| 1408 | 1408 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 1409 | 1409 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1410 | 1410 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1451 | 1451 | PORT_DIPSETTING( 0x8000, "4" ) |
| 1452 | 1452 | PORT_DIPSETTING( 0x0000, "5" ) |
| 1453 | 1453 | |
| 1454 | PORT_START("IN2") | |
| 1454 | PORT_START("IN2") | |
| 1455 | 1455 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1456 | 1456 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_PLAYER(1) |
| 1457 | 1457 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1473 | 1473 | |
| 1474 | 1474 | |
| 1475 | 1475 | static INPUT_PORTS_START( mustang ) |
| 1476 | PORT_START("IN0") | |
| 1476 | PORT_START("IN0") | |
| 1477 | 1477 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1478 | 1478 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1479 | 1479 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1483 | 1483 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1484 | 1484 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1485 | 1485 | |
| 1486 | PORT_START("IN1") | |
| 1486 | PORT_START("IN1") | |
| 1487 | 1487 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1488 | 1488 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1489 | 1489 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1501 | 1501 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1502 | 1502 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1503 | 1503 | |
| 1504 | PORT_START("DSW1") | |
| 1504 | PORT_START("DSW1") | |
| 1505 | 1505 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 1506 | 1506 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1507 | 1507 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1554 | 1554 | INPUT_PORTS_END |
| 1555 | 1555 | |
| 1556 | 1556 | static INPUT_PORTS_START( hachamf ) |
| 1557 | PORT_START("IN0") | |
| 1557 | PORT_START("IN0") | |
| 1558 | 1558 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1559 | 1559 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1560 | 1560 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1564 | 1564 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1565 | 1565 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) //bryan: test mode in some games? |
| 1566 | 1566 | |
| 1567 | PORT_START("IN1") | |
| 1567 | PORT_START("IN1") | |
| 1568 | 1568 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1569 | 1569 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1570 | 1570 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1582 | 1582 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1583 | 1583 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1584 | 1584 | |
| 1585 | PORT_START("DSW1") | |
| 1585 | PORT_START("DSW1") | |
| 1586 | 1586 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) |
| 1587 | 1587 | PORT_DIPSETTING( 0x0100, DEF_STR( 4C_1C ) ) |
| 1588 | 1588 | PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1607 | 1607 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) |
| 1608 | 1608 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1609 | 1609 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1610 | ||
| 1610 | ||
| 1611 | 1611 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 1612 | 1612 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 1613 | 1613 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1630 | 1630 | PORT_DIPSETTING( 0x40, "2" ) |
| 1631 | 1631 | PORT_DIPSETTING( 0xc0, "3" ) |
| 1632 | 1632 | PORT_DIPSETTING( 0x80, "4" ) |
| 1633 | ||
| 1634 | PORT_START("UNK") | |
| 1633 | 1635 | INPUT_PORTS_END |
| 1634 | 1636 | |
| 1635 | 1637 | static INPUT_PORTS_START( strahl ) |
| 1636 | PORT_START("IN0") | |
| 1638 | PORT_START("IN0") | |
| 1637 | 1639 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1638 | 1640 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1639 | 1641 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1643 | 1645 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1644 | 1646 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) //bryan: test mode in some games? |
| 1645 | 1647 | |
| 1646 | PORT_START("IN1") | |
| 1648 | PORT_START("IN1") | |
| 1647 | 1649 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1648 | 1650 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1649 | 1651 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1661 | 1663 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1662 | 1664 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1663 | 1665 | |
| 1664 | PORT_START("DSW1") | |
| 1666 | PORT_START("DSW1") | |
| 1665 | 1667 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 1666 | 1668 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 1667 | 1669 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) |
| r3115 | r3116 | |
| 1687 | 1689 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1688 | 1690 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1689 | 1691 | |
| 1690 | PORT_START("DSW2") | |
| 1692 | PORT_START("DSW2") | |
| 1691 | 1693 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 1692 | 1694 | PORT_DIPSETTING( 0x02, "2" ) |
| 1693 | 1695 | PORT_DIPSETTING( 0x03, "3" ) |
| r3115 | r3116 | |
| 1710 | 1712 | INPUT_PORTS_END |
| 1711 | 1713 | |
| 1712 | 1714 | static INPUT_PORTS_START( acrobatm ) |
| 1713 | PORT_START("IN0") | |
| 1715 | PORT_START("IN0") | |
| 1714 | 1716 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1715 | 1717 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1716 | 1718 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1720 | 1722 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1721 | 1723 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1722 | 1724 | |
| 1723 | PORT_START("IN1") | |
| 1725 | PORT_START("IN1") | |
| 1724 | 1726 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1725 | 1727 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1726 | 1728 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1738 | 1740 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1739 | 1741 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1740 | 1742 | |
| 1741 | PORT_START("DSW1") | |
| 1743 | PORT_START("DSW1") | |
| 1742 | 1744 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 1743 | 1745 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1744 | 1746 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1764 | 1766 | PORT_DIPSETTING( 0x00A0, DEF_STR( 1C_3C ) ) |
| 1765 | 1767 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) |
| 1766 | 1768 | |
| 1767 | PORT_START("DSW2") | |
| 1769 | PORT_START("DSW2") | |
| 1768 | 1770 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 1769 | 1771 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) ) |
| 1770 | 1772 | PORT_DIPSETTING( 0x02, "50k and 100k" ) |
| r3115 | r3116 | |
| 1787 | 1789 | INPUT_PORTS_END |
| 1788 | 1790 | |
| 1789 | 1791 | static INPUT_PORTS_START( bioship ) |
| 1790 | PORT_START("IN0") | |
| 1792 | PORT_START("IN0") | |
| 1791 | 1793 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1792 | 1794 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1793 | 1795 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1797 | 1799 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1798 | 1800 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) //bryan: test mode in some games? |
| 1799 | 1801 | |
| 1800 | PORT_START("IN1") | |
| 1802 | PORT_START("IN1") | |
| 1801 | 1803 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1802 | 1804 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1803 | 1805 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1815 | 1817 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1816 | 1818 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1817 | 1819 | |
| 1818 | PORT_START("DSW1") | |
| 1820 | PORT_START("DSW1") | |
| 1819 | 1821 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) |
| 1820 | 1822 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1821 | 1823 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1837 | 1839 | PORT_DIPSETTING( 0x0080, "4" ) |
| 1838 | 1840 | PORT_DIPSETTING( 0x0040, "5" ) |
| 1839 | 1841 | |
| 1840 | PORT_START("DSW2") | |
| 1842 | PORT_START("DSW2") | |
| 1841 | 1843 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 1842 | 1844 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1843 | 1845 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1865 | 1867 | INPUT_PORTS_END |
| 1866 | 1868 | |
| 1867 | 1869 | static INPUT_PORTS_START( tdragon ) |
| 1868 | PORT_START("IN0") | |
| 1870 | PORT_START("IN0") | |
| 1869 | 1871 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1870 | 1872 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1871 | 1873 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1875 | 1877 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1876 | 1878 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1877 | 1879 | |
| 1878 | PORT_START("IN1") | |
| 1880 | PORT_START("IN1") | |
| 1879 | 1881 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1880 | 1882 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1881 | 1883 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1893 | 1895 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1894 | 1896 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1895 | 1897 | |
| 1896 | PORT_START("DSW1") | |
| 1898 | PORT_START("DSW1") | |
| 1897 | 1899 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) |
| 1898 | 1900 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1899 | 1901 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 1917 | 1919 | PORT_DIPSETTING( 0x00c0, "3" ) |
| 1918 | 1920 | PORT_DIPSETTING( 0x0080, "4" ) |
| 1919 | 1921 | |
| 1920 | PORT_START("DSW2") | |
| 1922 | PORT_START("DSW2") | |
| 1921 | 1923 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 1922 | 1924 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_1C ) ) |
| 1923 | 1925 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 1945 | 1947 | INPUT_PORTS_END |
| 1946 | 1948 | |
| 1947 | 1949 | static INPUT_PORTS_START( tdragonb ) |
| 1948 | PORT_START("IN0") | |
| 1950 | PORT_START("IN0") | |
| 1949 | 1951 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1950 | 1952 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1951 | 1953 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 1955 | 1957 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1956 | 1958 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1957 | 1959 | |
| 1958 | PORT_START("IN1") | |
| 1960 | PORT_START("IN1") | |
| 1959 | 1961 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1960 | 1962 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1961 | 1963 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 1973 | 1975 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1974 | 1976 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1975 | 1977 | |
| 1976 | PORT_START("DSW1") | |
| 1978 | PORT_START("DSW1") | |
| 1977 | 1979 | PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Lives ) ) |
| 1978 | 1980 | PORT_DIPSETTING( 0x0000, "1" ) |
| 1979 | 1981 | PORT_DIPSETTING( 0x0002, "2" ) |
| r3115 | r3116 | |
| 1997 | 1999 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1998 | 2000 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1999 | 2001 | |
| 2000 | PORT_START("DSW2") | |
| 2002 | PORT_START("DSW2") | |
| 2001 | 2003 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| 2002 | 2004 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_1C ) ) |
| 2003 | 2005 | PORT_DIPSETTING( 0x0005, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 2028 | 2030 | INPUT_PORTS_END |
| 2029 | 2031 | |
| 2030 | 2032 | static INPUT_PORTS_START( ssmissin ) |
| 2031 | PORT_START("IN0") | |
| 2033 | PORT_START("IN0") | |
| 2032 | 2034 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2033 | 2035 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2034 | 2036 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) // "Servise" in "test mode" |
| r3115 | r3116 | |
| 2038 | 2040 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2039 | 2041 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2040 | 2042 | |
| 2041 | PORT_START("IN1") | |
| 2043 | PORT_START("IN1") | |
| 2042 | 2044 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2043 | 2045 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2044 | 2046 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2056 | 2058 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2057 | 2059 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2058 | 2060 | |
| 2059 | PORT_START("DSW1") | |
| 2061 | PORT_START("DSW1") | |
| 2060 | 2062 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) |
| 2061 | 2063 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 2062 | 2064 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2118 | 2120 | INPUT_PORTS_END |
| 2119 | 2121 | |
| 2120 | 2122 | static INPUT_PORTS_START( airattck ) |
| 2121 | PORT_START("IN0") | |
| 2123 | PORT_START("IN0") | |
| 2122 | 2124 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2123 | 2125 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2124 | 2126 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) // "Servise" in "test mode" |
| r3115 | r3116 | |
| 2128 | 2130 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2129 | 2131 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2130 | 2132 | |
| 2131 | PORT_START("IN1") | |
| 2133 | PORT_START("IN1") | |
| 2132 | 2134 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2133 | 2135 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2134 | 2136 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2146 | 2148 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2147 | 2149 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2148 | 2150 | |
| 2149 | PORT_START("DSW1") | |
| 2151 | PORT_START("DSW1") | |
| 2150 | 2152 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) |
| 2151 | 2153 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 2152 | 2154 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2196 | 2198 | INPUT_PORTS_END |
| 2197 | 2199 | |
| 2198 | 2200 | static INPUT_PORTS_START( macross ) |
| 2199 | PORT_START("IN0") | |
| 2201 | PORT_START("IN0") | |
| 2200 | 2202 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2201 | 2203 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2202 | 2204 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 2206 | 2208 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2207 | 2209 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2208 | 2210 | |
| 2209 | PORT_START("IN1") | |
| 2211 | PORT_START("IN1") | |
| 2210 | 2212 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2211 | 2213 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2212 | 2214 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2224 | 2226 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2225 | 2227 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2226 | 2228 | |
| 2227 | PORT_START("DSW1") | |
| 2229 | PORT_START("DSW1") | |
| 2228 | 2230 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 2229 | 2231 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Demo_Sounds ) ) |
| 2230 | 2232 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 2246 | 2248 | PORT_DIPSETTING( 0xc0, "3" ) |
| 2247 | 2249 | PORT_DIPSETTING( 0x80, "4" ) |
| 2248 | 2250 | |
| 2249 | PORT_START("DSW2") | |
| 2251 | PORT_START("DSW2") | |
| 2250 | 2252 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_B ) ) |
| 2251 | 2253 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 2252 | 2254 | PORT_DIPSETTING( 0x0a, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 2284 | 2286 | INPUT_PORTS_END |
| 2285 | 2287 | |
| 2286 | 2288 | static INPUT_PORTS_START( macross2 ) |
| 2287 | PORT_START("IN0") | |
| 2289 | PORT_START("IN0") | |
| 2288 | 2290 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2289 | 2291 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2290 | 2292 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 2294 | 2296 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2295 | 2297 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2296 | 2298 | |
| 2297 | PORT_START("IN1") | |
| 2299 | PORT_START("IN1") | |
| 2298 | 2300 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2299 | 2301 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2300 | 2302 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2312 | 2314 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2313 | 2315 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2314 | 2316 | |
| 2315 | PORT_START("DSW1") | |
| 2317 | PORT_START("DSW1") | |
| 2316 | 2318 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 2317 | 2319 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Demo_Sounds ) ) |
| 2318 | 2320 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 2335 | 2337 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2336 | 2338 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2337 | 2339 | |
| 2338 | PORT_START("DSW2") | |
| 2340 | PORT_START("DSW2") | |
| 2339 | 2341 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_B ) ) |
| 2340 | 2342 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 2341 | 2343 | PORT_DIPSETTING( 0x0a, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 2373 | 2375 | INPUT_PORTS_END |
| 2374 | 2376 | |
| 2375 | 2377 | static INPUT_PORTS_START( tdragon2 ) |
| 2376 | PORT_START("IN0") | |
| 2378 | PORT_START("IN0") | |
| 2377 | 2379 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2378 | 2380 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2379 | 2381 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 2383 | 2385 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2384 | 2386 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2385 | 2387 | |
| 2386 | PORT_START("IN1") | |
| 2388 | PORT_START("IN1") | |
| 2387 | 2389 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2388 | 2390 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2389 | 2391 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2401 | 2403 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 2402 | 2404 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2403 | 2405 | |
| 2404 | PORT_START("DSW1") | |
| 2406 | PORT_START("DSW1") | |
| 2405 | 2407 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 2406 | 2408 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Demo_Sounds ) ) |
| 2407 | 2409 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| r3115 | r3116 | |
| 2423 | 2425 | PORT_DIPSETTING( 0xc0, "3" ) |
| 2424 | 2426 | PORT_DIPSETTING( 0x80, "4" ) |
| 2425 | 2427 | |
| 2426 | PORT_START("DSW2") | |
| 2428 | PORT_START("DSW2") | |
| 2427 | 2429 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_B ) ) |
| 2428 | 2430 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) |
| 2429 | 2431 | PORT_DIPSETTING( 0x0a, DEF_STR( 3C_1C ) ) |
| r3115 | r3116 | |
| 2461 | 2463 | INPUT_PORTS_END |
| 2462 | 2464 | |
| 2463 | 2465 | static INPUT_PORTS_START( gunnail ) |
| 2464 | PORT_START("IN0") | |
| 2466 | PORT_START("IN0") | |
| 2465 | 2467 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2466 | 2468 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2467 | 2469 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 2471 | 2473 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2472 | 2474 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2473 | 2475 | |
| 2474 | PORT_START("IN1") | |
| 2476 | PORT_START("IN1") | |
| 2475 | 2477 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2476 | 2478 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2477 | 2479 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2489 | 2491 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2490 | 2492 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2491 | 2493 | |
| 2492 | PORT_START("DSW1") | |
| 2494 | PORT_START("DSW1") | |
| 2493 | 2495 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 2494 | 2496 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2495 | 2497 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2514 | 2516 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2515 | 2517 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2516 | 2518 | |
| 2517 | PORT_START("DSW2") | |
| 2519 | PORT_START("DSW2") | |
| 2518 | 2520 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* The manual states this dip is "Unused" */ |
| 2519 | 2521 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2520 | 2522 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2542 | 2544 | INPUT_PORTS_END |
| 2543 | 2545 | |
| 2544 | 2546 | static INPUT_PORTS_START( raphero ) |
| 2545 | PORT_START("IN0") | |
| 2547 | PORT_START("IN0") | |
| 2546 | 2548 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2547 | 2549 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2548 | 2550 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 2552 | 2554 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2553 | 2555 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2554 | 2556 | |
| 2555 | PORT_START("IN1") | |
| 2557 | PORT_START("IN1") | |
| 2556 | 2558 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2557 | 2559 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2558 | 2560 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2570 | 2572 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 2571 | 2573 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2572 | 2574 | |
| 2573 | PORT_START("DSW1") | |
| 2575 | PORT_START("DSW1") | |
| 2574 | 2576 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 2575 | 2577 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Language ) ) /* Doesn't seem to have any effect */ |
| 2576 | 2578 | PORT_DIPSETTING( 0x02, DEF_STR( Japanese ) ) |
| r3115 | r3116 | |
| 2592 | 2594 | PORT_DIPSETTING( 0xc0, "3" ) |
| 2593 | 2595 | PORT_DIPSETTING( 0x80, "4" ) |
| 2594 | 2596 | |
| 2595 | PORT_START("DSW2") | |
| 2597 | PORT_START("DSW2") | |
| 2596 | 2598 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 2597 | 2599 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2598 | 2600 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2620 | 2622 | INPUT_PORTS_END |
| 2621 | 2623 | |
| 2622 | 2624 | static INPUT_PORTS_START( sabotenb ) |
| 2623 | PORT_START("IN0") | |
| 2625 | PORT_START("IN0") | |
| 2624 | 2626 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2625 | 2627 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2626 | 2628 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 2630 | 2632 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2631 | 2633 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2632 | 2634 | |
| 2633 | PORT_START("IN1") | |
| 2635 | PORT_START("IN1") | |
| 2634 | 2636 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2635 | 2637 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2636 | 2638 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2648 | 2650 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2649 | 2651 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2650 | 2652 | |
| 2651 | PORT_START("DSW1") | |
| 2653 | PORT_START("DSW1") | |
| 2652 | 2654 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 2653 | 2655 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2654 | 2656 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2666 | 2668 | PORT_DIPSETTING( 0xc0, "3" ) |
| 2667 | 2669 | PORT_DIPSETTING( 0x80, "4" ) |
| 2668 | 2670 | |
| 2669 | PORT_START("DSW2") | |
| 2671 | PORT_START("DSW2") | |
| 2670 | 2672 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* The manual states this dip is "Unused" */ |
| 2671 | 2673 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2672 | 2674 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2694 | 2696 | INPUT_PORTS_END |
| 2695 | 2697 | |
| 2696 | 2698 | static INPUT_PORTS_START( bjtwin ) |
| 2697 | PORT_START("IN0") | |
| 2699 | PORT_START("IN0") | |
| 2698 | 2700 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2699 | 2701 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2700 | 2702 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 2704 | 2706 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2705 | 2707 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ |
| 2706 | 2708 | |
| 2707 | PORT_START("IN1") | |
| 2709 | PORT_START("IN1") | |
| 2708 | 2710 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2709 | 2711 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2710 | 2712 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2722 | 2724 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2723 | 2725 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2724 | 2726 | |
| 2725 | PORT_START("DSW1") | |
| 2727 | PORT_START("DSW1") | |
| 2726 | 2728 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) |
| 2727 | 2729 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2728 | 2730 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2746 | 2748 | PORT_DIPSETTING( 0xc0, "3" ) |
| 2747 | 2749 | PORT_DIPSETTING( 0x80, "4" ) |
| 2748 | 2750 | |
| 2749 | PORT_START("DSW2") | |
| 2751 | PORT_START("DSW2") | |
| 2750 | 2752 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 2751 | 2753 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2752 | 2754 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 2774 | 2776 | INPUT_PORTS_END |
| 2775 | 2777 | |
| 2776 | 2778 | static INPUT_PORTS_START( nouryoku ) |
| 2777 | PORT_START("IN0") | |
| 2779 | PORT_START("IN0") | |
| 2778 | 2780 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2779 | 2781 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2780 | 2782 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| r3115 | r3116 | |
| 2784 | 2786 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2785 | 2787 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2786 | 2788 | |
| 2787 | PORT_START("IN1") | |
| 2789 | PORT_START("IN1") | |
| 2788 | 2790 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 2789 | 2791 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 2790 | 2792 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r3115 | r3116 | |
| 2802 | 2804 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2803 | 2805 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2804 | 2806 | |
| 2805 | PORT_START("DSW1") | |
| 2807 | PORT_START("DSW1") | |
| 2806 | 2808 | PORT_DIPNAME( 0x03, 0x03, "Life Decrease Speed" ) |
| 2807 | 2809 | PORT_DIPSETTING( 0x02, "Slow" ) |
| 2808 | 2810 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| r3115 | r3116 | |
| 2826 | 2828 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) |
| 2827 | 2829 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) |
| 2828 | 2830 | |
| 2829 | PORT_START("DSW2") | |
| 2831 | PORT_START("DSW2") | |
| 2830 | 2832 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* The manual states this dip is "Unused" */ |
| 2831 | 2833 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 2832 | 2834 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r3115 | r3116 | |
| 6986 | 6988 | |
| 6987 | 6989 | // bee-oh board - different display / interrupt timing to others? |
| 6988 | 6990 | GAME( 1991, manybloc, 0, manybloc, manybloc, 0, ROT270, "Bee-Oh", "Many Block", GAME_NO_COCKTAIL | GAME_IMPERFECT_SOUND ) |
| 6989 |
| r3115 | r3116 | |
|---|---|---|
| 131 | 131 | |
| 132 | 132 | /* Machine Initialization */ |
| 133 | 133 | |
| 134 | static TIMER_CALLBACK( nitedrvr_crash_toggle_callback ) | |
| 135 | { | |
| 136 | nitedrvr_crash_toggle(machine); | |
| 137 | } | |
| 138 | ||
| 139 | static MACHINE_RESET( nitedrvr ) | |
| 140 | { | |
| 141 | timer_pulse(PERIOD_OF_555_ASTABLE(RES_K(180), 330, CAP_U(1)), NULL, 0, nitedrvr_crash_toggle_callback); | |
| 142 | nitedrvr_register_machine_vars(); | |
| 143 | } | |
| 144 | ||
| 145 | 134 | /* Machine Driver */ |
| 146 | 135 | |
| 147 | 136 | static MACHINE_DRIVER_START( nitedrvr ) |
| r3115 | r3116 | |
| 151 | 140 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 152 | 141 | MDRV_WATCHDOG_VBLANK_INIT(3) |
| 153 | 142 | |
| 143 | MDRV_MACHINE_START(nitedrvr) | |
| 154 | 144 | MDRV_MACHINE_RESET(nitedrvr) |
| 155 | 145 | |
| 156 | 146 | // video hardware |
| r3115 | r3116 | |
|---|---|---|
| 1553 | 1553 | { |
| 1554 | 1554 | avierr = avi_append_sound_samples(avi, chnum, avconfig.audio[chnum], numsamples, 0); |
| 1555 | 1555 | if (avierr != AVIERR_NONE) |
| 1556 | { | |
| 1557 | fprintf(stderr, "Error writing samples for hunk %d to AVI file: %s\n", firstframe + framenum, avi_error_string(avierr)); | |
| 1556 | 1558 | goto cleanup; |
| 1559 | } | |
| 1557 | 1560 | } |
| 1558 | 1561 | |
| 1559 | 1562 | /* write video */ |
| r3115 | r3116 | |
| 1561 | 1564 | { |
| 1562 | 1565 | avierr = avi_append_video_frame_yuy16(avi, fullbitmap); |
| 1563 | 1566 | if (avierr != AVIERR_NONE) |
| 1567 | { | |
| 1568 | fprintf(stderr, "Error writing video for hunk %d to AVI file: %s\n", firstframe + framenum, avi_error_string(avierr)); | |
| 1564 | 1569 | goto cleanup; |
| 1570 | } | |
| 1565 | 1571 | } |
| 1566 | 1572 | } |
| 1567 | 1573 | progress(TRUE, "Extraction complete! \n"); |
| r3115 | r3116 | |
|---|---|---|
| 35 | 35 | # UNICODE = 1 |
| 36 | 36 | |
| 37 | 37 | # set this to the minimum Direct3D version to support (8 or 9) |
| 38 | DIRECT3D = | |
| 38 | # DIRECT3D = 9 | |
| 39 | 39 | |
| 40 | 40 | # set this to the minimum DirectInput version to support (7 or 8) |
| 41 | DIRECTINPUT = | |
| 41 | # DIRECTINPUT = 8 | |
| 42 | 42 | |
| 43 | 43 | |
| 44 | 44 | |
| r3115 | r3116 | |
| 203 | 203 | # add the windows libraries |
| 204 | 204 | LIBS += -luser32 -lgdi32 -lddraw -ldsound -ldxguid -lwinmm -ladvapi32 -lcomctl32 -lshlwapi |
| 205 | 205 | |
| 206 | ifeq ($(DIRECTINPUT),7) | |
| 206 | ifeq ($(DIRECTINPUT),8) | |
| 207 | LIBS += -ldinput8 | |
| 208 | CFLAGS += -DDIRECTINPUT_VERSION=0x0800 | |
| 209 | else | |
| 207 | 210 | LIBS += -ldinput |
| 208 | 211 | CFLAGS += -DDIRECTINPUT_VERSION=0x0700 |
| 209 | else | |
| 210 | LIBS += -ldinput8 | |
| 211 | CFLAGS += -DDIRECTINPUT_VERSION=0x0800 | |
| 212 | 212 | endif |
| 213 | 213 | |
| 214 | 214 | ifdef PTR64 |
| r3115 | r3116 | |
| 262 | 262 | $(WINOBJ)/window.o \ |
| 263 | 263 | $(WINOBJ)/winmain.o |
| 264 | 264 | |
| 265 | ifeq ($(DIRECT3D),8) | |
| 265 | ifeq ($(DIRECT3D),9) | |
| 266 | CFLAGS += -DDIRECT3D_VERSION=0x0900 | |
| 267 | else | |
| 266 | 268 | OSDOBJS += $(WINOBJ)/d3d8intf.o |
| 267 | else | |
| 268 | CFLAGS += -DDIRECT3D_VERSION=0x0900 | |
| 269 | 269 | endif |
| 270 | 270 | |
| 271 | 271 | # extra dependencies |
| r3115 | r3116 | |
|---|---|---|
| 1689 | 1689 | DWORD usage = d3d->dynamic_supported ? D3DUSAGE_DYNAMIC : 0; |
| 1690 | 1690 | DWORD pool = d3d->dynamic_supported ? D3DPOOL_DEFAULT : D3DPOOL_MANAGED; |
| 1691 | 1691 | int maxdim = MAX(d3d->presentation.BackBufferWidth, d3d->presentation.BackBufferHeight); |
| 1692 | int attempt; | |
| 1692 | 1693 | |
| 1693 | 1694 | // pick the format |
| 1694 | 1695 | if (PRIMFLAG_GET_TEXFORMAT(flags) == TEXFORMAT_YUY16) |
| r3115 | r3116 | |
| 1710 | 1711 | if (texture->xprescale != video_config.prescale || texture->yprescale != video_config.prescale) |
| 1711 | 1712 | mame_printf_verbose("Direct3D: adjusting prescale from %dx%d to %dx%d\n", video_config.prescale, video_config.prescale, texture->xprescale, texture->yprescale); |
| 1712 | 1713 | |
| 1713 | // screen textures with no prescaling are pretty easy | |
| 1714 | if (texture->xprescale == 1 && texture->yprescale == 1) | |
| 1714 | // loop until we allocate something or error | |
| 1715 | for (attempt = 0; attempt < 2; attempt++) | |
| 1715 | 1716 | { |
| 1716 | result = (*d3dintf->device.create_texture)(d3d->device, texture->rawwidth, texture->rawheight, 1, usage, format, pool, &texture->d3dtex); | |
| 1717 | if (result != D3D_OK) | |
| 1718 | goto error; | |
| 1719 | texture->d3dfinaltex = texture->d3dtex; | |
| 1720 | texture->type = d3d->dynamic_supported ? TEXTURE_TYPE_DYNAMIC : TEXTURE_TYPE_PLAIN; | |
| 1721 | } | |
| 1717 | // second attempt is always 1:1 | |
| 1718 | if (attempt == 1) | |
| 1719 | texture->xprescale = texture->yprescale = 1; | |
| 1722 | 1720 | |
| 1723 | // screen textures with prescaling require two allocations | |
| 1724 | else | |
| 1725 | { | |
| 1726 | int scwidth, scheight; | |
| 1727 | ||
| 1728 | // use an offscreen plain surface for stretching if supported | |
| 1729 | if (d3d->stretch_supported) | |
| 1721 | // screen textures with no prescaling are pretty easy | |
| 1722 | if (texture->xprescale == 1 && texture->yprescale == 1) | |
| 1730 | 1723 | { |
| 1731 | result = (*d3dintf->device.create_offscreen_plain_surface)(d3d->device, texture->rawwidth, texture->rawheight, format, D3DPOOL_DEFAULT, &texture->d3dsurface); | |
| 1732 | if (result != D3D_OK) | |
| 1733 | goto error; | |
| 1734 | texture->type = TEXTURE_TYPE_SURFACE; | |
| 1724 | result = (*d3dintf->device.create_texture)(d3d->device, texture->rawwidth, texture->rawheight, 1, usage, format, pool, &texture->d3dtex); | |
| 1725 | if (result == D3D_OK) | |
| 1726 | { | |
| 1727 | texture->d3dfinaltex = texture->d3dtex; | |
| 1728 | texture->type = d3d->dynamic_supported ? TEXTURE_TYPE_DYNAMIC : TEXTURE_TYPE_PLAIN; | |
| 1729 | break; | |
| 1730 | } | |
| 1735 | 1731 | } |
| 1736 | 1732 | |
| 1737 | // | |
| 1733 | // | |
| 1738 | 1734 | else |
| 1739 | 1735 | { |
| 1740 | result = (*d3dintf->device.create_texture)(d3d->device, texture->rawwidth, texture->rawheight, 1, usage, format, pool, &texture->d3dtex); | |
| 1741 | if (result != D3D_OK) | |
| 1742 | goto error; | |
| 1743 | texture->type = d3d->dynamic_supported ? TEXTURE_TYPE_DYNAMIC : TEXTURE_TYPE_PLAIN; | |
| 1736 | int scwidth, scheight; | |
| 1737 | int finalfmt; | |
| 1738 | ||
| 1739 | // use an offscreen plain surface for stretching if supported | |
| 1740 | // (won't work for YUY textures) | |
| 1741 | if (d3d->stretch_supported && PRIMFLAG_GET_TEXFORMAT(flags) != TEXFORMAT_YUY16) | |
| 1742 | { | |
| 1743 | result = (*d3dintf->device.create_offscreen_plain_surface)(d3d->device, texture->rawwidth, texture->rawheight, format, D3DPOOL_DEFAULT, &texture->d3dsurface); | |
| 1744 | if (result != D3D_OK) | |
| 1745 | continue; | |
| 1746 | texture->type = TEXTURE_TYPE_SURFACE; | |
| 1747 | } | |
| 1748 | ||
| 1749 | // otherwise, we allocate a dynamic texture for the source | |
| 1750 | else | |
| 1751 | { | |
| 1752 | result = (*d3dintf->device.create_texture)(d3d->device, texture->rawwidth, texture->rawheight, 1, usage, format, pool, &texture->d3dtex); | |
| 1753 | if (result != D3D_OK) | |
| 1754 | continue; | |
| 1755 | texture->type = d3d->dynamic_supported ? TEXTURE_TYPE_DYNAMIC : TEXTURE_TYPE_PLAIN; | |
| 1756 | } | |
| 1757 | ||
| 1758 | // for the target surface, we allocate a render target texture | |
| 1759 | scwidth = texture->rawwidth * texture->xprescale; | |
| 1760 | scheight = texture->rawheight * texture->yprescale; | |
| 1761 | ||
| 1762 | // target surfaces typically cannot be YCbCr, so we always pick RGB in that case | |
| 1763 | finalfmt = (format != d3d->yuv_format) ? format : D3DFMT_A8R8G8B8; | |
| 1764 | result = (*d3dintf->device.create_texture)(d3d->device, scwidth, scheight, 1, D3DUSAGE_RENDERTARGET, finalfmt, D3DPOOL_DEFAULT, &texture->d3dfinaltex); | |
| 1765 | if (result == D3D_OK) | |
| 1766 | break; | |
| 1767 | (*d3dintf->texture.release)(texture->d3dtex); | |
| 1768 | texture->d3dtex = NULL; | |
| 1744 | 1769 | } |
| 1745 | ||
| 1746 | // for the target surface, we allocate a render target texture | |
| 1747 | scwidth = texture->rawwidth * texture->xprescale; | |
| 1748 | scheight = texture->rawheight * texture->yprescale; | |
| 1749 | result = (*d3dintf->device.create_texture)(d3d->device, scwidth, scheight, 1, D3DUSAGE_RENDERTARGET, format, D3DPOOL_DEFAULT, &texture->d3dfinaltex); | |
| 1750 | if (result != D3D_OK) | |
| 1751 | goto error; | |
| 1752 | 1770 | } |
| 1753 | 1771 | } |
| 1754 | 1772 |
| r3115 | r3116 | |
|---|---|---|
| 2133 | 2133 | |
| 2134 | 2134 | |
| 2135 | 2135 | /*------------------------------------------------- |
| 2136 | expression_cpu_index - return the CPU index | |
| 2137 | based on a case insensitive tag search | |
| 2138 | -------------------------------------------------*/ | |
| 2139 | ||
| 2140 | static int expression_cpu_index(running_machine *machine, const char *tag) | |
| 2141 | { | |
| 2142 | int index; | |
| 2143 | ||
| 2144 | for (index = 0; index < ARRAY_LENGTH(machine->config->cpu); index++) | |
| 2145 | if (machine->config->cpu[index].tag != NULL && mame_stricmp(machine->config->cpu[index].tag, tag) == 0) | |
| 2146 | return index; | |
| 2147 | ||
| 2148 | return -1; | |
| 2149 | } | |
| 2150 | ||
| 2151 | ||
| 2152 | /*------------------------------------------------- | |
| 2136 | 2153 | expression_read_memory - read 1,2,4 or 8 bytes |
| 2137 | 2154 | at the given offset in the given address |
| 2138 | 2155 | space |
| r3115 | r3116 | |
| 2147 | 2164 | case EXPSPACE_PROGRAM: |
| 2148 | 2165 | case EXPSPACE_DATA: |
| 2149 | 2166 | case EXPSPACE_IO: |
| 2150 | cpuindex = (name != NULL) ? | |
| 2167 | cpuindex = (name != NULL) ? | |
| 2151 | 2168 | if (cpuindex < 0) |
| 2152 | 2169 | break; |
| 2153 | 2170 | return expression_read_address_space(cpuindex, ADDRESS_SPACE_PROGRAM + (space - EXPSPACE_PROGRAM), address, size); |
| 2154 | 2171 | |
| 2155 | 2172 | case EXPSPACE_OPCODE: |
| 2156 | 2173 | case EXPSPACE_RAMWRITE: |
| 2157 | cpuindex = (name != NULL) ? | |
| 2174 | cpuindex = (name != NULL) ? | |
| 2158 | 2175 | if (cpuindex < 0) |
| 2159 | 2176 | break; |
| 2160 | 2177 | if (name == NULL) |
| r3115 | r3116 | |
| 2356 | 2373 | case EXPSPACE_PROGRAM: |
| 2357 | 2374 | case EXPSPACE_DATA: |
| 2358 | 2375 | case EXPSPACE_IO: |
| 2359 | cpuindex = (name != NULL) ? | |
| 2376 | cpuindex = (name != NULL) ? | |
| 2360 | 2377 | if (cpuindex < 0) |
| 2361 | 2378 | break; |
| 2362 | 2379 | expression_write_address_space(cpuindex, ADDRESS_SPACE_PROGRAM + (space - EXPSPACE_PROGRAM), address, size, data); |
| r3115 | r3116 | |
| 2364 | 2381 | |
| 2365 | 2382 | case EXPSPACE_OPCODE: |
| 2366 | 2383 | case EXPSPACE_RAMWRITE: |
| 2367 | cpuindex = (name != NULL) ? | |
| 2384 | cpuindex = (name != NULL) ? | |
| 2368 | 2385 | if (cpuindex < 0) |
| 2369 | 2386 | break; |
| 2370 | 2387 | expression_write_program_direct(cpuindex, (space == EXPSPACE_OPCODE), address, size, data); |
| r3115 | r3116 | |
| 2589 | 2606 | case EXPSPACE_PROGRAM: |
| 2590 | 2607 | case EXPSPACE_DATA: |
| 2591 | 2608 | case EXPSPACE_IO: |
| 2592 | cpuindex = (name != NULL) ? | |
| 2609 | cpuindex = (name != NULL) ? | |
| 2593 | 2610 | if (cpuindex < 0) |
| 2594 | 2611 | return (name == NULL) ? EXPRERR_MISSING_MEMORY_NAME : EXPRERR_INVALID_MEMORY_NAME; |
| 2595 | 2612 | if (cpunum_addrbus_width(cpuindex, ADDRESS_SPACE_PROGRAM + (space - EXPSPACE_PROGRAM)) == 0) |
| r3115 | r3116 | |
| 2598 | 2615 | |
| 2599 | 2616 | case EXPSPACE_OPCODE: |
| 2600 | 2617 | case EXPSPACE_RAMWRITE: |
| 2601 | cpuindex = (name != NULL) ? | |
| 2618 | cpuindex = (name != NULL) ? | |
| 2602 | 2619 | if (cpuindex < 0) |
| 2603 | 2620 | return (name == NULL) ? EXPRERR_MISSING_MEMORY_NAME : EXPRERR_INVALID_MEMORY_NAME; |
| 2604 | 2621 | break; |
| r3115 | r3116 | |
|---|---|---|
| 896 | 896 | uint cyc_movem_l; |
| 897 | 897 | uint cyc_shift; |
| 898 | 898 | uint cyc_reset; |
| 899 | ||
| 900 | /* Virtual IRQ lines state */ | |
| 901 | uint virq_state; | |
| 902 | ||
| 899 | 903 | const uint8* cyc_instruction; |
| 900 | 904 | const uint8* cyc_exception; |
| 901 | 905 |
| r3115 | r3116 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | static UINT16 m68008_read_immediate_16(offs_t address) |
| 24 | 24 | { |
| 25 | offs_t addr = | |
| 25 | offs_t addr = | |
| 26 | 26 | return (cpu_readop(addr) << 8) | (cpu_readop(addr + 1)); |
| 27 | 27 | } |
| 28 | 28 | |
| r3115 | r3116 | |
| 52 | 52 | static const m68k_memory_interface interface_d16 = |
| 53 | 53 | { |
| 54 | 54 | 0, |
| 55 | read | |
| 55 | cpu_readop | |
| 56 | 56 | program_read_byte_16be, |
| 57 | 57 | program_read_word_16be, |
| 58 | 58 | program_read_dword_16be, |
| r3115 | r3116 | |
| 142 | 142 | { |
| 143 | 143 | if (irqline == INPUT_LINE_NMI) |
| 144 | 144 | irqline = 7; |
| 145 | switch(state) | |
| 146 | { | |
| 147 | case CLEAR_LINE: | |
| 148 | m68k_set_irq(0); | |
| 149 | break; | |
| 150 | case ASSERT_LINE: | |
| 151 | m68k_set_irq(irqline); | |
| 152 | break; | |
| 153 | default: | |
| 154 | m68k_set_irq(irqline); | |
| 155 | break; | |
| 156 | } | |
| 145 | ||
| 146 | m68k_set_virq(irqline, state == ASSERT_LINE ? 1 : 0); | |
| 157 | 147 | } |
| 158 | 148 | |
| 159 | 149 | |
| r3115 | r3116 | |
| 475 | 465 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_IO: info->i = 0; break; |
| 476 | 466 | case CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACE_IO: info->i = 0; break; |
| 477 | 467 | |
| 478 | case CPUINFO_INT_INPUT_STATE + 0: info->i = 0; /* fix me */ break; | |
| 479 | case CPUINFO_INT_INPUT_STATE + 1: info->i = 0; /* fix me */ break; | |
| 480 | case CPUINFO_INT_INPUT_STATE + 2: info->i = 0; /* fix me */ break; | |
| 481 | case CPUINFO_INT_INPUT_STATE + 3: info->i = 0; /* fix me */ break; | |
| 482 | case CPUINFO_INT_INPUT_STATE + 4: info->i = 0; /* fix me */ break; | |
| 483 | case CPUINFO_INT_INPUT_STATE + 5: info->i = 0; /* fix me */ break; | |
| 484 | case CPUINFO_INT_INPUT_STATE + 6: info->i = 0; /* fix me */ break; | |
| 485 | case CPUINFO_INT_INPUT_STATE + 7: info->i = 0; /* fix me */ break; | |
| 468 | case CPUINFO_INT_INPUT_STATE + 0: info->i = 0; /* there is no level 0 */ break; | |
| 469 | case CPUINFO_INT_INPUT_STATE + 1: info->i = m68k_get_virq(1); break; | |
| 470 | case CPUINFO_INT_INPUT_STATE + 2: info->i = m68k_get_virq(2); break; | |
| 471 | case CPUINFO_INT_INPUT_STATE + 3: info->i = m68k_get_virq(3); break; | |
| 472 | case CPUINFO_INT_INPUT_STATE + 4: info->i = m68k_get_virq(4); break; | |
| 473 | case CPUINFO_INT_INPUT_STATE + 5: info->i = m68k_get_virq(5); break; | |
| 474 | case CPUINFO_INT_INPUT_STATE + 6: info->i = m68k_get_virq(6); break; | |
| 475 | case CPUINFO_INT_INPUT_STATE + 7: info->i = m68k_get_virq(7); break; | |
| 486 | 476 | |
| 487 | 477 | case CPUINFO_INT_PREVIOUSPC: info->i = m68k_get_reg(NULL, M68K_REG_PPC); break; |
| 488 | 478 | |
| r3115 | r3116 | |
| 653 | 643 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_IO: info->i = 0; break; |
| 654 | 644 | case CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACE_IO: info->i = 0; break; |
| 655 | 645 | |
| 656 | case CPUINFO_INT_INPUT_STATE + 0: info->i = 0; /* fix me */ break; | |
| 657 | case CPUINFO_INT_INPUT_STATE + 1: info->i = 0; /* fix me */ break; | |
| 658 | case CPUINFO_INT_INPUT_STATE + 2: info->i = 0; /* fix me */ break; | |
| 659 | case CPUINFO_INT_INPUT_STATE + 3: info->i = 0; /* fix me */ break; | |
| 660 | case CPUINFO_INT_INPUT_STATE + 4: info->i = 0; /* fix me */ break; | |
| 661 | case CPUINFO_INT_INPUT_STATE + 5: info->i = 0; /* fix me */ break; | |
| 662 | case CPUINFO_INT_INPUT_STATE + 6: info->i = 0; /* fix me */ break; | |
| 663 | case CPUINFO_INT_INPUT_STATE + 7: info->i = 0; /* fix me */ break; | |
| 646 | case CPUINFO_INT_INPUT_STATE + 0: info->i = 0; /* there is no level 0 */ break; | |
| 647 | case CPUINFO_INT_INPUT_STATE + 1: info->i = m68k_get_virq(1); break; | |
| 648 | case CPUINFO_INT_INPUT_STATE + 2: info->i = m68k_get_virq(2); break; | |
| 649 | case CPUINFO_INT_INPUT_STATE + 3: info->i = m68k_get_virq(3); break; | |
| 650 | case CPUINFO_INT_INPUT_STATE + 4: info->i = m68k_get_virq(4); break; | |
| 651 | case CPUINFO_INT_INPUT_STATE + 5: info->i = m68k_get_virq(5); break; | |
| 652 | case CPUINFO_INT_INPUT_STATE + 6: info->i = m68k_get_virq(6); break; | |
| 653 | case CPUINFO_INT_INPUT_STATE + 7: info->i = m68k_get_virq(7); break; | |
| 664 | 654 | |
| 665 | 655 | case CPUINFO_INT_PREVIOUSPC: info->i = m68k_get_reg(NULL, M68K_REG_PPC); break; |
| 666 | 656 | |
| r3115 | r3116 | |
| 885 | 875 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_IO: info->i = 0; break; |
| 886 | 876 | case CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACE_IO: info->i = 0; break; |
| 887 | 877 | |
| 888 | case CPUINFO_INT_INPUT_STATE + 0: info->i = 0; /* fix me */ break; | |
| 889 | case CPUINFO_INT_INPUT_STATE + 1: info->i = 1; /* fix me */ break; | |
| 890 | case CPUINFO_INT_INPUT_STATE + 2: info->i = 2; /* fix me */ break; | |
| 891 | case CPUINFO_INT_INPUT_STATE + 3: info->i = 3; /* fix me */ break; | |
| 892 | case CPUINFO_INT_INPUT_STATE + 4: info->i = 4; /* fix me */ break; | |
| 893 | case CPUINFO_INT_INPUT_STATE + 5: info->i = 5; /* fix me */ break; | |
| 894 | case CPUINFO_INT_INPUT_STATE + 6: info->i = 6; /* fix me */ break; | |
| 895 | case CPUINFO_INT_INPUT_STATE + 7: info->i = 7; /* fix me */ break; | |
| 878 | case CPUINFO_INT_INPUT_STATE + 0: info->i = 0; /* there is no level 0 */ break; | |
| 879 | case CPUINFO_INT_INPUT_STATE + 1: info->i = m68k_get_virq(1); break; | |
| 880 | case CPUINFO_INT_INPUT_STATE + 2: info->i = m68k_get_virq(2); break; | |
| 881 | case CPUINFO_INT_INPUT_STATE + 3: info->i = m68k_get_virq(3); break; | |
| 882 | case CPUINFO_INT_INPUT_STATE + 4: info->i = m68k_get_virq(4); break; | |
| 883 | case CPUINFO_INT_INPUT_STATE + 5: info->i = m68k_get_virq(5); break; | |
| 884 | case CPUINFO_INT_INPUT_STATE + 6: info->i = m68k_get_virq(6); break; | |
| 885 | case CPUINFO_INT_INPUT_STATE + 7: info->i = m68k_get_virq(7); break; | |
| 896 | 886 | |
| 897 | 887 | case CPUINFO_INT_PREVIOUSPC: info->i = m68k_get_reg(NULL, M68K_REG_PPC); break; |
| 898 | 888 | |
| r3115 | r3116 | |
| 1123 | 1113 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_IO: info->i = 0; break; |
| 1124 | 1114 | case CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACE_IO: info->i = 0; break; |
| 1125 | 1115 | |
| 1126 | case CPUINFO_INT_INPUT_STATE + 0: info->i = 0; /* fix me */ break; | |
| 1127 | case CPUINFO_INT_INPUT_STATE + 1: info->i = 1; /* fix me */ break; | |
| 1128 | case CPUINFO_INT_INPUT_STATE + 2: info->i = 2; /* fix me */ break; | |
| 1129 | case CPUINFO_INT_INPUT_STATE + 3: info->i = 3; /* fix me */ break; | |
| 1130 | case CPUINFO_INT_INPUT_STATE + 4: info->i = 4; /* fix me */ break; | |
| 1131 | case CPUINFO_INT_INPUT_STATE + 5: info->i = 5; /* fix me */ break; | |
| 1132 | case CPUINFO_INT_INPUT_STATE + 6: info->i = 6; /* fix me */ break; | |
| 1133 | case CPUINFO_INT_INPUT_STATE + 7: info->i = 7; /* fix me */ break; | |
| 1116 | case CPUINFO_INT_INPUT_STATE + 0: info->i = 0; /* there is no level 0 */ break; | |
| 1117 | case CPUINFO_INT_INPUT_STATE + 1: info->i = m68k_get_virq(1); break; | |
| 1118 | case CPUINFO_INT_INPUT_STATE + 2: info->i = m68k_get_virq(2); break; | |
| 1119 | case CPUINFO_INT_INPUT_STATE + 3: info->i = m68k_get_virq(3); break; | |
| 1120 | case CPUINFO_INT_INPUT_STATE + 4: info->i = m68k_get_virq(4); break; | |
| 1121 | case CPUINFO_INT_INPUT_STATE + 5: info->i = m68k_get_virq(5); break; | |
| 1122 | case CPUINFO_INT_INPUT_STATE + 6: info->i = m68k_get_virq(6); break; | |
| 1123 | case CPUINFO_INT_INPUT_STATE + 7: info->i = m68k_get_virq(7); break; | |
| 1134 | 1124 | |
| 1135 | 1125 | case CPUINFO_INT_PREVIOUSPC: info->i = m68k_get_reg(NULL, M68K_REG_PPC); break; |
| 1136 | 1126 |
| r3115 | r3116 | |
|---|---|---|
| 325 | 325 | */ |
| 326 | 326 | void m68k_set_irq(unsigned int int_level); |
| 327 | 327 | |
| 328 | /* Set the virtual irq lines, where the highest level | |
| 329 | * active line is automatically selected. If you use this function, | |
| 330 | * do not use m68k_set_irq. | |
| 331 | */ | |
| 332 | void m68k_set_virq(unsigned int level, unsigned int active); | |
| 333 | unsigned int m68k_get_virq(unsigned int level); | |
| 328 | 334 | |
| 329 | 335 | /* Halt the CPU as if you pulsed the HALT pin. */ |
| 330 | 336 | void m68k_pulse_halt(void); |
| r3115 | r3116 | |
|---|---|---|
| 882 | 882 | m68ki_check_interrupts(); /* Level triggered (IRQ) */ |
| 883 | 883 | } |
| 884 | 884 | |
| 885 | void m68k_set_virq(unsigned int level, unsigned int active) | |
| 886 | { | |
| 887 | uint state = m68ki_cpu.virq_state; | |
| 888 | uint blevel; | |
| 889 | ||
| 890 | if(active) | |
| 891 | state |= 1 << level; | |
| 892 | else | |
| 893 | state &= ~(1 << level); | |
| 894 | m68ki_cpu.virq_state = state; | |
| 895 | ||
| 896 | for(blevel = 7; blevel > 0; blevel--) | |
| 897 | if(state & (1 << blevel)) | |
| 898 | break; | |
| 899 | m68k_set_irq(blevel); | |
| 900 | } | |
| 901 | ||
| 902 | unsigned int m68k_get_virq(unsigned int level) | |
| 903 | { | |
| 904 | return (m68ki_cpu.virq_state & (1 << level)) ? 1 : 0; | |
| 905 | } | |
| 906 | ||
| 885 | 907 | void m68k_init(void) |
| 886 | 908 | { |
| 887 | 909 | static uint emulation_initialized = 0; |
| r3115 | r3116 | |
| 919 | 941 | /* Interrupt mask to level 7 */ |
| 920 | 942 | FLAG_INT_MASK = 0x0700; |
| 921 | 943 | CPU_INT_LEVEL = 0; |
| 944 | m68ki_cpu.virq_state = 0; | |
| 922 | 945 | /* Reset VBR */ |
| 923 | 946 | REG_VBR = 0; |
| 924 | 947 | /* Go to supervisor mode */ |
| r0 | r3116 | |
|---|---|---|
| 1 | /* | |
| 2 | EA pin - defined by architecture, must implement: | |
| 3 | 1 means external access, bypassing internal ROM | |
| 4 | reimplement as a push, not a pull | |
| 5 | T0 output clock | |
| 6 | */ | |
| 7 | ||
| 8 | /*************************************************************************** | |
| 9 | ||
| 10 | mcs48.c | |
| 11 | ||
| 12 | Intel MCS-48 Portable Emulator | |
| 13 | ||
| 14 | Copyright Mirko Buffoni | |
| 15 | Based on the original work Copyright Dan Boris, an 8048 emulator | |
| 16 | You are not allowed to distribute this software commercially | |
| 17 | ||
| 18 | **************************************************************************** | |
| 19 | ||
| 20 | Note that the default internal divisor for this chip is by 3 and | |
| 21 | then again by 5, or by 15 total. | |
| 22 | ||
| 23 | **************************************************************************** | |
| 24 | ||
| 25 | Chip RAM ROM I/O | |
| 26 | ---- --- --- --- | |
| 27 | 8021 64 1k 21 (ROM, reduced instruction set) | |
| 28 | ||
| 29 | 8035 64 0 27 (external ROM) | |
| 30 | 8041 64 1k 18 (ROM) | |
| 31 | 8048 64 1k 27 (ROM) | |
| 32 | 8648 64 1k 27 (OTPROM) | |
| 33 | 8741 64 1k 18 (EPROM) | |
| 34 | 8748 64 1k 27 (EPROM) | |
| 35 | 8884 64 1k | |
| 36 | N7751 128 2k | |
| 37 | ||
| 38 | 8039 128 0 27 (external ROM) | |
| 39 | 8049 128 2k 27 (ROM) | |
| 40 | 8749 128 2k 27 (EPROM) | |
| 41 | M58715 128 0 (external ROM) | |
| 42 | ||
| 43 | ***************************************************************************/ | |
| 44 | ||
| 45 | #include "debugger.h" | |
| 46 | #include "mcs48.h" | |
| 47 | ||
| 48 | ||
| 49 | /*************************************************************************** | |
| 50 | CONSTANTS | |
| 51 | ***************************************************************************/ | |
| 52 | ||
| 53 | /* timer/counter enable bits */ | |
| 54 | #define TIMER_ENABLED 0x01 | |
| 55 | #define COUNTER_ENABLED 0x02 | |
| 56 | ||
| 57 | /* flag bits */ | |
| 58 | #define C_FLAG 0x80 | |
| 59 | #define A_FLAG 0x40 | |
| 60 | #define F_FLAG 0x20 | |
| 61 | #define B_FLAG 0x10 | |
| 62 | ||
| 63 | ||
| 64 | ||
| 65 | /*************************************************************************** | |
| 66 | TYPE DEFINITIONS | |
| 67 | ***************************************************************************/ | |
| 68 | ||
| 69 | /* live processor state */ | |
| 70 | typedef struct _mcs48_regs mcs48_regs; | |
| 71 | struct _mcs48_regs | |
| 72 | { | |
| 73 | PAIR prevpc; /* 16-bit previous program counter */ | |
| 74 | PAIR pc; /* 16-bit program counter */ | |
| 75 | UINT8 a; /* 8-bit accumulator */ | |
| 76 | UINT8 * regptr; /* pointer to r0-r7 */ | |
| 77 | UINT8 psw; /* 8-bit PSW */ | |
| 78 | UINT8 p1; /* 8-bit latched port 1 */ | |
| 79 | UINT8 p2; /* 8-bit latched port 2 */ | |
| 80 | UINT8 f1; /* 1-bit flag 1 */ | |
| 81 | UINT8 ea; /* 1-bit latched ea input */ | |
| 82 | UINT8 timer; /* 8-bit timer */ | |
| 83 | UINT8 prescaler; /* 5-bit timer prescaler */ | |
| 84 | UINT8 t1_history; /* 8-bit history of the T1 input */ | |
| 85 | ||
| 86 | UINT8 irq_state; /* TRUE if an IRQ is pending */ | |
| 87 | UINT8 irq_in_progress; /* TRUE if an IRQ is in progress */ | |
| 88 | UINT8 timer_overflow; /* TRUE on a timer overflow; cleared by taking interrupt */ | |
| 89 | UINT8 timer_flag; /* TRUE on a timer overflow; cleared on JTF */ | |
| 90 | UINT8 tirq_enabled; /* TRUE if the timer IRQ is enabled */ | |
| 91 | UINT8 xirq_enabled; /* TRUE if the external IRQ is enabled */ | |
| 92 | UINT8 timecount_enabled; /* bitmask of timer/counter enabled */ | |
| 93 | ||
| 94 | UINT16 a11; /* A11 value, either 0x000 or 0x800 */ | |
| 95 | ||
| 96 | int (*irq_callback)(int irqline); | |
| 97 | int inst_cycles; /* cycles for the current instruction */ | |
| 98 | UINT8 cpu_feature; /* processor feature flags */ | |
| 99 | UINT16 int_rom_size; /* internal rom size */ | |
| 100 | }; | |
| 101 | ||
| 102 | ||
| 103 | /* opcode table entry */ | |
| 104 | typedef struct _mcs48_opcode mcs48_opcode; | |
| 105 | struct _mcs48_opcode | |
| 106 | { | |
| 107 | UINT8 cycles; | |
| 108 | void (*function)(void); | |
| 109 | }; | |
| 110 | ||
| 111 | ||
| 112 | ||
| 113 | /*************************************************************************** | |
| 114 | MACROS | |
| 115 | ***************************************************************************/ | |
| 116 | ||
| 117 | /*** Cycle times for the jump on condition instructions, are unusual. | |
| 118 | Condition is tested during the first cycle, so if condition is not | |
| 119 | met, second address fetch cycle may not really be taken. For now we | |
| 120 | just use the cycle counts as listed in the i8048 user manual. | |
| 121 | ***/ | |
| 122 | ||
| 123 | #if 0 | |
| 124 | #define ADJUST_CYCLES { inst_cycles -= 1; } /* Possible real cycles setting */ | |
| 125 | #else | |
| 126 | #define ADJUST_CYCLES { } /* User Manual cycles setting */ | |
| 127 | #endif | |
| 128 | ||
| 129 | ||
| 130 | /* ROM is mapped to ADDRESS_SPACE_PROGRAM */ | |
| 131 | #define program_r(a) program_read_byte_8le(a) | |
| 132 | ||
| 133 | /* RAM is mapped to ADDRESS_SPACE_DATA */ | |
| 134 | #define ram_r(a) data_read_byte_8le(a) | |
| 135 | #define ram_w(a,V) data_write_byte_8le(a, V) | |
| 136 | ||
| 137 | /* ports are mapped to ADDRESS_SPACE_IO */ | |
| 138 | #define ext_r(a) io_read_byte_8le(a) | |
| 139 | #define ext_w(a,V) io_write_byte_8le(a, V) | |
| 140 | #define port_r(a) io_read_byte_8le(MCS48_PORT_P0 + a) | |
| 141 | #define port_w(a,V) io_write_byte_8le(MCS48_PORT_P0 + a, V) | |
| 142 | #define test_r(a) io_read_byte_8le(MCS48_PORT_T0 + a) | |
| 143 | #define test_w(a,V) io_write_byte_8le(MCS48_PORT_T0 + a, V) | |
| 144 | #define bus_r() io_read_byte_8le(MCS48_PORT_BUS) | |
| 145 | #define bus_w(V) io_write_byte_8le(MCS48_PORT_BUS, V) | |
| 146 | #define ea_r() io_read_byte_8le(MCS48_PORT_EA) | |
| 147 | ||
| 148 | /* simplfied access to common bits */ | |
| 149 | #undef A | |
| 150 | #define A mcs48.a | |
| 151 | #undef PC | |
| 152 | #define PC mcs48.pc.w.l | |
| 153 | #undef PSW | |
| 154 | #define PSW mcs48.psw | |
| 155 | ||
| 156 | /* r0-r7 map to memory via the regptr */ | |
| 157 | #define R0 mcs48.regptr[0] | |
| 158 | #define R1 mcs48.regptr[1] | |
| 159 | #define R2 mcs48.regptr[2] | |
| 160 | #define R3 mcs48.regptr[3] | |
| 161 | #define R4 mcs48.regptr[4] | |
| 162 | #define R5 mcs48.regptr[5] | |
| 163 | #define R6 mcs48.regptr[6] | |
| 164 | #define R7 mcs48.regptr[7] | |
| 165 | ||
| 166 | /* the carry flag as 0 or 1, used for carry-in */ | |
| 167 | #define CARRYIN ((PSW & C_FLAG) >> 7) | |
| 168 | ||
| 169 | ||
| 170 | ||
| 171 | /*************************************************************************** | |
| 172 | GLOBAL VARIABLES | |
| 173 | ***************************************************************************/ | |
| 174 | ||
| 175 | static mcs48_regs mcs48; | |
| 176 | static int mcs48_icount; | |
| 177 | ||
| 178 | ||
| 179 | ||
| 180 | /*************************************************************************** | |
| 181 | FUNCTION PROTOTYPES | |
| 182 | ***************************************************************************/ | |
| 183 | ||
| 184 | static void check_irqs(void); | |
| 185 | ||
| 186 | ||
| 187 | ||
| 188 | /*************************************************************************** | |
| 189 | INLINE FUNCTIONS | |
| 190 | ***************************************************************************/ | |
| 191 | ||
| 192 | /*------------------------------------------------- | |
| 193 | opcode_fetch - fetch an opcode byte | |
| 194 | -------------------------------------------------*/ | |
| 195 | ||
| 196 | INLINE UINT8 opcode_fetch(offs_t address) | |
| 197 | { | |
| 198 | /* fix me - need to figure out how to bypass internal ROM in this case */ | |
| 199 | if (mcs48.ea && address < mcs48.int_rom_size) | |
| 200 | return 0x00; | |
| 201 | return cpu_readop(address); | |
| 202 | } | |
| 203 | ||
| 204 | ||
| 205 | /*------------------------------------------------- | |
| 206 | argument_fetch - fetch an opcode argument | |
| 207 | byte | |
| 208 | -------------------------------------------------*/ | |
| 209 | ||
| 210 | INLINE UINT8 argument_fetch(offs_t address) | |
| 211 | { | |
| 212 | /* fix me - need to figure out how to bypass internal ROM in this case */ | |
| 213 | if (mcs48.ea && address < mcs48.int_rom_size) | |
| 214 | return 0x00; | |
| 215 | return cpu_readop_arg(address); | |
| 216 | } | |
| 217 | ||
| 218 | ||
| 219 | /*------------------------------------------------- | |
| 220 | update_regptr - update the regptr member to | |
| 221 | point to the appropriate register bank | |
| 222 | -------------------------------------------------*/ | |
| 223 | ||
| 224 | INLINE void update_regptr(void) | |
| 225 | { | |
| 226 | mcs48.regptr = memory_get_write_ptr(cpu_getactivecpu(), ADDRESS_SPACE_DATA, (PSW & B_FLAG) ? 24 : 0); | |
| 227 | } | |
| 228 | ||
| 229 | ||
| 230 | /*------------------------------------------------- | |
| 231 | push_pc_psw - push the PC and PSW values onto | |
| 232 | the stack | |
| 233 | -------------------------------------------------*/ | |
| 234 | ||
| 235 | INLINE void push_pc_psw(void) | |
| 236 | { | |
| 237 | UINT8 sp = PSW & 0x07; | |
| 238 | ram_w(8 + 2*sp, mcs48.pc.b.l); | |
| 239 | ram_w(9 + 2*sp, (mcs48.pc.b.h & 0x0f) | (PSW & 0xf0)); | |
| 240 | PSW = (PSW & 0xf8) | ((sp + 1) & 0x07); | |
| 241 | } | |
| 242 | ||
| 243 | ||
| 244 | /*------------------------------------------------- | |
| 245 | pull_pc_psw - pull the PC and PSW values from | |
| 246 | the stack | |
| 247 | -------------------------------------------------*/ | |
| 248 | ||
| 249 | INLINE void pull_pc_psw(void) | |
| 250 | { | |
| 251 | UINT8 sp = (PSW - 1) & 0x07; | |
| 252 | mcs48.pc.b.l = ram_r(8 + 2*sp); | |
| 253 | mcs48.pc.b.h = ram_r(9 + 2*sp); | |
| 254 | PSW = (mcs48.pc.b.h & 0xf0) | 0x08 | sp; | |
| 255 | mcs48.pc.b.h &= 0x0f; | |
| 256 | update_regptr(); | |
| 257 | change_pc(PC); | |
| 258 | } | |
| 259 | ||
| 260 | ||
| 261 | /*------------------------------------------------- | |
| 262 | pull_pc - pull the PC value from the stack, | |
| 263 | leaving the upper part of PSW intact | |
| 264 | -------------------------------------------------*/ | |
| 265 | ||
| 266 | INLINE void pull_pc(void) | |
| 267 | { | |
| 268 | UINT8 sp = (PSW - 1) & 0x07; | |
| 269 | mcs48.pc.b.l = ram_r(8 + 2*sp); | |
| 270 | mcs48.pc.b.h = ram_r(9 + 2*sp) & 0x0f; | |
| 271 | PSW = (PSW & 0xf0) | 0x08 | sp; | |
| 272 | change_pc(PC); | |
| 273 | } | |
| 274 | ||
| 275 | ||
| 276 | /*------------------------------------------------- | |
| 277 | execute_add - perform the logic of an ADD | |
| 278 | instruction | |
| 279 | -------------------------------------------------*/ | |
| 280 | ||
| 281 | INLINE void execute_add(UINT8 dat) | |
| 282 | { | |
| 283 | UINT16 temp = A + dat; | |
| 284 | ||
| 285 | PSW &= ~(C_FLAG | A_FLAG); | |
| 286 | PSW |= ((A ^ temp) << 2) & A_FLAG; | |
| 287 | PSW |= (temp >> 1) & C_FLAG; | |
| 288 | A = temp; | |
| 289 | } | |
| 290 | ||
| 291 | ||
| 292 | /*------------------------------------------------- | |
| 293 | execute_addc - perform the logic of an ADDC | |
| 294 | instruction | |
| 295 | -------------------------------------------------*/ | |
| 296 | ||
| 297 | INLINE void execute_addc(UINT8 dat) | |
| 298 | { | |
| 299 | UINT16 temp = A + dat + CARRYIN; | |
| 300 | ||
| 301 | PSW &= ~(C_FLAG | A_FLAG); | |
| 302 | PSW |= ((A ^ temp) << 2) & A_FLAG; | |
| 303 | PSW |= (temp >> 1) & C_FLAG; | |
| 304 | A = temp; | |
| 305 | } | |
| 306 | ||
| 307 | ||
| 308 | /*------------------------------------------------- | |
| 309 | execute_jmp - perform the logic of a JMP | |
| 310 | instruction | |
| 311 | -------------------------------------------------*/ | |
| 312 | ||
| 313 | INLINE void execute_jmp(UINT16 address) | |
| 314 | { | |
| 315 | UINT16 a11 = (mcs48.irq_in_progress) ? 0 : mcs48.a11; | |
| 316 | PC = address | a11; | |
| 317 | change_pc(PC); | |
| 318 | } | |
| 319 | ||
| 320 | ||
| 321 | /*------------------------------------------------- | |
| 322 | execute_call - perform the logic of a CALL | |
| 323 | instruction | |
| 324 | -------------------------------------------------*/ | |
| 325 | ||
| 326 | INLINE void execute_call(UINT16 address) | |
| 327 | { | |
| 328 | push_pc_psw(); | |
| 329 | execute_jmp(address); | |
| 330 | } | |
| 331 | ||
| 332 | ||
| 333 | /*------------------------------------------------- | |
| 334 | execute_jcc - perform the logic of a | |
| 335 | conditional jump instruction | |
| 336 | -------------------------------------------------*/ | |
| 337 | ||
| 338 | INLINE void execute_jcc(UINT8 result) | |
| 339 | { | |
| 340 | UINT8 offset = argument_fetch(PC++); | |
| 341 | if (result != 0) | |
| 342 | { | |
| 343 | PC = ((PC - 1) & 0xf00) | offset; | |
| 344 | change_pc(PC); | |
| 345 | } | |
| 346 | else | |
| 347 | ADJUST_CYCLES; | |
| 348 | } | |
| 349 | ||
| 350 | ||
| 351 | ||
| 352 | /*************************************************************************** | |
| 353 | OPCODE HANDLERS | |
| 354 | ***************************************************************************/ | |
| 355 | ||
| 356 | static void illegal(void) | |
| 357 | { | |
| 358 | logerror("I8039: pc = %04x, Illegal opcode = %02x\n", PC-1, program_r(PC-1)); | |
| 359 | } | |
| 360 | ||
| 361 | static void add_a_r0(void) { execute_add(R0); } | |
| 362 | static void add_a_r1(void) { execute_add(R1); } | |
| 363 | static void add_a_r2(void) { execute_add(R2); } | |
| 364 | static void add_a_r3(void) { execute_add(R3); } | |
| 365 | static void add_a_r4(void) { execute_add(R4); } | |
| 366 | static void add_a_r5(void) { execute_add(R5); } | |
| 367 | static void add_a_r6(void) { execute_add(R6); } | |
| 368 | static void add_a_r7(void) { execute_add(R7); } | |
| 369 | static void add_a_xr0(void) { execute_add(ram_r(R0)); } | |
| 370 | static void add_a_xr1(void) { execute_add(ram_r(R1)); } | |
| 371 | static void add_a_n(void) { execute_add(argument_fetch(PC++)); } | |
| 372 | ||
| 373 | static void adc_a_r0(void) { execute_addc(R0); } | |
| 374 | static void adc_a_r1(void) { execute_addc(R1); } | |
| 375 | static void adc_a_r2(void) { execute_addc(R2); } | |
| 376 | static void adc_a_r3(void) { execute_addc(R3); } | |
| 377 | static void adc_a_r4(void) { execute_addc(R4); } | |
| 378 | static void adc_a_r5(void) { execute_addc(R5); } | |
| 379 | static void adc_a_r6(void) { execute_addc(R6); } | |
| 380 | static void adc_a_r7(void) { execute_addc(R7); } | |
| 381 | static void adc_a_xr0(void) { execute_addc(ram_r(R0)); } | |
| 382 | static void adc_a_xr1(void) { execute_addc(ram_r(R1)); } | |
| 383 | static void adc_a_n(void) { execute_addc(argument_fetch(PC++)); } | |
| 384 | ||
| 385 | static void anl_a_r0(void) { A &= R0; } | |
| 386 | static void anl_a_r1(void) { A &= R1; } | |
| 387 | static void anl_a_r2(void) { A &= R2; } | |
| 388 | static void anl_a_r3(void) { A &= R3; } | |
| 389 | static void anl_a_r4(void) { A &= R4; } | |
| 390 | static void anl_a_r5(void) { A &= R5; } | |
| 391 | static void anl_a_r6(void) { A &= R6; } | |
| 392 | static void anl_a_r7(void) { A &= R7; } | |
| 393 | static void anl_a_xr0(void) { A &= ram_r(R0); } | |
| 394 | static void anl_a_xr1(void) { A &= ram_r(R1); } | |
| 395 | static void anl_a_n(void) { A &= argument_fetch(PC++); } | |
| 396 | static void anl_bus_n(void) { bus_w(bus_r() & argument_fetch(PC++)); } | |
| 397 | static void anl_p1_n(void) { port_w(1, mcs48.p1 &= argument_fetch(PC++)); } | |
| 398 | static void anl_p2_n(void) { port_w(2, mcs48.p2 &= argument_fetch(PC++)); } | |
| 399 | ||
| 400 | static void anld_p4_a(void) { port_w(4, port_r(4) & A & 0x0f); } | |
| 401 | static void anld_p5_a(void) { port_w(5, port_r(5) & A & 0x0f); } | |
| 402 | static void anld_p6_a(void) { port_w(6, port_r(6) & A & 0x0f); } | |
| 403 | static void anld_p7_a(void) { port_w(7, port_r(7) & A & 0x0f); } | |
| 404 | ||
| 405 | static void call_0(void) { execute_call(argument_fetch(PC++) | 0x000); } | |
| 406 | static void call_1(void) { execute_call(argument_fetch(PC++) | 0x100); } | |
| 407 | static void call_2(void) { execute_call(argument_fetch(PC++) | 0x200); } | |
| 408 | static void call_3(void) { execute_call(argument_fetch(PC++) | 0x300); } | |
| 409 | static void call_4(void) { execute_call(argument_fetch(PC++) | 0x400); } | |
| 410 | static void call_5(void) { execute_call(argument_fetch(PC++) | 0x500); } | |
| 411 | static void call_6(void) { execute_call(argument_fetch(PC++) | 0x600); } | |
| 412 | static void call_7(void) { execute_call(argument_fetch(PC++) | 0x700); } | |
| 413 | ||
| 414 | static void clr_a(void) { A = 0; } | |
| 415 | static void clr_c(void) { PSW &= ~C_FLAG; } | |
| 416 | static void clr_f0(void) { PSW &= ~F_FLAG; } | |
| 417 | static void clr_f1(void) { mcs48.f1 = 0; } | |
| 418 | ||
| 419 | static void cpl_a(void) { A ^= 0xff; } | |
| 420 | static void cpl_c(void) { PSW ^= C_FLAG; } | |
| 421 | static void cpl_f0(void) { PSW ^= F_FLAG; } | |
| 422 | static void cpl_f1(void) { mcs48.f1 ^= 1; } | |
| 423 | ||
| 424 | static void da_a(void) | |
| 425 | { | |
| 426 | if ((A & 0x0f) > 0x09 || (PSW & A_FLAG)) | |
| 427 | { | |
| 428 | A += 0x06; | |
| 429 | if ((A & 0xf0) == 0x00) | |
| 430 | PSW |= C_FLAG; | |
| 431 | } | |
| 432 | if ((A & 0xf0) > 0x90 || (PSW & C_FLAG)) | |
| 433 | { | |
| 434 | A += 0x60; | |
| 435 | PSW |= C_FLAG; | |
| 436 | } | |
| 437 | else | |
| 438 | PSW &= ~C_FLAG; | |
| 439 | } | |
| 440 | ||
| 441 | static void dec_a(void) { A--; } | |
| 442 | static void dec_r0(void) { R0--; } | |
| 443 | static void dec_r1(void) { R1--; } | |
| 444 | static void dec_r2(void) { R2--; } | |
| 445 | static void dec_r3(void) { R3--; } | |
| 446 | static void dec_r4(void) { R4--; } | |
| 447 | static void dec_r5(void) { R5--; } | |
| 448 | static void dec_r6(void) { R6--; } | |
| 449 | static void dec_r7(void) { R7--; } | |
| 450 | ||
| 451 | static void dis_i(void) { mcs48.xirq_enabled = FALSE; } | |
| 452 | static void dis_tcnti(void) { mcs48.tirq_enabled = FALSE; mcs48.timer_overflow = FALSE; } | |
| 453 | ||
| 454 | static void djnz_r0(void) { execute_jcc(--R0 != 0); } | |
| 455 | static void djnz_r1(void) { execute_jcc(--R1 != 0); } | |
| 456 | static void djnz_r2(void) { execute_jcc(--R2 != 0); } | |
| 457 | static void djnz_r3(void) { execute_jcc(--R3 != 0); } | |
| 458 | static void djnz_r4(void) { execute_jcc(--R4 != 0); } | |
| 459 | static void djnz_r5(void) { execute_jcc(--R5 != 0); } | |
| 460 | static void djnz_r6(void) { execute_jcc(--R6 != 0); } | |
| 461 | static void djnz_r7(void) { execute_jcc(--R7 != 0); } | |
| 462 | ||
| 463 | static void en_i(void) { mcs48.xirq_enabled = TRUE; check_irqs(); } | |
| 464 | static void en_tcnti(void) { mcs48.tirq_enabled = TRUE; check_irqs(); } | |
| 465 | ||
| 466 | static void ento_clk(void) | |
| 467 | { | |
| 468 | logerror("I8039: pc = %04x, Unimplemented opcode = %02x\n", PC-1, program_r(PC-1)); | |
| 469 | } | |
| 470 | ||
| 471 | static void in_a_p1(void) { A = port_r(1) & mcs48.p1; } | |
| 472 | static void in_a_p2(void) { A = port_r(2) & mcs48.p2; } | |
| 473 | static void ins_a_bus(void) { A = bus_r(); } | |
| 474 | ||
| 475 | static void inc_a(void) { A++; } | |
| 476 | static void inc_r0(void) { R0++; } | |
| 477 | static void inc_r1(void) { R1++; } | |
| 478 | static void inc_r2(void) { R2++; } | |
| 479 | static void inc_r3(void) { R3++; } | |
| 480 | static void inc_r4(void) { R4++; } | |
| 481 | static void inc_r5(void) { R5++; } | |
| 482 | static void inc_r6(void) { R6++; } | |
| 483 | static void inc_r7(void) { R7++; } | |
| 484 | static void inc_xr0(void) { ram_w(R0, ram_r(R0) + 1); } | |
| 485 | static void inc_xr1(void) { ram_w(R1, ram_r(R1) + 1); } | |
| 486 | ||
| 487 | static void jb_0(void) { execute_jcc((A & 0x01) != 0); } | |
| 488 | static void jb_1(void) { execute_jcc((A & 0x02) != 0); } | |
| 489 | static void jb_2(void) { execute_jcc((A & 0x04) != 0); } | |
| 490 | static void jb_3(void) { execute_jcc((A & 0x08) != 0); } | |
| 491 | static void jb_4(void) { execute_jcc((A & 0x10) != 0); } | |
| 492 | static void jb_5(void) { execute_jcc((A & 0x20) != 0); } | |
| 493 | static void jb_6(void) { execute_jcc((A & 0x40) != 0); } | |
| 494 | static void jb_7(void) { execute_jcc((A & 0x80) != 0); } | |
| 495 | static void jc(void) { execute_jcc((PSW & C_FLAG) != 0); } | |
| 496 | static void jf0(void) { execute_jcc((PSW & F_FLAG) != 0); } | |
| 497 | static void jf1(void) { execute_jcc(mcs48.f1 != 0); } | |
| 498 | ||
| 499 | static void jmp_0(void) { execute_jmp(argument_fetch(PC) | 0x000); } | |
| 500 | static void jmp_1(void) { execute_jmp(argument_fetch(PC) | 0x100); } | |
| 501 | static void jmp_2(void) { execute_jmp(argument_fetch(PC) | 0x200); } | |
| 502 | static void jmp_3(void) { execute_jmp(argument_fetch(PC) | 0x300); } | |
| 503 | static void jmp_4(void) { execute_jmp(argument_fetch(PC) | 0x400); } | |
| 504 | static void jmp_5(void) { execute_jmp(argument_fetch(PC) | 0x500); } | |
| 505 | static void jmp_6(void) { execute_jmp(argument_fetch(PC) | 0x600); } | |
| 506 | static void jmp_7(void) { execute_jmp(argument_fetch(PC) | 0x700); } | |
| 507 | static void jmpp_xa(void) { PC &= 0xf00; PC |= program_r(PC | A); change_pc(PC); } | |
| 508 | ||
| 509 | static void jnc(void) { execute_jcc((PSW & C_FLAG) == 0); } | |
| 510 | static void jni(void) { execute_jcc(mcs48.irq_state != 0); } | |
| 511 | static void jnt_0(void) { execute_jcc(test_r(0) == 0); } | |
| 512 | static void jnt_1(void) { execute_jcc(test_r(1) == 0); } | |
| 513 | static void jnz(void) { execute_jcc(A != 0); } | |
| 514 | static void jtf(void) { execute_jcc(mcs48.timer_flag); mcs48.timer_flag = FALSE; } | |
| 515 | static void jt_0(void) { execute_jcc(test_r(0) != 0); } | |
| 516 | static void jt_1(void) { execute_jcc(test_r(1) != 0); } | |
| 517 | static void jz(void) { execute_jcc(A == 0); } | |
| 518 | ||
| 519 | static void mov_a_n(void) { A = argument_fetch(PC++); } | |
| 520 | static void mov_a_psw(void) { A = PSW; } | |
| 521 | static void mov_a_r0(void) { A = R0; } | |
| 522 | static void mov_a_r1(void) { A = R1; } | |
| 523 | static void mov_a_r2(void) { A = R2; } | |
| 524 | static void mov_a_r3(void) { A = R3; } | |
| 525 | static void mov_a_r4(void) { A = R4; } | |
| 526 | static void mov_a_r5(void) { A = R5; } | |
| 527 | static void mov_a_r6(void) { A = R6; } | |
| 528 | static void mov_a_r7(void) { A = R7; } | |
| 529 | static void mov_a_xr0(void) { A = ram_r(R0); } | |
| 530 | static void mov_a_xr1(void) { A = ram_r(R1); } | |
| 531 | static void mov_a_t(void) { A = mcs48.timer; } | |
| 532 | ||
| 533 | static void mov_psw_a(void) { PSW = A; update_regptr(); } | |
| 534 | static void mov_r0_a(void) { R0 = A; } | |
| 535 | static void mov_r1_a(void) { R1 = A; } | |
| 536 | static void mov_r2_a(void) { R2 = A; } | |
| 537 | static void mov_r3_a(void) { R3 = A; } | |
| 538 | static void mov_r4_a(void) { R4 = A; } | |
| 539 | static void mov_r5_a(void) { R5 = A; } | |
| 540 | static void mov_r6_a(void) { R6 = A; } | |
| 541 | static void mov_r7_a(void) { R7 = A; } | |
| 542 | static void mov_r0_n(void) { R0 = argument_fetch(PC++); } | |
| 543 | static void mov_r1_n(void) { R1 = argument_fetch(PC++); } | |
| 544 | static void mov_r2_n(void) { R2 = argument_fetch(PC++); } | |
| 545 | static void mov_r3_n(void) { R3 = argument_fetch(PC++); } | |
| 546 | static void mov_r4_n(void) { R4 = argument_fetch(PC++); } | |
| 547 | static void mov_r5_n(void) { R5 = argument_fetch(PC++); } | |
| 548 | static void mov_r6_n(void) { R6 = argument_fetch(PC++); } | |
| 549 | static void mov_r7_n(void) { R7 = argument_fetch(PC++); } | |
| 550 | static void mov_t_a(void) { mcs48.timer = A; } | |
| 551 | static void mov_xr0_a(void) { ram_w(R0, A); } | |
| 552 | static void mov_xr1_a(void) { ram_w(R1, A); } | |
| 553 | static void mov_xr0_n(void) { ram_w(R0, argument_fetch(PC++)); } | |
| 554 | static void mov_xr1_n(void) { ram_w(R1, argument_fetch(PC++)); } | |
| 555 | ||
| 556 | static void movd_a_p4(void) { A = port_r(4) & 0x0f; } | |
| 557 | static void movd_a_p5(void) { A = port_r(5) & 0x0f; } | |
| 558 | static void movd_a_p6(void) { A = port_r(6) & 0x0f; } | |
| 559 | static void movd_a_p7(void) { A = port_r(7) & 0x0f; } | |
| 560 | static void movd_p4_a(void) { port_w(4, A & 0x0f); } | |
| 561 | static void movd_p5_a(void) { port_w(5, A & 0x0f); } | |
| 562 | static void movd_p6_a(void) { port_w(6, A & 0x0f); } | |
| 563 | static void movd_p7_a(void) { port_w(7, A & 0x0f); } | |
| 564 | ||
| 565 | static void movp_a_xa(void) { A = program_r((PC & 0xf00) | A); } | |
| 566 | static void movp3_a_xa(void) { A = program_r(0x300 | A); } | |
| 567 | ||
| 568 | static void movx_a_xr0(void) { A = ext_r(R0); } | |
| 569 | static void movx_a_xr1(void) { A = ext_r(R1); } | |
| 570 | static void movx_xr0_a(void) { ext_w(R0, A); } | |
| 571 | static void movx_xr1_a(void) { ext_w(R1, A); } | |
| 572 | ||
| 573 | static void nop(void) { } | |
| 574 | ||
| 575 | static void orl_a_r0(void) { A |= R0; } | |
| 576 | static void orl_a_r1(void) { A |= R1; } | |
| 577 | static void orl_a_r2(void) { A |= R2; } | |
| 578 | static void orl_a_r3(void) { A |= R3; } | |
| 579 | static void orl_a_r4(void) { A |= R4; } | |
| 580 | static void orl_a_r5(void) { A |= R5; } | |
| 581 | static void orl_a_r6(void) { A |= R6; } | |
| 582 | static void orl_a_r7(void) { A |= R7; } | |
| 583 | static void orl_a_xr0(void) { A |= ram_r(R0); } | |
| 584 | static void orl_a_xr1(void) { A |= ram_r(R1); } | |
| 585 | static void orl_a_n(void) { A |= argument_fetch(PC++); } | |
| 586 | static void orl_bus_n(void) { bus_w(bus_r() | argument_fetch(PC++)); } | |
| 587 | static void orl_p1_n(void) { port_w(1, mcs48.p1 |= argument_fetch(PC++)); } | |
| 588 | static void orl_p2_n(void) { port_w(2, mcs48.p2 |= argument_fetch(PC++)); } | |
| 589 | static void orld_p4_a(void) { port_w(4, port_r(4) | A); } | |
| 590 | static void orld_p5_a(void) { port_w(5, port_r(5) | A); } | |
| 591 | static void orld_p6_a(void) { port_w(6, port_r(6) | A); } | |
| 592 | static void orld_p7_a(void) { port_w(7, port_r(7) | A); } | |
| 593 | ||
| 594 | static void outl_bus_a(void) { bus_w(A); } | |
| 595 | static void outl_p1_a(void) { port_w(1, mcs48.p1 = A); } | |
| 596 | static void outl_p2_a(void) { port_w(2, mcs48.p2 = A); } | |
| 597 | static void ret(void) { pull_pc(); } | |
| 598 | ||
| 599 | static void retr(void) | |
| 600 | { | |
| 601 | pull_pc_psw(); | |
| 602 | ||
| 603 | /* implicitly clear the IRQ in progress flip flop and re-check interrupts */ | |
| 604 | mcs48.irq_in_progress = FALSE; | |
| 605 | check_irqs(); | |
| 606 | } | |
| 607 | ||
| 608 | static void rl_a(void) { A = (A << 1) | (A >> 7); } | |
| 609 | static void rlc_a(void) { UINT8 newc = A & C_FLAG; A = (A << 1) | (PSW >> 7); PSW = (PSW & ~C_FLAG) | newc; } | |
| 610 | ||
| 611 | static void rr_a(void) { A = (A >> 1) | (A << 7); } | |
| 612 | static void rrc_a(void) { UINT8 newc = (A << 7) & C_FLAG; A = (A >> 1) | (PSW & C_FLAG); PSW = (PSW & ~C_FLAG) | newc; } | |
| 613 | ||
| 614 | static void sel_mb0(void) { mcs48.a11 = 0x000; } | |
| 615 | static void sel_mb1(void) { mcs48.a11 = 0x800; } | |
| 616 | ||
| 617 | static void sel_rb0(void) { PSW &= ~B_FLAG; update_regptr(); } | |
| 618 | static void sel_rb1(void) { PSW |= B_FLAG; update_regptr(); } | |
| 619 | ||
| 620 | static void stop_tcnt(void) { mcs48.timecount_enabled = 0; } | |
| 621 | ||
| 622 | static void strt_cnt(void) { mcs48.timecount_enabled = COUNTER_ENABLED; mcs48.t1_history = test_r(1); } | |
| 623 | static void strt_t(void) { mcs48.timecount_enabled = TIMER_ENABLED; mcs48.prescaler = 0; } | |
| 624 | ||
| 625 | static void swap_a(void) { A = (A << 4) | (A >> 4); } | |
| 626 | ||
| 627 | static void xch_a_r0(void) { UINT8 tmp = A; A = R0; R0 = tmp; } | |
| 628 | static void xch_a_r1(void) { UINT8 tmp = A; A = R1; R1 = tmp; } | |
| 629 | static void xch_a_r2(void) { UINT8 tmp = A; A = R2; R2 = tmp; } | |
| 630 | static void xch_a_r3(void) { UINT8 tmp = A; A = R3; R3 = tmp; } | |
| 631 | static void xch_a_r4(void) { UINT8 tmp = A; A = R4; R4 = tmp; } | |
| 632 | static void xch_a_r5(void) { UINT8 tmp = A; A = R5; R5 = tmp; } | |
| 633 | static void xch_a_r6(void) { UINT8 tmp = A; A = R6; R6 = tmp; } | |
| 634 | static void xch_a_r7(void) { UINT8 tmp = A; A = R7; R7 = tmp; } | |
| 635 | static void xch_a_xr0(void) { UINT8 tmp = A; A = ram_r(R0); ram_w(R0, tmp); } | |
| 636 | static void xch_a_xr1(void) { UINT8 tmp = A; A = ram_r(R1); ram_w(R1, tmp); } | |
| 637 | ||
| 638 | static void xchd_a_xr0(void) { UINT8 oldram = ram_r(R0); ram_w(R0, (oldram & 0xf0) | (A & 0x0f)); A = (A & 0xf0) | (oldram & 0x0f); } | |
| 639 | static void xchd_a_xr1(void) { UINT8 oldram = ram_r(R1); ram_w(R1, (oldram & 0xf0) | (A & 0x0f)); A = (A & 0xf0) | (oldram & 0x0f); } | |
| 640 | ||
| 641 | static void xrl_a_r0(void) { A ^= R0; } | |
| 642 | static void xrl_a_r1(void) { A ^= R1; } | |
| 643 | static void xrl_a_r2(void) { A ^= R2; } | |
| 644 | static void xrl_a_r3(void) { A ^= R3; } | |
| 645 | static void xrl_a_r4(void) { A ^= R4; } | |
| 646 | static void xrl_a_r5(void) { A ^= R5; } | |
| 647 | static void xrl_a_r6(void) { A ^= R6; } | |
| 648 | static void xrl_a_r7(void) { A ^= R7; } | |
| 649 | static void xrl_a_xr0(void) { A ^= ram_r(R0); } | |
| 650 | static void xrl_a_xr1(void) { A ^= ram_r(R1); } | |
| 651 | static void xrl_a_n(void) { A ^= argument_fetch(PC++); } | |
| 652 | ||
| 653 | ||
| 654 | ||
| 655 | /*************************************************************************** | |
| 656 | OPCODE TABLES | |
| 657 | ***************************************************************************/ | |
| 658 | ||
| 659 | static const mcs48_opcode opcode_table[256]= | |
| 660 | { | |
| 661 | {1, nop },{1, illegal },{2, outl_bus_a},{2, add_a_n },{2, jmp_0 },{1, en_i },{1, illegal },{1, dec_a }, | |
| 662 | {2, ins_a_bus },{2, in_a_p1 },{2, in_a_p2 },{1, illegal },{2, movd_a_p4 },{2, movd_a_p5 },{2, movd_a_p6 },{2, movd_a_p7 }, | |
| 663 | {1, inc_xr0 },{1, inc_xr1 },{2, jb_0 },{2, adc_a_n },{2, call_0 },{1, dis_i },{2, jtf },{1, inc_a }, | |
| 664 | {1, inc_r0 },{1, inc_r1 },{1, inc_r2 },{1, inc_r3 },{1, inc_r4 },{1, inc_r5 },{1, inc_r6 },{1, inc_r7 }, | |
| 665 | {1, xch_a_xr0 },{1, xch_a_xr1 },{1, illegal },{2, mov_a_n },{2, jmp_1 },{1, en_tcnti },{2, jnt_0 },{1, clr_a }, | |
| 666 | {1, xch_a_r0 },{1, xch_a_r1 },{1, xch_a_r2 },{1, xch_a_r3 },{1, xch_a_r4 },{1, xch_a_r5 },{1, xch_a_r6 },{1, xch_a_r7 }, | |
| 667 | {1, xchd_a_xr0 },{1, xchd_a_xr1 },{2, jb_1 },{1, illegal },{2, call_1 },{1, dis_tcnti },{2, jt_0 },{1, cpl_a }, | |
| 668 | {0, illegal },{2, outl_p1_a },{2, outl_p2_a },{1, illegal },{2, movd_p4_a },{2, movd_p5_a },{2, movd_p6_a },{2, movd_p7_a }, | |
| 669 | {1, orl_a_xr0 },{1, orl_a_xr1 },{1, mov_a_t },{2, orl_a_n },{2, jmp_2 },{1, strt_cnt },{2, jnt_1 },{1, swap_a }, | |
| 670 | {1, orl_a_r0 },{1, orl_a_r1 },{1, orl_a_r2 },{1, orl_a_r3 },{1, orl_a_r4 },{1, orl_a_r5 },{1, orl_a_r6 },{1, orl_a_r7 }, | |
| 671 | {1, anl_a_xr0 },{1, anl_a_xr1 },{2, jb_2 },{2, anl_a_n },{2, call_2 },{1, strt_t },{2, jt_1 },{1, da_a }, | |
| 672 | {1, anl_a_r0 },{1, anl_a_r1 },{1, anl_a_r2 },{1, anl_a_r3 },{1, anl_a_r4 },{1, anl_a_r5 },{1, anl_a_r6 },{1, anl_a_r7 }, | |
| 673 | {1, add_a_xr0 },{1, add_a_xr1 },{1, mov_t_a },{1, illegal },{2, jmp_3 },{1, stop_tcnt },{1, illegal },{1, rrc_a }, | |
| 674 | {1, add_a_r0 },{1, add_a_r1 },{1, add_a_r2 },{1, add_a_r3 },{1, add_a_r4 },{1, add_a_r5 },{1, add_a_r6 },{1, add_a_r7 }, | |
| 675 | {1, adc_a_xr0 },{1, adc_a_xr1 },{2, jb_3 },{1, illegal },{2, call_3 },{1, ento_clk },{2, jf1 },{1, rr_a }, | |
| 676 | {1, adc_a_r0 },{1, adc_a_r1 },{1, adc_a_r2 },{1, adc_a_r3 },{1, adc_a_r4 },{1, adc_a_r5 },{1, adc_a_r6 },{1, adc_a_r7 }, | |
| 677 | {2, movx_a_xr0 },{2, movx_a_xr1 },{1, illegal },{2, ret },{2, jmp_4 },{1, clr_f0 },{2, jni },{1, illegal }, | |
| 678 | {2, orl_bus_n },{2, orl_p1_n },{2, orl_p2_n },{1, illegal },{2, orld_p4_a },{2, orld_p5_a },{2, orld_p6_a },{2, orld_p7_a }, | |
| 679 | {2, movx_xr0_a },{2, movx_xr1_a },{2, jb_4 },{2, retr },{2, call_4 },{1, cpl_f0 },{2, jnz },{1, clr_c }, | |
| 680 | {2, anl_bus_n },{2, anl_p1_n },{2, anl_p2_n },{1, illegal },{2, anld_p4_a },{2, anld_p5_a },{2, anld_p6_a },{2, anld_p7_a }, | |
| 681 | {1, mov_xr0_a },{1, mov_xr1_a },{1, illegal },{2, movp_a_xa },{2, jmp_5 },{1, clr_f1 },{1, illegal },{1, cpl_c }, | |
| 682 | {1, mov_r0_a },{1, mov_r1_a },{1, mov_r2_a },{1, mov_r3_a },{1, mov_r4_a },{1, mov_r5_a },{1, mov_r6_a },{1, mov_r7_a }, | |
| 683 | {2, mov_xr0_n },{2, mov_xr1_n },{2, jb_5 },{2, jmpp_xa },{2, call_5 },{1, cpl_f1 },{2, jf0 },{1, illegal }, | |
| 684 | {2, mov_r0_n },{2, mov_r1_n },{2, mov_r2_n },{2, mov_r3_n },{2, mov_r4_n },{2, mov_r5_n },{2, mov_r6_n },{2, mov_r7_n }, | |
| 685 | {0, illegal },{1, illegal },{1, illegal },{1, illegal },{2, jmp_6 },{1, sel_rb0 },{2, jz },{1, mov_a_psw }, | |
| 686 | {1, dec_r0 },{1, dec_r1 },{1, dec_r2 },{1, dec_r3 },{1, dec_r4 },{1, dec_r5 },{1, dec_r6 },{1, dec_r7 }, | |
| 687 | {1, xrl_a_xr0 },{1, xrl_a_xr1 },{2, jb_6 },{2, xrl_a_n },{2, call_6 },{1, sel_rb1 },{1, illegal },{1, mov_psw_a }, | |
| 688 | {1, xrl_a_r0 },{1, xrl_a_r1 },{1, xrl_a_r2 },{1, xrl_a_r3 },{1, xrl_a_r4 },{1, xrl_a_r5 },{1, xrl_a_r6 },{1, xrl_a_r7 }, | |
| 689 | {0, illegal },{1, illegal },{1, illegal },{2, movp3_a_xa},{2, jmp_7 },{1, sel_mb0 },{2, jnc },{1, rl_a }, | |
| 690 | {2, djnz_r0 },{2, djnz_r1 },{2, djnz_r2 },{2, djnz_r3 },{2, djnz_r4 },{2, djnz_r5 },{2, djnz_r6 },{2, djnz_r7 }, | |
| 691 | {1, mov_a_xr0 },{1, mov_a_xr1 },{2, jb_7 },{1, illegal },{2, call_7 },{1, sel_mb1 },{2, jc },{1, rlc_a }, | |
| 692 | {1, mov_a_r0 },{1, mov_a_r1 },{1, mov_a_r2 },{1, mov_a_r3 },{1, mov_a_r4 },{1, mov_a_r5 },{1, mov_a_r6 },{1, mov_a_r7 } | |
| 693 | }; | |
| 694 | ||
| 695 | ||
| 696 | ||
| 697 | /*************************************************************************** | |
| 698 | INITIALIZATION/RESET | |
| 699 | ***************************************************************************/ | |
| 700 | ||
| 701 | /*------------------------------------------------- | |
| 702 | mcs48_init - generic MCS-48 initialization | |
| 703 | -------------------------------------------------*/ | |
| 704 | ||
| 705 | static void mcs48_init(int index, int clock, const void *config, int (*irqcallback)(int), UINT16 romsize) | |
| 706 | { | |
| 707 | memset(&mcs48, 0, sizeof(mcs48)); | |
| 708 | ||
| 709 | mcs48.irq_callback = irqcallback; | |
| 710 | mcs48.int_rom_size = romsize; | |
| 711 | ||
| 712 | state_save_register_item("mcs48", index, mcs48.prevpc.w.l); | |
| 713 | state_save_register_item("mcs48", index, PC); | |
| 714 | state_save_register_item("mcs48", index, A); | |
| 715 | state_save_register_item("mcs48", index, PSW); | |
| 716 | state_save_register_item("mcs48", index, mcs48.p1); | |
| 717 | state_save_register_item("mcs48", index, mcs48.p2); | |
| 718 | state_save_register_item("mcs48", index, mcs48.f1); | |
| 719 | state_save_register_item("mcs48", index, mcs48.ea); | |
| 720 | state_save_register_item("mcs48", index, mcs48.timer); | |
| 721 | state_save_register_item("mcs48", index, mcs48.prescaler); | |
| 722 | state_save_register_item("mcs48", index, mcs48.t1_history); | |
| 723 | state_save_register_item("mcs48", index, mcs48.irq_state); | |
| 724 | state_save_register_item("mcs48", index, mcs48.irq_in_progress); | |
| 725 | state_save_register_item("mcs48", index, mcs48.timer_overflow); | |
| 726 | state_save_register_item("mcs48", index, mcs48.timer_flag); | |
| 727 | state_save_register_item("mcs48", index, mcs48.tirq_enabled); | |
| 728 | state_save_register_item("mcs48", index, mcs48.xirq_enabled); | |
| 729 | state_save_register_item("mcs48", index, mcs48.timecount_enabled); | |
| 730 | state_save_register_item("mcs48", index, mcs48.a11); | |
| 731 | } | |
| 732 | ||
| 733 | ||
| 734 | /*------------------------------------------------- | |
| 735 | i8035_init - initialization for systems with | |
| 736 | 1k of internal ROM and 64 bytes of internal | |
| 737 | RAM | |
| 738 | -------------------------------------------------*/ | |
| 739 | ||
| 740 | #if (HAS_I8035 || HAS_I8041 || HAS_I8048 || HAS_I8648 || HAS_I8748 || HAS_MB8884 || HAS_N7751) | |
| 741 | static void i8035_init(int index, int clock, const void *config, int (*irqcallback)(int)) | |
| 742 | { | |
| 743 | mcs48_init(index, clock, config, irqcallback, 0x400); | |
| 744 | } | |
| 745 | #endif | |
| 746 | ||
| 747 | ||
| 748 | /*------------------------------------------------- | |
| 749 | i8039_init - initialization for systems with | |
| 750 | 2k of internal ROM and 128 bytes of internal | |
| 751 | RAM | |
| 752 | -------------------------------------------------*/ | |
| 753 | ||
| 754 | #if (HAS_I8039 || HAS_I8049 || HAS_I8749 || HAS_M58715) | |
| 755 | static void i8039_init(int index, int clock, const void *config, int (*irqcallback)(int)) | |
| 756 | { | |
| 757 | mcs48_init(index, clock, config, irqcallback, 0x800); | |
| 758 | } | |
| 759 | #endif | |
| 760 | ||
| 761 | ||
| 762 | /*------------------------------------------------- | |
| 763 | mcs48_reset - general reset routine | |
| 764 | -------------------------------------------------*/ | |
| 765 | ||
| 766 | static void mcs48_reset(void) | |
| 767 | { | |
| 768 | /* confirmed from reset description */ | |
| 769 | PC = 0; | |
| 770 | PSW = (PSW & (C_FLAG | A_FLAG)) | 0x08; | |
| 771 | mcs48.a11 = 0x000; | |
| 772 | bus_w(0xff); | |
| 773 | mcs48.p1 = 0xff; | |
| 774 | mcs48.p2 = 0xff; | |
| 775 | mcs48.tirq_enabled = FALSE; | |
| 776 | mcs48.xirq_enabled = FALSE; | |
| 777 | mcs48.timecount_enabled = 0; | |
| 778 | mcs48.timer_flag = FALSE; | |
| 779 | mcs48.f1 = 0; | |
| 780 | ||
| 781 | /* confirmed from interrupt logic description */ | |
| 782 | mcs48.irq_in_progress = FALSE; | |
| 783 | mcs48.timer_overflow = FALSE; | |
| 784 | } | |
| 785 | ||
| 786 | ||
| 787 | ||
| 788 | /*************************************************************************** | |
| 789 | EXECUTION | |
| 790 | ***************************************************************************/ | |
| 791 | ||
| 792 | /*------------------------------------------------- | |
| 793 | check_irqs - check for and process IRQs | |
| 794 | -------------------------------------------------*/ | |
| 795 | ||
| 796 | static void check_irqs(void) | |
| 797 | { | |
| 798 | /* if something is in progress, we do nothing */ | |
| 799 | if (mcs48.irq_in_progress) | |
| 800 | return; | |
| 801 | ||
| 802 | /* external interrupts take priority */ | |
| 803 | if (mcs48.irq_state && mcs48.xirq_enabled) | |
| 804 | { | |
| 805 | mcs48.irq_in_progress = TRUE; | |
| 806 | ||
| 807 | /* transfer to location 0x03 */ | |
| 808 | push_pc_psw(); | |
| 809 | PC = 0x03; | |
| 810 | change_pc(0x03); | |
| 811 | mcs48.inst_cycles += 2; | |
| 812 | ||
| 813 | /* indicate we took the external IRQ */ | |
| 814 | if (mcs48.irq_callback != NULL) | |
| 815 | (*mcs48.irq_callback)(0); | |
| 816 | } | |
| 817 | ||
| 818 | /* timer overflow interrupts follow */ | |
| 819 | if (mcs48.timer_overflow && mcs48.tirq_enabled) | |
| 820 | { | |
| 821 | mcs48.irq_in_progress = TRUE; | |
| 822 | ||
| 823 | /* transfer to location 0x07 */ | |
| 824 | push_pc_psw(); | |
| 825 | PC = 0x07; | |
| 826 | change_pc(0x07); | |
| 827 | mcs48.inst_cycles += 2; | |
| 828 | ||
| 829 | /* timer overflow flip-flop is reset once taken */ | |
| 830 | mcs48.timer_overflow = FALSE; | |
| 831 | } | |
| 832 | } | |
| 833 | ||
| 834 | ||
| 835 | /*------------------------------------------------- | |
| 836 | burn_cycles - burn cycles, processing timers | |
| 837 | and counters | |
| 838 | -------------------------------------------------*/ | |
| 839 | ||
| 840 | static void burn_cycles(int count) | |
| 841 | { | |
| 842 | int timerover = FALSE; | |
| 843 | ||
| 844 | /* if the timer is enabled, accumulate prescaler cycles */ | |
| 845 | if (mcs48.timecount_enabled & TIMER_ENABLED) | |
| 846 | { | |
| 847 | mcs48.prescaler += count; | |
| 848 | mcs48.timer += mcs48.prescaler >> 5; | |
| 849 | mcs48.prescaler &= 0x1f; | |
| 850 | timerover = (mcs48.timer == 0); | |
| 851 | } | |
| 852 | ||
| 853 | /* if the counter is enabled, poll the T1 test input once for each cycle */ | |
| 854 | else if (mcs48.timecount_enabled & COUNTER_ENABLED) | |
| 855 | for ( ; count > 0; count--) | |
| 856 | { | |
| 857 | mcs48.t1_history = (mcs48.t1_history << 1) | (test_r(1) & 1); | |
| 858 | if ((mcs48.t1_history & 3) == 2) | |
| 859 | timerover = (++mcs48.timer == 0); | |
| 860 | } | |
| 861 | ||
| 862 | /* if either source caused a timer overflow, set the flags and check IRQs */ | |
| 863 | if (timerover) | |
| 864 | { | |
| 865 | mcs48.timer_flag = TRUE; | |
| 866 | ||
| 867 | /* according to the docs, if an overflow occurs with interrupts disabled, the overflow is not stored */ | |
| 868 | if (mcs48.tirq_enabled) | |
| 869 | { | |
| 870 | mcs48.timer_overflow = TRUE; | |
| 871 | check_irqs(); | |
| 872 | } | |
| 873 | } | |
| 874 | } | |
| 875 | ||
| 876 | ||
| 877 | /*------------------------------------------------- | |
| 878 | mcs48_execute - execute until we run out | |
| 879 | of cycles | |
| 880 | -------------------------------------------------*/ | |
| 881 | ||
| 882 | static int mcs48_execute(int cycles) | |
| 883 | { | |
| 884 | unsigned opcode; | |
| 885 | ||
| 886 | mcs48_icount = cycles; | |
| 887 | ||
| 888 | /* external interrupts may have been set since we last checked */ | |
| 889 | mcs48.inst_cycles = 0; | |
| 890 | check_irqs(); | |
| 891 | mcs48_icount -= mcs48.inst_cycles; | |
| 892 | if (mcs48.timecount_enabled != 0) | |
| 893 | burn_cycles(mcs48.inst_cycles); | |
| 894 | ||
| 895 | /* iterate over remaining cycles, guaranteeing at least one instruction */ | |
| 896 | do | |
| 897 | { | |
| 898 | /* fetch next opcode */ | |
| 899 | mcs48.prevpc = mcs48.pc; | |
| 900 | debugger_instruction_hook(Machine, PC); | |
| 901 | opcode = opcode_fetch(PC++); | |
| 902 | ||
| 903 | /* process opcode and count cycles */ | |
| 904 | mcs48.inst_cycles = opcode_table[opcode].cycles; | |
| 905 | (*opcode_table[opcode].function)(); | |
| 906 | ||
| 907 | /* burn the cycles */ | |
| 908 | mcs48_icount -= mcs48.inst_cycles; | |
| 909 | if (mcs48.timecount_enabled != 0) | |
| 910 | burn_cycles(mcs48.inst_cycles); | |
| 911 | ||
| 912 | } while (mcs48_icount > 0); | |
| 913 | ||
| 914 | return cycles - mcs48_icount; | |
| 915 | } | |
| 916 | ||
| 917 | ||
| 918 | ||
| 919 | /*************************************************************************** | |
| 920 | ADDRESS MAPS | |
| 921 | ***************************************************************************/ | |
| 922 | ||
| 923 | static ADDRESS_MAP_START(program_10bit, ADDRESS_SPACE_PROGRAM, 8) | |
| 924 | AM_RANGE(0x00, 0x3ff) AM_ROM | |
| 925 | ADDRESS_MAP_END | |
| 926 | ||
| 927 | static ADDRESS_MAP_START(program_11bit, ADDRESS_SPACE_PROGRAM, 8) | |
| 928 | AM_RANGE(0x00, 0x7ff) AM_ROM | |
| 929 | ADDRESS_MAP_END | |
| 930 | ||
| 931 | static ADDRESS_MAP_START(data_6bit, ADDRESS_SPACE_DATA, 8) | |
| 932 | AM_RANGE(0x00, 0x3f) AM_RAM | |
| 933 | ADDRESS_MAP_END | |
| 934 | ||
| 935 | static ADDRESS_MAP_START(data_7bit, ADDRESS_SPACE_DATA, 8) | |
| 936 | AM_RANGE(0x00, 0x7f) AM_RAM | |
| 937 | ADDRESS_MAP_END | |
| 938 | ||
| 939 | ||
| 940 | ||
| 941 | /*************************************************************************** | |
| 942 | GENERAL CONTEXT ACCESS | |
| 943 | ***************************************************************************/ | |
| 944 | ||
| 945 | /*------------------------------------------------- | |
| 946 | mcs48_get_context - copy the context to the | |
| 947 | destination | |
| 948 | -------------------------------------------------*/ | |
| 949 | ||
| 950 | static void mcs48_get_context(void *dst) | |
| 951 | { | |
| 952 | if (dst != NULL) | |
| 953 | *(mcs48_regs *)dst = mcs48; | |
| 954 | } | |
| 955 | ||
| 956 | ||
| 957 | /*------------------------------------------------- | |
| 958 | mcs48_set_context - set the current context | |
| 959 | from the source | |
| 960 | -------------------------------------------------*/ | |
| 961 | ||
| 962 | static void mcs48_set_context(void *src) | |
| 963 | { | |
| 964 | if (src != NULL) | |
| 965 | { | |
| 966 | mcs48 = *(mcs48_regs *)src; | |
| 967 | update_regptr(); | |
| 968 | change_pc(PC); | |
| 969 | } | |
| 970 | } | |
| 971 | ||
| 972 | ||
| 973 | /*------------------------------------------------- | |
| 974 | mcs48_set_info - set a piece of information | |
| 975 | on the CPU core | |
| 976 | -------------------------------------------------*/ | |
| 977 | ||
| 978 | static void mcs48_set_info(UINT32 state, cpuinfo *info) | |
| 979 | { | |
| 980 | switch (state) | |
| 981 | { | |
| 982 | /* --- the following bits of info are set as 64-bit signed integers --- */ | |
| 983 | case CPUINFO_INT_INPUT_STATE + MCS48_INPUT_IRQ: mcs48.irq_state = (info->i != CLEAR_LINE); break; | |
| 984 | case CPUINFO_INT_INPUT_STATE + MCS48_INPUT_EA: mcs48.ea = info->i; break; | |
| 985 | ||
| 986 | case CPUINFO_INT_PC: | |
| 987 | case CPUINFO_INT_REGISTER + MCS48_PC: PC = info->i; break; | |
| 988 | case CPUINFO_INT_SP: | |
| 989 | case CPUINFO_INT_REGISTER + MCS48_PSW: PSW = info->i; break; | |
| 990 | case CPUINFO_INT_REGISTER + MCS48_A: A = info->i; break; | |
| 991 | case CPUINFO_INT_REGISTER + MCS48_TC: mcs48.timer = info->i; break; | |
| 992 | case CPUINFO_INT_REGISTER + MCS48_P1: mcs48.p1 = info->i; break; | |
| 993 | case CPUINFO_INT_REGISTER + MCS48_P2: mcs48.p2 = info->i; break; | |
| 994 | case CPUINFO_INT_REGISTER + MCS48_R0: R0 = info->i; break; | |
| 995 | case CPUINFO_INT_REGISTER + MCS48_R1: R1 = info->i; break; | |
| 996 | case CPUINFO_INT_REGISTER + MCS48_R2: R2 = info->i; break; | |
| 997 | case CPUINFO_INT_REGISTER + MCS48_R3: R3 = info->i; break; | |
| 998 | case CPUINFO_INT_REGISTER + MCS48_R4: R4 = info->i; break; | |
| 999 | case CPUINFO_INT_REGISTER + MCS48_R5: R5 = info->i; break; | |
| 1000 | case CPUINFO_INT_REGISTER + MCS48_R6: R6 = info->i; break; | |
| 1001 | case CPUINFO_INT_REGISTER + MCS48_R7: R7 = info->i; break; | |
| 1002 | case CPUINFO_INT_REGISTER + MCS48_EA: mcs48.ea = info->i; break; | |
| 1003 | } | |
| 1004 | } | |
| 1005 | ||
| 1006 | ||
| 1007 | /*------------------------------------------------- | |
| 1008 | mcs48_get_info - retrieve a piece of | |
| 1009 | information from the CPU core | |
| 1010 | -------------------------------------------------*/ | |
| 1011 | ||
| 1012 | static void mcs48_get_info(UINT32 state, cpuinfo *info) | |
| 1013 | { | |
| 1014 | switch (state) | |
| 1015 | { | |
| 1016 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1017 | case CPUINFO_INT_CONTEXT_SIZE: info->i = sizeof(mcs48); break; | |
| 1018 | case CPUINFO_INT_INPUT_LINES: info->i = 2; break; | |
| 1019 | case CPUINFO_INT_DEFAULT_IRQ_VECTOR: info->i = MCS48_INPUT_IRQ; break; | |
| 1020 | case CPUINFO_INT_ENDIANNESS: info->i = CPU_IS_LE; break; | |
| 1021 | case CPUINFO_INT_CLOCK_MULTIPLIER: info->i = 1; break; | |
| 1022 | case CPUINFO_INT_CLOCK_DIVIDER: info->i = 3*5; break; | |
| 1023 | case CPUINFO_INT_MIN_INSTRUCTION_BYTES: info->i = 1; break; | |
| 1024 | case CPUINFO_INT_MAX_INSTRUCTION_BYTES: info->i = 2; break; | |
| 1025 | case CPUINFO_INT_MIN_CYCLES: info->i = 1; break; | |
| 1026 | case CPUINFO_INT_MAX_CYCLES: info->i = 3; break; | |
| 1027 | ||
| 1028 | case CPUINFO_INT_DATABUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 8; break; | |
| 1029 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: /*info->i = 10 or 11 or 12;*/ break; | |
| 1030 | case CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACE_PROGRAM: info->i = 0; break; | |
| 1031 | case CPUINFO_INT_DATABUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 8; break; | |
| 1032 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: /*info->i = 6 or 7;*/ break; | |
| 1033 | case CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACE_DATA: info->i = 0; break; | |
| 1034 | case CPUINFO_INT_DATABUS_WIDTH + ADDRESS_SPACE_IO: info->i = 8; break; | |
| 1035 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_IO: info->i = 9; break; | |
| 1036 | case CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACE_IO: info->i = 0; break; | |
| 1037 | ||
| 1038 | case CPUINFO_INT_INPUT_STATE + MCS48_INPUT_IRQ: info->i = mcs48.irq_state ? ASSERT_LINE : CLEAR_LINE; break; | |
| 1039 | case CPUINFO_INT_INPUT_STATE + MCS48_INPUT_EA: info->i = mcs48.ea; break; | |
| 1040 | ||
| 1041 | case CPUINFO_INT_PREVIOUSPC: info->i = mcs48.prevpc.w.l; break; | |
| 1042 | ||
| 1043 | case CPUINFO_INT_PC: | |
| 1044 | case CPUINFO_INT_REGISTER + MCS48_PC: info->i = PC; break; | |
| 1045 | case CPUINFO_INT_REGISTER + MCS48_PSW: info->i = PSW; break; | |
| 1046 | case CPUINFO_INT_REGISTER + MCS48_A: info->i = A; break; | |
| 1047 | case CPUINFO_INT_REGISTER + MCS48_TC: info->i = mcs48.timer; break; | |
| 1048 | case CPUINFO_INT_REGISTER + MCS48_P1: info->i = mcs48.p1; break; | |
| 1049 | case CPUINFO_INT_REGISTER + MCS48_P2: info->i = mcs48.p2; break; | |
| 1050 | case CPUINFO_INT_REGISTER + MCS48_R0: info->i = R0; break; | |
| 1051 | case CPUINFO_INT_REGISTER + MCS48_R1: info->i = R1; break; | |
| 1052 | case CPUINFO_INT_REGISTER + MCS48_R2: info->i = R2; break; | |
| 1053 | case CPUINFO_INT_REGISTER + MCS48_R3: info->i = R3; break; | |
| 1054 | case CPUINFO_INT_REGISTER + MCS48_R4: info->i = R4; break; | |
| 1055 | case CPUINFO_INT_REGISTER + MCS48_R5: info->i = R5; break; | |
| 1056 | case CPUINFO_INT_REGISTER + MCS48_R6: info->i = R6; break; | |
| 1057 | case CPUINFO_INT_REGISTER + MCS48_R7: info->i = R7; break; | |
| 1058 | case CPUINFO_INT_REGISTER + MCS48_EA: info->i = mcs48.ea; break; | |
| 1059 | ||
| 1060 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1061 | case CPUINFO_PTR_SET_INFO: info->setinfo = mcs48_set_info; break; | |
| 1062 | case CPUINFO_PTR_GET_CONTEXT: info->getcontext = mcs48_get_context; break; | |
| 1063 | case CPUINFO_PTR_SET_CONTEXT: info->setcontext = mcs48_set_context; break; | |
| 1064 | case CPUINFO_PTR_INIT: /*info->init = i8039_init;*/ break; | |
| 1065 | case CPUINFO_PTR_RESET: info->reset = mcs48_reset; break; | |
| 1066 | case CPUINFO_PTR_EXECUTE: info->execute = mcs48_execute; break; | |
| 1067 | case CPUINFO_PTR_BURN: info->burn = NULL; break; | |
| 1068 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = mcs48_dasm; break; | |
| 1069 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &mcs48_icount; break; | |
| 1070 | ||
| 1071 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: /*info->internal_map8 = address_map_program_10bit;*/ break; | |
| 1072 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: /*info->internal_map8 = address_map_data_7bit;*/ break; | |
| 1073 | ||
| 1074 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1075 | case CPUINFO_STR_NAME: /*strcpy(info->s, "I8039");*/ break; | |
| 1076 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "Intel 8039"); break; | |
| 1077 | case CPUINFO_STR_CORE_VERSION: strcpy(info->s, "1.2"); break; | |
| 1078 | case CPUINFO_STR_CORE_FILE: strcpy(info->s, __FILE__); break; | |
| 1079 | case CPUINFO_STR_CORE_CREDITS: strcpy(info->s, "Copyright Mirko Buffoni\nBased on the original work Copyright Dan Boris"); break; | |
| 1080 | ||
| 1081 | case CPUINFO_STR_FLAGS: | |
| 1082 | sprintf(info->s, "%c %c%c%c%c%c%c%c%c", | |
| 1083 | mcs48.a11 ? 'M':'.', | |
| 1084 | PSW & 0x80 ? 'C':'.', | |
| 1085 | PSW & 0x40 ? 'a':'.', | |
| 1086 | PSW & 0x20 ? 'F':'.', | |
| 1087 | PSW & 0x10 ? 'B':'.', | |
| 1088 | PSW & 0x08 ? '?':'.', | |
| 1089 | PSW & 0x04 ? '4':'.', | |
| 1090 | PSW & 0x02 ? '2':'.', | |
| 1091 | PSW & 0x01 ? '1':'.'); | |
| 1092 | break; | |
| 1093 | ||
| 1094 | case CPUINFO_STR_REGISTER + MCS48_PC: sprintf(info->s, "PC:%04X", PC); break; | |
| 1095 | case CPUINFO_STR_REGISTER + MCS48_PSW: sprintf(info->s, "PSW:%02X", PSW); break; | |
| 1096 | case CPUINFO_STR_REGISTER + MCS48_A: sprintf(info->s, "A:%02X", A); break; | |
| 1097 | case CPUINFO_STR_REGISTER + MCS48_TC: sprintf(info->s, "TC:%02X", mcs48.timer); break; | |
| 1098 | case CPUINFO_STR_REGISTER + MCS48_P1: sprintf(info->s, "P1:%02X", mcs48.p1); break; | |
| 1099 | case CPUINFO_STR_REGISTER + MCS48_P2: sprintf(info->s, "P2:%02X", mcs48.p2); break; | |
| 1100 | case CPUINFO_STR_REGISTER + MCS48_R0: sprintf(info->s, "R0:%02X", R0); break; | |
| 1101 | case CPUINFO_STR_REGISTER + MCS48_R1: sprintf(info->s, "R1:%02X", R1); break; | |
| 1102 | case CPUINFO_STR_REGISTER + MCS48_R2: sprintf(info->s, "R2:%02X", R2); break; | |
| 1103 | case CPUINFO_STR_REGISTER + MCS48_R3: sprintf(info->s, "R3:%02X", R3); break; | |
| 1104 | case CPUINFO_STR_REGISTER + MCS48_R4: sprintf(info->s, "R4:%02X", R4); break; | |
| 1105 | case CPUINFO_STR_REGISTER + MCS48_R5: sprintf(info->s, "R5:%02X", R5); break; | |
| 1106 | case CPUINFO_STR_REGISTER + MCS48_R6: sprintf(info->s, "R6:%02X", R6); break; | |
| 1107 | case CPUINFO_STR_REGISTER + MCS48_R7: sprintf(info->s, "R7:%02X", R7); break; | |
| 1108 | case CPUINFO_STR_REGISTER + MCS48_EA: sprintf(info->s, "EA:%02X", mcs48.ea); break; | |
| 1109 | } | |
| 1110 | } | |
| 1111 | ||
| 1112 | ||
| 1113 | ||
| 1114 | /*************************************************************************** | |
| 1115 | CPU-SPECIFIC CONTEXT ACCESS | |
| 1116 | ***************************************************************************/ | |
| 1117 | ||
| 1118 | #if (HAS_I8035) | |
| 1119 | void i8035_get_info(UINT32 state, cpuinfo *info) | |
| 1120 | { | |
| 1121 | switch (state) | |
| 1122 | { | |
| 1123 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 12; break; | |
| 1124 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 6; break; | |
| 1125 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_6bit; break; | |
| 1126 | case CPUINFO_PTR_INIT: info->init = i8035_init; break; | |
| 1127 | case CPUINFO_STR_NAME: strcpy(info->s, "I8035"); break; | |
| 1128 | default: mcs48_get_info(state, info); break; | |
| 1129 | } | |
| 1130 | } | |
| 1131 | #endif | |
| 1132 | ||
| 1133 | #if (HAS_I8041) | |
| 1134 | void i8041_get_info(UINT32 state, cpuinfo *info) | |
| 1135 | { | |
| 1136 | switch (state) | |
| 1137 | { | |
| 1138 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 10; break; | |
| 1139 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 6; break; | |
| 1140 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map8 = address_map_program_10bit; break; | |
| 1141 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_6bit; break; | |
| 1142 | case CPUINFO_PTR_INIT: info->init = i8035_init; break; | |
| 1143 | case CPUINFO_STR_NAME: strcpy(info->s, "I8041"); break; | |
| 1144 | default: mcs48_get_info(state, info); break; | |
| 1145 | } | |
| 1146 | } | |
| 1147 | #endif | |
| 1148 | ||
| 1149 | #if (HAS_I8048) | |
| 1150 | void i8048_get_info(UINT32 state, cpuinfo *info) | |
| 1151 | { | |
| 1152 | switch (state) | |
| 1153 | { | |
| 1154 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 10; break; | |
| 1155 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 6; break; | |
| 1156 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map8 = address_map_program_10bit; break; | |
| 1157 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_6bit; break; | |
| 1158 | case CPUINFO_PTR_INIT: info->init = i8035_init; break; | |
| 1159 | case CPUINFO_STR_NAME: strcpy(info->s, "I8048"); break; | |
| 1160 | default: mcs48_get_info(state, info); break; | |
| 1161 | } | |
| 1162 | } | |
| 1163 | #endif | |
| 1164 | ||
| 1165 | #if (HAS_I8648) | |
| 1166 | void i8648_get_info(UINT32 state, cpuinfo *info) | |
| 1167 | { | |
| 1168 | switch (state) | |
| 1169 | { | |
| 1170 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 10; break; | |
| 1171 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 6; break; | |
| 1172 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map8 = address_map_program_10bit; break; | |
| 1173 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_6bit; break; | |
| 1174 | case CPUINFO_PTR_INIT: info->init = i8035_init; break; | |
| 1175 | case CPUINFO_STR_NAME: strcpy(info->s, "I8648"); break; | |
| 1176 | default: mcs48_get_info(state, info); break; | |
| 1177 | } | |
| 1178 | } | |
| 1179 | #endif | |
| 1180 | ||
| 1181 | #if (HAS_I8748) | |
| 1182 | void i8748_get_info(UINT32 state, cpuinfo *info) | |
| 1183 | { | |
| 1184 | switch (state) | |
| 1185 | { | |
| 1186 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 10; break; | |
| 1187 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 6; break; | |
| 1188 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map8 = address_map_program_10bit; break; | |
| 1189 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_6bit; break; | |
| 1190 | case CPUINFO_PTR_INIT: info->init = i8035_init; break; | |
| 1191 | case CPUINFO_STR_NAME: strcpy(info->s, "I8748"); break; | |
| 1192 | default: mcs48_get_info(state, info); break; | |
| 1193 | } | |
| 1194 | } | |
| 1195 | #endif | |
| 1196 | ||
| 1197 | #if (HAS_MB8884) | |
| 1198 | void mb8884_get_info(UINT32 state, cpuinfo *info) | |
| 1199 | { | |
| 1200 | switch (state) | |
| 1201 | { | |
| 1202 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 10; break; | |
| 1203 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 6; break; | |
| 1204 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map8 = address_map_program_10bit; break; | |
| 1205 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_6bit; break; | |
| 1206 | case CPUINFO_PTR_INIT: info->init = i8035_init; break; | |
| 1207 | case CPUINFO_STR_NAME: strcpy(info->s, "MB8884"); break; | |
| 1208 | default: mcs48_get_info(state, info); break; | |
| 1209 | } | |
| 1210 | } | |
| 1211 | #endif | |
| 1212 | ||
| 1213 | #if (HAS_N7751) | |
| 1214 | void n7751_get_info(UINT32 state, cpuinfo *info) | |
| 1215 | { | |
| 1216 | switch (state) | |
| 1217 | { | |
| 1218 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 10; break; | |
| 1219 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 6; break; | |
| 1220 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map8 = address_map_program_10bit; break; | |
| 1221 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_6bit; break; | |
| 1222 | case CPUINFO_PTR_INIT: info->init = i8035_init; break; | |
| 1223 | case CPUINFO_STR_NAME: strcpy(info->s, "N7751"); break; | |
| 1224 | default: mcs48_get_info(state, info); break; | |
| 1225 | } | |
| 1226 | } | |
| 1227 | #endif | |
| 1228 | ||
| 1229 | ||
| 1230 | ||
| 1231 | #if (HAS_I8039) | |
| 1232 | void i8039_get_info(UINT32 state, cpuinfo *info) | |
| 1233 | { | |
| 1234 | switch (state) | |
| 1235 | { | |
| 1236 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 12; break; | |
| 1237 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 7; break; | |
| 1238 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_7bit; break; | |
| 1239 | case CPUINFO_PTR_INIT: info->init = i8039_init; break; | |
| 1240 | case CPUINFO_STR_NAME: strcpy(info->s, "I8039"); break; | |
| 1241 | default: mcs48_get_info(state, info); break; | |
| 1242 | } | |
| 1243 | } | |
| 1244 | #endif | |
| 1245 | ||
| 1246 | #if (HAS_I8049) | |
| 1247 | void i8049_get_info(UINT32 state, cpuinfo *info) | |
| 1248 | { | |
| 1249 | switch (state) | |
| 1250 | { | |
| 1251 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 11; break; | |
| 1252 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 7; break; | |
| 1253 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map8 = address_map_program_11bit; break; | |
| 1254 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_7bit; break; | |
| 1255 | case CPUINFO_PTR_INIT: info->init = i8039_init; break; | |
| 1256 | case CPUINFO_STR_NAME: strcpy(info->s, "I8049"); break; | |
| 1257 | default: mcs48_get_info(state, info); break; | |
| 1258 | } | |
| 1259 | } | |
| 1260 | #endif | |
| 1261 | ||
| 1262 | #if (HAS_I8749) | |
| 1263 | void i8749_get_info(UINT32 state, cpuinfo *info) | |
| 1264 | { | |
| 1265 | switch (state) | |
| 1266 | { | |
| 1267 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 11; break; | |
| 1268 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 7; break; | |
| 1269 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: info->internal_map8 = address_map_program_11bit; break; | |
| 1270 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_7bit; break; | |
| 1271 | case CPUINFO_PTR_INIT: info->init = i8039_init; break; | |
| 1272 | case CPUINFO_STR_NAME: strcpy(info->s, "I8749"); break; | |
| 1273 | default: mcs48_get_info(state, info); break; | |
| 1274 | } | |
| 1275 | } | |
| 1276 | #endif | |
| 1277 | ||
| 1278 | #if (HAS_M58715) | |
| 1279 | void m58715_get_info(UINT32 state, cpuinfo *info) | |
| 1280 | { | |
| 1281 | switch (state) | |
| 1282 | { | |
| 1283 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_PROGRAM: info->i = 12; break; | |
| 1284 | case CPUINFO_INT_ADDRBUS_WIDTH + ADDRESS_SPACE_DATA: info->i = 7; break; | |
| 1285 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map8 = address_map_data_7bit; break; | |
| 1286 | case CPUINFO_PTR_INIT: info->init = i8039_init; break; | |
| 1287 | case CPUINFO_STR_NAME: strcpy(info->s, "M58715"); break; | |
| 1288 | default: mcs48_get_info(state, info); break; | |
| 1289 | } | |
| 1290 | } | |
| 1291 | #endif |
| r0 | r3116 | |
|---|---|---|
| 1 | /**************************************************************************** | |
| 2 | * | |
| 3 | * mcs48 disassembler | |
| 4 | * | |
| 5 | * This file is Copyright Michael Cuddy, Fen's Ende Sofware. | |
| 6 | * Redistribution is allowed in source and binary form as long as both | |
| 7 | * forms are distributed together with the file 'README'. This copyright | |
| 8 | * notice must also accompany the files. | |
| 9 | * | |
| 10 | * This software should be considered a small token to all of the | |
| 11 | * emulator authors for thier dilligence in preserving our Arcade and | |
| 12 | * Computer history. | |
| 13 | * | |
| 14 | * Michael Cuddy, Fen's Ende Software. | |
| 15 | * 11/25/1996 | |
| 16 | * | |
| 17 | * Adapted by Andrea Mazzoleni for use with MAME | |
| 18 | * | |
| 19 | ***************************************************************************/ | |
| 20 | ||
| 21 | #include <ctype.h> | |
| 22 | ||
| 23 | #include "cpuintrf.h" | |
| 24 | ||
| 25 | #define mame_printf_debug printf | |
| 26 | ||
| 27 | typedef unsigned char byte; | |
| 28 | ||
| 29 | #define FMT(a,b) a, b | |
| 30 | #define PTRS_PER_FORMAT 2 | |
| 31 | ||
| 32 | static const char *const Formats[] = { | |
| 33 | FMT("00000011dddddddd", "add a,#$%X"), | |
| 34 | FMT("01101rrr", "add a,%R"), | |
| 35 | FMT("0110000r", "add a,@%R"), | |
| 36 | FMT("00010011dddddddd", "adc a,#$%X"), | |
| 37 | FMT("01111rrr", "adc a,%R"), | |
| 38 | FMT("0111000r", "adc a,@%R"), | |
| 39 | FMT("01010011dddddddd", "anl a,#$%X"), | |
| 40 | FMT("01011rrr", "anl a,%R"), | |
| 41 | FMT("0101000r", "anl a,@%R"), | |
| 42 | FMT("10011000dddddddd", "anl bus,#$%X"), | |
| 43 | FMT("10011001dddddddd", "anl p1,#$%X"), | |
| 44 | FMT("10011010dddddddd", "anl p2,#$%X"), | |
| 45 | FMT("100111pp", "anld %P,a"), | |
| 46 | FMT("aaa10100aaaaaaaa", "!call %A"), | |
| 47 | FMT("00100111", "clr a"), | |
| 48 | FMT("10010111", "clr c"), | |
| 49 | FMT("10100101", "clr f1"), | |
| 50 | FMT("10000101", "clr f0"), | |
| 51 | FMT("00110111", "cpl a"), | |
| 52 | FMT("10100111", "cpl c"), | |
| 53 | FMT("10010101", "cpl f0"), | |
| 54 | FMT("10110101", "cpl f1"), | |
| 55 | FMT("01010111", "da a"), | |
| 56 | FMT("00000111", "dec a"), | |
| 57 | FMT("11001rrr", "dec %R"), | |
| 58 | FMT("00010101", "dis i"), | |
| 59 | FMT("00110101", "dis tcnti"), | |
| 60 | FMT("11101rrraaaaaaaa", "!djnz %R,%J"), | |
| 61 | FMT("00000101", "en i"), | |
| 62 | FMT("00100101", "en tcnti"), | |
| 63 | FMT("01110101", "ent0 clk"), | |
| 64 | FMT("00001001", "in a,p1"), | |
| 65 | FMT("00001010", "in a,p2"), | |
| 66 | FMT("00010111", "inc a"), | |
| 67 | FMT("00011rrr", "inc %R"), | |
| 68 | FMT("0001000r", "inc @%R"), | |
| 69 | FMT("00001000", "ins a,bus"), | |
| 70 | FMT("0001 0110aaaaaaaa", "jtf %J"), | |
| 71 | FMT("0010 0110aaaaaaaa", "jnt0 %J"), | |
| 72 | FMT("0011 0110aaaaaaaa", "jt0 %J"), | |
| 73 | FMT("0100 0110aaaaaaaa", "jnt1 %J"), | |
| 74 | FMT("0101 0110aaaaaaaa", "jt1 %J"), | |
| 75 | FMT("0111 0110aaaaaaaa", "jf1 %J"), | |
| 76 | FMT("1000 0110aaaaaaaa", "jni %J"), | |
| 77 | FMT("1001 0110aaaaaaaa", "jnz %J"), | |
| 78 | FMT("1011 0110aaaaaaaa", "jf0 %J"), | |
| 79 | FMT("1100 0110aaaaaaaa", "jz %J"), | |
| 80 | FMT("1110 0110aaaaaaaa", "jnc %J"), | |
| 81 | FMT("1111 0110aaaaaaaa", "jc %J"), | |
| 82 | FMT("bbb10010aaaaaaaa", "jb%B %J"), | |
| 83 | FMT("aaa00100aaaaaaaa", "jmp %A"), | |
| 84 | FMT("10110011", "jmpp @a"), | |
| 85 | FMT("00100011dddddddd", "mov a,#$%X"), | |
| 86 | FMT("11111rrr", "mov a,%R"), | |
| 87 | FMT("1111000r", "mov a,@%R"), | |
| 88 | FMT("11000111", "mov a,psw"), | |
| 89 | FMT("10111rrrdddddddd", "mov %R,#$%X"), | |
| 90 | FMT("10101rrr", "mov %R,a"), | |
| 91 | FMT("1010000r", "mov @%R,a"), | |
| 92 | FMT("1011000rdddddddd", "mov @%R,#$%X"), | |
| 93 | FMT("11010111", "mov psw,a"), | |
| 94 | FMT("000011pp", "movd a,%P"), | |
| 95 | FMT("001111pp", "movd %P,a"), | |
| 96 | FMT("01000010", "mov a,t"), | |
| 97 | FMT("01100010", "mov t,a"), | |
| 98 | FMT("11100011", "movp3 a,@a"), | |
| 99 | FMT("10100011", "movp a,@a"), | |
| 100 | FMT("1000000r", "movx a,@%R"), | |
| 101 | FMT("1001000r", "movx @%R,a"), | |
| 102 | FMT("0100 1rrr", "orl a,%R"), | |
| 103 | FMT("0100 000r", "orl a,@%R"), | |
| 104 | FMT("0100 0011dddddddd", "orl a,#$%X"), | |
| 105 | FMT("1000 1000dddddddd", "orl bus,#$%X"), | |
| 106 | FMT("1000 1001dddddddd", "orl p1,#$%X"), | |
| 107 | FMT("1000 1010dddddddd", "orl p2,#$%X"), | |
| 108 | FMT("1000 11pp", "orld %P,a"), | |
| 109 | FMT("00000010", "outl bus,a"), | |
| 110 | FMT("001110pp", "outl %P,a"), | |
| 111 | FMT("10000011", "^ret"), | |
| 112 | FMT("10010011", "^retr"), | |
| 113 | FMT("11100111", "rl a"), | |
| 114 | FMT("11110111", "rlc a"), | |
| 115 | FMT("01110111", "rr a"), | |
| 116 | FMT("01100111", "rrc a"), | |
| 117 | FMT("11100101", "sel mb0"), | |
| 118 | FMT("11110101", "sel mb1"), | |
| 119 | FMT("11000101", "sel rb0"), | |
| 120 | FMT("11010101", "sel rb1"), | |
| 121 | FMT("01100101", "stop tcnt"), | |
| 122 | FMT("01000101", "strt cnt"), | |
| 123 | FMT("01010101", "strt t"), | |
| 124 | FMT("01000111", "swap a"), | |
| 125 | FMT("00101rrr", "xch a,%R"), | |
| 126 | FMT("0010000r", "xch a,@%R"), | |
| 127 | FMT("0011000r", "xchd a,@%R"), | |
| 128 | FMT("1101 0011dddddddd", "xrl a,#$%X"), | |
| 129 | FMT("1101 1rrr", "xrl a,%R"), | |
| 130 | FMT("1101 000r", "xrl a,@%R"), | |
| 131 | FMT("00000000", "nop"), | |
| 132 | NULL | |
| 133 | }; | |
| 134 | ||
| 135 | #define MAX_OPS (((sizeof(Formats) / sizeof(Formats[0])) - 1) / PTRS_PER_FORMAT) | |
| 136 | ||
| 137 | typedef struct opcode { | |
| 138 | byte mask; /* instruction mask */ | |
| 139 | byte bits; /* constant bits */ | |
| 140 | char extcode; /* value that gets extension code */ | |
| 141 | const char *parse; /* how to parse bits */ | |
| 142 | const char *fmt; /* instruction format */ | |
| 143 | unsigned long flags; | |
| 144 | } M48Opcode; | |
| 145 | ||
| 146 | static M48Opcode Op[MAX_OPS+1]; | |
| 147 | static int OpInizialized = 0; | |
| 148 | ||
| 149 | static void InitDasm8039(void) | |
| 150 | { | |
| 151 | const char *p; | |
| 152 | const char *const *ops; | |
| 153 | byte mask, bits; | |
| 154 | int bit; | |
| 155 | int i; | |
| 156 | ||
| 157 | ops = Formats; i = 0; | |
| 158 | while (*ops) { | |
| 159 | unsigned long flags = 0; | |
| 160 | p = *ops; | |
| 161 | mask = 0; bits = 0; bit = 7; | |
| 162 | while (*p && bit >= 0) { | |
| 163 | switch (*p++) { | |
| 164 | case '1': mask |= 1<<bit; bits |= 1<<bit; bit--; break; | |
| 165 | case '0': mask |= 1<<bit; bit--; break; | |
| 166 | case ' ': break; | |
| 167 | case 'b': | |
| 168 | case 'a': case 'r': case 'd': case 'p': | |
| 169 | bit --; | |
| 170 | break; | |
| 171 | default: | |
| 172 | fatalerror("Invalid instruction encoding '%s %s'\n", ops[0],ops[1]); | |
| 173 | break; | |
| 174 | } | |
| 175 | } | |
| 176 | if (bit != -1 ) { | |
| 177 | fatalerror("not enough bits in encoding '%s %s' %d\n", ops[0],ops[1],bit); | |
| 178 | break; | |
| 179 | } | |
| 180 | while (isspace(*p)) p++; | |
| 181 | if (*p) Op[i].extcode = *p; | |
| 182 | Op[i].bits = bits; | |
| 183 | Op[i].mask = mask; | |
| 184 | Op[i].fmt = ops[1]; | |
| 185 | Op[i].parse = ops[0]; | |
| 186 | ||
| 187 | if (Op[i].fmt[0] == '!') | |
| 188 | { | |
| 189 | flags |= DASMFLAG_STEP_OVER; | |
| 190 | Op[i].fmt++; | |
| 191 | } | |
| 192 | if (Op[i].fmt[0] == '^') | |
| 193 | { | |
| 194 | flags |= DASMFLAG_STEP_OUT; | |
| 195 | Op[i].fmt++; | |
| 196 | } | |
| 197 | Op[i].flags = flags; | |
| 198 | ||
| 199 | ops += PTRS_PER_FORMAT; | |
| 200 | i++; | |
| 201 | } | |
| 202 | ||
| 203 | OpInizialized = 1; | |
| 204 | } | |
| 205 | ||
| 206 | offs_t mcs48_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) | |
| 207 | { | |
| 208 | int b, a, d, r, p; /* these can all be filled in by parsing an instruction */ | |
| 209 | int i; | |
| 210 | int op; | |
| 211 | int cnt = 1; | |
| 212 | int code, bit; | |
| 213 | const char *cp; | |
| 214 | ||
| 215 | if (!OpInizialized) InitDasm8039(); | |
| 216 | ||
| 217 | code = oprom[0]; | |
| 218 | op = -1; /* no matching opcode */ | |
| 219 | for ( i = 0; i < MAX_OPS; i++) | |
| 220 | { | |
| 221 | if( (code & Op[i].mask) == Op[i].bits ) | |
| 222 | { | |
| 223 | if (op != -1) | |
| 224 | { | |
| 225 | fprintf(stderr, "Error: opcode %02X matches %d (%s) and %d (%s)\n", | |
| 226 | code,i,Op[i].fmt,op,Op[op].fmt); | |
| 227 | } | |
| 228 | op = i; | |
| 229 | } | |
| 230 | } | |
| 231 | ||
| 232 | if (op == -1) | |
| 233 | { | |
| 234 | sprintf(buffer,"db %2.2x",code); | |
| 235 | return cnt | DASMFLAG_SUPPORTED; | |
| 236 | } | |
| 237 | ||
| 238 | if (Op[op].extcode) | |
| 239 | { | |
| 240 | cnt++; | |
| 241 | code <<= 8; | |
| 242 | code |= opram[1]; | |
| 243 | bit = 15; | |
| 244 | } | |
| 245 | else | |
| 246 | { | |
| 247 | bit = 7; | |
| 248 | } | |
| 249 | ||
| 250 | /* shift out operands */ | |
| 251 | cp = Op[op].parse; | |
| 252 | b = a = d = r = p = 0; | |
| 253 | ||
| 254 | while (bit >= 0) | |
| 255 | { | |
| 256 | /* mame_printf_debug("{%c/%d}",*cp,bit); */ | |
| 257 | switch(*cp) | |
| 258 | { | |
| 259 | case 'a': a <<=1; a |= ((code & (1<<bit)) ? 1 : 0); bit--; break; | |
| 260 | case 'b': b <<=1; b |= ((code & (1<<bit)) ? 1 : 0); bit--; break; | |
| 261 | case 'd': d <<=1; d |= ((code & (1<<bit)) ? 1 : 0); bit--; break; | |
| 262 | case 'r': r <<=1; r |= ((code & (1<<bit)) ? 1 : 0); bit--; break; | |
| 263 | case 'p': p <<=1; p |= ((code & (1<<bit)) ? 1 : 0); bit--; break; | |
| 264 | case ' ': break; | |
| 265 | case '1': case '0': bit--; break; | |
| 266 | case '\0': fatalerror("premature end of parse string, opcode %x, bit = %d\n",code,bit); break; | |
| 267 | } | |
| 268 | cp++; | |
| 269 | } | |
| 270 | ||
| 271 | /* now traverse format string */ | |
| 272 | cp = Op[op].fmt; | |
| 273 | while (*cp) | |
| 274 | { | |
| 275 | if (*cp == '%') | |
| 276 | { | |
| 277 | char num[10], *q; | |
| 278 | cp++; | |
| 279 | switch (*cp++) | |
| 280 | { | |
| 281 | case 'A': sprintf(num,"$%04X",a); break; | |
| 282 | case 'J': sprintf(num,"$%04X",((pc+1) & 0xf00) | a); break; | |
| 283 | case 'B': sprintf(num,"%d",b); break; | |
| 284 | case 'D': sprintf(num,"%d",d); break; | |
| 285 | case 'X': sprintf(num,"%X",d); break; | |
| 286 | case 'R': sprintf(num,"r%d",r); break; | |
| 287 | case 'P': sprintf(num,"p%d",p); break; | |
| 288 | default: | |
| 289 | fatalerror("illegal escape character in format '%s'\n",Op[op].fmt); | |
| 290 | break; | |
| 291 | } | |
| 292 | q = num; while (*q) *buffer++ = *q++; | |
| 293 | *buffer = '\0'; | |
| 294 | } | |
| 295 | else | |
| 296 | { | |
| 297 | *buffer++ = *cp++; | |
| 298 | *buffer = '\0'; | |
| 299 | } | |
| 300 | } | |
| 301 | ||
| 302 | return cnt | Op[op].flags | DASMFLAG_SUPPORTED; | |
| 303 | } |
| r0 | r3116 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | mcs48.c | |
| 4 | ||
| 5 | Intel MCS-48 Portable Emulator | |
| 6 | ||
| 7 | Copyright Mirko Buffoni | |
| 8 | Based on the original work Copyright Dan Boris, an 8048 emulator | |
| 9 | You are not allowed to distribute this software commercially | |
| 10 | ||
| 11 | ***************************************************************************/ | |
| 12 | ||
| 13 | #pragma once | |
| 14 | ||
| 15 | #ifndef __I8039_H__ | |
| 16 | #define __I8039_H__ | |
| 17 | ||
| 18 | #include "cpuintrf.h" | |
| 19 | ||
| 20 | ||
| 21 | /*************************************************************************** | |
| 22 | CONSTANTS | |
| 23 | ***************************************************************************/ | |
| 24 | ||
| 25 | /* register access indexes */ | |
| 26 | enum | |
| 27 | { | |
| 28 | MCS48_PC = 1, | |
| 29 | MCS48_PSW, | |
| 30 | MCS48_A, | |
| 31 | MCS48_TC, | |
| 32 | MCS48_P1, | |
| 33 | MCS48_P2, | |
| 34 | MCS48_R0, | |
| 35 | MCS48_R1, | |
| 36 | MCS48_R2, | |
| 37 | MCS48_R3, | |
| 38 | MCS48_R4, | |
| 39 | MCS48_R5, | |
| 40 | MCS48_R6, | |
| 41 | MCS48_R7, | |
| 42 | MCS48_EA | |
| 43 | }; | |
| 44 | ||
| 45 | ||
| 46 | /* I/O port access indexes */ | |
| 47 | enum | |
| 48 | { | |
| 49 | MCS48_INPUT_IRQ = 0, | |
| 50 | MCS48_INPUT_EA | |
| 51 | }; | |
| 52 | ||
| 53 | ||
| 54 | /* special I/O space ports */ | |
| 55 | enum | |
| 56 | { | |
| 57 | MCS48_PORT_P0 = 0x100, /* Not used */ | |
| 58 | MCS48_PORT_P1 = 0x101, | |
| 59 | MCS48_PORT_P2 = 0x102, | |
| 60 | MCS48_PORT_P4 = 0x104, | |
| 61 | MCS48_PORT_P5 = 0x105, | |
| 62 | MCS48_PORT_P6 = 0x106, | |
| 63 | MCS48_PORT_P7 = 0x107, | |
| 64 | MCS48_PORT_T0 = 0x110, | |
| 65 | MCS48_PORT_T1 = 0x111, | |
| 66 | MCS48_PORT_BUS = 0x120 | |
| 67 | }; | |
| 68 | ||
| 69 | ||
| 70 | ||
| 71 | /*************************************************************************** | |
| 72 | FUNCTION PROTOTYPES | |
| 73 | ***************************************************************************/ | |
| 74 | ||
| 75 | /* variants with 64 bytes of internal RAM and up to 1k of internal ROM */ | |
| 76 | void i8035_get_info(UINT32 state, cpuinfo *info); | |
| 77 | void i8041_get_info(UINT32 state, cpuinfo *info); | |
| 78 | void i8048_get_info(UINT32 state, cpuinfo *info); | |
| 79 | void i8648_get_info(UINT32 state, cpuinfo *info); | |
| 80 | void i8748_get_info(UINT32 state, cpuinfo *info); | |
| 81 | void mb8884_get_info(UINT32 state, cpuinfo *info); | |
| 82 | void n7751_get_info(UINT32 state, cpuinfo *info); | |
| 83 | ||
| 84 | /* variants with 128 bytes of internal RAM and up to 2k of internal ROM */ | |
| 85 | void i8039_get_info(UINT32 state, cpuinfo *info); | |
| 86 | void i8049_get_info(UINT32 state, cpuinfo *info); | |
| 87 | void i8749_get_info(UINT32 state, cpuinfo *info); | |
| 88 | void m58715_get_info(UINT32 state, cpuinfo *info); | |
| 89 | ||
| 90 | /* disassembler */ | |
| 91 | offs_t mcs48_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); | |
| 92 | ||
| 93 | #endif /* __I8039_H__ */ |
| r3115 | r3116 | |
|---|---|---|
| 606 | 606 | #------------------------------------------------- |
| 607 | 607 | |
| 608 | 608 | CPUDEFS += -DHAS_I8035=$(if $(filter I8035,$(CPUS)),1,0) |
| 609 | CPUDEFS += -DHAS_I8041=$(if $(filter I8041,$(CPUS)),1,0) | |
| 610 | CPUDEFS += -DHAS_I8048=$(if $(filter I8048,$(CPUS)),1,0) | |
| 611 | CPUDEFS += -DHAS_I8648=$(if $(filter I8648,$(CPUS)),1,0) | |
| 612 | CPUDEFS += -DHAS_I8748=$(if $(filter I8748,$(CPUS)),1,0) | |
| 613 | CPUDEFS += -DHAS_MB8884=$(if $(filter MB8884,$(CPUS)),1,0) | |
| 614 | ||
| 609 | 615 | CPUDEFS += -DHAS_I8039=$(if $(filter I8039,$(CPUS)),1,0) |
| 610 | CPUDEFS += -DHAS_I804 | |
| 616 | CPUDEFS += -DHAS_I8049=$(if $(filter I8049,$(CPUS)),1,0) | |
| 611 | 617 | CPUDEFS += -DHAS_I8749=$(if $(filter I8749,$(CPUS)),1,0) |
| 612 | 618 | CPUDEFS += -DHAS_N7751=$(if $(filter N7751,$(CPUS)),1,0) |
| 613 | CPUDEFS += -DHAS_MB8884=$(if $(filter MB8884,$(CPUS)),1,0) | |
| 614 | 619 | CPUDEFS += -DHAS_M58715=$(if $(filter M58715,$(CPUS)),1,0) |
| 615 | 620 | |
| 616 | ifneq ($(filter I8035 I8039 I8048 I8749 N7751 MB8884 M58715,$(CPUS)),) | |
| 617 | OBJDIRS += $(CPUOBJ)/i8039 | |
| 618 | CPUOBJS += $(CPUOBJ)/i8039/i8039.o | |
| 619 | DBGOBJS += $(CPUOBJ)/i8039/8039dasm.o | |
| 621 | ifneq ($(filter I8035 I8041 I8048 I8648 I8748 MB8884 I8039 I8049 I8749 N7751 M58715,$(CPUS)),) | |
| 622 | OBJDIRS += $(CPUOBJ)/mcs48 | |
| 623 | CPUOBJS += $(CPUOBJ)/mcs48/mcs48.o | |
| 624 | DBGOBJS += $(CPUOBJ)/mcs48/mcs48dsm.o | |
| 620 | 625 | endif |
| 621 | 626 | |
| 622 | $(CPUOBJ)/i8039/i8039.o: $(CPUSRC)/i8039/i8039.c \ | |
| 623 | $(CPUSRC)/i8039/i8039.h | |
| 627 | $(CPUOBJ)/mcs48/mcs48.o: $(CPUSRC)/mcs48/mcs48.c \ | |
| 628 | $(CPUSRC)/mcs48/mcs48.h | |
| 624 | 629 | |
| 625 | 630 | |
| 626 | 631 | |
| r3115 | r3116 | |
| 1135 | 1140 | endif |
| 1136 | 1141 | |
| 1137 | 1142 | # rule to ensure we build the header before building the core CPU file |
| 1138 | $(CPUOBJ)/m68000/m68kcpu.o: $(CPUOBJ)/m68000/m68kops.c | |
| 1143 | $(CPUOBJ)/m68000/m68kcpu.o: $(CPUOBJ)/m68000/m68kops.c \ | |
| 1144 | $(CPUSRC)/m68000/m68kcpu.h | |
| 1139 | 1145 | |
| 1146 | $(CPUOBJ)/m68000/m68kmame.o: $(CPUSRC)/m68000/m68kmame.c \ | |
| 1147 | $(CPUSRC)/m68000/m68kcpu.h | |
| 1140 | 1148 | |
| 1141 | 1149 | |
| 1150 | ||
| 1142 | 1151 | #------------------------------------------------- |
| 1143 | 1152 | # Motorola/Freescale dsp56k |
| 1144 | 1153 | #------------------------------------------------- |
| r3115 | r3116 | |
|---|---|---|
| 233 | 233 | S = A & X; \ |
| 234 | 234 | tmp = S & (EAH+1) |
| 235 | 235 | #if 0 |
| 236 | #define SSH \ | |
| 236 | 237 | tmp = S = A & X; \ |
| 237 | 238 | tmp &= (UINT8)(cpu_readop_arg((PCW + 1) & 0xffff) + 1) |
| 238 | 239 | #endif |
| r3115 | r3116 | |
|---|---|---|
| 300 | 300 | sh4.ea = sh4.gbr + sh4.r[0]; |
| 301 | 301 | temp = i & RB( sh4.ea ); |
| 302 | 302 | WB( sh4.ea, temp ); |
| 303 | sh4_icount -= 2; | |
| 303 | sh4.sh4_icount -= 2; | |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | /* code cycles t-bit |
| r3115 | r3116 | |
| 314 | 314 | INT32 disp = ((INT32)d << 24) >> 24; |
| 315 | 315 | sh4.pc = sh4.ea = sh4.pc + disp * 2 + 2; |
| 316 | 316 | change_pc(sh4.pc & AM); |
| 317 | sh4_icount -= 2; | |
| 317 | sh4.sh4_icount -= 2; | |
| 318 | 318 | } |
| 319 | 319 | } |
| 320 | 320 | |
| r3115 | r3116 | |
| 329 | 329 | INT32 disp = ((INT32)d << 24) >> 24; |
| 330 | 330 | sh4.delay = sh4.pc; |
| 331 | 331 | sh4.pc = sh4.ea = sh4.pc + disp * 2 + 2; |
| 332 | sh4_icount--; | |
| 332 | sh4.sh4_icount--; | |
| 333 | 333 | } |
| 334 | 334 | } |
| 335 | 335 | |
| r3115 | r3116 | |
| 349 | 349 | * NOP |
| 350 | 350 | */ |
| 351 | 351 | if (next_opcode == 0x0009) |
| 352 | sh4_icount %= 3; /* cycles for BRA $ and NOP taken (3) */ | |
| 352 | sh4.sh4_icount %= 3; /* cycles for BRA $ and NOP taken (3) */ | |
| 353 | 353 | } |
| 354 | 354 | #endif |
| 355 | 355 | sh4.delay = sh4.pc; |
| 356 | 356 | sh4.pc = sh4.ea = sh4.pc + disp * 2 + 2; |
| 357 | sh4_icount--; | |
| 357 | sh4.sh4_icount--; | |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | 360 | /* code cycles t-bit |
| r3115 | r3116 | |
| 365 | 365 | { |
| 366 | 366 | sh4.delay = sh4.pc; |
| 367 | 367 | sh4.pc += sh4.r[m] + 2; |
| 368 | sh4_icount--; | |
| 368 | sh4.sh4_icount--; | |
| 369 | 369 | } |
| 370 | 370 | |
| 371 | 371 | /* code cycles t-bit |
| r3115 | r3116 | |
| 379 | 379 | sh4.pr = sh4.pc + 2; |
| 380 | 380 | sh4.delay = sh4.pc; |
| 381 | 381 | sh4.pc = sh4.ea = sh4.pc + disp * 2 + 2; |
| 382 | sh4_icount--; | |
| 382 | sh4.sh4_icount--; | |
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | /* code cycles t-bit |
| r3115 | r3116 | |
| 391 | 391 | sh4.pr = sh4.pc + 2; |
| 392 | 392 | sh4.delay = sh4.pc; |
| 393 | 393 | sh4.pc += sh4.r[m] + 2; |
| 394 | sh4_icount--; | |
| 394 | sh4.sh4_icount--; | |
| 395 | 395 | } |
| 396 | 396 | |
| 397 | 397 | /* code cycles t-bit |
| r3115 | r3116 | |
| 405 | 405 | INT32 disp = ((INT32)d << 24) >> 24; |
| 406 | 406 | sh4.pc = sh4.ea = sh4.pc + disp * 2 + 2; |
| 407 | 407 | change_pc(sh4.pc & AM); |
| 408 | sh4_icount -= 2; | |
| 408 | sh4.sh4_icount -= 2; | |
| 409 | 409 | } |
| 410 | 410 | } |
| 411 | 411 | |
| r3115 | r3116 | |
| 420 | 420 | INT32 disp = ((INT32)d << 24) >> 24; |
| 421 | 421 | sh4.delay = sh4.pc; |
| 422 | 422 | sh4.pc = sh4.ea = sh4.pc + disp * 2 + 2; |
| 423 | sh4_icount--; | |
| 423 | sh4.sh4_icount--; | |
| 424 | 424 | } |
| 425 | 425 | } |
| 426 | 426 | |
| r3115 | r3116 | |
| 732 | 732 | } |
| 733 | 733 | sh4.mach = Res2; |
| 734 | 734 | sh4.macl = Res0; |
| 735 | sh4_icount--; | |
| 735 | sh4.sh4_icount--; | |
| 736 | 736 | } |
| 737 | 737 | |
| 738 | 738 | /* DMULU.L Rm,Rn */ |
| r3115 | r3116 | |
| 760 | 760 | Res2 = Res2 + ((Res1 >> 16) & 0x0000ffff) + temp3; |
| 761 | 761 | sh4.mach = Res2; |
| 762 | 762 | sh4.macl = Res0; |
| 763 | sh4_icount--; | |
| 763 | sh4.sh4_icount--; | |
| 764 | 764 | } |
| 765 | 765 | |
| 766 | 766 | /* DT Rn */ |
| r3115 | r3116 | |
| 779 | 779 | */ |
| 780 | 780 | if (next_opcode == 0x8bfd) |
| 781 | 781 | { |
| 782 | while (sh4.r[n] > 1 && sh4_icount > 4) | |
| 782 | while (sh4.r[n] > 1 && sh4.sh4_icount > 4) | |
| 783 | 783 | { |
| 784 | 784 | sh4.r[n]--; |
| 785 | sh4_icount -= 4; /* cycles for DT (1) and BF taken (3) */ | |
| 785 | sh4.sh4_icount -= 4; /* cycles for DT (1) and BF taken (3) */ | |
| 786 | 786 | } |
| 787 | 787 | } |
| 788 | 788 | } |
| r3115 | r3116 | |
| 826 | 826 | sh4.delay = sh4.pc; |
| 827 | 827 | sh4.pr = sh4.pc + 2; |
| 828 | 828 | sh4.pc = sh4.ea = sh4.r[m]; |
| 829 | sh4_icount--; | |
| 829 | sh4.sh4_icount--; | |
| 830 | 830 | } |
| 831 | 831 | |
| 832 | 832 | |
| 833 | 833 | /* LDC Rm,SR */ |
| 834 | 834 | INLINE void LDCSR(UINT32 m) |
| 835 | 835 | { |
| 836 | UINT32 reg; | |
| 837 | ||
| 838 | reg = sh4.r[m]; | |
| 836 | 839 | if ((Machine->debug_flags & DEBUG_FLAG_ENABLED) != 0) |
| 837 | 840 | sh4_syncronize_register_bank((sh4.sr & sRB) >> 29); |
| 838 | 841 | if ((sh4.r[m] & sRB) != (sh4.sr & sRB)) |
| 839 | 842 | sh4_change_register_bank(sh4.r[m] & sRB ? 1 : 0); |
| 840 | sh4.sr = | |
| 843 | sh4.sr = | |
| 841 | 844 | sh4_exception_recompute(); |
| 842 | 845 | } |
| 843 | 846 | |
| r3115 | r3116 | |
| 866 | 869 | if ((old & sRB) != (sh4.sr & sRB)) |
| 867 | 870 | sh4_change_register_bank(sh4.sr & sRB ? 1 : 0); |
| 868 | 871 | sh4.r[m] += 4; |
| 869 | sh4_icount -= 2; | |
| 872 | sh4.sh4_icount -= 2; | |
| 870 | 873 | sh4_exception_recompute(); |
| 871 | 874 | } |
| 872 | 875 | |
| r3115 | r3116 | |
| 876 | 879 | sh4.ea = sh4.r[m]; |
| 877 | 880 | sh4.gbr = RL( sh4.ea ); |
| 878 | 881 | sh4.r[m] += 4; |
| 879 | sh4_icount -= 2; | |
| 882 | sh4.sh4_icount -= 2; | |
| 880 | 883 | } |
| 881 | 884 | |
| 882 | 885 | /* LDC.L @Rm+,VBR */ |
| r3115 | r3116 | |
| 885 | 888 | sh4.ea = sh4.r[m]; |
| 886 | 889 | sh4.vbr = RL( sh4.ea ); |
| 887 | 890 | sh4.r[m] += 4; |
| 888 | sh4_icount -= 2; | |
| 891 | sh4.sh4_icount -= 2; | |
| 889 | 892 | } |
| 890 | 893 | |
| 891 | 894 | /* LDS Rm,MACH */ |
| r3115 | r3116 | |
| 1004 | 1007 | sh4.mach = Res2; |
| 1005 | 1008 | sh4.macl = Res0; |
| 1006 | 1009 | } |
| 1007 | sh4_icount -= 2; | |
| 1010 | sh4.sh4_icount -= 2; | |
| 1008 | 1011 | } |
| 1009 | 1012 | |
| 1010 | 1013 | /* MAC.W @Rm+,@Rn+ */ |
| r3115 | r3116 | |
| 1056 | 1059 | if (templ > sh4.macl) |
| 1057 | 1060 | sh4.mach += 1; |
| 1058 | 1061 | } |
| 1059 | sh4_icount -= 2; | |
| 1062 | sh4.sh4_icount -= 2; | |
| 1060 | 1063 | } |
| 1061 | 1064 | |
| 1062 | 1065 | /* MOV Rm,Rn */ |
| r3115 | r3116 | |
| 1337 | 1340 | INLINE void MULL(UINT32 m, UINT32 n) |
| 1338 | 1341 | { |
| 1339 | 1342 | sh4.macl = sh4.r[n] * sh4.r[m]; |
| 1340 | sh4_icount--; | |
| 1343 | sh4.sh4_icount--; | |
| 1341 | 1344 | } |
| 1342 | 1345 | |
| 1343 | 1346 | /* MULS Rm,Rn */ |
| r3115 | r3116 | |
| 1392 | 1395 | INLINE void ORI(UINT32 i) |
| 1393 | 1396 | { |
| 1394 | 1397 | sh4.r[0] |= i; |
| 1395 | sh4_icount -= 2; | |
| 1398 | sh4.sh4_icount -= 2; | |
| 1396 | 1399 | } |
| 1397 | 1400 | |
| 1398 | 1401 | /* OR.B #imm,@(R0,GBR) */ |
| r3115 | r3116 | |
| 1452 | 1455 | if ((sh4.ssr & sRB) != (sh4.sr & sRB)) |
| 1453 | 1456 | sh4_change_register_bank(sh4.ssr & sRB ? 1 : 0); |
| 1454 | 1457 | sh4.sr = sh4.ssr; |
| 1455 | sh4_icount--; | |
| 1458 | sh4.sh4_icount--; | |
| 1456 | 1459 | sh4_exception_recompute(); |
| 1457 | 1460 | } |
| 1458 | 1461 | |
| r3115 | r3116 | |
| 1461 | 1464 | { |
| 1462 | 1465 | sh4.delay = sh4.pc; |
| 1463 | 1466 | sh4.pc = sh4.ea = sh4.pr; |
| 1464 | sh4_icount--; | |
| 1467 | sh4.sh4_icount--; | |
| 1465 | 1468 | } |
| 1466 | 1469 | |
| 1467 | 1470 | /* SETT */ |
| r3115 | r3116 | |
| 1538 | 1541 | INLINE void SLEEP(void) |
| 1539 | 1542 | { |
| 1540 | 1543 | sh4.pc -= 2; |
| 1541 | sh4_icount -= 2; | |
| 1544 | sh4.sh4_icount -= 2; | |
| 1542 | 1545 | /* Wait_for_exception; */ |
| 1543 | 1546 | } |
| 1544 | 1547 | |
| r3115 | r3116 | |
| 1566 | 1569 | sh4.r[n] -= 4; |
| 1567 | 1570 | sh4.ea = sh4.r[n]; |
| 1568 | 1571 | WL( sh4.ea, sh4.sr ); |
| 1569 | sh4_icount--; | |
| 1572 | sh4.sh4_icount--; | |
| 1570 | 1573 | } |
| 1571 | 1574 | |
| 1572 | 1575 | /* STC.L GBR,@-Rn */ |
| r3115 | r3116 | |
| 1575 | 1578 | sh4.r[n] -= 4; |
| 1576 | 1579 | sh4.ea = sh4.r[n]; |
| 1577 | 1580 | WL( sh4.ea, sh4.gbr ); |
| 1578 | sh4_icount--; | |
| 1581 | sh4.sh4_icount--; | |
| 1579 | 1582 | } |
| 1580 | 1583 | |
| 1581 | 1584 | /* STC.L VBR,@-Rn */ |
| r3115 | r3116 | |
| 1584 | 1587 | sh4.r[n] -= 4; |
| 1585 | 1588 | sh4.ea = sh4.r[n]; |
| 1586 | 1589 | WL( sh4.ea, sh4.vbr ); |
| 1587 | sh4_icount--; | |
| 1590 | sh4.sh4_icount--; | |
| 1588 | 1591 | } |
| 1589 | 1592 | |
| 1590 | 1593 | /* STS MACH,Rn */ |
| r3115 | r3116 | |
| 1716 | 1719 | temp |= 0x80; |
| 1717 | 1720 | /* Bus Lock disable */ |
| 1718 | 1721 | WB( sh4.ea, temp ); |
| 1719 | sh4_icount -= 3; | |
| 1722 | sh4.sh4_icount -= 3; | |
| 1720 | 1723 | } |
| 1721 | 1724 | |
| 1722 | 1725 | /* TRAPA #imm */ |
| r3115 | r3116 | |
| 1742 | 1745 | sh4.pc = sh4.vbr + 0x00000100; |
| 1743 | 1746 | change_pc(sh4.pc & AM); |
| 1744 | 1747 | |
| 1745 | sh4_icount -= 7; | |
| 1748 | sh4.sh4_icount -= 7; | |
| 1746 | 1749 | } |
| 1747 | 1750 | |
| 1748 | 1751 | /* TST Rm,Rn */ |
| r3115 | r3116 | |
| 1775 | 1778 | sh4.sr |= T; |
| 1776 | 1779 | else |
| 1777 | 1780 | sh4.sr &= ~T; |
| 1778 | sh4_icount -= 2; | |
| 1781 | sh4.sh4_icount -= 2; | |
| 1779 | 1782 | } |
| 1780 | 1783 | |
| 1781 | 1784 | /* XOR Rm,Rn */ |
| r3115 | r3116 | |
| 1801 | 1804 | temp = RB( sh4.ea ); |
| 1802 | 1805 | temp ^= imm; |
| 1803 | 1806 | WB( sh4.ea, temp ); |
| 1804 | sh4_icount -= 2; | |
| 1807 | sh4.sh4_icount -= 2; | |
| 1805 | 1808 | } |
| 1806 | 1809 | |
| 1807 | 1810 | /* XTRCT Rm,Rn */ |
| r3115 | r3116 | |
| 1862 | 1865 | sh4.r[n] -= 4; |
| 1863 | 1866 | sh4.ea = sh4.r[n]; |
| 1864 | 1867 | WL( sh4.ea, sh4.rbnk[sh4.sr&sRB ? 0 : 1][m & 7]); |
| 1865 | sh4_icount--; | |
| 1868 | sh4.sh4_icount--; | |
| 1866 | 1869 | } |
| 1867 | 1870 | |
| 1868 | 1871 | /* MOVCA.L R0,@Rn */ |
| r3115 | r3116 | |
| 3313 | 3316 | /* Execute cycles - returns number of cycles actually run */ |
| 3314 | 3317 | static int sh4_execute(int cycles) |
| 3315 | 3318 | { |
| 3316 | sh4_icount = cycles; | |
| 3319 | sh4.sh4_icount = cycles; | |
| 3317 | 3320 | |
| 3318 | 3321 | if (sh4.cpu_off) |
| 3319 | 3322 | return 0; |
| r3115 | r3116 | |
| 3361 | 3364 | { |
| 3362 | 3365 | sh4_check_pending_irq("mame_sh4_execute"); |
| 3363 | 3366 | } |
| 3364 | sh4_icount--; | |
| 3365 | } while( sh4_icount > 0 ); | |
| 3367 | sh4.sh4_icount--; | |
| 3368 | } while( sh4.sh4_icount > 0 ); | |
| 3366 | 3369 | |
| 3367 | return cycles - sh4_icount; | |
| 3370 | return cycles - sh4.sh4_icount; | |
| 3368 | 3371 | } |
| 3369 | 3372 | |
| 3370 | 3373 | /* Get registers, return context size */ |
| r3115 | r3116 | |
| 3706 | 3709 | case CPUINFO_PTR_EXECUTE: info->execute = sh4_execute; break; |
| 3707 | 3710 | case CPUINFO_PTR_BURN: info->burn = NULL; break; |
| 3708 | 3711 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = sh4_dasm; break; |
| 3709 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &sh4_icount; break; | |
| 3712 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &sh4.sh4_icount; break; | |
| 3710 | 3713 | |
| 3711 | 3714 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 3712 | 3715 | case CPUINFO_STR_NAME: strcpy(info->s, "SH-4"); break; |
| r3115 | r3116 | |
|---|---|---|
| 74 | 74 | emu_timer *rtc_timer; |
| 75 | 75 | emu_timer *timer[3]; |
| 76 | 76 | UINT32 refresh_timer_base; |
| 77 | int dma_timer_active[ | |
| 77 | int dma_timer_active[4]; | |
| 78 | 78 | |
| 79 | int sh4_icount; | |
| 79 | 80 | int is_slave, cpu_number; |
| 80 | 81 | int cpu_clock, bus_clock, pm_clock; |
| 81 | 82 | int fpu_sz, fpu_pr; |
| r3115 | r3116 | |
| 85 | 86 | void (*ftcsr_read_callback)(UINT32 data); |
| 86 | 87 | } SH4; |
| 87 | 88 | |
| 88 | extern int sh4_icount; | |
| 89 | 89 | extern SH4 sh4; |
| 90 | 90 | |
| 91 | 91 | enum |
| r3115 | r3116 | |
|---|---|---|
| 12 | 12 | #include "sh4regs.h" |
| 13 | 13 | #include "sh4comn.h" |
| 14 | 14 | |
| 15 | int sh4_icount; | |
| 16 | 15 | SH4 sh4; |
| 17 | 16 | |
| 18 | 17 | static const int tcnt_div[8] = { 4, 16, 64, 256, 1024, 1, 1, 1 }; |
| r3115 | r3116 | |
| 886 | 885 | sh4.ioport16_direction &= 0xffff; |
| 887 | 886 | sh4.ioport16_pullup = (sh4.ioport16_pullup | sh4.ioport16_direction) ^ 0xffff; |
| 888 | 887 | if (sh4.m[BCR2] & 1) |
| 889 | io_write_dword_64le(SH4_IOPORT_16, sh4.m[PDTRA] & sh4.ioport16_direction); | |
| 888 | io_write_dword_64le(SH4_IOPORT_16, (UINT64)(sh4.m[PDTRA] & sh4.ioport16_direction) | ((UINT64)sh4.m[PCTRA] << 16)); | |
| 890 | 889 | break; |
| 891 | 890 | case PDTRA: |
| 892 | 891 | if (sh4.m[BCR2] & 1) |
| 893 | io_write_dword_64le(SH4_IOPORT_16, sh4.m[PDTRA] & sh4.ioport16_direction); | |
| 892 | io_write_dword_64le(SH4_IOPORT_16, (UINT64)(sh4.m[PDTRA] & sh4.ioport16_direction) | ((UINT64)sh4.m[PCTRA] << 16)); | |
| 894 | 893 | break; |
| 895 | 894 | case PCTRB: |
| 896 | 895 | sh4.ioport4_pullup = 0; |
| r3115 | r3116 | |
| 902 | 901 | sh4.ioport4_direction &= 0xf; |
| 903 | 902 | sh4.ioport4_pullup = (sh4.ioport4_pullup | sh4.ioport4_direction) ^ 0xf; |
| 904 | 903 | if (sh4.m[BCR2] & 1) |
| 905 | io_write_dword_64le(SH4_IOPORT_4, sh4.m[PDTRB] & sh4.ioport4_direction); | |
| 904 | io_write_dword_64le(SH4_IOPORT_4, (sh4.m[PDTRB] & sh4.ioport4_direction) | (sh4.m[PCTRB] << 16)); | |
| 906 | 905 | break; |
| 907 | 906 | case PDTRB: |
| 908 | 907 | if (sh4.m[BCR2] & 1) |
| 909 | io_write_dword_64le(SH4_IOPORT_4, sh4.m[PDTRB] & sh4.ioport4_direction); | |
| 908 | io_write_dword_64le(SH4_IOPORT_4, (sh4.m[PDTRB] & sh4.ioport4_direction) | (sh4.m[PCTRB] << 16)); | |
| 910 | 909 | break; |
| 911 | 910 | |
| 912 | 911 | case SCBRR2: |
| r3115 | r3116 | |
|---|---|---|
| 67 | 67 | 1110--xx mirror for the above |
| 68 | 68 | 1111--xx mirror for the above |
| 69 | 69 | |
| 70 | Bugs: | |
| 71 | [1] the Z flag is not updated correctly after a LD A,Rn instruction. Fixed in 8301. | |
| 70 | Notes: | |
| 71 | [1] bug: the Z flag is not updated correctly after a LD A,Rn instruction. Fixed in 8302 (possibly 8301). | |
| 72 | 72 | |
| 73 | 73 | |
| 74 | 74 | 8302 CONFIRMED OPCODES: |
| r3115 | r3116 | |
| 125 | 125 | 11111110 LD A,(IX0+A) A=[IX0+A] -- |
| 126 | 126 | 11111111 RET restore PC -- |
| 127 | 127 | |
| 128 | ||
| 129 | 8303 CONFIRMED OPCODES: | |
| 130 | ---------------------- | |
| 131 | all of the 8302 ones, with stricter decoding for the following: | |
| 132 | ||
| 133 | 11010000 imm JNC imm branch if !C -- | |
| 134 | 11010001 imm JZ imm branch if Z -- | |
| 135 | 1101001- imm J imm branch -- | |
| 136 | ||
| 137 | additionally, this opcode is modified to support 11-bit instead of 10-bit | |
| 138 | external addressing, this wasn't used in games however. | |
| 139 | ||
| 140 | 1011-0aa LD MB,i modified so that bit 3 is shifted to bit 2 before loading MB. | |
| 141 | ||
| 142 | and these new opcodes are added: | |
| 143 | ||
| 144 | 110101-- | |
| 145 | 11010100 imm LD A,(R77:$%02X) | |
| 146 | 11010101 imm LD (R77:$%02X),A | |
| 147 | 11010110 imm LD PC,(R77:$%02X) [1] | |
| 148 | 11010111 imm LD (R77:$%02X),PC [2] | |
| 149 | ||
| 150 | Notes: | |
| 151 | [1] appears to be LD PC,x in the disassembly, however it's LD LP0,x for kouyakyu | |
| 152 | which uses a 8304, so the opcode was probably changed again. | |
| 153 | [2] appears to be LD x,PC in the disassembly, however it's LD x,LP0 for hvoltage | |
| 154 | which uses a 8304 (or 8404?), so the opcode was probably changed again. | |
| 155 | ||
| 128 | 156 | ****************************************************/ |
| 129 | 157 | |
| 130 | 158 | |
| r3115 | r3116 | |
| 181 | 209 | |
| 182 | 210 | /* -------------- 830x only ------------- */ |
| 183 | 211 | |
| 184 | FMT("1101_0100 I", "LD A,(R7:$%02X)"), // D4 : 8303+ only? exctscc2, bullfgtr; not sure if R7 or R77 | |
| 185 | FMT("1101_0101 I", "LD (R7:$%02X),A"), // D5 : 8303+ only? exctscc2, bullfgtr, kouyakyu; not sure if R7 or R77 | |
| 186 | FMT("1101_0110 I", "LD LP0,(R7:$%02X)"), // D6 : 8303+ only? kouyakyu; not sure if R7 or R77 | |
| 187 | FMT("1101_0111 I", "LD (R7:$%02X),LP0"), // D7 : 8303+ only? hvoltage; not sure if R7 or R77 | |
| 212 | FMT("1101_0100 I", "LD A,(R77:$%02X)"), // D4 : 8303+ only. exctscc2, bullfgtr | |
| 213 | FMT("1101_0101 I", "LD (R77:$%02X),A"), // D5 : 8303+ only. exctscc2, bullfgtr, kouyakyu | |
| 214 | FMT("1101_0110 I", "LD LP0,(R77:$%02X)"), // D6 : 8303+ only. kouyakyu | |
| 215 | FMT("1101_0111 I", "LD (R77:$%02X),LP0"), // D7 : 8303+ only. hvoltage | |
| 188 | 216 | FMT("1101_1000 I", "LD A,($%02X)"), // D8 : equites |
| 189 | 217 | FMT("1101_1001 I", "LD ($%02X),A"), // D9 : equites |
| 190 | 218 | FMT("1101_1010 I", "CMP A,$%02X"), // DA : |
| r3115 | r3116 | |
|---|---|---|
| 21 | 21 | Champion Base Ball 1983 8201 (schematics) |
| 22 | 22 | Exciting Soccer 1983 8301? |
| 23 | 23 | Champion Base Ball II 1983 8302 (pcb, unofficial schematics) |
| 24 | Exciting Soccer II 1984 8303 | |
| 24 | Exciting Soccer II 1984 8303 (uses 8303+ opcodes) | |
| 25 | 25 | Equites 1984 8303 (post) |
| 26 | 26 | Bull Fighter 1984 8303 (post) |
| 27 | 27 | Splendor Blast 1985 8303 (post) |
| r3115 | r3116 | |
| 585 | 585 | static void exg_ix0_ix1(void) { UINT8 t=IX1; IX1 = IX0; IX0 = t; } |
| 586 | 586 | static void exg_ix0_ix2(void) { UINT8 t=IX2; IX2 = IX0; IX0 = t; } |
| 587 | 587 | |
| 588 | static void op_d4(void) { R.A = M_RDMEM( ((RD_REG(7) & 3) << 8) | M_RDMEM_OPCODE() ); } | |
| 589 | static void op_d5(void) { M_WRMEM( ((RD_REG(7) & 3) << 8) | M_RDMEM_OPCODE(), R.A ); } | |
| 590 | static void op_d6(void) { LP0 = M_RDMEM( ((RD_REG(7) & 3) << 8) | M_RDMEM_OPCODE() ); } | |
| 591 | static void op_d7(void) { M_WRMEM( ((RD_REG(7) & 3) << 8) | M_RDMEM_OPCODE(), LP0 ); } | |
| 588 | static void op_d4(void) { R.A = M_RDMEM( ((regRAM[(7<<3)+7] & 3) << 8) | M_RDMEM_OPCODE() ); } | |
| 589 | static void op_d5(void) { M_WRMEM( ((regRAM[(7<<3)+7] & 3) << 8) | M_RDMEM_OPCODE(), R.A ); } | |
| 590 | static void op_d6(void) { LP0 = M_RDMEM( ((regRAM[(7<<3)+7] & 3) << 8) | M_RDMEM_OPCODE() ); } | |
| 591 | static void op_d7(void) { M_WRMEM( ((regRAM[(7<<3)+7] & 3) << 8) | M_RDMEM_OPCODE(), LP0 ); } | |
| 592 | ||
| 592 | 593 | static void ld_a_abs(void) { R.A = M_RDMEM( ((R.mb & 3) << 8) | M_RDMEM_OPCODE() ); } |
| 593 | 594 | static void ld_abs_a(void) { M_WRMEM( ((R.mb & 3) << 8) | M_RDMEM_OPCODE(), R.A ); } |
| 594 | 595 |
| r3115 | r3116 | |
|---|---|---|
| 291 | 291 | INLINE void SET1(UINT16 flag) { R.STR1 |= flag; R.STR1 |= 0x0180; } |
| 292 | 292 | INLINE void MODIFY_DP (int data) { R.STR0 &= ~DP_REG; R.STR0 |= (data & DP_REG); R.STR0 |= 0x0400; } |
| 293 | 293 | INLINE void MODIFY_PM (int data) { R.STR1 &= ~PM_REG; R.STR1 |= (data & PM_REG); R.STR1 |= 0x0180; } |
| 294 | INLINE void MODIFY_ARP(int data) { R.STR1 &= ~ARB_REG; R.STR1 |= (R.STR0 & ARP_REG); R.STR1 |= 0x0180; | |
| 294 | INLINE void MODIFY_ARP(int data) { R.STR1 &= ~ARB_REG; R.STR1 |= (R.STR0 & ARP_REG); R.STR1 |= 0x0180; | |
| 295 | 295 | R.STR0 &= ~ARP_REG; R.STR0 |= ((data << 13) & ARP_REG); R.STR0 |= 0x0400; } |
| 296 | 296 | #ifdef UNUSED_FUNCTION |
| 297 | 297 | INLINE void MODIFY_ARB(int data) { R.STR1 &= ~ARB_REG; R.STR1 |= ((data << 13) & ARB_REG); R.STR1 |= 0x0180; } |
| r3115 | r3116 | |
|---|---|---|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | #if 0 |
| 104 | #define SET_COV(n,m) \ | |
| 104 | 105 | if ((n&0x7fff)+(m&0x7fff) > 0x7fff) \ |
| 105 | 106 | { \ |
| 106 | 107 | if (!(cp1610.flags & C))\ |
| r3115 | r3116 | |
|---|---|---|
| 96 | 96 | UINT8 all_tiles_dirty; /* true if all tiles are dirty */ |
| 97 | 97 | UINT8 all_tiles_clean; /* true if all tiles are clean */ |
| 98 | 98 | UINT32 palette_offset; /* palette offset */ |
| 99 | UINT32 pen_data_offset; /* pen data offset */ | |
| 99 | 100 | |
| 100 | 101 | /* scroll information */ |
| 101 | 102 | UINT32 scrollrows; /* number of independently scrolled rows */ |
| r3115 | r3116 | |
| 344 | 345 | state_save_register_item("tilemap", tilemap_instance, tmap->enable); |
| 345 | 346 | state_save_register_item("tilemap", tilemap_instance, tmap->attributes); |
| 346 | 347 | state_save_register_item("tilemap", tilemap_instance, tmap->palette_offset); |
| 348 | state_save_register_item("tilemap", tilemap_instance, tmap->pen_data_offset); | |
| 347 | 349 | state_save_register_item("tilemap", tilemap_instance, tmap->scrollrows); |
| 348 | 350 | state_save_register_item("tilemap", tilemap_instance, tmap->scrollcols); |
| 349 | 351 | state_save_register_item_pointer("tilemap", tilemap_instance, tmap->rowscroll, rows * tileheight); |
| r3115 | r3116 | |
| 384 | 386 | |
| 385 | 387 | |
| 386 | 388 | /*------------------------------------------------- |
| 389 | tilemap_set_pen_data_offset - specify an offset | |
| 390 | to be added to pen_data while rendering tiles | |
| 391 | -------------------------------------------------*/ | |
| 392 | ||
| 393 | void tilemap_set_pen_data_offset(tilemap *tmap, UINT32 offset) | |
| 394 | { | |
| 395 | if (tmap->pen_data_offset != offset) | |
| 396 | { | |
| 397 | tmap->pen_data_offset = offset; | |
| 398 | tilemap_mark_all_tiles_dirty(tmap); | |
| 399 | } | |
| 400 | } | |
| 401 | ||
| 402 | ||
| 403 | /*------------------------------------------------- | |
| 387 | 404 | tilemap_set_enable - set an enable flag for |
| 388 | 405 | the tilemap; if 0, requests to draw the |
| 389 | 406 | tilemap are ignored |
| r3115 | r3116 | |
| 1248 | 1265 | flags = tmap->tileinfo.flags ^ (tmap->attributes & 0x03); |
| 1249 | 1266 | |
| 1250 | 1267 | /* draw the tile, using either direct or transparent */ |
| 1251 | tmap->tileflags[logindex] = tile_draw(tmap, tmap->tileinfo.pen_data, x0, y0, tmap->tileinfo.palette_base, tmap->tileinfo.category, tmap->tileinfo.group, flags); | |
| 1268 | tmap->tileflags[logindex] = tile_draw(tmap, tmap->tileinfo.pen_data + tmap->pen_data_offset, x0, y0, tmap->tileinfo.palette_base, tmap->tileinfo.category, tmap->tileinfo.group, flags); | |
| 1252 | 1269 | |
| 1253 | 1270 | /* if mask data is specified, apply it */ |
| 1254 | 1271 | if ((flags & (TILE_FORCE_LAYER0 | TILE_FORCE_LAYER1 | TILE_FORCE_LAYER2)) == 0 && tmap->tileinfo.mask_data != NULL) |
| r3115 | r3116 | |
|---|---|---|
| 131 | 131 | * setting a global palette offset via |
| 132 | 132 | tilemap_set_palette_offset() |
| 133 | 133 | |
| 134 | * setting a global pen data offset via | |
| 135 | tilemap_set_pen_data_offset() | |
| 136 | ||
| 134 | 137 | 3. In your memory write handlers for the tile memory, anytime tile |
| 135 | 138 | data is modified, you need to mark the tile dirty so that it is |
| 136 | 139 | re-rendered with the new data the next time the tilemap is drawn. |
| r3115 | r3116 | |
| 432 | 435 | /* specify a parameter to be passed into the tile_get_info callback */ |
| 433 | 436 | void tilemap_set_user_data(tilemap *tmap, void *user_data); |
| 434 | 437 | |
| 435 | /* specify an offset to be added to each pixel before looking up the palette | |
| 438 | /* specify an offset to be added to each pixel before looking up the palette. | |
| 436 | 439 | * The offset only applies at final rendering time (e.g., tilemap_draw()) |
| 437 | 440 | * It does not apply to the cached pixmap, which is provided by tilemap_get_pixmap(). |
| 438 | 441 | */ |
| 439 | 442 | void tilemap_set_palette_offset(tilemap *tmap, UINT32 offset); |
| 440 | 443 | |
| 444 | /* specify an offset to be added to pen_data while rendering tiles. | |
| 445 | * This will automatically mark all tiles dirty if the offset changes. | |
| 446 | */ | |
| 447 | void tilemap_set_pen_data_offset(tilemap *tmap, UINT32 offset); | |
| 448 | ||
| 441 | 449 | /* set an enable flag for the tilemap; if 0, requests to draw the tilemap are ignored */ |
| 442 | 450 | void tilemap_set_enable(tilemap *tmap, int enable); |
| 443 | 451 |
| r3115 | r3116 | |
|---|---|---|
| 240 | 240 | static void ui_menu_exit(running_machine *machine); |
| 241 | 241 | |
| 242 | 242 | /* internal menu processing */ |
| 243 | static void ui_menu_draw(ui_menu *menu); | |
| 243 | static void ui_menu_draw(ui_menu *menu, int customonly); | |
| 244 | 244 | static void ui_menu_draw_text_box(ui_menu *menu); |
| 245 | 245 | static void ui_menu_handle_events(ui_menu *menu); |
| 246 | 246 | static void ui_menu_handle_keys(ui_menu *menu, UINT32 flags); |
| r3115 | r3116 | |
| 275 | 275 | static void menu_cheat_populate(running_machine *machine, ui_menu *menu); |
| 276 | 276 | static void menu_memory_card(running_machine *machine, ui_menu *menu, void *parameter, void *state); |
| 277 | 277 | static void menu_memory_card_populate(running_machine *machine, ui_menu *menu, int cardnum); |
| 278 | static void menu_sliders(running_machine *machine, ui_menu *menu, void *parameter, void *state); | |
| 279 | static void menu_sliders_populate(running_machine *machine, ui_menu *menu); | |
| 280 | static void menu_sliders_custom_render(running_machine *machine, ui_menu *menu, void *state, void *selectedref, float top, float bottom, float x1, float y1, float x2, float y2); | |
| 278 | 281 | static void menu_video_targets(running_machine *machine, ui_menu *menu, void *parameter, void *state); |
| 279 | 282 | static void menu_video_targets_populate(running_machine *machine, ui_menu *menu); |
| 280 | 283 | static void menu_video_options(running_machine *machine, ui_menu *menu, void *parameter, void *state); |
| r3115 | r3116 | |
| 578 | 581 | if (menu->numitems > 1 && (menu->item[0].flags & MENU_FLAG_MULTILINE) != 0) |
| 579 | 582 | ui_menu_draw_text_box(menu); |
| 580 | 583 | else |
| 581 | ui_menu_draw(menu); | |
| 584 | ui_menu_draw(menu, (flags & UI_MENU_PROCESS_CUSTOM_ONLY) != 0); | |
| 582 | 585 | |
| 583 | 586 | /* process input */ |
| 584 | 587 | if (!(flags & UI_MENU_PROCESS_NOKEYS)) |
| r3115 | r3116 | |
| 718 | 721 | ui_menu_draw - draw a menu |
| 719 | 722 | -------------------------------------------------*/ |
| 720 | 723 | |
| 721 | static void ui_menu_draw(ui_menu *menu) | |
| 724 | static void ui_menu_draw(ui_menu *menu, int customonly) | |
| 722 | 725 | { |
| 723 | 726 | float line_height = ui_get_line_height(); |
| 724 | 727 | float lr_arrow_width = 0.4f * line_height * render_get_ui_aspect(); |
| r3115 | r3116 | |
| 730 | 733 | float visible_width, visible_main_menu_height; |
| 731 | 734 | float visible_extra_menu_height = 0; |
| 732 | 735 | float visible_top, visible_left; |
| 733 | int selected_subitem_too_big = | |
| 736 | int selected_subitem_too_big = FALSE; | |
| 734 | 737 | int visible_lines; |
| 735 | 738 | int top_line; |
| 736 | 739 | int itemnum, linenum; |
| r3115 | r3116 | |
| 792 | 795 | y1 = visible_top - UI_BOX_TB_BORDER; |
| 793 | 796 | x2 = visible_left + visible_width + UI_BOX_LR_BORDER; |
| 794 | 797 | y2 = visible_top + visible_main_menu_height + UI_BOX_TB_BORDER; |
| 795 | ui_draw_outlined_box(x1, y1, x2, y2, UI_FILLCOLOR); | |
| 798 | if (!customonly) | |
| 799 | ui_draw_outlined_box(x1, y1, x2, y2, UI_FILLCOLOR); | |
| 796 | 800 | |
| 797 | 801 | /* determine the first visible line based on the current selection */ |
| 798 | 802 | top_line = menu->selected - visible_lines / 2; |
| r3115 | r3116 | |
| 807 | 811 | |
| 808 | 812 | /* locate mouse */ |
| 809 | 813 | mouse_hit = FALSE; |
| 810 | mouse_target = ui_input_find_mouse(Machine, &mouse_target_x, &mouse_target_y); | |
| 811 | if (mouse_target != NULL) | |
| 812 | if (render_target_map_point_container(mouse_target, mouse_target_x, mouse_target_y, render_container_get_ui(), &mouse_x, &mouse_y)) | |
| 813 | mouse_hit = TRUE; | |
| 814 | if (!customonly) | |
| 815 | { | |
| 816 | mouse_target = ui_input_find_mouse(Machine, &mouse_target_x, &mouse_target_y); | |
| 817 | if (mouse_target != NULL) | |
| 818 | if (render_target_map_point_container(mouse_target, mouse_target_x, mouse_target_y, render_container_get_ui(), &mouse_x, &mouse_y)) | |
| 819 | mouse_hit = TRUE; | |
| 820 | } | |
| 814 | 821 | |
| 815 | 822 | /* loop over visible lines */ |
| 816 | 823 | menu->hover = menu->numitems + 1; |
| 817 | for (linenum = 0; linenum < visible_lines; linenum++) | |
| 818 | { | |
| 819 | float line_y = visible_top + (float)linenum * line_height; | |
| 820 | int itemnum = top_line + linenum; | |
| 821 | const ui_menu_item *item = &menu->item[itemnum]; | |
| 822 | const char *itemtext = item->text; | |
| 823 | rgb_t fgcolor = text_fgcolor; | |
| 824 | rgb_t bgcolor = text_bgcolor; | |
| 825 | float line_x0 = x1 + 0.5f * UI_LINE_WIDTH; | |
| 826 | float line_y0 = line_y; | |
| 827 | float line_x1 = x2 - 0.5f * UI_LINE_WIDTH; | |
| 828 | float line_y1 = line_y + line_height; | |
| 829 | ||
| 830 | /* set the hover if this is our item */ | |
| 831 | if (mouse_hit && line_x0 <= mouse_x && line_x1 > mouse_x && line_y0 <= mouse_y && line_y1 > mouse_y && item_is_selectable(item)) | |
| 832 | menu->hover = itemnum; | |
| 833 | ||
| 834 | /* if we're selected, draw with a different background */ | |
| 835 | if (itemnum == menu->selected) | |
| 824 | if (!customonly) | |
| 825 | for (linenum = 0; linenum < visible_lines; linenum++) | |
| 836 | 826 | { |
| 837 | fgcolor = sel_fgcolor; | |
| 838 | bgcolor = sel_bgcolor; | |
| 839 | } | |
| 827 | float line_y = visible_top + (float)linenum * line_height; | |
| 828 | int itemnum = top_line + linenum; | |
| 829 | const ui_menu_item *item = &menu->item[itemnum]; | |
| 830 | const char *itemtext = item->text; | |
| 831 | rgb_t fgcolor = text_fgcolor; | |
| 832 | rgb_t bgcolor = text_bgcolor; | |
| 833 | float line_x0 = x1 + 0.5f * UI_LINE_WIDTH; | |
| 834 | float line_y0 = line_y; | |
| 835 | float line_x1 = x2 - 0.5f * UI_LINE_WIDTH; | |
| 836 | float line_y1 = line_y + line_height; | |
| 840 | 837 | |
| 841 | /* else if the mouse is over this item, draw with a different background */ | |
| 842 | else if (menu->hover == itemnum) | |
| 843 | { | |
| 844 | fgcolor = mouseover_fgcolor; | |
| 845 | bgcolor = mouseover_bgcolor; | |
| 846 | } | |
| 838 | /* set the hover if this is our item */ | |
| 839 | if (mouse_hit && line_x0 <= mouse_x && line_x1 > mouse_x && line_y0 <= mouse_y && line_y1 > mouse_y && item_is_selectable(item)) | |
| 840 | menu->hover = itemnum; | |
| 847 | 841 | |
| 848 | /* if we have some background hilighting to do, add a quad behind everything else */ | |
| 849 | if (bgcolor != text_bgcolor) | |
| 850 | render_ui_add_quad(line_x0, line_y0, line_x1, line_y1, bgcolor, hilight_texture, | |
| 851 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXWRAP(TRUE)); | |
| 842 | /* if we're selected, draw with a different background */ | |
| 843 | if (itemnum == menu->selected) | |
| 844 | { | |
| 845 | fgcolor = sel_fgcolor; | |
| 846 | bgcolor = sel_bgcolor; | |
| 847 | } | |
| 852 | 848 | |
| 853 | /* if we're on the top line, display the up arrow */ | |
| 854 | if (linenum == 0 && top_line != 0) | |
| 855 | { | |
| 856 | render_ui_add_quad( 0.5f * (x1 + x2) - 0.5f * ud_arrow_width, | |
| 857 | line_y + 0.25f * line_height, | |
| 858 | 0.5f * (x1 + x2) + 0.5f * ud_arrow_width, | |
| 859 | line_y + 0.75f * line_height, | |
| 860 | fgcolor, | |
| 861 | arrow_texture, | |
| 862 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXORIENT(ROT0)); | |
| 863 | if (menu->hover == itemnum) | |
| 864 | menu->hover = -2; | |
| 865 | } | |
| 866 | ||
| 867 | /* if we're on the bottom line, display the down arrow */ | |
| 868 | else if (linenum == visible_lines - 1 && itemnum != menu->numitems - 1) | |
| 869 | { | |
| 870 | render_ui_add_quad( 0.5f * (x1 + x2) - 0.5f * ud_arrow_width, | |
| 871 | line_y + 0.25f * line_height, | |
| 872 | 0.5f * (x1 + x2) + 0.5f * ud_arrow_width, | |
| 873 | line_y + 0.75f * line_height, | |
| 874 | fgcolor, | |
| 875 | arrow_texture, | |
| 876 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXORIENT(ROT0 ^ ORIENTATION_FLIP_Y)); | |
| 877 | if (menu->hover == itemnum) | |
| 878 | menu->hover = -1; | |
| 879 | } | |
| 880 | ||
| 881 | /* if we're just a divider, draw a line */ | |
| 882 | else if (strcmp(itemtext, MENU_SEPARATOR_ITEM) == 0) | |
| 883 | render_ui_add_line(visible_left, line_y + 0.5f * line_height, visible_left + visible_width, line_y + 0.5f * line_height, UI_LINE_WIDTH, bgcolor, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 884 | ||
| 885 | /* if we don't have a subitem, just draw the string centered */ | |
| 886 | else if (item->subtext == NULL) | |
| 887 | ui_draw_text_full(itemtext, effective_left, line_y, effective_width, | |
| 888 | JUSTIFY_CENTER, WRAP_TRUNCATE, DRAW_NORMAL, fgcolor, bgcolor, NULL, NULL); | |
| 889 | ||
| 890 | /* otherwise, draw the item on the left and the subitem text on the right */ | |
| 891 | else | |
| 892 | { | |
| 893 | int subitem_invert = item->flags & MENU_FLAG_INVERT; | |
| 894 | const char *subitem_text = item->subtext; | |
| 895 | float item_width, subitem_width; | |
| 896 | ||
| 897 | /* draw the left-side text */ | |
| 898 | ui_draw_text_full(itemtext, effective_left, line_y, effective_width, | |
| 899 | JUSTIFY_LEFT, WRAP_TRUNCATE, DRAW_NORMAL, fgcolor, bgcolor, &item_width, NULL); | |
| 900 | ||
| 901 | /* give 2 spaces worth of padding */ | |
| 902 | item_width += 2.0f * gutter_width; | |
| 903 | ||
| 904 | /* if the subitem doesn't fit here, display dots */ | |
| 905 | if (ui_get_string_width(subitem_text) > effective_width - item_width) | |
| 849 | /* else if the mouse is over this item, draw with a different background */ | |
| 850 | else if (menu->hover == itemnum) | |
| 906 | 851 | { |
| 907 | subitem_text = "..."; | |
| 908 | if (itemnum == menu->selected) | |
| 909 | selected_subitem_too_big = 1; | |
| 852 | fgcolor = mouseover_fgcolor; | |
| 853 | bgcolor = mouseover_bgcolor; | |
| 910 | 854 | } |
| 911 | 855 | |
| 912 | /* draw the subitem right-justified */ | |
| 913 | ui_draw_text_full(subitem_text, effective_left + item_width, line_y, effective_width - item_width, | |
| 914 | JUSTIFY_RIGHT, WRAP_TRUNCATE, subitem_invert ? DRAW_OPAQUE : DRAW_NORMAL, fgcolor, bgcolor, &subitem_width, NULL); | |
| 856 | /* if we have some background hilighting to do, add a quad behind everything else */ | |
| 857 | if (bgcolor != text_bgcolor) | |
| 858 | render_ui_add_quad(line_x0, line_y0, line_x1, line_y1, bgcolor, hilight_texture, | |
| 859 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXWRAP(TRUE)); | |
| 915 | 860 | |
| 916 | /* apply arrows */ | |
| 917 | if (itemnum == menu->selected && (item->flags & MENU_FLAG_LEFT_ARROW)) | |
| 861 | /* if we're on the top line, display the up arrow */ | |
| 862 | if (linenum == 0 && top_line != 0) | |
| 918 | 863 | { |
| 919 | render_ui_add_quad( effective_left + effective_width - subitem_width - gutter_width, | |
| 920 | line_y + 0.1f * line_height, | |
| 921 | effective_left + effective_width - subitem_width - gutter_width + lr_arrow_width, | |
| 922 | line_y + 0.9f * line_height, | |
| 864 | render_ui_add_quad( 0.5f * (x1 + x2) - 0.5f * ud_arrow_width, | |
| 865 | line_y + 0.25f * line_height, | |
| 866 | 0.5f * (x1 + x2) + 0.5f * ud_arrow_width, | |
| 867 | line_y + 0.75f * line_height, | |
| 923 | 868 | fgcolor, |
| 924 | 869 | arrow_texture, |
| 925 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXORIENT(ROT90 ^ ORIENTATION_FLIP_X)); | |
| 870 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXORIENT(ROT0)); | |
| 871 | if (menu->hover == itemnum) | |
| 872 | menu->hover = -2; | |
| 926 | 873 | } |
| 927 | if (itemnum == menu->selected && (item->flags & MENU_FLAG_RIGHT_ARROW)) | |
| 874 | ||
| 875 | /* if we're on the bottom line, display the down arrow */ | |
| 876 | else if (linenum == visible_lines - 1 && itemnum != menu->numitems - 1) | |
| 928 | 877 | { |
| 929 | render_ui_add_quad( effective_left + effective_width + gutter_width - lr_arrow_width, | |
| 930 | line_y + 0.1f * line_height, | |
| 931 | effective_left + effective_width + gutter_width, | |
| 932 | line_y + 0.9f * line_height, | |
| 878 | render_ui_add_quad( 0.5f * (x1 + x2) - 0.5f * ud_arrow_width, | |
| 879 | line_y + 0.25f * line_height, | |
| 880 | 0.5f * (x1 + x2) + 0.5f * ud_arrow_width, | |
| 881 | line_y + 0.75f * line_height, | |
| 933 | 882 | fgcolor, |
| 934 | 883 | arrow_texture, |
| 935 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXORIENT(ROT90)); | |
| 884 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXORIENT(ROT0 ^ ORIENTATION_FLIP_Y)); | |
| 885 | if (menu->hover == itemnum) | |
| 886 | menu->hover = -1; | |
| 936 | 887 | } |
| 888 | ||
| 889 | /* if we're just a divider, draw a line */ | |
| 890 | else if (strcmp(itemtext, MENU_SEPARATOR_ITEM) == 0) | |
| 891 | render_ui_add_line(visible_left, line_y + 0.5f * line_height, visible_left + visible_width, line_y + 0.5f * line_height, UI_LINE_WIDTH, bgcolor, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 892 | ||
| 893 | /* if we don't have a subitem, just draw the string centered */ | |
| 894 | else if (item->subtext == NULL) | |
| 895 | ui_draw_text_full(itemtext, effective_left, line_y, effective_width, | |
| 896 | JUSTIFY_CENTER, WRAP_TRUNCATE, DRAW_NORMAL, fgcolor, bgcolor, NULL, NULL); | |
| 897 | ||
| 898 | /* otherwise, draw the item on the left and the subitem text on the right */ | |
| 899 | else | |
| 900 | { | |
| 901 | int subitem_invert = item->flags & MENU_FLAG_INVERT; | |
| 902 | const char *subitem_text = item->subtext; | |
| 903 | float item_width, subitem_width; | |
| 904 | ||
| 905 | /* draw the left-side text */ | |
| 906 | ui_draw_text_full(itemtext, effective_left, line_y, effective_width, | |
| 907 | JUSTIFY_LEFT, WRAP_TRUNCATE, DRAW_NORMAL, fgcolor, bgcolor, &item_width, NULL); | |
| 908 | ||
| 909 | /* give 2 spaces worth of padding */ | |
| 910 | item_width += 2.0f * gutter_width; | |
| 911 | ||
| 912 | /* if the subitem doesn't fit here, display dots */ | |
| 913 | if (ui_get_string_width(subitem_text) > effective_width - item_width) | |
| 914 | { | |
| 915 | subitem_text = "..."; | |
| 916 | if (itemnum == menu->selected) | |
| 917 | selected_subitem_too_big = TRUE; | |
| 918 | } | |
| 919 | ||
| 920 | /* draw the subitem right-justified */ | |
| 921 | ui_draw_text_full(subitem_text, effective_left + item_width, line_y, effective_width - item_width, | |
| 922 | JUSTIFY_RIGHT, WRAP_TRUNCATE, subitem_invert ? DRAW_OPAQUE : DRAW_NORMAL, fgcolor, bgcolor, &subitem_width, NULL); | |
| 923 | ||
| 924 | /* apply arrows */ | |
| 925 | if (itemnum == menu->selected && (item->flags & MENU_FLAG_LEFT_ARROW)) | |
| 926 | { | |
| 927 | render_ui_add_quad( effective_left + effective_width - subitem_width - gutter_width, | |
| 928 | line_y + 0.1f * line_height, | |
| 929 | effective_left + effective_width - subitem_width - gutter_width + lr_arrow_width, | |
| 930 | line_y + 0.9f * line_height, | |
| 931 | fgcolor, | |
| 932 | arrow_texture, | |
| 933 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXORIENT(ROT90 ^ ORIENTATION_FLIP_X)); | |
| 934 | } | |
| 935 | if (itemnum == menu->selected && (item->flags & MENU_FLAG_RIGHT_ARROW)) | |
| 936 | { | |
| 937 | render_ui_add_quad( effective_left + effective_width + gutter_width - lr_arrow_width, | |
| 938 | line_y + 0.1f * line_height, | |
| 939 | effective_left + effective_width + gutter_width, | |
| 940 | line_y + 0.9f * line_height, | |
| 941 | fgcolor, | |
| 942 | arrow_texture, | |
| 943 | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXORIENT(ROT90)); | |
| 944 | } | |
| 945 | } | |
| 937 | 946 | } |
| 938 | } | |
| 939 | 947 | |
| 940 | 948 | /* if the selected subitem is too big, display it in a separate offset box */ |
| 941 | 949 | if (selected_subitem_too_big) |
| r3115 | r3116 | |
| 1331 | 1339 | |
| 1332 | 1340 | |
| 1333 | 1341 | /*------------------------------------------------- |
| 1342 | ui_slider_ui_handler - pushes the slider | |
| 1343 | menu on the stack and hands off to the | |
| 1344 | standard menu handler | |
| 1345 | -------------------------------------------------*/ | |
| 1346 | ||
| 1347 | UINT32 ui_slider_ui_handler(running_machine *machine, UINT32 state) | |
| 1348 | { | |
| 1349 | /* if we have no menus stacked up, start with the sliders menu */ | |
| 1350 | if (menu_stack == NULL) | |
| 1351 | ui_menu_stack_push(ui_menu_alloc(machine, menu_sliders, machine)); | |
| 1352 | return ui_menu_ui_handler(machine, state); | |
| 1353 | } | |
| 1354 | ||
| 1355 | ||
| 1356 | /*------------------------------------------------- | |
| 1334 | 1357 | ui_menu_force_game_select - force the game |
| 1335 | 1358 | select menu to be visible and inescapable |
| 1336 | 1359 | -------------------------------------------------*/ |
| r3115 | r3116 | |
| 1459 | 1482 | #endif /* HAS_WAVE */ |
| 1460 | 1483 | #endif /* MESS */ |
| 1461 | 1484 | |
| 1485 | /* add sliders menu */ | |
| 1486 | ui_menu_item_append(menu, "Slider Controls", NULL, 0, menu_sliders); | |
| 1487 | ||
| 1462 | 1488 | /* add video options menu */ |
| 1463 | 1489 | ui_menu_item_append(menu, "Video Options", NULL, 0, (render_target_get_indexed(1) != NULL) ? menu_video_targets : menu_video_options); |
| 1464 | 1490 | |
| r3115 | r3116 | |
| 2574 | 2600 | /* left decrements the card number */ |
| 2575 | 2601 | case IPT_UI_LEFT: |
| 2576 | 2602 | *cardnum -= 1; |
| 2603 | ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_REF); | |
| 2577 | 2604 | break; |
| 2578 | 2605 | |
| 2579 | 2606 | /* right decrements the card number */ |
| 2580 | 2607 | case IPT_UI_RIGHT: |
| 2581 | 2608 | *cardnum += 1; |
| 2609 | ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_REF); | |
| 2582 | 2610 | break; |
| 2583 | 2611 | } |
| 2584 | 2612 | } |
| r3115 | r3116 | |
| 2613 | 2641 | |
| 2614 | 2642 | |
| 2615 | 2643 | /*------------------------------------------------- |
| 2644 | menu_sliders - handle the sliders menu | |
| 2645 | -------------------------------------------------*/ | |
| 2646 | ||
| 2647 | static void menu_sliders(running_machine *machine, ui_menu *menu, void *parameter, void *state) | |
| 2648 | { | |
| 2649 | const ui_menu_event *event; | |
| 2650 | UINT8 *hidden = state; | |
| 2651 | ||
| 2652 | /* if no state, allocate some */ | |
| 2653 | if (hidden == NULL) | |
| 2654 | hidden = ui_menu_alloc_state(menu, sizeof(*hidden), NULL); | |
| 2655 | ||
| 2656 | /* if the menu isn't built, populate now */ | |
| 2657 | if (!ui_menu_populated(menu)) | |
| 2658 | menu_sliders_populate(machine, menu); | |
| 2659 | ||
| 2660 | /* process the menu */ | |
| 2661 | event = ui_menu_process(menu, UI_MENU_PROCESS_LR_REPEAT | (*hidden ? UI_MENU_PROCESS_CUSTOM_ONLY : 0)); | |
| 2662 | if (event != NULL) | |
| 2663 | { | |
| 2664 | /* handle keys if there is a valid item selected */ | |
| 2665 | if (event->itemref != NULL) | |
| 2666 | { | |
| 2667 | const slider_state *slider = event->itemref; | |
| 2668 | INT32 curvalue = (*slider->update)(machine, slider->arg, NULL, SLIDER_NOCHANGE); | |
| 2669 | INT32 increment = 0; | |
| 2670 | ||
| 2671 | switch (event->iptkey) | |
| 2672 | { | |
| 2673 | /* toggle visibility */ | |
| 2674 | case IPT_UI_ON_SCREEN_DISPLAY: | |
| 2675 | *hidden = !*hidden; | |
| 2676 | break; | |
| 2677 | ||
| 2678 | /* decrease value */ | |
| 2679 | case IPT_UI_LEFT: | |
| 2680 | if (input_code_pressed(KEYCODE_LALT) || input_code_pressed(KEYCODE_RALT)) | |
| 2681 | increment = -1; | |
| 2682 | else if (input_code_pressed(KEYCODE_LSHIFT) || input_code_pressed(KEYCODE_RSHIFT)) | |
| 2683 | increment = (slider->incval > 10) ? -(slider->incval / 10) : -1; | |
| 2684 | else if (input_code_pressed(KEYCODE_LCONTROL) || input_code_pressed(KEYCODE_RCONTROL)) | |
| 2685 | increment = -slider->incval * 10; | |
| 2686 | else | |
| 2687 | increment = -slider->incval; | |
| 2688 | break; | |
| 2689 | ||
| 2690 | /* increase value */ | |
| 2691 | case IPT_UI_RIGHT: | |
| 2692 | if (input_code_pressed(KEYCODE_LALT) || input_code_pressed(KEYCODE_RALT)) | |
| 2693 | increment = 1; | |
| 2694 | else if (input_code_pressed(KEYCODE_LSHIFT) || input_code_pressed(KEYCODE_RSHIFT)) | |
| 2695 | increment = (slider->incval > 10) ? (slider->incval / 10) : 1; | |
| 2696 | else if (input_code_pressed(KEYCODE_LCONTROL) || input_code_pressed(KEYCODE_RCONTROL)) | |
| 2697 | increment = slider->incval * 10; | |
| 2698 | else | |
| 2699 | increment = slider->incval; | |
| 2700 | break; | |
| 2701 | ||
| 2702 | /* restore default */ | |
| 2703 | case IPT_UI_SELECT: | |
| 2704 | increment = slider->defval - curvalue; | |
| 2705 | break; | |
| 2706 | } | |
| 2707 | ||
| 2708 | /* handle any changes */ | |
| 2709 | if (increment != 0) | |
| 2710 | { | |
| 2711 | INT32 newvalue = curvalue + increment; | |
| 2712 | ||
| 2713 | /* clamp within bounds */ | |
| 2714 | if (newvalue < slider->minval) | |
| 2715 | newvalue = slider->minval; | |
| 2716 | if (newvalue > slider->maxval) | |
| 2717 | newvalue = slider->maxval; | |
| 2718 | ||
| 2719 | /* update the slider and recompute the menu */ | |
| 2720 | (*slider->update)(machine, slider->arg, NULL, newvalue); | |
| 2721 | ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_REF); | |
| 2722 | } | |
| 2723 | } | |
| 2724 | ||
| 2725 | /* if we are selecting an invalid item and we are hidden, skip to the next one */ | |
| 2726 | else if (*hidden) | |
| 2727 | { | |
| 2728 | /* if we got here via up or page up, select the previous item */ | |
| 2729 | if (event->iptkey == IPT_UI_UP || event->iptkey == IPT_UI_PAGE_UP) | |
| 2730 | { | |
| 2731 | menu->selected = (menu->selected + menu->numitems - 1) % menu->numitems; | |
| 2732 | ui_menu_validate_selection(menu, -1); | |
| 2733 | } | |
| 2734 | ||
| 2735 | /* otherwise select the next item */ | |
| 2736 | else if (event->iptkey == IPT_UI_DOWN || event->iptkey == IPT_UI_PAGE_DOWN) | |
| 2737 | { | |
| 2738 | menu->selected = (menu->selected + 1) % menu->numitems; | |
| 2739 | ui_menu_validate_selection(menu, 1); | |
| 2740 | } | |
| 2741 | } | |
| 2742 | } | |
| 2743 | } | |
| 2744 | ||
| 2745 | ||
| 2746 | /*------------------------------------------------- | |
| 2747 | menu_sliders_populate - populate the sliders | |
| 2748 | menu | |
| 2749 | -------------------------------------------------*/ | |
| 2750 | ||
| 2751 | static void menu_sliders_populate(running_machine *machine, ui_menu *menu) | |
| 2752 | { | |
| 2753 | astring *tempstring = astring_alloc(); | |
| 2754 | const slider_state *curslider; | |
| 2755 | ||
| 2756 | /* add all sliders */ | |
| 2757 | for (curslider = ui_get_slider_list(); curslider != NULL; curslider = curslider->next) | |
| 2758 | { | |
| 2759 | INT32 curval = (*curslider->update)(machine, curslider->arg, tempstring, SLIDER_NOCHANGE); | |
| 2760 | UINT32 flags = 0; | |
| 2761 | if (curval > curslider->minval) | |
| 2762 | flags |= MENU_FLAG_LEFT_ARROW; | |
| 2763 | if (curval < curslider->maxval) | |
| 2764 | flags |= MENU_FLAG_RIGHT_ARROW; | |
| 2765 | ui_menu_item_append(menu, curslider->description, astring_c(tempstring), flags, (void *)curslider); | |
| 2766 | } | |
| 2767 | ||
| 2768 | ui_menu_set_custom_render(menu, menu_sliders_custom_render, 0.0f, 2.0f * ui_get_line_height()); | |
| 2769 | astring_free(tempstring); | |
| 2770 | } | |
| 2771 | ||
| 2772 | ||
| 2773 | /*------------------------------------------------- | |
| 2774 | menu_sliders_custom_render - perform our special | |
| 2775 | rendering | |
| 2776 | -------------------------------------------------*/ | |
| 2777 | ||
| 2778 | static void menu_sliders_custom_render(running_machine *machine, ui_menu *menu, void *state, void *selectedref, float top, float bottom, float x1, float y1, float x2, float y2) | |
| 2779 | { | |
| 2780 | const slider_state *curslider = selectedref; | |
| 2781 | if (curslider != NULL) | |
| 2782 | { | |
| 2783 | astring *tempstring = astring_alloc(); | |
| 2784 | INT32 curval = (*curslider->update)(machine, curslider->arg, tempstring, SLIDER_NOCHANGE); | |
| 2785 | float percentage = (float)(curval - curslider->minval) / (float)(curslider->maxval - curslider->minval); | |
| 2786 | float default_percentage = (float)(curslider->defval - curslider->minval) / (float)(curslider->maxval - curslider->minval); | |
| 2787 | float bar_left, bar_area_top, bar_width, bar_area_height, bar_top, bar_bottom, default_x, current_x; | |
| 2788 | float space_width = ui_get_char_width(' '); | |
| 2789 | float line_height = ui_get_line_height(); | |
| 2790 | float ui_width, ui_height; | |
| 2791 | float text_height; | |
| 2792 | ||
| 2793 | /* finish assembling the text */ | |
| 2794 | astring_insc(tempstring, 0, " "); | |
| 2795 | astring_insc(tempstring, 0, curslider->description); | |
| 2796 | ||
| 2797 | /* leave a spaces' worth of room along the left/right sides, and a lines' worth on the top/bottom */ | |
| 2798 | ui_width = 1.0f - 2.0f * space_width; | |
| 2799 | ui_height = 1.0f - 2.0f * line_height; | |
| 2800 | ||
| 2801 | /* determine the text height */ | |
| 2802 | ui_draw_text_full(astring_c(tempstring), 0, 0, ui_width - 2 * UI_BOX_LR_BORDER, | |
| 2803 | JUSTIFY_CENTER, WRAP_WORD, DRAW_NONE, ARGB_WHITE, ARGB_BLACK, NULL, &text_height); | |
| 2804 | ||
| 2805 | /* add a box around the whole area */ | |
| 2806 | ui_draw_outlined_box(space_width, | |
| 2807 | line_height + ui_height - text_height - line_height - 2 * UI_BOX_TB_BORDER, | |
| 2808 | space_width + ui_width, | |
| 2809 | line_height + ui_height, UI_FILLCOLOR); | |
| 2810 | ||
| 2811 | /* draw the thermometer */ | |
| 2812 | bar_left = 2.0f * space_width; | |
| 2813 | bar_area_top = line_height + ui_height - UI_BOX_TB_BORDER - text_height - line_height * 0.75f; | |
| 2814 | bar_width = ui_width - 2.0f * space_width; | |
| 2815 | bar_area_height = line_height * 0.75f; | |
| 2816 | ||
| 2817 | /* compute positions */ | |
| 2818 | bar_top = bar_area_top + 0.125f * bar_area_height; | |
| 2819 | bar_bottom = bar_area_top + 0.875f * bar_area_height; | |
| 2820 | default_x = bar_left + bar_width * default_percentage; | |
| 2821 | current_x = bar_left + bar_width * percentage; | |
| 2822 | ||
| 2823 | /* fill in the percentage */ | |
| 2824 | render_ui_add_rect(bar_left, bar_top, current_x, bar_bottom, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 2825 | ||
| 2826 | /* draw the top and bottom lines */ | |
| 2827 | render_ui_add_line(bar_left, bar_top, bar_left + bar_width, bar_top, UI_LINE_WIDTH, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 2828 | render_ui_add_line(bar_left, bar_bottom, bar_left + bar_width, bar_bottom, UI_LINE_WIDTH, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 2829 | ||
| 2830 | /* draw default marker */ | |
| 2831 | render_ui_add_line(default_x, bar_area_top, default_x, bar_top, UI_LINE_WIDTH, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 2832 | render_ui_add_line(default_x, bar_bottom, default_x, bar_area_top + bar_area_height, UI_LINE_WIDTH, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 2833 | ||
| 2834 | /* draw the actual text */ | |
| 2835 | ui_draw_text_full(astring_c(tempstring), space_width + UI_BOX_LR_BORDER, line_height + ui_height - UI_BOX_TB_BORDER - text_height, ui_width - 2.0f * UI_BOX_LR_BORDER, | |
| 2836 | JUSTIFY_CENTER, WRAP_WORD, DRAW_NORMAL, ARGB_WHITE, ARGB_BLACK, NULL, &text_height); | |
| 2837 | ||
| 2838 | astring_free(tempstring); | |
| 2839 | } | |
| 2840 | } | |
| 2841 | ||
| 2842 | ||
| 2843 | /*------------------------------------------------- | |
| 2616 | 2844 | menu_video_targets - handle the video targets |
| 2617 | 2845 | menu |
| 2618 | 2846 | -------------------------------------------------*/ |
| r3115 | r3116 | |
| 2807 | 3035 | { |
| 2808 | 3036 | select_game_state *menustate; |
| 2809 | 3037 | const ui_menu_event *event; |
| 2810 | int changed = FALSE; | |
| 2811 | 3038 | |
| 2812 | 3039 | /* if no state, allocate some */ |
| 2813 | 3040 | if (state == NULL) |
| r3115 | r3116 | |
| 2865 | 3092 | /* otherwise, display an error */ |
| 2866 | 3093 | else |
| 2867 | 3094 | { |
| 2868 | | |
| 3095 | ui_menu_reset(menu, UI_MENU_RESET_R | |
| 2869 | 3096 | menustate->error = TRUE; |
| 2870 | 3097 | } |
| 2871 | 3098 | } |
| r3115 | r3116 | |
| 2888 | 3115 | { |
| 2889 | 3116 | *(char *)utf8_previous_char(&menustate->search[buflen]) = 0; |
| 2890 | 3117 | menustate->rerandomize = TRUE; |
| 2891 | | |
| 3118 | ui_menu_reset(menu, | |
| 2892 | 3119 | } |
| 2893 | 3120 | |
| 2894 | 3121 | /* if it's any other key and we're not maxed out, update */ |
| r3115 | r3116 | |
| 2896 | 3123 | { |
| 2897 | 3124 | buflen += utf8_from_uchar(&menustate->search[buflen], ARRAY_LENGTH(menustate->search) - buflen, event->unichar); |
| 2898 | 3125 | menustate->search[buflen] = 0; |
| 2899 | | |
| 3126 | ui_menu_reset(menu, | |
| 2900 | 3127 | } |
| 2901 | 3128 | } |
| 2902 | 3129 | } |
| r3115 | r3116 | |
| 2906 | 3133 | ui_draw_text_box("The selected game is missing one or more required ROM or CHD images. " |
| 2907 | 3134 | "Please select a different game.\n\nPress any key to continue.", |
| 2908 | 3135 | JUSTIFY_CENTER, 0.5f, 0.5f, UI_REDCOLOR); |
| 2909 | ||
| 2910 | /* if we changed, force a redraw on the next go */ | |
| 2911 | if (changed) | |
| 2912 | ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_REF); | |
| 2913 | 3136 | } |
| 2914 | 3137 | |
| 2915 | 3138 |
| r3115 | r3116 | |
|---|---|---|
| 437 | 437 | else if (hash_data_has_info(record->exphash, HASH_INFO_NO_DUMP)) |
| 438 | 438 | set_status(record, AUDIT_STATUS_NOT_FOUND, SUBSTATUS_NOT_FOUND_NODUMP); |
| 439 | 439 | |
| 440 | /* not found but optional */ | |
| 441 | else if (DISK_ISOPTIONAL(rom)) | |
| 442 | set_status(record, AUDIT_STATUS_NOT_FOUND, SUBSTATUS_NOT_FOUND_OPTIONAL); | |
| 443 | ||
| 440 | 444 | /* not found at all */ |
| 441 | 445 | else |
| 442 | 446 | set_status(record, AUDIT_STATUS_NOT_FOUND, SUBSTATUS_NOT_FOUND); |
| r3115 | r3116 | |
|---|---|---|
| 269 | 269 | INLINE int effective_throttle(running_machine *machine) |
| 270 | 270 | { |
| 271 | 271 | /* if we're paused, or if the UI is active, we always throttle */ |
| 272 | if (mame_is_paused(machine) || ui_is_menu_active() | |
| 272 | if (mame_is_paused(machine) || ui_is_menu_active() | |
| 273 | 273 | return TRUE; |
| 274 | 274 | |
| 275 | 275 | /* if we're fast forwarding, we don't throttle */ |
| r3115 | r3116 | |
|---|---|---|
| 35 | 35 | /* flags to pass to ui_menu_process */ |
| 36 | 36 | #define UI_MENU_PROCESS_NOKEYS 1 |
| 37 | 37 | #define UI_MENU_PROCESS_LR_REPEAT 2 |
| 38 | #define UI_MENU_PROCESS_CUSTOM_ONLY 4 | |
| 38 | 39 | |
| 39 | 40 | /* options for ui_menu_reset */ |
| 40 | 41 | enum _ui_menu_reset_options |
| r3115 | r3116 | |
| 142 | 143 | /* master handler */ |
| 143 | 144 | UINT32 ui_menu_ui_handler(running_machine *machine, UINT32 state); |
| 144 | 145 | |
| 146 | /* slider handler */ | |
| 147 | UINT32 ui_slider_ui_handler(running_machine *machine, UINT32 state); | |
| 148 | ||
| 145 | 149 | /* force game select menu */ |
| 146 | 150 | void ui_menu_force_game_select(void); |
| 147 | 151 | int ui_menu_is_force_game_select(void); |
| r3115 | r3116 | |
|---|---|---|
| 138 | 138 | $(EMUMACHINE)/i2cmem.o \ |
| 139 | 139 | $(EMUMACHINE)/idectrl.o \ |
| 140 | 140 | $(EMUMACHINE)/intelfsh.o \ |
| 141 | $(EMUMACHINE)/latch8.o \ | |
| 141 | 142 | $(EMUMACHINE)/laserdsc.o \ |
| 142 | 143 | $(EMUMACHINE)/mb3773.o \ |
| 143 | 144 | $(EMUMACHINE)/mb87078.o \ |
| r3115 | r3116 | |
|---|---|---|
| 1984 | 1984 | static void frame_update(running_machine *machine) |
| 1985 | 1985 | { |
| 1986 | 1986 | input_port_private *portdata = machine->input_port_data; |
| 1987 | int ui_visible = ui_is_menu_active() | |
| 1987 | int ui_visible = ui_is_menu_active() | |
| 1988 | 1988 | attotime curtime = timer_get_time(); |
| 1989 | 1989 | const input_port_config *port; |
| 1990 | 1990 |
| r3115 | r3116 | |
|---|---|---|
| 132 | 132 | (*type)(NULL, DEVINFO_FCT_RESET, &info); |
| 133 | 133 | device->reset = info.reset; |
| 134 | 134 | |
| 135 | info.nvram = NULL; | |
| 136 | (*type)(NULL, DEVINFO_FCT_NVRAM, &info); | |
| 137 | device->nvram = info.nvram; | |
| 138 | ||
| 135 | 139 | /* link us to the end and return */ |
| 136 | 140 | *devptr = device; |
| 137 | 141 | return device; |
| r3115 | r3116 | |
| 591 | 595 | |
| 592 | 596 | |
| 593 | 597 | /*------------------------------------------------- |
| 598 | devtag_get_device - return the device associated | |
| 599 | with a tag | |
| 600 | -------------------------------------------------*/ | |
| 601 | ||
| 602 | const device_config *devtag_get_device(running_machine *machine, device_type type, const char *tag) | |
| 603 | { | |
| 604 | const device_config *device; | |
| 605 | ||
| 606 | assert(machine != NULL); | |
| 607 | assert(type != NULL); | |
| 608 | assert(tag != NULL); | |
| 609 | ||
| 610 | device = device_list_find_by_tag(machine->config->devicelist, type, tag); | |
| 611 | if (device == NULL) | |
| 612 | fatalerror("devtag_get_device failed to find device: type=%s tag=%s\n", devtype_name(type), tag); | |
| 613 | return device; | |
| 614 | } | |
| 615 | ||
| 616 | ||
| 617 | /*------------------------------------------------- | |
| 594 | 618 | devtag_get_static_config - return a pointer to |
| 595 | 619 | the static configuration for a device based on |
| 596 | 620 | type and tag |
| r3115 | r3116 | |
|---|---|---|
| 38 | 38 | // |
| 39 | 39 | static const char roc10937ASCII[]= |
| 40 | 40 | //0123456789ABCDEF0123456789ABC DEF01 23456789ABCDEF0123456789ABCDEF |
| 41 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?"\ | |
| 42 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?"\ | |
| 41 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?" | |
| 42 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?" | |
| 43 | 43 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?"; |
| 44 | 44 | |
| 45 | 45 | /* |
| r3115 | r3116 | |
|---|---|---|
| 2602 | 2602 | break; |
| 2603 | 2603 | |
| 2604 | 2604 | case 0x04: CMDPRINTF(("pr8210: Step forward\n")); |
| 2605 | /* step forward */ | |
| 2605 | /* step forward one frame */ | |
| 2606 | 2606 | if (laserdisc_ready(ld)) |
| 2607 | set_state(ld, LASERDISC_STEPPING_FORWARD, PR8210_STEP_SPEED, NULL_TARGET_FRAME); | |
| 2607 | { | |
| 2608 | set_state(ld, LASERDISC_STEPPING_FORWARD, STOP_SPEED, NULL_TARGET_FRAME); | |
| 2609 | add_to_current_track(ld, ONE_TRACK); | |
| 2610 | } | |
| 2608 | 2611 | break; |
| 2609 | 2612 | |
| 2610 | 2613 | case 0x06 : CMDPRINTF(("pr8210: Chapter\n")); |
| r3115 | r3116 | |
|---|---|---|
| 3 | 3 | * |
| 4 | 4 | * 16K ( 2K x 8 ) Parallel EEPROM |
| 5 | 5 | * |
| 6 | * Todo: | |
| 7 | * Emulate write timing. | |
| 8 | * | |
| 9 | 6 | */ |
| 10 | 7 | |
| 11 | 8 | #include "driver.h" |
| r3115 | r3116 | |
| 15 | 12 | #define SIZE_ID ( 0x020 ) |
| 16 | 13 | #define OFFSET_ID ( SIZE_DATA - SIZE_ID ) |
| 17 | 14 | |
| 18 | struct | |
| 15 | typedef struct | |
| 19 | 16 | { |
| 20 | 17 | UINT8 *data; |
| 21 | 18 | UINT8 *id; |
| 22 | UINT8 a9_12v; | |
| 23 | }; | |
| 19 | UINT8 *default_data; | |
| 20 | UINT8 *default_id; | |
| 21 | int last_write; | |
| 22 | int a9_12v; | |
| 23 | int oe_12v; | |
| 24 | emu_timer *write_timer; | |
| 25 | } at28c16_state; | |
| 24 | 26 | |
| 25 | static struct at28c16_chip at28c16[ MAX_AT28C16_CHIPS ]; | |
| 27 | static TIMER_CALLBACK( write_finished ) | |
| 28 | { | |
| 29 | at28c16_state *c = (at28c16_state *) ptr; | |
| 30 | c->last_write = -1; | |
| 31 | } | |
| 26 | 32 | |
| 27 | void at28c16_a9_12v( int chip, int a9_12v ) | |
| 33 | /*------------------------------------------------- | |
| 34 | get_safe_token - makes sure that the passed | |
| 35 | in device is, in fact, an AT28C16 | |
| 36 | -------------------------------------------------*/ | |
| 37 | ||
| 38 | INLINE at28c16_state *get_safe_token(const device_config *device) | |
| 28 | 39 | { |
| 29 | struct at28c16_chip *c; | |
| 30 | if( chip >= MAX_AT28C16_CHIPS ) | |
| 40 | assert(device != NULL); | |
| 41 | assert(device->token != NULL); | |
| 42 | assert(device->type == AT28C16); | |
| 43 | ||
| 44 | return (at28c16_state *)device->token; | |
| 45 | } | |
| 46 | ||
| 47 | WRITE8_DEVICE_HANDLER( at28c16_w ) | |
| 48 | { | |
| 49 | at28c16_state *c = get_safe_token(device); | |
| 50 | ||
| 51 | if( c->last_write >= 0 ) | |
| 31 | 52 | { |
| 32 | logerror( "at28c16_a9_12v: invalid chip %d\n", chip ); | |
| 33 | return; | |
| 53 | // logerror( "%08x: at28c16_write( %d, %04x, %02x ) busy\n", activecpu_get_pc(), chip, offset, data ); | |
| 34 | 54 | } |
| 35 | c = &at28c16[ chip ]; | |
| 36 | ||
| 37 | c->a9_12v = a9_12v; | |
| 55 | else if( c->oe_12v ) | |
| 56 | { | |
| 57 | // logerror( "%08x: at28c16_write( %d, %04x, %02x ) erase\n", activecpu_get_pc(), chip, offset, data ); | |
| 58 | memset( c->data, 0xff, SIZE_DATA ); | |
| 59 | memset( c->id, 0xff, SIZE_ID ); | |
| 60 | c->last_write = 0xff; | |
| 61 | timer_adjust_oneshot( c->write_timer, ATTOTIME_IN_USEC( 200 ), 0 ); | |
| 62 | } | |
| 63 | else if( offset >= OFFSET_ID && c->a9_12v ) | |
| 64 | { | |
| 65 | // logerror( "%08x: at28c16_write( %d, %04x, %02x ) id\n", activecpu_get_pc(), chip, offset, data ); | |
| 66 | c->id[ offset - OFFSET_ID ] = data; | |
| 67 | c->last_write = data; | |
| 68 | timer_adjust_oneshot( c->write_timer, ATTOTIME_IN_USEC( 200 ), 0 ); | |
| 69 | } | |
| 70 | else | |
| 71 | { | |
| 72 | // logerror( "%08x: at28c16_write( %d, %04x, %02x ) data\n", activecpu_get_pc(), chip, offset, data ); | |
| 73 | c->data[ offset ] = data; | |
| 74 | c->last_write = data; | |
| 75 | timer_adjust_oneshot( c->write_timer, ATTOTIME_IN_USEC( 200 ), 0 ); | |
| 76 | } | |
| 38 | 77 | } |
| 39 | 78 | |
| 40 | /* nvram handlers */ | |
| 41 | 79 | |
| 42 | ||
| 80 | READ8_DEVICE_HANDLER( at28c16_r | |
| 43 | 81 | { |
| 44 | struct at28c16_chip *c; | |
| 45 | if( chip >= MAX_AT28C16_CHIPS ) | |
| 82 | at28c16_state *c = get_safe_token(device); | |
| 83 | ||
| 84 | if( c->last_write >= 0 ) | |
| 46 | 85 | { |
| 47 | logerror( "at28c16_init: invalid chip %d\n", chip ); | |
| 48 | return; | |
| 86 | // logerror( "at28c16_read( %04x ) write status\n", offset ); | |
| 87 | return c->last_write ^ 0x80; | |
| 49 | 88 | } |
| 50 | c = &at28c16[ chip ]; | |
| 89 | else if( offset >= OFFSET_ID && c->a9_12v ) | |
| 90 | { | |
| 91 | // logerror( "at28c16_read( %04x ) id\n", offset ); | |
| 92 | return c->id[ offset - OFFSET_ID ]; | |
| 93 | } | |
| 94 | else | |
| 95 | { | |
| 96 | // logerror( "%08x: at28c16_read( %d, %04x ) %02x data\n", activecpu_get_pc(), chip, offset, c->data[ offset ] ); | |
| 97 | return c->data[ offset ]; | |
| 98 | } | |
| 99 | } | |
| 51 | 100 | |
| 101 | void at28c16_a9_12v( const device_config *device, int a9_12v ) | |
| 102 | { | |
| 103 | at28c16_state *c = get_safe_token(device); | |
| 104 | ||
| 105 | c->a9_12v = a9_12v; | |
| 106 | } | |
| 107 | ||
| 108 | void at28c16_oe_12v( const device_config *device, int oe_12v ) | |
| 109 | { | |
| 110 | at28c16_state *c = get_safe_token(device); | |
| 111 | ||
| 112 | c->oe_12v = oe_12v; | |
| 113 | } | |
| 114 | ||
| 115 | /*------------------------------------------------- | |
| 116 | device start callback | |
| 117 | -------------------------------------------------*/ | |
| 118 | ||
| 119 | static DEVICE_START(at28c16) | |
| 120 | { | |
| 121 | at28c16_state *c = get_safe_token(device); | |
| 122 | const at28c16_config *config; | |
| 123 | char unique_tag[50]; | |
| 124 | ||
| 125 | /* validate some basic stuff */ | |
| 126 | assert(device != NULL); | |
| 127 | // assert(device->static_config != NULL); | |
| 128 | assert(device->inline_config == NULL); | |
| 129 | assert(device->machine != NULL); | |
| 130 | assert(device->machine->config != NULL); | |
| 131 | ||
| 132 | c->data = auto_malloc( SIZE_DATA ); | |
| 133 | c->id = auto_malloc( SIZE_ID ); | |
| 52 | 134 | c->a9_12v = 0; |
| 135 | c->oe_12v = 0; | |
| 136 | c->last_write = -1; | |
| 137 | c->write_timer = timer_alloc( write_finished, c ); | |
| 53 | 138 | |
| 54 | if( data == NULL ) | |
| 139 | config = device->static_config; | |
| 140 | if( config != NULL && config->data != NULL ) | |
| 55 | 141 | { |
| 56 | data = | |
| 142 | c->default_data = memory_region( device->ma | |
| 57 | 143 | } |
| 58 | 144 | |
| 59 | if( i | |
| 145 | if( config != NULL && config->id != NULL ) | |
| 60 | 146 | { |
| 61 | id = | |
| 147 | c->default_id = memory_region( device->ma | |
| 62 | 148 | } |
| 63 | 149 | |
| 64 | c->data = data; | |
| 65 | c->id = id; | |
| 150 | /* create the name for save states */ | |
| 151 | assert( strlen( device->tag ) < 30 ); | |
| 152 | state_save_combine_module_and_tag( unique_tag, "at28c16", device->tag ); | |
| 66 | 153 | |
| 67 | state_save_register_item_pointer( "at28c16", chip, c->data, SIZE_DATA ); | |
| 68 | state_save_register_item_pointer( "at28c16", chip, c->id, SIZE_ID ); | |
| 69 | state_save_register_item( "at28c16", chip, c->a9_12v ); | |
| 154 | state_save_register_item_pointer( unique_tag, 0, c->data, SIZE_DATA ); | |
| 155 | state_save_register_item_pointer( unique_tag, 0, c->id, SIZE_ID ); | |
| 156 | state_save_register_item( unique_tag, 0, c->a9_12v ); | |
| 157 | state_save_register_item( unique_tag, 0, c->oe_12v ); | |
| 158 | state_save_register_item( unique_tag, 0, c->last_write ); | |
| 70 | 159 | } |
| 71 | 160 | |
| 72 | static void nvram_handler_at28c16( running_machine *machine, int chip, mame_file *file, int read_or_write ) | |
| 161 | /*------------------------------------------------- | |
| 162 | device reset callback | |
| 163 | -------------------------------------------------*/ | |
| 164 | ||
| 165 | static DEVICE_RESET(at28c16) | |
| 73 | 166 | { |
| 74 | struct at28c16_chip *c; | |
| 75 | if( chip >= MAX_AT28C16_CHIPS ) | |
| 76 | { | |
| 77 | logerror( "at28c16_nvram_handler: invalid chip %d\n", chip ); | |
| 78 | return; | |
| 79 | } | |
| 80 | c = &at28c16[ chip ]; | |
| 167 | } | |
| 81 | 168 | |
| 169 | static DEVICE_NVRAM(at28c16) | |
| 170 | { | |
| 171 | at28c16_state *c = get_safe_token(device); | |
| 172 | ||
| 82 | 173 | if( read_or_write ) |
| 83 | 174 | { |
| 84 | 175 | mame_fwrite( file, c->data, SIZE_DATA ); |
| r3115 | r3116 | |
| 91 | 182 | mame_fread( file, c->data, SIZE_DATA ); |
| 92 | 183 | mame_fread( file, c->id, SIZE_ID ); |
| 93 | 184 | } |
| 185 | else | |
| 186 | { | |
| 187 | if( c->default_data != NULL ) | |
| 188 | { | |
| 189 | memcpy( c->data, c->default_data, SIZE_DATA ); | |
| 190 | } | |
| 191 | else | |
| 192 | { | |
| 193 | memset( c->data, 0xff, SIZE_DATA ); | |
| 194 | } | |
| 195 | ||
| 196 | if( c->default_id != NULL ) | |
| 197 | { | |
| 198 | memcpy( c->id, c->default_id, SIZE_ID ); | |
| 199 | } | |
| 200 | else | |
| 201 | { | |
| 202 | memset( c->id, 0xff, SIZE_ID ); | |
| 203 | } | |
| 204 | } | |
| 94 | 205 | } |
| 95 | 206 | } |
| 96 | 207 | |
| 97 | NVRAM_HANDLER( at28c16_0 ) { nvram_handler_at28c16( machine, 0, file, read_or_write ); } | |
| 98 | NVRAM_HANDLER( at28c16_1 ) { nvram_handler_at28c16( machine, 1, file, read_or_write ); } | |
| 99 | NVRAM_HANDLER( at28c16_2 ) { nvram_handler_at28c16( machine, 2, file, read_or_write ); } | |
| 100 | NVRAM_HANDLER( at28c16_3 ) { nvram_handler_at28c16( machine, 3, file, read_or_write ); } | |
| 208 | /*------------------------------------------------- | |
| 209 | device set info callback | |
| 210 | -------------------------------------------------*/ | |
| 101 | 211 | |
| 102 | /* read / write */ | |
| 103 | ||
| 104 | static UINT8 at28c16_read( UINT32 chip, offs_t offset ) | |
| 212 | static DEVICE_SET_INFO(at28c16) | |
| 105 | 213 | { |
| 106 | struct at28c16_chip *c; | |
| 107 | if( chip >= MAX_AT28C16_CHIPS ) | |
| 214 | switch (state) | |
| 108 | 215 | { |
| 109 | logerror( "at28c16_read( %d, %04x ) chip out of range\n", chip, offset ); | |
| 110 | return 0; | |
| 216 | /* no parameters to set */ | |
| 111 | 217 | } |
| 112 | c = &at28c16[ chip ]; | |
| 113 | ||
| 114 | if( offset >= OFFSET_ID && c->a9_12v ) | |
| 115 | { | |
| 116 | logerror( "at28c16_read( %04x ) id\n", offset ); | |
| 117 | return c->id[ offset - OFFSET_ID ]; | |
| 118 | } | |
| 119 | else | |
| 120 | { | |
| 121 | // logerror( "%08x: at28c16_read( %d, %04x ) %02x data\n", activecpu_get_pc(), chip, offset, c->data[ offset ] ); | |
| 122 | return c->data[ offset ]; | |
| 123 | } | |
| 124 | 218 | } |
| 125 | 219 | |
| 126 | static void at28c16_write( UINT32 chip, offs_t offset, UINT8 data ) | |
| 220 | /*------------------------------------------------- | |
| 221 | device get info callback | |
| 222 | -------------------------------------------------*/ | |
| 223 | ||
| 224 | DEVICE_GET_INFO(at28c16) | |
| 127 | 225 | { |
| 128 | struct at28c16_chip *c; | |
| 129 | if( chip >= MAX_AT28C16_CHIPS ) | |
| 226 | switch (state) | |
| 130 | 227 | { |
| 131 | logerror( "at28c16_write( %d, %04x, %02x ) chip out of range\n", chip, offset, data ); | |
| 132 | return; | |
| 133 | } | |
| 134 | c = &at28c16[ chip ]; | |
| 228 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 229 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(at28c16_state); break; | |
| 230 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break; // sizeof(at28c16_config) | |
| 231 | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break; | |
| 135 | 232 | |
| 136 | if( offset >= OFFSET_ID && c->a9_12v ) | |
| 137 | { | |
| 138 | logerror( "at28c16_write( %d, %04x, %02x ) id\n", chip, offset, data ); | |
| 139 | c->id[ offset - OFFSET_ID ] = data; | |
| 233 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 234 | case DEVINFO_FCT_SET_INFO: info->set_info = DEVICE_SET_INFO_NAME(at28c16); break; | |
| 235 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(at28c16); break; | |
| 236 | case DEVINFO_FCT_STOP: /* nothing */ break; | |
| 237 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(at28c16); break; | |
| 238 | case DEVINFO_FCT_NVRAM: info->nvram = DEVICE_NVRAM_NAME(at28c16); break; | |
| 239 | ||
| 240 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 241 | case DEVINFO_STR_NAME: info->s = "AT28C16"; break; | |
| 242 | case DEVINFO_STR_FAMILY: info->s = "EEPROM"; break; | |
| 243 | case DEVINFO_STR_VERSION: info->s = "1.0"; break; | |
| 244 | case DEVINFO_STR_SOURCE_FILE: info->s = __FILE__; break; | |
| 245 | case DEVINFO_STR_CREDITS: info->s = "Copyright Nicola Salmoria and the MAME Team"; break; | |
| 140 | 246 | } |
| 141 | else | |
| 142 | { | |
| 143 | // logerror( "%08x: at28c16_write( %d, %04x, %02x ) data\n", activecpu_get_pc(), chip, offset, data ); | |
| 144 | c->data[ offset ] = data; | |
| 145 | } | |
| 146 | 247 | } |
| 147 | ||
| 148 | READ8_HANDLER( at28c16_0_r ) { return at28c16_read( 0, offset ); } | |
| 149 | READ8_HANDLER( at28c16_1_r ) { return at28c16_read( 1, offset ); } | |
| 150 | READ8_HANDLER( at28c16_2_r ) { return at28c16_read( 2, offset ); } | |
| 151 | READ8_HANDLER( at28c16_3_r ) { return at28c16_read( 3, offset ); } | |
| 152 | WRITE8_HANDLER( at28c16_0_w ) { at28c16_write( 0, offset, data ); } | |
| 153 | WRITE8_HANDLER( at28c16_1_w ) { at28c16_write( 1, offset, data ); } | |
| 154 | WRITE8_HANDLER( at28c16_2_w ) { at28c16_write( 2, offset, data ); } | |
| 155 | WRITE8_HANDLER( at28c16_3_w ) { at28c16_write( 3, offset, data ); } |
| r3115 | r3116 | |
|---|---|---|
| 8 | 8 | #if !defined( AT28C16_H ) |
| 9 | 9 | #define AT28C16_H ( 1 ) |
| 10 | 10 | |
| 11 | #define MAX_AT28C16_CHIPS ( 4 ) | |
| 11 | typedef struct _at28c16_config at28c16_config; | |
| 12 | struct _at28c16_config | |
| 13 | { | |
| 14 | const char *data; | |
| 15 | const char *id; | |
| 16 | }; | |
| 12 | 17 | |
| 13 | extern void at28c16_init( int chip, UINT8 *data, UINT8 *id ); | |
| 14 | extern void at28c16_a9_12v( int chip, int a9_12v ); | |
| 18 | #define AT28C16 DEVICE_GET_INFO_NAME(at28c16) | |
| 19 | DEVICE_GET_INFO(at28c16); | |
| 15 | 20 | |
| 16 | /* nvram handlers */ | |
| 21 | extern void at28c16_a9_12v( const device_config *device, int a9_12v ); | |
| 22 | extern void at28c16_oe_12v( const device_config *device, int a9_12v ); | |
| 17 | 23 | |
| 18 | NVRAM_HANDLER( at28c16_0 ); | |
| 19 | NVRAM_HANDLER( at28c16_1 ); | |
| 20 | NVRAM_HANDLER( at28c16_2 ); | |
| 21 | NVRAM_HANDLER( at28c16_3 ); | |
| 22 | ||
| 23 | 24 | /* memory handlers */ |
| 24 | 25 | |
| 25 | extern READ8_HANDLER( at28c16_0_r ); | |
| 26 | extern READ8_HANDLER( at28c16_1_r ); | |
| 27 | extern READ8_HANDLER( at28c16_2_r ); | |
| 28 | extern READ8_HANDLER( at28c16_3_r ); | |
| 29 | extern WRITE8_HANDLER( at28c16_0_w ); | |
| 30 | extern WRITE8_HANDLER( at28c16_1_w ); | |
| 31 | extern WRITE8_HANDLER( at28c16_2_w ); | |
| 32 | extern WRITE8_HANDLER( at28c16_3_w ); | |
| 26 | WRITE8_DEVICE_HANDLER( at28c16_w ); | |
| 27 | READ8_DEVICE_HANDLER( at28c16_r ); | |
| 33 | 28 | |
| 34 | 29 | #endif |
| r3115 | r3116 | |
|---|---|---|
| 270 | 270 | |
| 271 | 271 | void nvram_load(running_machine *machine) |
| 272 | 272 | { |
| 273 | mame_file *nvram_file = NULL; | |
| 274 | device_config *device; | |
| 275 | ||
| 273 | 276 | if (machine->config->nvram_handler != NULL) |
| 274 | 277 | { |
| 275 | | |
| 278 | | |
| 276 | 279 | (*machine->config->nvram_handler)(machine, nvram_file, 0); |
| 277 | if (nvram_file != NULL) | |
| 278 | mame_fclose(nvram_file); | |
| 279 | 280 | } |
| 281 | ||
| 282 | for (device = (device_config *)machine->config->devicelist; device != NULL; device = device->next) | |
| 283 | { | |
| 284 | if (device->nvram != NULL) | |
| 285 | { | |
| 286 | if (nvram_file == NULL) | |
| 287 | { | |
| 288 | nvram_file = nvram_fopen(machine, OPEN_FLAG_READ); | |
| 289 | } | |
| 290 | ||
| 291 | (*device->nvram)(device, nvram_file, 0); | |
| 292 | } | |
| 293 | } | |
| 294 | ||
| 295 | if (nvram_file != NULL) | |
| 296 | { | |
| 297 | mame_fclose(nvram_file); | |
| 298 | } | |
| 280 | 299 | } |
| 281 | 300 | |
| 282 | 301 | |
| r3115 | r3116 | |
| 286 | 305 | |
| 287 | 306 | void nvram_save(running_machine *machine) |
| 288 | 307 | { |
| 308 | mame_file *nvram_file = NULL; | |
| 309 | device_config *device; | |
| 310 | ||
| 289 | 311 | if (machine->config->nvram_handler != NULL) |
| 290 | 312 | { |
| 291 | mame_file *nvram_file = nvram_fopen(machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS); | |
| 292 | if (nvram_file != NULL) | |
| 313 | nvram_file = nvram_fopen(machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS); | |
| 314 | (*machine->config->nvram_handler)(machine, nvram_file, 1); | |
| 315 | } | |
| 316 | ||
| 317 | for (device = (device_config *)machine->config->devicelist; device != NULL; device = device->next) | |
| 318 | { | |
| 319 | if (device->nvram != NULL) | |
| 293 | 320 | { |
| 294 | (*machine->config->nvram_handler)(machine, nvram_file, 1); | |
| 295 | mame_fclose(nvram_file); | |
| 321 | if (nvram_file == NULL) | |
| 322 | { | |
| 323 | nvram_file = nvram_fopen(machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS); | |
| 324 | } | |
| 325 | ||
| 326 | (*device->nvram)(device, nvram_file, 1); | |
| 296 | 327 | } |
| 297 | 328 | } |
| 329 | ||
| 330 | if (nvram_file != NULL) | |
| 331 | { | |
| 332 | mame_fclose(nvram_file); | |
| 333 | } | |
| 298 | 334 | } |
| 299 | 335 | |
| 300 | 336 |
| r0 | r3116 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | 8 bit latch interface and emulation | |
| 4 | ||
| 5 | 2008/08 couriersud | |
| 6 | ||
| 7 | **********************************************************************/ | |
| 8 | ||
| 9 | #include "driver.h" | |
| 10 | #include "memconv.h" | |
| 11 | #include "sound/discrete.h" | |
| 12 | #include "latch8.h" | |
| 13 | ||
| 14 | typedef struct _latch8_t latch8_t; | |
| 15 | struct _latch8_t | |
| 16 | { | |
| 17 | latch8_config *intf; | |
| 18 | UINT8 value; | |
| 19 | UINT8 has_node_map; | |
| 20 | UINT8 has_devread; | |
| 21 | UINT8 has_read; | |
| 22 | const device_config *devices[8]; | |
| 23 | }; | |
| 24 | ||
| 25 | /* ----------------------------------------------------------------------- */ | |
| 26 | ||
| 27 | INLINE latch8_t *get_safe_token(const device_config *device) { | |
| 28 | assert( device != NULL ); | |
| 29 | assert( device->token != NULL ); | |
| 30 | assert( device->type == LATCH8 ); | |
| 31 | return ( latch8_t * ) device->token; | |
| 32 | } | |
| 33 | ||
| 34 | static void update(const device_config *device, UINT8 new_val, UINT8 mask) | |
| 35 | { | |
| 36 | latch8_t *latch8 = get_safe_token(device); | |
| 37 | UINT8 old_val = latch8->value; | |
| 38 | ||
| 39 | latch8->value = (latch8->value & ~mask) | (new_val & mask); | |
| 40 | ||
| 41 | if (latch8->has_node_map) | |
| 42 | { | |
| 43 | int i; | |
| 44 | UINT8 changed = old_val ^ latch8->value; | |
| 45 | for (i=0; i<8; i++) | |
| 46 | if (((changed & (1<<i)) != 0) && latch8->intf->node_map[i] != 0) | |
| 47 | discrete_sound_w(device->machine, latch8->intf->node_map[i] , (latch8->value >> i) & 1); | |
| 48 | } | |
| 49 | } | |
| 50 | ||
| 51 | static TIMER_CALLBACK( latch8_timerproc ) | |
| 52 | { | |
| 53 | const device_config *device = ptr; | |
| 54 | UINT8 new_val = param & 0xFF; | |
| 55 | UINT8 mask = param >> 8; | |
| 56 | ||
| 57 | update(device, new_val, mask); | |
| 58 | } | |
| 59 | ||
| 60 | /* ----------------------------------------------------------------------- */ | |
| 61 | ||
| 62 | READ8_DEVICE_HANDLER( latch8_r ) | |
| 63 | { | |
| 64 | latch8_t *latch8 = get_safe_token(device); | |
| 65 | UINT8 res; | |
| 66 | ||
| 67 | assert(offset == 0); | |
| 68 | ||
| 69 | res = latch8->value; | |
| 70 | if (latch8->has_devread) | |
| 71 | { | |
| 72 | int i; | |
| 73 | for (i=0; i<8; i++) | |
| 74 | { | |
| 75 | const device_config *read_dev = latch8->devices[i]; | |
| 76 | if (read_dev != NULL) | |
| 77 | { | |
| 78 | res &= ~( 1 << i); | |
| 79 | res |= ((latch8->intf->devread[i].devread_handler(read_dev, 0) >> latch8->intf->devread[i].from_bit) & 0x01) << i; | |
| 80 | } | |
| 81 | } | |
| 82 | } | |
| 83 | if (latch8->has_read) | |
| 84 | { | |
| 85 | int i; | |
| 86 | for (i=0; i<8; i++) | |
| 87 | { | |
| 88 | if (latch8->intf->devread[i].read_handler != NULL) | |
| 89 | { | |
| 90 | res &= ~( 1 << i); | |
| 91 | res |= ((latch8->intf->devread[i].read_handler(device->machine, 0) >> latch8->intf->devread[i].from_bit) & 0x01) << i; | |
| 92 | } | |
| 93 | } | |
| 94 | } | |
| 95 | ||
| 96 | return (res & ~latch8->intf->maskout) ^ latch8->intf->xor; | |
| 97 | } | |
| 98 | ||
| 99 | ||
| 100 | WRITE8_DEVICE_HANDLER( latch8_w ) | |
| 101 | { | |
| 102 | latch8_t *latch8 = get_safe_token(device); | |
| 103 | assert(offset == 0); | |
| 104 | ||
| 105 | if (latch8->intf->nosync != 0xff) | |
| 106 | timer_call_after_resynch((void *)device, (0xFF << 8) | data, latch8_timerproc); | |
| 107 | else | |
| 108 | update(device, data, 0xFF); | |
| 109 | } | |
| 110 | ||
| 111 | ||
| 112 | WRITE8_DEVICE_HANDLER( latch8_reset) | |
| 113 | { | |
| 114 | latch8_t *latch8 = get_safe_token(device); | |
| 115 | ||
| 116 | assert(offset == 0); | |
| 117 | ||
| 118 | latch8->value = 0; | |
| 119 | } | |
| 120 | ||
| 121 | /* read bit x */ | |
| 122 | /* return (latch >> x) & 0x01 */ | |
| 123 | ||
| 124 | INLINE UINT8 latch8_bitx_r(const device_config *device, offs_t offset, int bit) | |
| 125 | { | |
| 126 | latch8_t *latch8 = get_safe_token(device); | |
| 127 | ||
| 128 | assert( offset == 0); | |
| 129 | ||
| 130 | return (latch8->value >> bit) & 0x01; | |
| 131 | } | |
| 132 | ||
| 133 | READ8_DEVICE_HANDLER( latch8_bit0_r) { return latch8_bitx_r(device, offset, 0); } | |
| 134 | READ8_DEVICE_HANDLER( latch8_bit1_r) { return latch8_bitx_r(device, offset, 1); } | |
| 135 | READ8_DEVICE_HANDLER( latch8_bit2_r) { return latch8_bitx_r(device, offset, 2); } | |
| 136 | READ8_DEVICE_HANDLER( latch8_bit3_r) { return latch8_bitx_r(device, offset, 3); } | |
| 137 | READ8_DEVICE_HANDLER( latch8_bit4_r) { return latch8_bitx_r(device, offset, 4); } | |
| 138 | READ8_DEVICE_HANDLER( latch8_bit5_r) { return latch8_bitx_r(device, offset, 5); } | |
| 139 | READ8_DEVICE_HANDLER( latch8_bit6_r) { return latch8_bitx_r(device, offset, 6); } | |
| 140 | READ8_DEVICE_HANDLER( latch8_bit7_r) { return latch8_bitx_r(device, offset, 7); } | |
| 141 | ||
| 142 | READ8_DEVICE_HANDLER( latch8_bit0_q_r) { return latch8_bitx_r(device, offset, 0) ^ 1; } | |
| 143 | READ8_DEVICE_HANDLER( latch8_bit1_q_r) { return latch8_bitx_r(device, offset, 1) ^ 1; } | |
| 144 | READ8_DEVICE_HANDLER( latch8_bit2_q_r) { return latch8_bitx_r(device, offset, 2) ^ 1; } | |
| 145 | READ8_DEVICE_HANDLER( latch8_bit3_q_r) { return latch8_bitx_r(device, offset, 3) ^ 1; } | |
| 146 | READ8_DEVICE_HANDLER( latch8_bit4_q_r) { return latch8_bitx_r(device, offset, 4) ^ 1; } | |
| 147 | READ8_DEVICE_HANDLER( latch8_bit5_q_r) { return latch8_bitx_r(device, offset, 5) ^ 1; } | |
| 148 | READ8_DEVICE_HANDLER( latch8_bit6_q_r) { return latch8_bitx_r(device, offset, 6) ^ 1; } | |
| 149 | READ8_DEVICE_HANDLER( latch8_bit7_q_r) { return latch8_bitx_r(device, offset, 7) ^ 1; } | |
| 150 | ||
| 151 | /* write bit x from data into bit determined by offset */ | |
| 152 | /* latch = (latch & ~(1<<offset)) | (((data >> x) & 0x01) << offset) */ | |
| 153 | ||
| 154 | INLINE void latch8_bitx_w(const device_config *device, int bit, offs_t offset, UINT8 data) | |
| 155 | { | |
| 156 | latch8_t *latch8 = get_safe_token(device); | |
| 157 | UINT8 mask = (1<<offset); | |
| 158 | UINT8 masked_data = (((data >> bit) & 0x01) << offset); | |
| 159 | ||
| 160 | assert( offset < 8); | |
| 161 | ||
| 162 | /* No need to synchronize ? */ | |
| 163 | if (latch8->intf->nosync & mask) | |
| 164 | update(device, masked_data, mask); | |
| 165 | else | |
| 166 | timer_call_after_resynch((void *) device, (mask << 8) | masked_data, latch8_timerproc); | |
| 167 | } | |
| 168 | ||
| 169 | WRITE8_DEVICE_HANDLER( latch8_bit0_w ) { latch8_bitx_w(device, 0, offset, data); } | |
| 170 | WRITE8_DEVICE_HANDLER( latch8_bit1_w ) { latch8_bitx_w(device, 1, offset, data); } | |
| 171 | WRITE8_DEVICE_HANDLER( latch8_bit2_w ) { latch8_bitx_w(device, 2, offset, data); } | |
| 172 | WRITE8_DEVICE_HANDLER( latch8_bit3_w ) { latch8_bitx_w(device, 3, offset, data); } | |
| 173 | WRITE8_DEVICE_HANDLER( latch8_bit4_w ) { latch8_bitx_w(device, 4, offset, data); } | |
| 174 | WRITE8_DEVICE_HANDLER( latch8_bit5_w ) { latch8_bitx_w(device, 0, offset, data); } | |
| 175 | WRITE8_DEVICE_HANDLER( latch8_bit6_w ) { latch8_bitx_w(device, 0, offset, data); } | |
| 176 | WRITE8_DEVICE_HANDLER( latch8_bit7_w ) { latch8_bitx_w(device, 0, offset, data); } | |
| 177 | ||
| 178 | /* ----------------------------------------------------------------------- */ | |
| 179 | ||
| 180 | /* device interface */ | |
| 181 | ||
| 182 | static DEVICE_START( latch8 ) | |
| 183 | { | |
| 184 | latch8_t *latch8 = get_safe_token(device); | |
| 185 | char unique_tag[30]; | |
| 186 | int i; | |
| 187 | ||
| 188 | /* validate arguments */ | |
| 189 | assert(strlen(device->tag) < 20); | |
| 190 | ||
| 191 | latch8->intf = device->inline_config; | |
| 192 | ||
| 193 | latch8->value = 0x0; | |
| 194 | ||
| 195 | /* setup nodemap */ | |
| 196 | for (i=0; i<8; i++) | |
| 197 | if (latch8->intf->node_map[i] ) | |
| 198 | latch8->has_node_map = 1; | |
| 199 | ||
| 200 | /* setup device read handlers */ | |
| 201 | for (i=0; i<8; i++) | |
| 202 | if (latch8->intf->devread[i].tag != NULL) | |
| 203 | { | |
| 204 | if (latch8->devices[i] != NULL) | |
| 205 | fatalerror("Device %s: Bit %d already has a handler.\n", device->tag, i); | |
| 206 | latch8->devices[i] = devtag_get_device(device->machine, | |
| 207 | latch8->intf->devread[i].type, | |
| 208 | latch8->intf->devread[i].tag); | |
| 209 | if (latch8->devices[i] == NULL) | |
| 210 | fatalerror("Device %s: Unable to find device %s\n", device->tag, latch8->intf->devread[i].tag); | |
| 211 | latch8->has_devread = 1; | |
| 212 | } | |
| 213 | ||
| 214 | /* setup machine read handlers */ | |
| 215 | for (i=0; i<8; i++) | |
| 216 | if (latch8->intf->devread[i].read_handler != NULL) | |
| 217 | { | |
| 218 | if (latch8->devices[i] != NULL) | |
| 219 | fatalerror("Device %s: Bit %d already has a handler.\n", device->tag, i); | |
| 220 | latch8->has_read = 1; | |
| 221 | } | |
| 222 | ||
| 223 | state_save_combine_module_and_tag(unique_tag, "latch8", device->tag); | |
| 224 | ||
| 225 | state_save_register_item(unique_tag, 0, latch8->value); | |
| 226 | } | |
| 227 | ||
| 228 | ||
| 229 | static DEVICE_RESET( latch8 ) | |
| 230 | { | |
| 231 | latch8_t *latch8 = get_safe_token(device); | |
| 232 | ||
| 233 | latch8->value = 0; | |
| 234 | } | |
| 235 | ||
| 236 | ||
| 237 | static DEVICE_SET_INFO( latch8 ) | |
| 238 | { | |
| 239 | switch (state) | |
| 240 | { | |
| 241 | /* no parameters to set */ | |
| 242 | } | |
| 243 | } | |
| 244 | ||
| 245 | ||
| 246 | DEVICE_GET_INFO( latch8 ) | |
| 247 | { | |
| 248 | switch (state) | |
| 249 | { | |
| 250 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 251 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(latch8_t); break; | |
| 252 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = sizeof(latch8_config); break; | |
| 253 | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break; | |
| 254 | ||
| 255 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 256 | case DEVINFO_FCT_SET_INFO: info->set_info = DEVICE_SET_INFO_NAME(latch8); break; | |
| 257 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(latch8);break; | |
| 258 | case DEVINFO_FCT_STOP: /* Nothing */ break; | |
| 259 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(latch8);break; | |
| 260 | ||
| 261 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 262 | case DEVINFO_STR_NAME: info->s = "8 bit latch"; break; | |
| 263 | case DEVINFO_STR_FAMILY: info->s = "Latches"; break; | |
| 264 | case DEVINFO_STR_VERSION: info->s = "1.0"; break; | |
| 265 | case DEVINFO_STR_SOURCE_FILE: info->s = __FILE__; break; | |
| 266 | case DEVINFO_STR_CREDITS: info->s = "Copyright Nicola Salmoria and the MAME Team"; break; | |
| 267 | } | |
| 268 | } |
| r0 | r3116 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | 8 bit latch interface and emulation | |
| 4 | ||
| 5 | Generic emulation of 74LS174/175, 74LS259 and other latches. | |
| 6 | Apart from providing synched latch operation, these | |
| 7 | latches can be configured to read their input bitwise from other | |
| 8 | devices as well and individual bits can be connected to | |
| 9 | discrete nodes. | |
| 10 | ||
| 11 | Please see audio/dkong.c for examples. | |
| 12 | ||
| 13 | **********************************************************************/ | |
| 14 | ||
| 15 | #ifndef __LATCH8_H_ | |
| 16 | #define __LATCH8_H_ | |
| 17 | ||
| 18 | #define LATCH8 DEVICE_GET_INFO_NAME(latch8) | |
| 19 | ||
| 20 | /*************************************************************************** | |
| 21 | TYPE DEFINITIONS | |
| 22 | ***************************************************************************/ | |
| 23 | ||
| 24 | typedef struct _latch8_devread latch8_devread; | |
| 25 | struct _latch8_devread | |
| 26 | { | |
| 27 | /* only for byte reads, does not affect bit reads and node_map */ | |
| 28 | UINT32 from_bit; | |
| 29 | device_type type; | |
| 30 | const char *tag; | |
| 31 | read8_device_func devread_handler; | |
| 32 | read8_machine_func read_handler; | |
| 33 | }; | |
| 34 | ||
| 35 | typedef struct _latch8_config latch8_config; | |
| 36 | struct _latch8_config | |
| 37 | { | |
| 38 | /* only for byte reads, does not affect bit reads and node_map */ | |
| 39 | UINT32 maskout; | |
| 40 | UINT32 xor; /* after mask */ | |
| 41 | UINT32 nosync; | |
| 42 | UINT32 node_map[8]; | |
| 43 | latch8_devread devread[8]; | |
| 44 | }; | |
| 45 | ||
| 46 | /*************************************************************************** | |
| 47 | DEVICE CONFIGURATION MACROS | |
| 48 | ***************************************************************************/ | |
| 49 | ||
| 50 | /* add device */ | |
| 51 | #define MDRV_LATCH8_ADD(_tag) \ | |
| 52 | MDRV_DEVICE_ADD(_tag, LATCH8) | |
| 53 | ||
| 54 | /* Bit mask specifying bits to be masked *out* */ | |
| 55 | #define MDRV_LATCH8_MASKOUT(_maskout) \ | |
| 56 | MDRV_DEVICE_CONFIG_DATA32(latch8_config, maskout, _maskout) | |
| 57 | ||
| 58 | /* Bit mask specifying bits to be inverted */ | |
| 59 | #define MDRV_LATCH8_INVERT(_xor) \ | |
| 60 | MDRV_DEVICE_CONFIG_DATA32(latch8_config, xor, _xor) | |
| 61 | ||
| 62 | /* Bit mask specifying bits not needing cpu synchronization. */ | |
| 63 | #define MDRV_LATCH8_NOSYNC(_nosync) \ | |
| 64 | MDRV_DEVICE_CONFIG_DATA32(latch8_config, nosync, _nosync) | |
| 65 | ||
| 66 | /* Write bit to discrete node */ | |
| 67 | #define MDRV_LATCH8_DISCRETE_NODE(_bit, _node) \ | |
| 68 | MDRV_DEVICE_CONFIG_DATA32_ARRAY(latch8_config, node_map, _bit, _node) | |
| 69 | ||
| 70 | /* Upon read, replace bits by reading from another device handler */ | |
| 71 | #define MDRV_LATCH8_DEVREAD(_bit, _type, _tag, _handler, _from_bit) \ | |
| 72 | MDRV_DEVICE_CONFIG_DATA32_ARRAY_MEMBER(latch8_config, devread, _bit, latch8_devread, from_bit, _from_bit) \ | |
| 73 | MDRV_DEVICE_CONFIG_DATAPTR_ARRAY_MEMBER(latch8_config, devread, _bit, latch8_devread, type, _type) \ | |
| 74 | MDRV_DEVICE_CONFIG_DATAPTR_ARRAY_MEMBER(latch8_config, devread, _bit, latch8_devread, tag, _tag) \ | |
| 75 | MDRV_DEVICE_CONFIG_DATAPTR_ARRAY_MEMBER(latch8_config, devread, _bit, latch8_devread, devread_handler, _handler) \ | |
| 76 | ||
| 77 | /* Upon read, replace bits by reading from another machine handler */ | |
| 78 | #define MDRV_LATCH8_READ(_bit, _handler, _from_bit) \ | |
| 79 | MDRV_DEVICE_CONFIG_DATA32_ARRAY_MEMBER(latch8_config, devread, _bit, latch8_devread, from_bit, _from_bit) \ | |
| 80 | MDRV_DEVICE_CONFIG_DATAPTR_ARRAY_MEMBER(latch8_config, devread, _bit, latch8_devread, read_handler, _handler) \ | |
| 81 | ||
| 82 | /* remove device */ | |
| 83 | #define MDRV_LATCH8_REMOVE(_tag) \ | |
| 84 | MDRV_DEVICE_REMOVE(LATCH8, _type) | |
| 85 | ||
| 86 | /* Accessor macros */ | |
| 87 | ||
| 88 | #define AM_LATCH8_READ(_tag) \ | |
| 89 | AM_DEVREAD(LATCH8, _tag, latch8_r) | |
| 90 | ||
| 91 | #define AM_LATCH8_READBIT(_tag, _bit) \ | |
| 92 | AM_DEVREAD(LATCH8, _tag, latch8_bit ## _bit ## _q_r) | |
| 93 | ||
| 94 | #define AM_LATCH8_WRITE(_tag) \ | |
| 95 | AM_DEVWRITE(LATCH8, _tag, latch8_w) | |
| 96 | ||
| 97 | #define AM_LATCH8_READWRITE(_tag) \ | |
| 98 | AM_DEVREADWRITE(LATCH8, _tag, latch8_r, latch8_w) | |
| 99 | ||
| 100 | /* device interface */ | |
| 101 | DEVICE_GET_INFO( latch8 ); | |
| 102 | ||
| 103 | /* write & read full byte */ | |
| 104 | ||
| 105 | READ8_DEVICE_HANDLER( latch8_r ); | |
| 106 | WRITE8_DEVICE_HANDLER( latch8_w ); | |
| 107 | ||
| 108 | /* reset the latch */ | |
| 109 | ||
| 110 | WRITE8_DEVICE_HANDLER( latch8_reset ); | |
| 111 | ||
| 112 | /* read bit x */ | |
| 113 | /* return (latch >> x) & 0x01 */ | |
| 114 | ||
| 115 | READ8_DEVICE_HANDLER( latch8_bit0_r ); | |
| 116 | READ8_DEVICE_HANDLER( latch8_bit1_r ); | |
| 117 | READ8_DEVICE_HANDLER( latch8_bit2_r ); | |
| 118 | READ8_DEVICE_HANDLER( latch8_bit3_r ); | |
| 119 | READ8_DEVICE_HANDLER( latch8_bit4_r ); | |
| 120 | READ8_DEVICE_HANDLER( latch8_bit5_r ); | |
| 121 | READ8_DEVICE_HANDLER( latch8_bit6_r ); | |
| 122 | READ8_DEVICE_HANDLER( latch8_bit7_r ); | |
| 123 | ||
| 124 | /* read inverted bit x */ | |
| 125 | /* return (latch >> x) & 0x01 */ | |
| 126 | ||
| 127 | READ8_DEVICE_HANDLER( latch8_bit0_q_r ); | |
| 128 | READ8_DEVICE_HANDLER( latch8_bit1_q_r ); | |
| 129 | READ8_DEVICE_HANDLER( latch8_bit2_q_r ); | |
| 130 | READ8_DEVICE_HANDLER( latch8_bit3_q_r ); | |
| 131 | READ8_DEVICE_HANDLER( latch8_bit4_q_r ); | |
| 132 | READ8_DEVICE_HANDLER( latch8_bit5_q_r ); | |
| 133 | READ8_DEVICE_HANDLER( latch8_bit6_q_r ); | |
| 134 | READ8_DEVICE_HANDLER( latch8_bit7_q_r ); | |
| 135 | ||
| 136 | /* write bit x from data into bit determined by offset */ | |
| 137 | /* latch = (latch & ~(1<<offset)) | (((data >> x) & 0x01) << offset) */ | |
| 138 | ||
| 139 | WRITE8_DEVICE_HANDLER( latch8_bit0_w ); | |
| 140 | WRITE8_DEVICE_HANDLER( latch8_bit1_w ); | |
| 141 | WRITE8_DEVICE_HANDLER( latch8_bit2_w ); | |
| 142 | WRITE8_DEVICE_HANDLER( latch8_bit3_w ); | |
| 143 | WRITE8_DEVICE_HANDLER( latch8_bit4_w ); | |
| 144 | WRITE8_DEVICE_HANDLER( latch8_bit5_w ); | |
| 145 | WRITE8_DEVICE_HANDLER( latch8_bit6_w ); | |
| 146 | WRITE8_DEVICE_HANDLER( latch8_bit7_w ); | |
| 147 | ||
| 148 | #endif /* __LATCH8_H_ */ |
| r3115 | r3116 | |
|---|---|---|
| 70 | 70 | DEVINFO_FCT_STOP, /* R/O: device_stop_func */ |
| 71 | 71 | DEVINFO_FCT_RESET, /* R/O: device_reset_func */ |
| 72 | 72 | DEVINFO_FCT_VALIDITY_CHECK, /* R/O: device_validity_check_func */ |
| 73 | DEVINFO_FCT_NVRAM, /* R/O: device_nvram_func */ | |
| 73 | 74 | |
| 74 | 75 | DEVINFO_FCT_DEVICE_SPECIFIC = 0x28000, /* R/W: device-specific values start here */ |
| 75 | 76 | DEVINFO_FCT_LAST = 0x2ffff, |
| r3115 | r3116 | |
| 113 | 114 | #define DEVICE_RESET(name) void DEVICE_RESET_NAME(name)(const device_config *device) |
| 114 | 115 | #define DEVICE_RESET_CALL(name) DEVICE_RESET_NAME(name)(device) |
| 115 | 116 | |
| 117 | #define DEVICE_NVRAM_NAME(name) device_NVRAM_##name | |
| 118 | #define DEVICE_NVRAM(name) void DEVICE_NVRAM_NAME(name)(const device_config *device, mame_file *file, int read_or_write) | |
| 119 | #define DEVICE_NVRAM_CALL(name) DEVICE_NVRAM_NAME(name)(device, file, read_or_write) | |
| 120 | ||
| 116 | 121 | #define DEVICE_VALIDITY_CHECK_NAME(name) device_validity_check_##name |
| 117 | 122 | #define DEVICE_VALIDITY_CHECK(name) int DEVICE_VALIDITY_CHECK_NAME(name)(const game_driver *driver, const device_config *device) |
| 118 | 123 | #define DEVICE_VALIDITY_CHECK_CALL(name) DEVICE_VALIDITY_CHECK(name)(driver, device) |
| r3115 | r3116 | |
| 134 | 139 | typedef void (*device_start_func)(const device_config *device); |
| 135 | 140 | typedef void (*device_stop_func)(const device_config *device); |
| 136 | 141 | typedef void (*device_reset_func)(const device_config *device); |
| 142 | typedef void (*device_nvram_func)(const device_config *device, mame_file *file, int read_or_write); | |
| 137 | 143 | typedef int (*device_validity_check_func)(const game_driver *driver, const device_config *device); |
| 138 | 144 | |
| 139 | 145 | |
| r3115 | r3116 | |
| 154 | 160 | device_stop_func stop; /* DEVINFO_FCT_STOP */ |
| 155 | 161 | device_reset_func reset; /* DEVINFO_FCT_RESET */ |
| 156 | 162 | device_validity_check_func validity_check; /* DEVINFO_FCT_VALIDITY_CHECK */ |
| 163 | device_nvram_func nvram; /* DEVINFO_FCT_NVRAM */ | |
| 157 | 164 | const rom_entry * romregion; /* DEVINFO_PTR_ROM_REGION */ |
| 158 | 165 | }; |
| 159 | 166 | |
| r3115 | r3116 | |
| 168 | 175 | device_start_func start; /* quick pointer to start callback */ |
| 169 | 176 | device_stop_func stop; /* quick pointer to stop callback */ |
| 170 | 177 | device_reset_func reset; /* quick pointer to reset callback */ |
| 178 | device_nvram_func nvram; /* quick pointer to nvram callback */ | |
| 171 | 179 | const void * static_config; /* static device configuration */ |
| 172 | 180 | void * inline_config; /* inline device configuration */ |
| 173 | 181 | |
| r3115 | r3116 | |
| 254 | 262 | |
| 255 | 263 | /* ----- device information getters ----- */ |
| 256 | 264 | |
| 265 | /* return the device associated with a tag */ | |
| 266 | const device_config *devtag_get_device(running_machine *machine, device_type type, const char *tag); | |
| 267 | ||
| 257 | 268 | /* return the token associated with an allocated device */ |
| 258 | 269 | void *devtag_get_token(running_machine *machine, device_type type, const char *tag); |
| 259 | 270 |
| r3115 | r3116 | |
|---|---|---|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | |
| 118 | /*------------------------------------------------- | |
| 118 | /*------------------------------------------------------------------------ | |
| 119 | 119 | ycc_to_rgb - convert YCC to RGB; the YCC pixel |
| 120 | 120 | contains Y in the LSB, Cb << 8, and Cr << 16 |
| 121 | -------------------------------------------------*/ | |
| 121 | This actually a YCbCr conversion, | |
| 122 | details my be found in chapter 6.4 ff of | |
| 123 | http://softwarecommunity.intel.com/isn/downloads/softwareproducts/pdfs/346495.pdf | |
| 124 | The document also contains the constants below as floats. | |
| 125 | --------------------------------------------------------------------------*/ | |
| 122 | 126 | |
| 127 | INLINE UINT8 clamp16_shift8(UINT32 x) | |
| 128 | { | |
| 129 | return (((INT32) x < 0) ? 0 : (x > 65535 ? 255: x >> 8)); | |
| 130 | } | |
| 131 | ||
| 123 | 132 | INLINE UINT32 ycc_to_rgb(UINT32 ycc) |
| 124 | 133 | { |
| 125 | 134 | /* original equations: |
| r3115 | r3116 | |
| 143 | 152 | R = clip(( 298 * Y - 298 * 16 + 409 * Cr - 409 * 128 + 128) >> 8) |
| 144 | 153 | G = clip(( 298 * Y - 298 * 16 - 100 * Cb + 100 * 128 - 208 * Cr + 208 * 128 + 128) >> 8) |
| 145 | 154 | B = clip(( 298 * Y - 298 * 16 + 516 * Cb - 516 * 128 + 128) >> 8) |
| 155 | ||
| 156 | Now combine constants: | |
| 157 | ||
| 158 | R = clip(( 298 * Y + 409 * Cr - 56992) >> 8) | |
| 159 | G = clip(( 298 * Y - 100 * Cb - 208 * Cr + 34784) >> 8) | |
| 160 | B = clip(( 298 * Y + 516 * Cb - 70688) >> 8) | |
| 161 | ||
| 162 | Define common = 298 * y - 56992. This will save one addition | |
| 163 | ||
| 164 | R = clip(( common + 409 * Cr - 0) >> 8) | |
| 165 | G = clip(( common - 100 * Cb - 208 * Cr + 91776) >> 8) | |
| 166 | B = clip(( common + 516 * Cb - 13696) >> 8) | |
| 167 | ||
| 146 | 168 | */ |
| 147 | 169 | UINT8 y = ycc; |
| 148 | 170 | UINT8 cb = ycc >> 8; |
| 149 | 171 | UINT8 cr = ycc >> 16; |
| 150 | | |
| 172 | UINT32 r, g, b, common; | |
| 151 | 173 | |
| 152 | common = 298 * y - 298 * 16; | |
| 153 | r = (common + 409 * cr - 409 * 128 + 128) >> 8; | |
| 154 | g = (common - 100 * cb + 100 * 128 - 208 * cr + 208 * 128 + 128) >> 8; | |
| 155 | b = (common + 516 * cb - 516 * 128 + 128) >> 8; | |
| 174 | common = 298 * y - 56992; | |
| 175 | r = (common + 409 * cr); | |
| 176 | g = (common - 100 * cb - 208 * cr + 91776); | |
| 177 | b = (common + 516 * cb - 13696); | |
| 156 | 178 | |
| 157 | if (r < 0) r = 0; | |
| 158 | else if (r > 255) r = 255; | |
| 159 | if (g < 0) g = 0; | |
| 160 | else if (g > 255) g = 255; | |
| 161 | if (b < 0) b = 0; | |
| 162 | else if (b > 255) b = 255; | |
| 163 | ||
| 164 | return MAKE_RGB(r, g, b); | |
| 179 | /* Now clamp and shift back */ | |
| 180 | return MAKE_RGB(clamp16_shift8(r), clamp16_shift8(g), clamp16_shift8(b)); | |
| 165 | 181 | } |
| 166 | 182 | |
| 167 | ||
| 168 | 183 | /*------------------------------------------------- |
| 169 | 184 | get_texel_palette16_nearest - return the |
| 170 | 185 | nearest neighbor texel from a palettized |
| r3115 | r3116 | |
|---|---|---|
| 50 | 50 | void v60_get_info(UINT32 state, cpuinfo *info); |
| 51 | 51 | void v70_get_info(UINT32 state, cpuinfo *info); |
| 52 | 52 | void i8035_get_info(UINT32 state, cpuinfo *info); |
| 53 | void i8041_get_info(UINT32 state, cpuinfo *info); | |
| 54 | void i8048_get_info(UINT32 state, cpuinfo *info); | |
| 55 | void i8648_get_info(UINT32 state, cpuinfo *info); | |
| 56 | void i8748_get_info(UINT32 state, cpuinfo *info); | |
| 57 | void mb8884_get_info(UINT32 state, cpuinfo *info); | |
| 53 | 58 | void i8039_get_info(UINT32 state, cpuinfo *info); |
| 54 | void i804 | |
| 59 | void i8049_get_info(UINT32 state, cpuinfo *info); | |
| 55 | 60 | void i8749_get_info(UINT32 state, cpuinfo *info); |
| 56 | 61 | void n7751_get_info(UINT32 state, cpuinfo *info); |
| 57 | void mb8884_get_info(UINT32 state, cpuinfo *info); | |
| 58 | 62 | void m58715_get_info(UINT32 state, cpuinfo *info); |
| 59 | 63 | void i8x41_get_info(UINT32 state, cpuinfo *info); |
| 60 | 64 | void i8051_get_info(UINT32 state, cpuinfo *info); |
| r3115 | r3116 | |
| 377 | 381 | #if (HAS_I8035) |
| 378 | 382 | { CPU_I8035, i8035_get_info }, |
| 379 | 383 | #endif |
| 380 | #if (HAS_I8039) | |
| 381 | { CPU_I8039, i8039_get_info }, | |
| 384 | #if (HAS_I8041) | |
| 385 | { CPU_I8041, i8041_get_info }, | |
| 382 | 386 | #endif |
| 383 | 387 | #if (HAS_I8048) |
| 384 | 388 | { CPU_I8048, i8048_get_info }, |
| 385 | 389 | #endif |
| 386 | #if (HAS_I8749) | |
| 387 | { CPU_I8749, i8749_get_info }, | |
| 390 | #if (HAS_I8648) | |
| 391 | { CPU_I8648, i8648_get_info }, | |
| 388 | 392 | #endif |
| 389 | #if (HAS_N7751) | |
| 390 | { CPU_N7751, n7751_get_info }, | |
| 393 | #if (HAS_I8748) | |
| 394 | { CPU_I8748, i8748_get_info }, | |
| 391 | 395 | #endif |
| 392 | 396 | #if (HAS_MB8884) |
| 393 | 397 | { CPU_MB8884, mb8884_get_info }, |
| 394 | 398 | #endif |
| 399 | #if (HAS_N7751) | |
| 400 | { CPU_N7751, n7751_get_info }, | |
| 401 | #endif | |
| 402 | #if (HAS_I8039) | |
| 403 | { CPU_I8039, i8039_get_info }, | |
| 404 | #endif | |
| 405 | #if (HAS_I8049) | |
| 406 | { CPU_I8049, i8049_get_info }, | |
| 407 | #endif | |
| 408 | #if (HAS_I8749) | |
| 409 | { CPU_I8749, i8749_get_info }, | |
| 410 | #endif | |
| 395 | 411 | #if (HAS_M58715) |
| 396 | 412 | { CPU_M58715, m58715_get_info }, |
| 397 | 413 | #endif |
| r3115 | r3116 | |
|---|---|---|
| 77 | 77 | CPU_V60, |
| 78 | 78 | CPU_V70, |
| 79 | 79 | CPU_I8035, |
| 80 | CPU_I8041, | |
| 81 | CPU_I8048, | |
| 82 | CPU_I8648, | |
| 83 | CPU_I8748, | |
| 84 | CPU_MB8884, | |
| 85 | CPU_N7751, | |
| 80 | 86 | CPU_I8039, |
| 81 | CPU_I804 | |
| 87 | CPU_I8049, | |
| 82 | 88 | CPU_I8749, |
| 83 | CPU_N7751, | |
| 84 | CPU_MB8884, | |
| 85 | 89 | CPU_M58715, |
| 86 | 90 | CPU_I8X41, |
| 87 | 91 | CPU_I8051, |
| r3115 | r3116 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | READ8_HANDLER(discrete_sound_r) |
| 35 | 35 | { |
| 36 | discrete_info *info = sndti_token(SOUND_DISCRETE, 0); | |
| 36 | discrete_info *info = sndti_token(SOUND_DISCRETE, 0); | |
| 37 | 37 | node_description *node = discrete_find_node(info, offset); |
| 38 | ||
| 38 | 39 | UINT8 data = 0; |
| 39 | 40 | |
| 40 | 41 | /* Read the node input value if allowed */ |
| r3115 | r3116 | |
| 58 | 59 | |
| 59 | 60 | WRITE8_HANDLER(discrete_sound_w) |
| 60 | 61 | { |
| 61 | discrete_info *info = sndti_token(SOUND_DISCRETE, 0); | |
| 62 | discrete_info *info = sndti_token(SOUND_DISCRETE, 0); | |
| 62 | 63 | node_description *node = discrete_find_node(info, offset); |
| 63 | 64 | |
| 64 | 65 | /* Update the node input value if it's a proper input node */ |
| 65 | 66 | if (node) |
| 66 | 67 | { |
| 67 | 68 | UINT8 *node_data = node->context; |
| 68 | UINT8 last_data = *node_data; | |
| 69 | UINT8 new_data = 0; | |
| 69 | UINT8 last_data = *node_data; | |
| 70 | UINT8 new_data = 0; | |
| 70 | 71 | |
| 71 | 72 | switch (node->module.type) |
| 72 | 73 | { |
| r3115 | r3116 | |
| 122 | 123 | static void dss_adjustment_step(node_description *node) |
| 123 | 124 | { |
| 124 | 125 | struct dss_adjustment_context *context = node->context; |
| 125 | INT32 rawportval = input_port_read_direct(context->port); | |
| 126 | 126 | |
| 127 | INT32 rawportval = input_port_read_direct(context->port); | |
| 128 | ||
| 127 | 129 | /* only recompute if the value changed from last time */ |
| 128 | 130 | if (rawportval != context->lastpval) |
| 129 | 131 | { |
| 130 | double portval = (double)(rawportval - context->pmin) * context->pscale; | |
| 132 | double portval = (double)(rawportval - context->pmin) * context->pscale; | |
| 131 | 133 | double scaledval = portval * context->scale + context->min; |
| 132 | 134 | |
| 133 | 135 | context->lastpval = rawportval; |
| r3115 | r3116 | |
| 141 | 143 | static void dss_adjustment_reset(node_description *node) |
| 142 | 144 | { |
| 143 | 145 | struct dss_adjustment_context *context = node->context; |
| 146 | ||
| 144 | 147 | double min, max; |
| 145 | 148 | |
| 146 | 149 | if (node->custom) |
| r3115 | r3116 | |
| 153 | 156 | context->port = input_port_by_index(Machine->portconfig, DSS_ADJUSTMENT__PORT); |
| 154 | 157 | |
| 155 | 158 | context->lastpval = 0x7fffffff; |
| 156 | context->pmin = DSS_ADJUSTMENT__PMIN; | |
| 157 | context->pscale = 1.0 / (double)(DSS_ADJUSTMENT__PMAX - DSS_ADJUSTMENT__PMIN); | |
| 159 | context->pmin = DSS_ADJUSTMENT__PMIN; | |
| 160 | context->pscale = 1.0 / (double)(DSS_ADJUSTMENT__PMAX - DSS_ADJUSTMENT__PMIN); | |
| 158 | 161 | |
| 159 | 162 | /* linear scale */ |
| 160 | 163 | if (DSS_ADJUSTMENT__LOG == 0) |
| 161 | 164 | { |
| 162 | context->min = DSS_ADJUSTMENT__MIN; | |
| 165 | context->min = DSS_ADJUSTMENT__MIN; | |
| 163 | 166 | context->scale = DSS_ADJUSTMENT__MAX - DSS_ADJUSTMENT__MIN; |
| 164 | 167 | } |
| 165 | 168 | |
| r3115 | r3116 | |
| 169 | 172 | /* force minimum and maximum to be > 0 */ |
| 170 | 173 | min = (DSS_ADJUSTMENT__MIN > 0) ? DSS_ADJUSTMENT__MIN : 1; |
| 171 | 174 | max = (DSS_ADJUSTMENT__MAX > 0) ? DSS_ADJUSTMENT__MAX : 1; |
| 172 | context->min = log10(min); | |
| 175 | context->min = log10(min); | |
| 173 | 176 | context->scale = log10(max) - log10(min); |
| 174 | 177 | } |
| 175 | 178 | |
| r3115 | r3116 | |
| 249 | 252 | |
| 250 | 253 | static void dss_input_stream_step(node_description *node) |
| 251 | 254 | { |
| 252 | / | |
| 255 | /* the context pointer is set to point to the current input stream data in discrete_stream_update */ | |
| 253 | 256 | stream_sample_t **ptr = node->context; |
| 254 | 257 | stream_sample_t *data = *ptr; |
| 255 | 258 |
| r3115 | r3116 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | struct dst_dac_r1_context |
| 47 | 47 | { |
| 48 | double iBias; // current of the bias circuit | |
| 49 | double exponent; // smoothing curve | |
| 50 | double rTotal; // all resistors in parallel | |
| 48 | double i_bias; /* current of the bias circuit */ | |
| 49 | double exponent; /* smoothing curve */ | |
| 50 | double r_total; /* all resistors in parallel */ | |
| 51 | int last_data; | |
| 51 | 52 | }; |
| 52 | 53 | |
| 53 | 54 | struct dst_flipflop_context |
| r3115 | r3116 | |
| 58 | 59 | struct dst_integrate_context |
| 59 | 60 | { |
| 60 | 61 | double change; |
| 61 | double vMaxIn; // v1 - norton VBE | |
| 62 | double vMaxInD; // v1 - norton VBE - diode drop | |
| 63 | double vMaxOut; | |
| 62 | double v_max_in; /* v1 - norton VBE */ | |
| 63 | double v_max_in_d; /* v1 - norton VBE - diode drop */ | |
| 64 | double v_max_out; | |
| 64 | 65 | }; |
| 65 | 66 | |
| 66 | 67 | #define DISC_MIXER_MAX_INPS 8 |
| 67 | 68 | |
| 68 | 69 | struct dst_mixer_context |
| 69 | 70 | { |
| 70 | int type; | |
| 71 | int size; | |
| 72 | double rTotal; | |
| 73 | double *rNode[DISC_MIXER_MAX_INPS]; // Either pointer to resistance node output OR NULL | |
| 74 | double exponent_rc[DISC_MIXER_MAX_INPS]; // For high pass filtering cause by cIn | |
| 75 | double vCap[DISC_MIXER_MAX_INPS]; // cap voltage of each input | |
| 76 | double exponent_cF; // Low pass on mixed inputs | |
| 77 | double exponent_cAmp; // Final high pass caused by out cap and amp input impedance | |
| 78 | double vCapF; // cap voltage of cF | |
| 79 | double vCapAmp; // cap voltage of cAmp | |
| 80 | double gain; // used for DISC_MIXER_IS_OP_AMP_WITH_RI | |
| 71 | int type; | |
| 72 | int size; | |
| 73 | int has_r_node; | |
| 74 | double r_total; | |
| 75 | double *r_node[DISC_MIXER_MAX_INPS]; /* Either pointer to resistance node output OR NULL */ | |
| 76 | double exponent_rc[DISC_MIXER_MAX_INPS]; /* For high pass filtering cause by cIn */ | |
| 77 | double v_cap[DISC_MIXER_MAX_INPS]; /* cap voltage of each input */ | |
| 78 | double exponent_c_f; /* Low pass on mixed inputs */ | |
| 79 | double exponent_c_amp; /* Final high pass caused by out cap and amp input impedance */ | |
| 80 | double v_cap_f; /* cap voltage of cF */ | |
| 81 | double v_cap_amp; /* cap voltage of cAmp */ | |
| 82 | double gain; /* used for DISC_MIXER_IS_OP_AMP_WITH_RI */ | |
| 81 | 83 | }; |
| 82 | 84 | |
| 83 | 85 | struct dst_oneshot_context |
| 84 | 86 | { |
| 85 | double countdown; | |
| 86 | int state; | |
| 87 | int lastTrig; | |
| 87 | double countdown; | |
| 88 | int state; | |
| 89 | int last_trig; | |
| 88 | 90 | }; |
| 89 | 91 | |
| 90 | 92 | struct dss_ramp_context |
| 91 | 93 | { |
| 92 | double step; | |
| 93 | int dir; /* 1 if End is higher then Start */ | |
| 94 | int last_en; /* Keep track of the last enable value */ | |
| 94 | double step; | |
| 95 | int dir; /* 1 if End is higher then Start */ | |
| 96 | int last_en; /* Keep track of the last enable value */ | |
| 95 | 97 | }; |
| 96 | 98 | |
| 97 | 99 | struct dst_samphold_context |
| 98 | 100 | { |
| 99 | double lastinput; | |
| 101 | double last_input; | |
| 100 | 102 | int clocktype; |
| 101 | 103 | }; |
| 102 | 104 | |
| r3115 | r3116 | |
| 110 | 112 | UINT8 has_cap; |
| 111 | 113 | UINT8 has_r1; |
| 112 | 114 | UINT8 has_r4; |
| 113 | double vMax; | |
| 114 | double iFixed; | |
| 115 | double vCap; | |
| 115 | double v_max; | |
| 116 | double i_fixed; | |
| 117 | double v_cap; | |
| 116 | 118 | double exponent; |
| 117 | 119 | }; |
| 118 | 120 | |
| 119 | 121 | struct dst_op_amp_1sht_context |
| 120 | 122 | { |
| 121 | double iFixed; | |
| 122 | double vMax; | |
| 123 | double i_fixed; | |
| 124 | double v_max; | |
| 123 | 125 | double r34ratio; |
| 124 | double vCap1; | |
| 125 | double vCap2; | |
| 126 | double v_cap1; | |
| 127 | double v_cap2; | |
| 126 | 128 | double exponent1c; |
| 127 | 129 | double exponent1d; |
| 128 | 130 | double exponent2; |
| r3115 | r3116 | |
| 130 | 132 | |
| 131 | 133 | struct dst_tvca_op_amp_context |
| 132 | 134 | { |
| 133 | double vOutMax; // Maximum output voltage | |
| 134 | double vTrig[2]; // Voltage used to charge cap1 based on function F3 | |
| 135 | double vTrig2; // Voltage used to charge cap2 | |
| 136 | double vTrig3; // Voltage used to charge cap3 | |
| 137 | double iFixed; // Fixed current going into - input | |
| 138 | double exponentC[2]; // Charge exponents based on function F3 | |
| 139 | double exponentD[2]; // Discharge exponents based on function F3 | |
| 140 | double exponent2[2]; // Discharge/charge exponents based on function F4 | |
| 141 | double exponent3[2]; // Discharge/charge exponents based on function F5 | |
| 142 | double vCap1; // charge on cap c1 | |
| 143 | double vCap2; // charge on cap c2 | |
| 144 | double vCap3; // charge on cap c3 | |
| 145 | double r67; // = r6 + r7 (for easy use later) | |
| 135 | double v_out_max; /* Maximum output voltage */ | |
| 136 | double v_trig[2]; /* Voltage used to charge cap1 based on function F3 */ | |
| 137 | double v_trig2; /* Voltage used to charge cap2 */ | |
| 138 | double v_trig3; /* Voltage used to charge cap3 */ | |
| 139 | double i_fixed; /* Fixed current going into - input */ | |
| 140 | double exponent_c[2]; /* Charge exponents based on function F3 */ | |
| 141 | double exponent_d[2]; /* Discharge exponents based on function F3 */ | |
| 142 | double exponent2[2]; /* Discharge/charge exponents based on function F4 */ | |
| 143 | double exponent3[2]; /* Discharge/charge exponents based on function F5 */ | |
| 144 | double v_cap1; /* charge on cap c1 */ | |
| 145 | double v_cap2; /* charge on cap c2 */ | |
| 146 | double v_cap3; /* charge on cap c3 */ | |
| 147 | double r67; /* = r6 + r7 (for easy use later) */ | |
| 146 | 148 | }; |
| 147 | 149 | |
| 148 | 150 | |
| r3115 | r3116 | |
| 244 | 246 | { |
| 245 | 247 | if(DST_CLAMP__ENABLE) |
| 246 | 248 | { |
| 247 | if(DST_CLAMP__IN < DST_CLAMP__MIN) node->output[0] = DST_CLAMP__MIN; | |
| 248 | else if(DST_CLAMP__IN > DST_CLAMP__MAX) node->output[0] = DST_CLAMP__MAX; | |
| 249 | if (DST_CLAMP__IN < DST_CLAMP__MIN) node->output[0] = DST_CLAMP__MIN; | |
| 250 | else if (DST_CLAMP__IN > DST_CLAMP__MAX) node->output[0] = DST_CLAMP__MAX; | |
| 249 | 251 | else node->output[0]= DST_CLAMP__IN; |
| 250 | 252 | } |
| 251 | 253 | else |
| r3115 | r3116 | |
| 273 | 275 | |
| 274 | 276 | static void dst_dac_r1_step(node_description *node) |
| 275 | 277 | { |
| 276 | const discrete_dac_r1_ladder *info = node->custom; | |
| 277 | struct dst_dac_r1_context *context = node->context; | |
| 278 | const discrete_dac_r1_ladder *info = node->custom; | |
| 279 | struct dst_dac_r1_context *context = node->context; | |
| 278 | 280 | |
| 279 | int bit; | |
| 280 | double v; | |
| 281 | double i; | |
| 281 | int bit, bit_val, data; | |
| 282 | double v, i_bit, i_total, x_time; | |
| 282 | 283 | |
| 283 | i = context->i | |
| 284 | i_total = context->i_bias; | |
| 284 | 285 | |
| 286 | data = (int)DST_DAC_R1__DATA; | |
| 287 | x_time = DST_DAC_R1__DATA - data; | |
| 288 | ||
| 285 | 289 | if (DST_DAC_R1__ENABLE) |
| 286 | 290 | { |
| 287 | 291 | for (bit=0; bit < info->ladderLength; bit++) |
| 288 | 292 | { |
| 289 | 293 | /* Add up currents of ON circuits per Millman. */ |
| 290 | /* Off, being 0V and having no current, can be ignored. */ | |
| 291 | if ((DST_DAC_R1__DATA & (1 << bit)) && info->r[bit]) | |
| 292 | i += DST_DAC_R1__VON / info->r[bit]; | |
| 294 | ||
| 295 | /* ignore if no resistor present */ | |
| 296 | if (info->r[bit] != 0) | |
| 297 | { | |
| 298 | i_bit = DST_DAC_R1__VON / info->r[bit]; | |
| 299 | bit_val = (data >> bit) & 0x01; | |
| 300 | ||
| 301 | if ((x_time != 0) && (bit_val != ((context->last_data >> bit) & 0x01))) | |
| 302 | { | |
| 303 | /* there is x_time and a change in bit, | |
| 304 | * so anti-alias the current */ | |
| 305 | i_bit *= bit_val ? x_time : 1.0 - x_time; | |
| 306 | } | |
| 307 | else | |
| 308 | { | |
| 309 | /* there is no x_time or a change in bit, | |
| 310 | * so 0 the current if the bit value is 0 */ | |
| 311 | if (bit_val == 0) i_bit = 0; | |
| 312 | } | |
| 313 | i_total += i_bit; | |
| 314 | } | |
| 293 | 315 | } |
| 294 | 316 | |
| 295 | v = i * context->r | |
| 317 | v = i_total * context->r_total; | |
| 296 | 318 | |
| 297 | 319 | /* Filter if needed, else just output voltage */ |
| 298 | 320 | node->output[0] = info->cFilter ? node->output[0] + ((v - node->output[0]) * context->exponent) : v; |
| r3115 | r3116 | |
| 316 | 338 | |
| 317 | 339 | /* Calculate the Millman current of the bias circuit */ |
| 318 | 340 | if (info->rBias) |
| 319 | context->i | |
| 341 | context->i_bias = info->vBias / info->rBias; | |
| 320 | 342 | else |
| 321 | context->i | |
| 343 | context->i_bias = 0; | |
| 322 | 344 | |
| 323 | 345 | /* |
| 324 | 346 | * We will do a small amount of error checking. |
| r3115 | r3116 | |
| 340 | 362 | * This is the combined resistance of the voltage sources. |
| 341 | 363 | * This is used for the charging curve. |
| 342 | 364 | */ |
| 343 | context->rTotal = 0; | |
| 344 | for(bit=0; bit < info->ladderLength; bit++) | |
| 365 | context->r_total = 0; | |
| 366 | for(bit = 0; bit < info->ladderLength; bit++) | |
| 345 | 367 | { |
| 346 | 368 | if (info->r[bit]) |
| 347 | context->r | |
| 369 | context->r_total += 1.0 / info->r[bit]; | |
| 348 | 370 | } |
| 349 | if (info->rBias) context->rTotal += 1.0 / info->rBias; | |
| 350 | if (info->rGnd) context->rTotal += 1.0 / info->rGnd; | |
| 351 | context->rTotal = 1.0 / context->rTotal; | |
| 371 | if (info->rBias) context->r_total += 1.0 / info->rBias; | |
| 372 | if (info->rGnd) context->r_total += 1.0 / info->rGnd; | |
| 373 | context->r_total = 1.0 / context->r_total; | |
| 352 | 374 | |
| 353 | 375 | node->output[0] = 0; |
| 354 | 376 | |
| 355 | 377 | if (info->cFilter) |
| 356 | 378 | { |
| 357 | 379 | /* Setup filter constants */ |
| 358 | context->exponent = -1.0 / (context->rTotal * info->cFilter * discrete_current_context->sample_rate); | |
| 359 | context->exponent = 1.0 - exp(context->exponent); | |
| 380 | context->exponent = -1.0 / (context->r_total * info->cFilter * discrete_current_context->sample_rate); | |
| 381 | context->exponent = 1.0 - exp(context->exponent); | |
| 360 | 382 | } |
| 361 | 383 | } |
| 362 | 384 | |
| r3115 | r3116 | |
| 378 | 400 | |
| 379 | 401 | static void dst_diode_mix_step(node_description *node) |
| 380 | 402 | { |
| 381 | struct dst_size_context *context = node->context; | |
| 382 | double max = 0; | |
| 383 | int addr; | |
| 403 | struct dst_size_context *context = node->context; | |
| 384 | 404 | |
| 405 | double max = 0; | |
| 406 | int addr; | |
| 407 | ||
| 385 | 408 | if (DST_DIODE_MIX__ENABLE) |
| 386 | 409 | { |
| 387 | 410 | for (addr = 0; addr < context->size; addr++) |
| r3115 | r3116 | |
| 426 | 449 | { |
| 427 | 450 | if(DST_DIVIDE__DIV == 0) |
| 428 | 451 | { |
| 429 | node->output[0]=DBL_MAX; /* Max out but don't break */ | |
| 452 | node->output[0 ]= DBL_MAX; /* Max out but don't break */ | |
| 430 | 453 | discrete_log("dst_divider_step() - Divide by Zero attempted in NODE_%02d.\n",NODE_INDEX(node->node)); |
| 431 | 454 | } |
| 432 | 455 | else |
| r3115 | r3116 | |
| 460 | 483 | { |
| 461 | 484 | if(DST_GAIN__ENABLE) |
| 462 | 485 | { |
| 463 | node->output[0] = DST_GAIN__IN * DST_GAIN__GAIN; | |
| 486 | node->output[0] = DST_GAIN__IN * DST_GAIN__GAIN; | |
| 464 | 487 | node->output[0] += DST_GAIN__OFFSET; |
| 465 | 488 | } |
| 466 | 489 | else |
| 467 | 490 | { |
| 468 | node->output[0]=0; | |
| 491 | node->output[0] = 0; | |
| 469 | 492 | } |
| 470 | 493 | } |
| 471 | 494 | |
| r3115 | r3116 | |
| 520 | 543 | |
| 521 | 544 | static void dst_integrate_step(node_description *node) |
| 522 | 545 | { |
| 523 | const discrete_integrate_info *info = node->custom; | |
| 524 | struct dst_integrate_context *context = node->context; | |
| 546 | const discrete_integrate_info *info = node->custom; | |
| 547 | struct dst_integrate_context *context = node->context; | |
| 525 | 548 | |
| 526 | 549 | int trig0, trig1; |
| 527 | double iNeg = 0; // current into - input | |
| 528 | double iPos = 0; // current into + input | |
| 550 | double i_neg = 0; /* current into - input */ | |
| 551 | double i_pos = 0; /* current into + input */ | |
| 529 | 552 | |
| 530 | 553 | switch (info->type) |
| 531 | 554 | { |
| r3115 | r3116 | |
| 535 | 558 | /* This forces the cap to completely charge, |
| 536 | 559 | * and the output to go to it's max value. |
| 537 | 560 | */ |
| 538 | node->output[0] = context->v | |
| 561 | node->output[0] = context->v_max_out; | |
| 539 | 562 | return; |
| 540 | 563 | } |
| 541 | 564 | node->output[0] -= context->change; |
| 542 | 565 | break; |
| 543 | 566 | |
| 544 | 567 | case DISC_INTEGRATE_OP_AMP_1 | DISC_OP_AMP_IS_NORTON: |
| 545 | iNeg = context->vMaxIn / info->r1; | |
| 546 | iPos = (DST_INTEGRATE__TRG0 - OP_AMP_NORTON_VBE) / info->r2; | |
| 547 | if (iPos < 0) iPos = 0; | |
| 548 | node->output[0] += (iPos - iNeg) / discrete_current_context->sample_rate / info->c; | |
| 568 | i_neg = context->v_max_in / info->r1; | |
| 569 | i_pos = (DST_INTEGRATE__TRG0 - OP_AMP_NORTON_VBE) / info->r2; | |
| 570 | if (i_pos < 0) i_pos = 0; | |
| 571 | node->output[0] += (i_pos - i_neg) / discrete_current_context->sample_rate / info->c; | |
| 549 | 572 | break; |
| 550 | 573 | |
| 551 | 574 | case DISC_INTEGRATE_OP_AMP_2 | DISC_OP_AMP_IS_NORTON: |
| 552 | trig0 = (int)DST_INTEGRATE__TRG0; | |
| 553 | trig1 = (int)DST_INTEGRATE__TRG1; | |
| 554 | iNeg = dst_trigger_function(trig0, trig1, 0, info->f0) ? context->vMaxInD / info->r1 : 0; | |
| 555 | iPos = dst_trigger_function(trig0, trig1, 0, info->f1) ? context->vMaxIn / info->r2 : 0; | |
| 556 | iPos += dst_trigger_function(trig0, trig1, 0, info->f2) ? context->vMaxInD / info->r3 : 0; | |
| 557 | node->output[0] += (iPos - iNeg) / discrete_current_context->sample_rate / info->c; | |
| 575 | trig0 = (int)DST_INTEGRATE__TRG0; | |
| 576 | trig1 = (int)DST_INTEGRATE__TRG1; | |
| 577 | i_neg = dst_trigger_function(trig0, trig1, 0, info->f0) ? context->v_max_in_d / info->r1 : 0; | |
| 578 | i_pos = dst_trigger_function(trig0, trig1, 0, info->f1) ? context->v_max_in / info->r2 : 0; | |
| 579 | i_pos += dst_trigger_function(trig0, trig1, 0, info->f2) ? context->v_max_in_d / info->r3 : 0; | |
| 580 | node->output[0] += (i_pos - i_neg) / discrete_current_context->sample_rate / info->c; | |
| 558 | 581 | break; |
| 559 | 582 | } |
| 560 | 583 | |
| 561 | 584 | /* Clip the output. */ |
| 562 | 585 | if (node->output[0] < 0) node->output[0] = 0; |
| 563 | if (node->output[0] > context->v | |
| 586 | if (node->output[0] > context->v_max_out) node->output[0] = context->v_max_out; | |
| 564 | 587 | } |
| 565 | 588 | |
| 566 | 589 | static void dst_integrate_reset(node_description *node) |
| r3115 | r3116 | |
| 571 | 594 | |
| 572 | 595 | if (info->type & DISC_OP_AMP_IS_NORTON) |
| 573 | 596 | { |
| 574 | context->vMaxOut = info->vP - OP_AMP_NORTON_VBE; | |
| 575 | context->vMaxIn = info->v1 - OP_AMP_NORTON_VBE; | |
| 576 | context->vMaxInD = context->vMaxIn - OP_AMP_NORTON_VBE; | |
| 597 | context->v_max_out = info->vP - OP_AMP_NORTON_VBE; | |
| 598 | context->v_max_in = info->v1 - OP_AMP_NORTON_VBE; | |
| 599 | context->v_max_in_d = context->v_max_in - OP_AMP_NORTON_VBE; | |
| 577 | 600 | } |
| 578 | 601 | else |
| 579 | 602 | { |
| 580 | context->v | |
| 603 | context->v_max_out = info->vP - OP_AMP_VP_RAIL_OFFSET; | |
| 581 | 604 | |
| 582 | 605 | v = info->v1 * info->r3 / (info->r2 + info->r3); /* vRef */ |
| 583 | 606 | v = info->v1 - v; /* actual charging voltage */ |
| r3115 | r3116 | |
| 607 | 630 | } |
| 608 | 631 | else |
| 609 | 632 | { |
| 610 | node->output[0]=0.0; | |
| 633 | node->output[0] = 0.0; | |
| 611 | 634 | } |
| 612 | 635 | } |
| 613 | 636 | |
| r3115 | r3116 | |
| 632 | 655 | { |
| 633 | 656 | if(DST_LOGIC_AND__ENABLE) |
| 634 | 657 | { |
| 635 | node->output[0]= (DST_LOGIC_AND__IN0 && DST_LOGIC_AND__IN1 && DST_LOGIC_AND__IN2 && DST_LOGIC_AND__IN3)? 1.0 : 0.0; | |
| 658 | node->output[0] = (DST_LOGIC_AND__IN0 && DST_LOGIC_AND__IN1 && DST_LOGIC_AND__IN2 && DST_LOGIC_AND__IN3)? 1.0 : 0.0; | |
| 636 | 659 | } |
| 637 | 660 | else |
| 638 | 661 | { |
| 639 | node->output[0]=0.0; | |
| 662 | node->output[0] = 0.0; | |
| 640 | 663 | } |
| 641 | 664 | } |
| 642 | 665 | |
| r3115 | r3116 | |
| 665 | 688 | } |
| 666 | 689 | else |
| 667 | 690 | { |
| 668 | node->output[0]=0.0; | |
| 691 | node->output[0] = 0.0; | |
| 669 | 692 | } |
| 670 | 693 | } |
| 671 | 694 | |
| r3115 | r3116 | |
| 694 | 717 | } |
| 695 | 718 | else |
| 696 | 719 | { |
| 697 | node->output[0]=0.0; | |
| 720 | node->output[0] = 0.0; | |
| 698 | 721 | } |
| 699 | 722 | } |
| 700 | 723 | |
| r3115 | r3116 | |
| 723 | 746 | } |
| 724 | 747 | else |
| 725 | 748 | { |
| 726 | node->output[0]=0.0; | |
| 749 | node->output[0] = 0.0; | |
| 727 | 750 | } |
| 728 | 751 | } |
| 729 | 752 | |
| r3115 | r3116 | |
| 744 | 767 | { |
| 745 | 768 | if(DST_LOGIC_XOR__ENABLE) |
| 746 | 769 | { |
| 747 | node->output[0]=((DST_LOGIC_XOR__IN0 && !DST_LOGIC_XOR__IN1) || (!DST_LOGIC_XOR__IN0 && DST_LOGIC_XOR__IN1)) ? 1.0 : 0.0; | |
| 770 | node->output[0] = ((DST_LOGIC_XOR__IN0 && !DST_LOGIC_XOR__IN1) || (!DST_LOGIC_XOR__IN0 && DST_LOGIC_XOR__IN1)) ? 1.0 : 0.0; | |
| 748 | 771 | } |
| 749 | 772 | else |
| 750 | 773 | { |
| 751 | node->output[0]=0.0; | |
| 774 | node->output[0] = 0.0; | |
| 752 | 775 | } |
| 753 | 776 | } |
| 754 | 777 | |
| r3115 | r3116 | |
| 769 | 792 | { |
| 770 | 793 | if(DST_LOGIC_XNOR__ENABLE) |
| 771 | 794 | { |
| 772 | node->output[0]=((DST_LOGIC_XNOR__IN0 && !DST_LOGIC_XNOR__IN1) || (!DST_LOGIC_XNOR__IN0 && DST_LOGIC_XNOR__IN1)) ? 0.0 : 1.0; | |
| 795 | node->output[0] = ((DST_LOGIC_XNOR__IN0 && !DST_LOGIC_XNOR__IN1) || (!DST_LOGIC_XNOR__IN0 && DST_LOGIC_XNOR__IN1)) ? 0.0 : 1.0; | |
| 773 | 796 | } |
| 774 | 797 | else |
| 775 | 798 | { |
| 776 | node->output[0]=0.0; | |
| 799 | node->output[0] = 0.0; | |
| 777 | 800 | } |
| 778 | 801 | } |
| 779 | 802 | |
| r3115 | r3116 | |
| 798 | 821 | static void dst_logic_dff_step(node_description *node) |
| 799 | 822 | { |
| 800 | 823 | struct dst_flipflop_context *context = node->context; |
| 824 | ||
| 801 | 825 | int clk = (int)DST_LOGIC_DFF__CLOCK; |
| 802 | 826 | |
| 803 | 827 | if (DST_LOGIC_DFF__ENABLE) |
| r3115 | r3116 | |
| 807 | 831 | else if (DST_LOGIC_DFF__SET) |
| 808 | 832 | node->output[0] = 1; |
| 809 | 833 | else if (!context->last_clk && clk) /* low to high */ |
| 810 | { | |
| 811 | 834 | node->output[0] = DST_LOGIC_DFF__DATA; |
| 812 | } | |
| 813 | 835 | } |
| 814 | 836 | else |
| 815 | 837 | { |
| r3115 | r3116 | |
| 821 | 843 | static void dst_logic_ff_reset(node_description *node) |
| 822 | 844 | { |
| 823 | 845 | struct dst_flipflop_context *context = node->context; |
| 846 | ||
| 824 | 847 | context->last_clk = 0; |
| 825 | node->output[0] = 0; | |
| 848 | node->output[0] = 0; | |
| 826 | 849 | } |
| 827 | 850 | |
| 828 | 851 | |
| r3115 | r3116 | |
| 848 | 871 | static void dst_logic_jkff_step(node_description *node) |
| 849 | 872 | { |
| 850 | 873 | struct dst_flipflop_context *context = node->context; |
| 874 | ||
| 851 | 875 | int clk = (int)DST_LOGIC_JKFF__CLOCK; |
| 852 | int j = (int)DST_LOGIC_JKFF__J; | |
| 853 | int k = (int)DST_LOGIC_JKFF__K; | |
| 876 | int j = (int)DST_LOGIC_JKFF__J; | |
| 877 | int k = (int)DST_LOGIC_JKFF__K; | |
| 854 | 878 | |
| 855 | 879 | if (DST_LOGIC_JKFF__ENABLE) |
| 856 | 880 | { |
| r3115 | r3116 | |
| 880 | 904 | } |
| 881 | 905 | else |
| 882 | 906 | { |
| 883 | node->output[0]=0; | |
| 907 | node->output[0] = 0; | |
| 884 | 908 | } |
| 885 | 909 | context->last_clk = clk; |
| 886 | 910 | } |
| r3115 | r3116 | |
| 905 | 929 | static void dst_lookup_table_step(node_description *node) |
| 906 | 930 | { |
| 907 | 931 | const double *table = node->custom; |
| 932 | ||
| 908 | 933 | int addr = DST_LOOKUP_TABLE__IN; |
| 909 | 934 | |
| 910 | 935 | if (!DST_LOOKUP_TABLE__ENABLE || addr < 0 || addr >= DST_LOOKUP_TABLE__SIZE) |
| r3115 | r3116 | |
| 968 | 993 | |
| 969 | 994 | static void dst_mixer_step(node_description *node) |
| 970 | 995 | { |
| 971 | const discrete_mixer_desc *info = node->custom; | |
| 972 | struct dst_mixer_context *context = node->context; | |
| 996 | const discrete_mixer_desc *info = node->custom; | |
| 997 | struct dst_mixer_context *context = node->context; | |
| 973 | 998 | |
| 974 | double v, vTemp, rTotal, rTemp, rTemp2 = 0; | |
| 975 | double i = 0; // total current of inputs | |
| 976 | int bit, connected; | |
| 999 | double v, vTemp, r_total, rTemp, rTemp2 = 0; | |
| 1000 | double i = 0; /* total current of inputs */ | |
| 1001 | int bit, connected; | |
| 977 | 1002 | |
| 978 | 1003 | if (DST_MIXER__ENABLE) |
| 979 | 1004 | { |
| 980 | r | |
| 1005 | r_total = context->r_total; | |
| 981 | 1006 | |
| 982 | if (context-> | |
| 1007 | if (context->has | |
| 983 | 1008 | { |
| 984 | for(bit=0; bit < context->size; bit++) | |
| 1009 | /* loop and do any high pass filtering for connected caps */ | |
| 1010 | /* but first see if there is an r_node for the current path */ | |
| 1011 | /* if so, then the exponents need to be re-calculated */ | |
| 1012 | for (bit = 0; bit < context->size; bit++) | |
| 985 | 1013 | { |
| 986 | rTemp = info->r[bit]; | |
| 1014 | rTemp = info->r[bit]; | |
| 987 | 1015 | connected = 1; |
| 988 | vTemp = DST_MIXER__IN(bit); | |
| 1016 | vTemp = DST_MIXER__IN(bit); | |
| 989 | 1017 | |
| 990 | if ( | |
| 1018 | if (c | |
| 991 | 1019 | { |
| 992 | 1020 | /* a node has the posibility of being disconnected from the circuit. */ |
| 993 | if (*context->r | |
| 1021 | if (*context->r_node[bit] == 0) | |
| 994 | 1022 | connected = 0; |
| 995 | 1023 | else |
| 996 | 1024 | { |
| 997 | rTemp += *context->rNode[bit]; | |
| 998 | rTotal += 1.0 / rTemp; | |
| 1025 | rTemp += *context->r_node[bit]; | |
| 1026 | r_total += 1.0 / rTemp; | |
| 999 | 1027 | if (info->c[bit] != 0) |
| 1000 | 1028 | { |
| 1001 | switch (context->type | |
| 1029 | switch (context->type | |
| 1002 | 1030 | { |
| 1003 | 1031 | case DISC_MIXER_IS_RESISTOR: |
| 1004 | 1032 | /* is there an rF? */ |
| r3115 | r3116 | |
| 1017 | 1045 | } |
| 1018 | 1046 | /* Re-calculate exponent if resistor is a node */ |
| 1019 | 1047 | context->exponent_rc[bit] = -1.0 / (rTemp2 * info->c[bit] * discrete_current_context->sample_rate); |
| 1020 | context->exponent_rc[bit] = 1.0 - exp(context->exponent_rc[bit]); | |
| 1048 | context->exponent_rc[bit] = 1.0 - exp(context->exponent_rc[bit]); | |
| 1021 | 1049 | } |
| 1022 | 1050 | } |
| 1023 | 1051 | } |
| r3115 | r3116 | |
| 1027 | 1055 | if (info->c[bit] != 0) |
| 1028 | 1056 | { |
| 1029 | 1057 | /* do input high pass filtering if needed. */ |
| 1030 | context->vCap[bit] += (vTemp - info->vRef - context->vCap[bit]) * context->exponent_rc[bit]; | |
| 1031 | vTemp -= context->vCap[bit]; | |
| 1058 | context->v_cap[bit] += (vTemp - info->vRef - context->v_cap[bit]) * context->exponent_rc[bit]; | |
| 1059 | vTemp -= context->v_cap[bit]; | |
| 1032 | 1060 | } |
| 1033 | i += (( | |
| 1061 | i += (( | |
| 1034 | 1062 | } |
| 1035 | 1063 | } |
| 1036 | 1064 | } |
| 1037 | 1065 | else |
| 1038 | 1066 | { |
| 1067 | /* no r_nodes, so just do high pass filtering */ | |
| 1039 | 1068 | for (bit = 0; bit < context->size; bit++) |
| 1040 | 1069 | { |
| 1041 | 1070 | rTemp = info->r[bit]; |
| r3115 | r3116 | |
| 1044 | 1073 | if (info->c[bit] != 0) |
| 1045 | 1074 | { |
| 1046 | 1075 | /* do input high pass filtering if needed. */ |
| 1047 | context->vCap[bit] += (vTemp - info->vRef - context->vCap[bit]) * context->exponent_rc[bit]; | |
| 1048 | vTemp -= context->vCap[bit]; | |
| 1076 | context->v_cap[bit] += (vTemp - info->vRef - context->v_cap[bit]) * context->exponent_rc[bit]; | |
| 1077 | vTemp -= context->v_cap[bit]; | |
| 1049 | 1078 | } |
| 1050 | i += (( | |
| 1079 | i += (( | |
| 1051 | 1080 | } |
| 1052 | 1081 | } |
| 1053 | 1082 | |
| 1054 | if ( | |
| 1083 | if ( | |
| 1055 | 1084 | i += info->vRef / info->rI; |
| 1056 | 1085 | |
| 1057 | r | |
| 1086 | r_total = 1.0 / r_total; | |
| 1058 | 1087 | |
| 1059 | 1088 | /* If resistor network or has rI then Millman is used. |
| 1060 | 1089 | * If op-amp then summing formula is used. */ |
| 1061 | v = i * (( | |
| 1090 | v = i * (( | |
| 1062 | 1091 | |
| 1063 | if ( | |
| 1092 | if ( | |
| 1064 | 1093 | v = info->vRef + (context->gain * (info->vRef - v)); |
| 1065 | 1094 | |
| 1066 | 1095 | /* Do the low pass filtering for cF */ |
| 1067 | 1096 | if (info->cF != 0) |
| 1068 | 1097 | { |
| 1069 | if (context-> | |
| 1098 | if (context->has | |
| 1070 | 1099 | { |
| 1071 | 1100 | /* Re-calculate exponent if resistor nodes are used */ |
| 1072 | context->exponent_cF = -1.0 / (rTotal * info->cF * discrete_current_context->sample_rate); | |
| 1073 | context->exponent_cF = 1.0 - exp(context->exponent_cF); | |
| 1101 | context->exponent_c_f = -1.0 / (r_total * info->cF * discrete_current_context->sample_rate); | |
| 1102 | context->exponent_c_f = 1.0 - exp(context->exponent_c_f); | |
| 1074 | 1103 | } |
| 1075 | context->vCapF += (v -info->vRef - context->vCapF) * context->exponent_cF; | |
| 1076 | v = context->vCapF; | |
| 1104 | context->v_cap_f += (v -info->vRef - context->v_cap_f) * context->exponent_c_f; | |
| 1105 | v = context->v_cap_f; | |
| 1077 | 1106 | } |
| 1078 | 1107 | |
| 1079 | 1108 | /* Do the high pass filtering for cAmp */ |
| 1080 | 1109 | if (info->cAmp != 0) |
| 1081 | 1110 | { |
| 1082 | context->vCapAmp += (v - context->vCapAmp) * context->exponent_cAmp; | |
| 1083 | v -= context->vCapAmp; | |
| 1111 | context->v_cap_amp += (v - context->v_cap_amp) * context->exponent_c_amp; | |
| 1112 | v -= context->v_cap_amp; | |
| 1084 | 1113 | } |
| 1085 | 1114 | node->output[0] = v * info->gain; |
| 1086 | 1115 | } |
| r3115 | r3116 | |
| 1092 | 1121 | |
| 1093 | 1122 | static void dst_mixer_reset(node_description *node) |
| 1094 | 1123 | { |
| 1095 | const discrete_mixer_desc *info = node->custom; | |
| 1096 | struct dst_mixer_context *context = node->context; | |
| 1124 | const discrete_mixer_desc *info = node->custom; | |
| 1125 | struct dst_mixer_context *context = node->context; | |
| 1097 | 1126 | node_description *r_node; |
| 1098 | 1127 | |
| 1099 | int bit; | |
| 1128 | int bit; | |
| 1100 | 1129 | double rTemp = 0; |
| 1101 | 1130 | |
| 1102 | /* link to rNode outputs */ | |
| 1103 | for (bit = 0; bit < 8; bit ++) | |
| 1131 | /* link to r_node outputs */ | |
| 1132 | context->has_r_node = 0; | |
| 1133 | for (bit = 0; bit < 8; bit++) | |
| 1104 | 1134 | { |
| 1105 | r_node = discrete_find_node(NULL, info->r | |
| 1135 | r_node = discrete_find_node(NULL, info->r_node[bit]); | |
| 1106 | 1136 | if (r_node) |
| 1107 | context->rNode[bit] = &(r_node->output[NODE_CHILD_NODE_NUM(info->rNode[bit])]); | |
| 1137 | { | |
| 1138 | context->r_node[bit] = &(r_node->output[NODE_CHILD_NODE_NUM(info->r_node[bit])]); | |
| 1139 | context->has_r_node = 1; | |
| 1140 | } | |
| 1108 | 1141 | else |
| 1109 | context->r | |
| 1142 | context->r_node[bit] = NULL; | |
| 1110 | 1143 | } |
| 1111 | 1144 | |
| 1112 | 1145 | context->size = node->active_inputs - 1; |
| r3115 | r3116 | |
| 1117 | 1150 | * then you deserve a crash. |
| 1118 | 1151 | */ |
| 1119 | 1152 | |
| 1120 | context->type = ((info->type == DISC_MIXER_IS_OP_AMP) && info->rI) ? DISC_MIXER_IS_OP_AMP_WITH_RI : info->type; | |
| 1153 | context->type = info->type; | |
| 1154 | if ((info->type == DISC_MIXER_IS_OP_AMP) && (info->rI != 0)) | |
| 1155 | context->type = DISC_MIXER_IS_OP_AMP_WITH_RI; | |
| 1121 | 1156 | |
| 1122 | 1157 | /* |
| 1123 | 1158 | * Calculate the total of all resistors in parallel. |
| 1124 | 1159 | * This is the combined resistance of the voltage sources. |
| 1125 | 1160 | * Also calculate the exponents while we are here. |
| 1126 | 1161 | */ |
| 1127 | context->rTotal = 0; | |
| 1128 | for(bit=0; bit < context->size; bit++) | |
| 1162 | context->r_total = 0; | |
| 1163 | for(bit = 0; bit < context->size; bit++) | |
| 1129 | 1164 | { |
| 1130 | if (info->rNode[bit]) | |
| 1131 | context->type = context->type | DISC_MIXER_HAS_R_NODE; | |
| 1132 | ||
| 1133 | if ((info->r[bit] != 0) && !info->rNode[bit] ) | |
| 1165 | if ((info->r[bit] != 0) && !info->r_node[bit] ) | |
| 1134 | 1166 | { |
| 1135 | context->r | |
| 1167 | context->r_total += 1.0 / info->r[bit]; | |
| 1136 | 1168 | } |
| 1137 | 1169 | |
| 1138 | context->v | |
| 1170 | context->v_cap[bit] = 0; | |
| 1139 | 1171 | context->exponent_rc[bit] = 0; |
| 1140 | if ((info->c[bit] != 0) && !info->r | |
| 1172 | if ((info->c[bit] != 0) && !info->r_node[bit]) | |
| 1141 | 1173 | { |
| 1142 | 1174 | switch (context->type) |
| 1143 | 1175 | { |
| r3115 | r3116 | |
| 1158 | 1190 | } |
| 1159 | 1191 | /* Setup filter constants */ |
| 1160 | 1192 | context->exponent_rc[bit] = -1.0 / (rTemp * info->c[bit] * discrete_current_context->sample_rate); |
| 1161 | context->exponent_rc[bit] = 1.0 - exp(context->exponent_rc[bit]); | |
| 1193 | context->exponent_rc[bit] = 1.0 - exp(context->exponent_rc[bit]); | |
| 1162 | 1194 | } |
| 1163 | 1195 | } |
| 1164 | 1196 | |
| 1165 | 1197 | if (info->rF != 0) |
| 1166 | 1198 | { |
| 1167 | if ( | |
| 1199 | if (c | |
| 1168 | 1200 | } |
| 1169 | if (context->type == DISC_MIXER_IS_OP_AMP_WITH_RI) context->r | |
| 1201 | if (context->type == DISC_MIXER_IS_OP_AMP_WITH_RI) context->r_total += 1.0 / info->rI; | |
| 1170 | 1202 | |
| 1171 | context->vCapF = 0; | |
| 1172 | context->exponent_cF = 0; | |
| 1203 | context->v_cap_f = 0; | |
| 1204 | context->exponent_c_f = 0; | |
| 1173 | 1205 | if (info->cF != 0) |
| 1174 | 1206 | { |
| 1175 | 1207 | /* Setup filter constants */ |
| 1176 | context->exponent_cF = -1.0 / (((info->type == DISC_MIXER_IS_OP_AMP) ? info->rF : (1.0 / context->rTotal))* info->cF * discrete_current_context->sample_rate); | |
| 1177 | context->exponent_cF = 1.0 - exp(context->exponent_cF); | |
| 1208 | context->exponent_c_f = -1.0 / (((info->type == DISC_MIXER_IS_OP_AMP) ? info->rF : (1.0 / context->r_total))* info->cF * discrete_current_context->sample_rate); | |
| 1209 | context->exponent_c_f = 1.0 - exp(context->exponent_c_f); | |
| 1178 | 1210 | } |
| 1179 | 1211 | |
| 1180 | context->vCapAmp = 0; | |
| 1181 | context->exponent_cAmp = 0; | |
| 1212 | context->v_cap_amp = 0; | |
| 1213 | context->exponent_c_amp = 0; | |
| 1182 | 1214 | if (info->cAmp != 0) |
| 1183 | 1215 | { |
| 1184 | 1216 | /* Setup filter constants */ |
| 1185 | 1217 | /* We will use 100000 ohms as an average final stage impedance. */ |
| 1186 | 1218 | /* Your amp/speaker system will have more effect on incorrect filtering then any value used here. */ |
| 1187 | context->exponent_cAmp = -1.0 / (100000 * info->cAmp * discrete_current_context->sample_rate); | |
| 1188 | context->exponent_cAmp = 1.0 - exp(context->exponent_cAmp); | |
| 1219 | context->exponent_c_amp = -1.0 / (100000 * info->cAmp * discrete_current_context->sample_rate); | |
| 1220 | context->exponent_c_amp = 1.0 - exp(context->exponent_c_amp); | |
| 1189 | 1221 | } |
| 1190 | 1222 | |
| 1191 | if ( | |
| 1223 | if ( | |
| 1192 | 1224 | |
| 1193 | 1225 | node->output[0] = 0; |
| 1194 | 1226 | } |
| r3115 | r3116 | |
| 1213 | 1245 | static void dst_multiplex_step(node_description *node) |
| 1214 | 1246 | { |
| 1215 | 1247 | struct dst_size_context *context = node->context; |
| 1248 | ||
| 1216 | 1249 | int addr; |
| 1217 | 1250 | |
| 1218 | 1251 | if(DST_MULTIPLEX__ENABLE) |
| 1219 | 1252 | { |
| 1220 | addr = DST_MULTIPLEX__ADDR; / | |
| 1253 | addr = DST_MULTIPLEX__ADDR; /* FP to INT */ | |
| 1221 | 1254 | if ((addr >= 0) && (addr < context->size)) |
| 1222 | 1255 | { |
| 1223 | 1256 | node->output[0] = DST_MULTIPLEX__INP(addr); |
| r3115 | r3116 | |
| 1225 | 1258 | else |
| 1226 | 1259 | { |
| 1227 | 1260 | /* Bad address. We will leave the output alone. */ |
| 1228 | discrete_log("NODE_%02d - Address = %d. Out of bounds\n",node->node-NODE_00, addr); | |
| 1261 | discrete_log("NODE_%02d - Address = %d. Out of bounds\n", node->node-NODE_00, addr); | |
| 1229 | 1262 | } |
| 1230 | 1263 | } |
| 1231 | 1264 | else |
| 1232 | 1265 | { |
| 1233 | node->output[0]=0; | |
| 1266 | node->output[0] = 0; | |
| 1234 | 1267 | } |
| 1235 | 1268 | } |
| 1236 | 1269 | |
| r3115 | r3116 | |
| 1265 | 1298 | static void dst_oneshot_step(node_description *node) |
| 1266 | 1299 | { |
| 1267 | 1300 | struct dst_oneshot_context *context = node->context; |
| 1301 | ||
| 1268 | 1302 | int trigger = (DST_ONESHOT__TRIG != 0); |
| 1269 | 1303 | |
| 1270 | 1304 | /* If the state is triggered we will need to countdown later */ |
| 1271 | int do | |
| 1305 | int do_count = context->state; | |
| 1272 | 1306 | |
| 1273 | 1307 | if (DST_ONESHOT__RESET) |
| 1274 | 1308 | { |
| 1275 | 1309 | /* Hold in Reset */ |
| 1276 | 1310 | node->output[0] = 0; |
| 1277 | context->state = 0; | |
| 1311 | context->state = 0; | |
| 1278 | 1312 | } |
| 1279 | 1313 | else |
| 1280 | 1314 | { |
| 1281 | 1315 | /* are we at an edge? */ |
| 1282 | if (trigger != context->last | |
| 1316 | if (trigger != context->last_trig) | |
| 1283 | 1317 | { |
| 1284 | 1318 | /* There has been a trigger edge */ |
| 1285 | context->last | |
| 1319 | context->last_trig = trigger; | |
| 1286 | 1320 | |
| 1287 | 1321 | /* Is it the proper edge trigger */ |
| 1288 | 1322 | if ((DST_ONESHOT__TYPE & DISC_ONESHOT_REDGE) ? trigger : !trigger) |
| r3115 | r3116 | |
| 1290 | 1324 | if (!context->state) |
| 1291 | 1325 | { |
| 1292 | 1326 | /* We have first trigger */ |
| 1293 | context->state = 1; | |
| 1294 | node->output[0] = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? 0 : DST_ONESHOT__AMP; | |
| 1327 | context->state = 1; | |
| 1328 | node->output[0] = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? 0 : DST_ONESHOT__AMP; | |
| 1295 | 1329 | context->countdown = DST_ONESHOT__WIDTH; |
| 1296 | 1330 | } |
| 1297 | 1331 | else |
| r3115 | r3116 | |
| 1301 | 1335 | { |
| 1302 | 1336 | /* Retrigger */ |
| 1303 | 1337 | context->countdown = DST_ONESHOT__WIDTH; |
| 1304 | do | |
| 1338 | do_count = 0; | |
| 1305 | 1339 | } |
| 1306 | 1340 | } |
| 1307 | 1341 | } |
| 1308 | 1342 | } |
| 1309 | 1343 | |
| 1310 | if (do | |
| 1344 | if (do_count) | |
| 1311 | 1345 | { |
| 1312 | 1346 | context->countdown -= discrete_current_context->sample_time; |
| 1313 | 1347 | if(context->countdown <= 0.0) |
| 1314 | 1348 | { |
| 1315 | node->output[0] = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? DST_ONESHOT__AMP : 0; | |
| 1349 | node->output[0] = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? DST_ONESHOT__AMP : 0; | |
| 1316 | 1350 | context->countdown = 0; |
| 1317 | context->state = 0; | |
| 1351 | context->state = 0; | |
| 1318 | 1352 | } |
| 1319 | 1353 | } |
| 1320 | 1354 | } |
| r3115 | r3116 | |
| 1324 | 1358 | static void dst_oneshot_reset(node_description *node) |
| 1325 | 1359 | { |
| 1326 | 1360 | struct dst_oneshot_context *context = node->context; |
| 1361 | ||
| 1327 | 1362 | context->countdown = 0; |
| 1328 | context->state = 0; | |
| 1363 | context->state = 0; | |
| 1329 | 1364 | |
| 1330 | context->last | |
| 1365 | context->last_trig = 0; | |
| 1331 | 1366 | node->output[0] = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? DST_ONESHOT__AMP : 0; |
| 1332 | 1367 | } |
| 1333 | 1368 | |
| r3115 | r3116 | |
| 1360 | 1395 | if (!context->last_en) |
| 1361 | 1396 | { |
| 1362 | 1397 | context->last_en = 1; |
| 1363 | node->output[0] = DST_RAMP__START; | |
| 1398 | node->output[0] = DST_RAMP__START; | |
| 1364 | 1399 | } |
| 1365 | 1400 | if(context->dir ? DST_RAMP__DIR : !DST_RAMP__DIR) node->output[0]+=context->step; |
| 1366 | else node->output[0]-=context->step; | |
| 1401 | else node->output[0] -= context->step; | |
| 1367 | 1402 | /* Clamp to min/max */ |
| 1368 | 1403 | if(context->dir ? (node->output[0] < DST_RAMP__START) |
| 1369 | : (node->output[0] > DST_RAMP__START)) node->output[0]=DST_RAMP__START; | |
| 1404 | : (node->output[0] > DST_RAMP__START)) node->output[0] = DST_RAMP__START; | |
| 1370 | 1405 | if(context->dir ? (node->output[0] > DST_RAMP__END) |
| 1371 | : (node->output[0] < DST_RAMP__END)) node->output[0]=DST_RAMP__END; | |
| 1406 | : (node->output[0] < DST_RAMP__END)) node->output[0] = DST_RAMP__END; | |
| 1372 | 1407 | } |
| 1373 | 1408 | else |
| 1374 | 1409 | { |
| 1375 | 1410 | context->last_en = 0; |
| 1376 | // Disabled so clamp to output | |
| 1377 | node->output[0]=DST_RAMP__CLAMP; | |
| 1411 | /* Disabled so clamp to output */ | |
| 1412 | node->output[0] = DST_RAMP__CLAMP; | |
| 1378 | 1413 | } |
| 1379 | 1414 | } |
| 1380 | 1415 | |
| r3115 | r3116 | |
| 1382 | 1417 | { |
| 1383 | 1418 | struct dss_ramp_context *context = node->context; |
| 1384 | 1419 | |
| 1385 | node->output[0]=DST_RAMP__CLAMP; | |
| 1386 | context->step = DST_RAMP__GRAD / discrete_current_context->sample_rate; | |
| 1387 | context->dir = ((DST_RAMP__END - DST_RAMP__START) == abs(DST_RAMP__END - DST_RAMP__START)); | |
| 1420 | node->output[0] = DST_RAMP__CLAMP; | |
| 1421 | context->step = DST_RAMP__GRAD / discrete_current_context->sample_rate; | |
| 1422 | context->dir = ((DST_RAMP__END - DST_RAMP__START) == abs(DST_RAMP__END - DST_RAMP__START)); | |
| 1388 | 1423 | context->last_en = 0; |
| 1389 | 1424 | } |
| 1390 | 1425 | |
| r3115 | r3116 | |
| 1414 | 1449 | { |
| 1415 | 1450 | case DISC_SAMPHOLD_REDGE: |
| 1416 | 1451 | /* Clock the whole time the input is rising */ |
| 1417 | if(DST_SAMPHOLD__CLOCK > context->lastinput) node->output[0]=DST_SAMPHOLD__IN0; | |
| 1452 | if (DST_SAMPHOLD__CLOCK > context->last_input) node->output[0] = DST_SAMPHOLD__IN0; | |
| 1418 | 1453 | break; |
| 1419 | 1454 | case DISC_SAMPHOLD_FEDGE: |
| 1420 | 1455 | /* Clock the whole time the input is falling */ |
| 1421 | if(DST_SAMPHOLD__CLOCK < context->lastinput) node->output[0]=DST_SAMPHOLD__IN0; | |
| 1456 | if(DST_SAMPHOLD__CLOCK < context->last_input) node->output[0] = DST_SAMPHOLD__IN0; | |
| 1422 | 1457 | break; |
| 1423 | 1458 | case DISC_SAMPHOLD_HLATCH: |
| 1424 | 1459 | /* Output follows input if clock != 0 */ |
| 1425 | if(DST_SAMPHOLD__CLOCK) node->output[0]=DST_SAMPHOLD__IN0; | |
| 1460 | if( DST_SAMPHOLD__CLOCK) node->output[0] = DST_SAMPHOLD__IN0; | |
| 1426 | 1461 | break; |
| 1427 | 1462 | case DISC_SAMPHOLD_LLATCH: |
| 1428 | 1463 | /* Output follows input if clock == 0 */ |
| 1429 | if(DST_SAMPHOLD__CLOCK==0) node->output[0]=DST_SAMPHOLD__IN0; | |
| 1464 | if (DST_SAMPHOLD__CLOCK == 0) node->output[0] = DST_SAMPHOLD__IN0; | |
| 1430 | 1465 | break; |
| 1431 | 1466 | default: |
| 1432 | 1467 | discrete_log("dst_samphold_step - Invalid clocktype passed"); |
| r3115 | r3116 | |
| 1435 | 1470 | } |
| 1436 | 1471 | else |
| 1437 | 1472 | { |
| 1438 | node->output[0]=0; | |
| 1473 | node->output[0] = 0; | |
| 1439 | 1474 | } |
| 1440 | 1475 | /* Save the last value */ |
| 1441 | context->lastinput=DST_SAMPHOLD__CLOCK; | |
| 1476 | context->last_input = DST_SAMPHOLD__CLOCK; | |
| 1442 | 1477 | } |
| 1443 | 1478 | |
| 1444 | 1479 | static void dst_samphold_reset(node_description *node) |
| 1445 | 1480 | { |
| 1446 | 1481 | struct dst_samphold_context *context = node->context; |
| 1447 | 1482 | |
| 1448 | node->output[0]=0; | |
| 1449 | context->lastinput=-1; | |
| 1483 | node->output[0] = 0; | |
| 1484 | context->last_input = -1; | |
| 1450 | 1485 | /* Only stored in here to speed up and save casting in the step function */ |
| 1451 | context->clocktype=(int)DST_SAMPHOLD__TYPE; | |
| 1486 | context->clocktype = (int)DST_SAMPHOLD__TYPE; | |
| 1452 | 1487 | dst_samphold_step(node); |
| 1453 | 1488 | } |
| 1454 | 1489 | |
| r3115 | r3116 | |
| 1472 | 1507 | { |
| 1473 | 1508 | if(DSS_SWITCH__ENABLE) |
| 1474 | 1509 | { |
| 1475 | node->output[0]=DSS_SWITCH__SWITCH ? DSS_SWITCH__IN1 : DSS_SWITCH__IN0; | |
| 1510 | node->output[0] = DSS_SWITCH__SWITCH ? DSS_SWITCH__IN1 : DSS_SWITCH__IN0; | |
| 1476 | 1511 | } |
| 1477 | 1512 | else |
| 1478 | 1513 | { |
| 1479 | node->output[0]=0; | |
| 1514 | node->output[0] = 0; | |
| 1480 | 1515 | } |
| 1481 | 1516 | } |
| 1482 | 1517 | |
| r3115 | r3116 | |
| 1500 | 1535 | { |
| 1501 | 1536 | if(DSS_SWITCH__ENABLE) |
| 1502 | 1537 | { |
| 1503 | node->output[0]=DSS_ASWITCH__CTRL > DSS_ASWITCH__THRESHOLD ? DSS_ASWITCH__IN : 0; | |
| 1538 | node->output[0] = DSS_ASWITCH__CTRL > DSS_ASWITCH__THRESHOLD ? DSS_ASWITCH__IN : 0; | |
| 1504 | 1539 | } |
| 1505 | 1540 | else |
| 1506 | 1541 | { |
| 1507 | node->output[0]=0; | |
| 1542 | node->output[0] = 0; | |
| 1508 | 1543 | } |
| 1509 | 1544 | } |
| 1510 | 1545 | |
| r3115 | r3116 | |
| 1529 | 1564 | |
| 1530 | 1565 | #define MAX_TRANS_STACK 16 |
| 1531 | 1566 | |
| 1532 | INLINE double dst_transform_pop(double *stack,int *pointer) | |
| 1567 | INLINE double dst_transform_pop(double *stack, int *pointer) | |
| 1533 | 1568 | { |
| 1534 | 1569 | //decrement THEN read |
| 1535 | 1570 | assert(*pointer > 0); |
| r3115 | r3116 | |
| 1537 | 1572 | return stack[*pointer]; |
| 1538 | 1573 | } |
| 1539 | 1574 | |
| 1540 | INLINE void dst_transform_push(double *stack,int *pointer,double value) | |
| 1575 | INLINE void dst_transform_push(double *stack, int *pointer, double value) | |
| 1541 | 1576 | { |
| 1542 | 1577 | //Store THEN increment |
| 1543 | 1578 | assert(*pointer < MAX_TRANS_STACK); |
| 1544 | stack[(*pointer)++]=value; | |
| 1579 | stack[(*pointer)++] = value; | |
| 1545 | 1580 | } |
| 1546 | 1581 | |
| 1547 | 1582 | static void dst_transform_step(node_description *node) |
| 1548 | 1583 | { |
| 1549 | 1584 | if(DST_TRANSFORM__ENABLE) |
| 1550 | 1585 | { |
| 1551 | double trans_stack[MAX_TRANS_STACK]; | |
| 1552 | double number1,top; | |
| 1553 | int trans_stack_ptr=0; | |
| 1586 | double trans_stack[MAX_TRANS_STACK]; | |
| 1587 | double number1,top; | |
| 1588 | int trans_stack_ptr = 0; | |
| 1554 | 1589 | |
| 1555 | 1590 | const char *fPTR = node->custom; |
| 1556 | node->output[0]=0; | |
| 1591 | node->output[0] = 0; | |
| 1557 | 1592 | |
| 1558 | 1593 | top = HUGE_VAL; |
| 1559 | 1594 | |
| 1560 | while(*fPTR!=0) | |
| 1595 | while(*fPTR != 0) | |
| 1561 | 1596 | { |
| 1562 | 1597 | switch (*fPTR++) |
| 1563 | 1598 | { |
| 1564 | 1599 | case '*': |
| 1565 | number1 = dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1600 | number1 = dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1566 | 1601 | top = number1 * top; |
| 1567 | 1602 | break; |
| 1568 | 1603 | case '/': |
| 1569 | number1 = dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1604 | number1 = dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1570 | 1605 | top = number1 / top; |
| 1571 | 1606 | break; |
| 1572 | 1607 | case '+': |
| 1573 | number1=dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1608 | number1=dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1574 | 1609 | top = number1 + top; |
| 1575 | 1610 | break; |
| 1576 | 1611 | case '-': |
| 1577 | number1 = dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1612 | number1 = dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1578 | 1613 | top = number1 - top; |
| 1579 | 1614 | break; |
| 1580 | 1615 | case '0': |
| 1581 | dst_transform_push(trans_stack,&trans_stack_ptr, top); | |
| 1616 | dst_transform_push(trans_stack, &trans_stack_ptr, top); | |
| 1582 | 1617 | top = DST_TRANSFORM__IN0; |
| 1583 | 1618 | break; |
| 1584 | 1619 | case '1': |
| 1585 | dst_transform_push(trans_stack,&trans_stack_ptr, top); | |
| 1620 | dst_transform_push(trans_stack, &trans_stack_ptr, top); | |
| 1586 | 1621 | top = DST_TRANSFORM__IN1; |
| 1587 | 1622 | break; |
| 1588 | 1623 | case '2': |
| 1589 | dst_transform_push(trans_stack,&trans_stack_ptr, top); | |
| 1624 | dst_transform_push(trans_stack, &trans_stack_ptr, top); | |
| 1590 | 1625 | top = DST_TRANSFORM__IN2; |
| 1591 | 1626 | break; |
| 1592 | 1627 | case '3': |
| 1593 | dst_transform_push(trans_stack,&trans_stack_ptr, top); | |
| 1628 | dst_transform_push(trans_stack, &trans_stack_ptr, top); | |
| 1594 | 1629 | top = DST_TRANSFORM__IN3; |
| 1595 | 1630 | break; |
| 1596 | 1631 | case '4': |
| 1597 | dst_transform_push(trans_stack,&trans_stack_ptr, top); | |
| 1632 | dst_transform_push(trans_stack, &trans_stack_ptr, top); | |
| 1598 | 1633 | top = DST_TRANSFORM__IN4; |
| 1599 | 1634 | break; |
| 1600 | 1635 | case 'P': |
| 1601 | dst_transform_push(trans_stack,&trans_stack_ptr, top); | |
| 1636 | dst_transform_push(trans_stack, &trans_stack_ptr, top); | |
| 1602 | 1637 | break; |
| 1603 | case 'i': / | |
| 1638 | case 'i': /* * -1 */ | |
| 1604 | 1639 | top = -top; |
| 1605 | 1640 | break; |
| 1606 | case '!': / | |
| 1641 | case '!': /* Logical NOT of Last Value */ | |
| 1607 | 1642 | top = !top; |
| 1608 | 1643 | break; |
| 1609 | case '=': // Logical = | |
| 1610 | number1 = dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1644 | case '=': /* Logical = */ | |
| 1645 | number1 = dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1611 | 1646 | top = (int)number1 == (int)top; |
| 1612 | 1647 | break; |
| 1613 | case '>': // Logical > | |
| 1614 | number1 = dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1648 | case '>': /* Logical > */ | |
| 1649 | number1 = dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1615 | 1650 | top = number1 > top; |
| 1616 | 1651 | break; |
| 1617 | case '<': // Logical < | |
| 1618 | number1 = dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1652 | case '<': /* Logical < */ | |
| 1653 | number1 = dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1619 | 1654 | top = number1 < top; |
| 1620 | 1655 | break; |
| 1621 | case '&': // Bitwise AND | |
| 1622 | number1 = dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1656 | case '&': /* Bitwise AND */ | |
| 1657 | number1 = dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1623 | 1658 | top = (int)number1 & (int)top; |
| 1624 | 1659 | break; |
| 1625 | case '|': // Bitwise OR | |
| 1626 | number1 = dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1660 | case '|': /* Bitwise OR */ | |
| 1661 | number1 = dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1627 | 1662 | top = (int)number1 | (int)top; |
| 1628 | 1663 | break; |
| 1629 | case '^': // Bitwise XOR | |
| 1630 | number1 = dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1664 | case '^': /* Bitwise XOR */ | |
| 1665 | number1 = dst_transform_pop(trans_stack, &trans_stack_ptr); | |
| 1631 | 1666 | top = (int)number1 ^ (int)top; |
| 1632 | 1667 | break; |
| 1633 | 1668 | default: |
| r3115 | r3116 | |
| 1640 | 1675 | } |
| 1641 | 1676 | else |
| 1642 | 1677 | { |
| 1643 | node->output[0]=0; | |
| 1678 | node->output[0] = 0; | |
| 1644 | 1679 | } |
| 1645 | 1680 | } |
| 1646 | 1681 | |
| r3115 | r3116 | |
| 1663 | 1698 | |
| 1664 | 1699 | static void dst_op_amp_step(node_description *node) |
| 1665 | 1700 | { |
| 1666 | const discrete_op_amp_info *info = node->custom; | |
| 1667 | struct dst_op_amp_context *context = node->context; | |
| 1701 | const discrete_op_amp_info *info = node->custom; | |
| 1702 | struct dst_op_amp_context *context = node->context; | |
| 1668 | 1703 | |
| 1669 | double iPos = 0; | |
| 1670 | double iNeg = 0; | |
| 1671 | double i = 0; | |
| 1704 | double i_pos = 0; | |
| 1705 | double i_neg = 0; | |
| 1706 | double i = 0; | |
| 1672 | 1707 | |
| 1673 | 1708 | if (DST_OP_AMP__ENABLE) |
| 1674 | 1709 | { |
| r3115 | r3116 | |
| 1678 | 1713 | /* work out neg pin current */ |
| 1679 | 1714 | if (context->has_r1) |
| 1680 | 1715 | { |
| 1681 | iNeg = (DST_OP_AMP__INP0 - OP_AMP_NORTON_VBE) / info->r1; | |
| 1682 | if (iNeg < 0) iNeg = 0; | |
| 1716 | i_neg = (DST_OP_AMP__INP0 - OP_AMP_NORTON_VBE) / info->r1; | |
| 1717 | if (i_neg < 0) i_neg = 0; | |
| 1683 | 1718 | } |
| 1684 | i | |
| 1719 | i_neg += context->i_fixed; | |
| 1685 | 1720 | |
| 1686 | 1721 | /* work out neg pin current */ |
| 1687 | iPos = (DST_OP_AMP__INP1 - OP_AMP_NORTON_VBE) / info->r2; | |
| 1688 | if (iPos < 0) iPos = 0; | |
| 1722 | i_pos = (DST_OP_AMP__INP1 - OP_AMP_NORTON_VBE) / info->r2; | |
| 1723 | if (i_pos < 0) i_pos = 0; | |
| 1689 | 1724 | |
| 1690 | 1725 | /* work out current across r4 */ |
| 1691 | i = i | |
| 1726 | i = i_pos - i_neg; | |
| 1692 | 1727 | |
| 1693 | 1728 | if (context->has_cap) |
| 1694 | 1729 | { |
| r3115 | r3116 | |
| 1697 | 1732 | /* voltage across r4 charging cap */ |
| 1698 | 1733 | i *= info->r4; |
| 1699 | 1734 | /* exponential charge */ |
| 1700 | context->v | |
| 1735 | context->v_cap += (i - context->v_cap) * context->exponent; | |
| 1701 | 1736 | } |
| 1702 | 1737 | else |
| 1703 | 1738 | /* linear charge */ |
| 1704 | context->vCap += i / context->exponent; | |
| 1705 | node->output[0] = context->vCap; | |
| 1739 | context->v_cap += i / context->exponent; | |
| 1740 | node->output[0] = context->v_cap; | |
| 1706 | 1741 | } |
| 1707 | 1742 | else |
| 1708 | 1743 | node->output[0] = i * info->r4; |
| 1709 | 1744 | |
| 1710 | 1745 | /* clamp output */ |
| 1711 | if (node->output[0] > context->v | |
| 1746 | if (node->output[0] > context->v_max) node->output[0] = context->v_max; | |
| 1712 | 1747 | else if (node->output[0] < info->vN) node->output[0] = info->vN; |
| 1713 | context->v | |
| 1748 | context->v_cap = node->output[0]; | |
| 1714 | 1749 | break; |
| 1715 | 1750 | |
| 1716 | 1751 | default: |
| r3115 | r3116 | |
| 1729 | 1764 | context->has_r1 = info->r1 > 0; |
| 1730 | 1765 | context->has_r4 = info->r4 > 0; |
| 1731 | 1766 | |
| 1732 | context->v | |
| 1767 | context->v_max = info->vP - OP_AMP_NORTON_VBE; | |
| 1733 | 1768 | |
| 1734 | context->v | |
| 1769 | context->v_cap = 0; | |
| 1735 | 1770 | if (info->c > 0) |
| 1736 | 1771 | { |
| 1737 | 1772 | context->has_cap = 1; |
| r3115 | r3116 | |
| 1740 | 1775 | { |
| 1741 | 1776 | /* exponential charge */ |
| 1742 | 1777 | context->exponent = -1.0 / (info->r4 * info->c * discrete_current_context->sample_rate); |
| 1743 | context->exponent = 1.0 - exp(context->exponent); | |
| 1778 | context->exponent = 1.0 - exp(context->exponent); | |
| 1744 | 1779 | } |
| 1745 | 1780 | else |
| 1746 | 1781 | /* linear charge */ |
| r3115 | r3116 | |
| 1748 | 1783 | } |
| 1749 | 1784 | |
| 1750 | 1785 | if (info->r3 >= 0) |
| 1751 | context->i | |
| 1786 | context->i_fixed = (info->vP - OP_AMP_NORTON_VBE) / info->r3; | |
| 1752 | 1787 | } |
| 1753 | 1788 | |
| 1754 | 1789 | |
| r3115 | r3116 | |
| 1766 | 1801 | |
| 1767 | 1802 | static void dst_op_amp_1sht_step(node_description *node) |
| 1768 | 1803 | { |
| 1769 | const discrete_op_amp_1sht_info *info = node->custom; | |
| 1770 | struct dst_op_amp_1sht_context *context = node->context; | |
| 1804 | const discrete_op_amp_1sht_info *info = node->custom; | |
| 1805 | struct dst_op_amp_1sht_context *context = node->context; | |
| 1771 | 1806 | |
| 1772 | double iPos; | |
| 1773 | double iNeg; | |
| 1807 | double i_pos; | |
| 1808 | double i_neg; | |
| 1774 | 1809 | double v; |
| 1775 | 1810 | |
| 1776 | 1811 | /* update trigger circuit */ |
| 1777 | iPos = (DST_OP_AMP_1SHT__TRIGGER - context->vCap2) / info->r2; | |
| 1778 | iPos += node->output[0] / info->r5; | |
| 1779 | context->vCap2 += (DST_OP_AMP_1SHT__TRIGGER - context->vCap2) * context->exponent2; | |
| 1812 | i_pos = (DST_OP_AMP_1SHT__TRIGGER - context->v_cap2) / info->r2; | |
| 1813 | i_pos += node->output[0] / info->r5; | |
| 1814 | context->v_cap2 += (DST_OP_AMP_1SHT__TRIGGER - context->v_cap2) * context->exponent2; | |
| 1780 | 1815 | |
| 1781 | 1816 | /* calculate currents and output */ |
| 1782 | iNeg = (context->vCap1 - OP_AMP_NORTON_VBE) / info->r3; | |
| 1783 | if (iNeg < 0) iNeg = 0; | |
| 1784 | iNeg += context->iFixed; | |
| 1817 | i_neg = (context->v_cap1 - OP_AMP_NORTON_VBE) / info->r3; | |
| 1818 | if (i_neg < 0) i_neg = 0; | |
| 1819 | i_neg += context->i_fixed; | |
| 1785 | 1820 | |
| 1786 | if (i | |
| 1821 | if (i_pos > i_neg) node->output[0] = context->v_max; | |
| 1787 | 1822 | else node->output[0] = info->vN; |
| 1788 | 1823 | |
| 1789 | 1824 | /* update c1 */ |
| 1790 | 1825 | /* rough value of voltage at anode of diode if discharging */ |
| 1791 | 1826 | v = node->output[0] + 0.6; |
| 1792 | if (context->v | |
| 1827 | if (context->v_cap1 > node->output[0]) | |
| 1793 | 1828 | { |
| 1794 | 1829 | /* discharge */ |
| 1795 | if (context->v | |
| 1830 | if (context->v_cap1 > v) | |
| 1796 | 1831 | /* immediate discharge through diode */ |
| 1797 | context->v | |
| 1832 | context->v_cap1 = v; | |
| 1798 | 1833 | else |
| 1799 | 1834 | /* discharge through r4 */ |
| 1800 | context->v | |
| 1835 | context->v_cap1 += (node->output[0] - context->v_cap1) * context->exponent1d; | |
| 1801 | 1836 | } |
| 1802 | 1837 | else |
| 1803 | 1838 | /* charge */ |
| 1804 | context->v | |
| 1839 | context->v_cap1 += ((node->output[0] - OP_AMP_NORTON_VBE) * context->r34ratio + OP_AMP_NORTON_VBE - context->v_cap1) * context->exponent1c; | |
| 1805 | 1840 | } |
| 1806 | 1841 | |
| 1807 | 1842 | static void dst_op_amp_1sht_reset(node_description *node) |
| 1808 | 1843 | { |
| 1809 | const discrete_op_amp_1sht_info *info = node->custom; | |
| 1810 | struct dst_op_amp_1sht_context *context = node->context; | |
| 1844 | const discrete_op_amp_1sht_info *info = node->custom; | |
| 1845 | struct dst_op_amp_1sht_context *context = node->context; | |
| 1811 | 1846 | |
| 1812 | 1847 | context->exponent1c = -1.0 / ((1.0 / (1.0 / info->r3 + 1.0 / info->r4)) * info->c1 * discrete_current_context->sample_rate); |
| 1813 | context->exponent1c = 1.0 - exp(context->exponent1c); | |
| 1848 | context->exponent1c = 1.0 - exp(context->exponent1c); | |
| 1814 | 1849 | context->exponent1d = -1.0 / (info->r4 * info->c1 * discrete_current_context->sample_rate); |
| 1815 | context->exponent1d = 1.0 - exp(context->exponent1d); | |
| 1816 | context->exponent2 = -1.0 / (info->r2 * info->c2 * discrete_current_context->sample_rate); | |
| 1817 | context->exponent2 = 1.0 - exp(context->exponent2); | |
| 1818 | context->iFixed = (info->vP - OP_AMP_NORTON_VBE) / info->r1; | |
| 1819 | context->vCap1 = context->vCap2 = 0; | |
| 1820 | context->vMax = info->vP - OP_AMP_NORTON_VBE; | |
| 1850 | context->exponent1d = 1.0 - exp(context->exponent1d); | |
| 1851 | context->exponent2 = -1.0 / (info->r2 * info->c2 * discrete_current_context->sample_rate); | |
| 1852 | context->exponent2 = 1.0 - exp(context->exponent2); | |
| 1853 | context->i_fixed = (info->vP - OP_AMP_NORTON_VBE) / info->r1; | |
| 1854 | context->v_cap1 = context->v_cap2 = 0; | |
| 1855 | context->v_max = info->vP - OP_AMP_NORTON_VBE; | |
| 1821 | 1856 | context->r34ratio = info->r3 / (info->r3 + info->r4); |
| 1822 | 1857 | } |
| 1823 | 1858 | |
| r3115 | r3116 | |
| 1844 | 1879 | |
| 1845 | 1880 | static void dst_tvca_op_amp_step(node_description *node) |
| 1846 | 1881 | { |
| 1847 | const discrete_op_amp_tvca_info *info = node->custom; | |
| 1848 | struct dst_tvca_op_amp_context *context = node->context; | |
| 1882 | const discrete_op_amp_tvca_info *info = node->custom; | |
| 1883 | struct dst_tvca_op_amp_context *context = node->context; | |
| 1849 | 1884 | |
| 1850 | 1885 | int trig0, trig1, trig2, f3; |
| 1851 | double i2 = 0; // current through r2 | |
| 1852 | double i3 = 0; // current through r3 | |
| 1853 | double iNeg = 0; // current into - input | |
| 1854 | double iPos = 0; // current into + input | |
| 1855 | double iOut = 0; // current at output | |
| 1886 | double i2 = 0; /* current through r2 */ | |
| 1887 | double i3 = 0; /* current through r3 */ | |
| 1888 | double i_neg = 0; /* current into - input */ | |
| 1889 | double i_pos = 0; /* current into + input */ | |
| 1890 | double i_out = 0; /* current at output */ | |
| 1856 | 1891 | |
| 1857 | 1892 | trig0 = (int)DST_TVCA_OP_AMP__TRG0; |
| 1858 | 1893 | trig1 = (int)DST_TVCA_OP_AMP__TRG1; |
| r3115 | r3116 | |
| 1875 | 1910 | } |
| 1876 | 1911 | |
| 1877 | 1912 | /* Calculate current going in to - input. */ |
| 1878 | i | |
| 1913 | i_neg = context->i_fixed + i2 + i3; | |
| 1879 | 1914 | |
| 1880 | 1915 | /* Update the c1 cap voltage. */ |
| 1881 | 1916 | if (dst_trigger_function(trig0, trig1, trig2, info->f2)) |
| 1882 | 1917 | { |
| 1883 | 1918 | /* F2 is not grounding the circuit so we charge the cap. */ |
| 1884 | context->v | |
| 1919 | context->v_cap1 += (context->v_trig[f3] - context->v_cap1) * context->exponent_c[f3]; | |
| 1885 | 1920 | } |
| 1886 | 1921 | else |
| 1887 | 1922 | { |
| r3115 | r3116 | |
| 1889 | 1924 | * So now the discharge rate is dependent upon F3. |
| 1890 | 1925 | * If F3 is at ground then we discharge to 0V through r6. |
| 1891 | 1926 | * If F3 is out of circuit then we discharge to OP_AMP_NORTON_VBE through r6+r7. */ |
| 1892 | context->v | |
| 1927 | context->v_cap1 += ((f3 ? OP_AMP_NORTON_VBE : 0.0) - context->v_cap1) * context->exponent_d[f3]; | |
| 1893 | 1928 | } |
| 1894 | 1929 | |
| 1895 | 1930 | /* Calculate c1 current going in to + input. */ |
| 1896 | iPos = (context->vCap1 - OP_AMP_NORTON_VBE) / context->r67; | |
| 1897 | if ((iPos < 0) || !f3) iPos = 0; | |
| 1931 | i_pos = (context->v_cap1 - OP_AMP_NORTON_VBE) / context->r67; | |
| 1932 | if ((i_pos < 0) || !f3) i_pos = 0; | |
| 1898 | 1933 | |
| 1899 | 1934 | /* Update the c2 cap voltage and current. */ |
| 1900 | 1935 | if (info->r9 != 0) |
| 1901 | 1936 | { |
| 1902 | 1937 | f3 = dst_trigger_function(trig0, trig1, trig2, info->f4); |
| 1903 | context->vCap2 += ((f3 ? context->vTrig2 : 0) - context->vCap2) * context->exponent2[f3]; | |
| 1904 | iPos += context->vCap2 / info->r9; | |
| 1938 | context->v_cap2 += ((f3 ? context->v_trig2 : 0) - context->v_cap2) * context->exponent2[f3]; | |
| 1939 | i_pos += context->v_cap2 / info->r9; | |
| 1905 | 1940 | } |
| 1906 | 1941 | |
| 1907 | 1942 | /* Update the c3 cap voltage and current. */ |
| 1908 | 1943 | if (info->r11 != 0) |
| 1909 | 1944 | { |
| 1910 | 1945 | f3 = dst_trigger_function(trig0, trig1, trig2, info->f5); |
| 1911 | context->vCap3 += ((f3 ? context->vTrig3 : 0) - context->vCap3) * context->exponent3[f3]; | |
| 1912 | iPos += context->vCap3 / info->r11; | |
| 1946 | context->v_cap3 += ((f3 ? context->v_trig3 : 0) - context->v_cap3) * context->exponent3[f3]; | |
| 1947 | i_pos += context->v_cap3 / info->r11; | |
| 1913 | 1948 | } |
| 1914 | 1949 | |
| 1915 | 1950 | |
| 1916 | 1951 | /* Calculate output current. */ |
| 1917 | iOut = iPos - iNeg; | |
| 1918 | if (iOut < 0) iOut = 0; | |
| 1952 | i_out = i_pos - i_neg; | |
| 1953 | if (i_out < 0) i_out = 0; | |
| 1919 | 1954 | /* Convert to voltage for final output. */ |
| 1920 | node->output[0] = i | |
| 1955 | node->output[0] = i_out * info->r4; | |
| 1921 | 1956 | /* Clip the output if needed. */ |
| 1922 | if (node->output[0] > context->v | |
| 1957 | if (node->output[0] > context->v_out_max) node->output[0] = context->v_out_max; | |
| 1923 | 1958 | } |
| 1924 | 1959 | |
| 1925 | 1960 | static void dst_tvca_op_amp_reset(node_description *node) |
| 1926 | 1961 | { |
| 1927 | const discrete_op_amp_tvca_info *info = node->custom; | |
| 1928 | struct dst_tvca_op_amp_context *context = node->context; | |
| 1962 | const discrete_op_amp_tvca_info *info = node->custom; | |
| 1963 | struct dst_tvca_op_amp_context *context = node->context; | |
| 1929 | 1964 | |
| 1930 | 1965 | context->r67 = info->r6 + info->r7; |
| 1931 | 1966 | |
| 1932 | context->v | |
| 1967 | context->v_out_max = info->vP - OP_AMP_NORTON_VBE; | |
| 1933 | 1968 | /* This is probably overkill because R5 is usually much lower then r6 or r7, |
| 1934 | 1969 | * but it is better to play it safe. */ |
| 1935 | context->vTrig[0] = (info->v1 - 0.6) * (info->r6 / (info->r6 + info->r5)); | |
| 1936 | context->vTrig[1] = (info->v1 - 0.6 - OP_AMP_NORTON_VBE) * (context->r67 / (context->r67 + info->r5)) + OP_AMP_NORTON_VBE; | |
| 1937 | context->iFixed = context->vOutMax / info->r1; | |
| 1970 | context->v_trig[0] = (info->v1 - 0.6) * (info->r6 / (info->r6 + info->r5)); | |
| 1971 | context->v_trig[1] = (info->v1 - 0.6 - OP_AMP_NORTON_VBE) * (context->r67 / (context->r67 + info->r5)) + OP_AMP_NORTON_VBE; | |
| 1972 | context->i_fixed = context->v_out_max / info->r1; | |
| 1938 | 1973 | |
| 1939 | context->v | |
| 1974 | context->v_cap1 = 0; | |
| 1940 | 1975 | /* Charge rate thru r5 */ |
| 1941 | 1976 | /* There can be a different charge rates depending on function F3. */ |
| 1942 | context->exponentC[0] = -1.0 / ((1.0 / (1.0 / info->r5 + 1.0 / info->r6)) * info->c1 * discrete_current_context->sample_rate); | |
| 1943 | context->exponentC[0] = 1.0 - exp(context->exponentC[0]); | |
| 1944 | context->exponentC[1] = -1.0 / ((1.0 / (1.0 / info->r5 + 1.0 / context->r67)) * info->c1 * discrete_current_context->sample_rate); | |
| 1945 | context->exponentC[1] = 1.0 - exp(context->exponentC[1]); | |
| 1977 | context->exponent_c[0] = -1.0 / ((1.0 / (1.0 / info->r5 + 1.0 / info->r6)) * info->c1 * discrete_current_context->sample_rate); | |
| 1978 | context->exponent_c[0] = 1.0 - exp(context->exponent_c[0]); | |
| 1979 | context->exponent_c[1] = -1.0 / ((1.0 / (1.0 / info->r5 + 1.0 / context->r67)) * info->c1 * discrete_current_context->sample_rate); | |
| 1980 | context->exponent_c[1] = 1.0 - exp(context->exponent_c[1]); | |
| 1946 | 1981 | /* Discharge rate thru r6 + r7 */ |
| 1947 | context->exponentD[1] = -1.0 / (context->r67 * info->c1 * discrete_current_context->sample_rate); | |
| 1948 | context->exponentD[1] = 1.0 - exp(context->exponentD[1]); | |
| 1982 | context->exponent_d[1] = -1.0 / (context->r67 * info->c1 * discrete_current_context->sample_rate); | |
| 1983 | context->exponent_d[1] = 1.0 - exp(context->exponent_d[1]); | |
| 1949 | 1984 | /* Discharge rate thru r6 */ |
| 1950 | 1985 | if (info->r6 != 0) |
| 1951 | 1986 | { |
| 1952 | context->exponentD[0] = -1.0 / (info->r6 * info->c1 * discrete_current_context->sample_rate); | |
| 1953 | context->exponentD[0] = 1.0 - exp(context->exponentD[0]); | |
| 1987 | context->exponent_d[0] = -1.0 / (info->r6 * info->c1 * discrete_current_context->sample_rate); | |
| 1988 | context->exponent_d[0] = 1.0 - exp(context->exponent_d[0]); | |
| 1954 | 1989 | } |
| 1955 | context->vCap2 = 0; | |
| 1956 | context->vTrig2 = (info->v2 - 0.6 - OP_AMP_NORTON_VBE) * (info->r9 / (info->r8 + info->r9)); | |
| 1990 | context->v_cap2 = 0; | |
| 1991 | context->v_trig2 = (info->v2 - 0.6 - OP_AMP_NORTON_VBE) * (info->r9 / (info->r8 + info->r9)); | |
| 1957 | 1992 | context->exponent2[0] = -1.0 / (info->r9 * info->c2 * discrete_current_context->sample_rate); |
| 1958 | context->exponent2[0] = 1.0 - exp(context->exponent2[0]); | |
| 1993 | context->exponent2[0] = 1.0 - exp(context->exponent2[0]); | |
| 1959 | 1994 | context->exponent2[1] = -1.0 / ((1.0 / (1.0 / info->r8 + 1.0 / info->r9)) * info->c2 * discrete_current_context->sample_rate); |
| 1960 | context->exponent2[1] = 1.0 - exp(context->exponent2[1]); | |
| 1961 | context->vCap3 = 0; | |
| 1962 | context->vTrig3 = (info->v3 - 0.6 - OP_AMP_NORTON_VBE) * (info->r11 / (info->r10 + info->r11)); | |
| 1995 | context->exponent2[1] = 1.0 - exp(context->exponent2[1]); | |
| 1996 | context->v_cap3 = 0; | |
| 1997 | context->v_trig3 = (info->v3 - 0.6 - OP_AMP_NORTON_VBE) * (info->r11 / (info->r10 + info->r11)); | |
| 1963 | 1998 | context->exponent3[0] = -1.0 / (info->r11 * info->c3 * discrete_current_context->sample_rate); |
| 1964 | context->exponent3[0] = 1.0 - exp(context->exponent3[0]); | |
| 1999 | context->exponent3[0] = 1.0 - exp(context->exponent3[0]); | |
| 1965 | 2000 | context->exponent3[1] = -1.0 / ((1.0 / (1.0 / info->r10 + 1.0 / info->r11)) * info->c3 * discrete_current_context->sample_rate); |
| 1966 | context->exponent3[1] = 1.0 - exp(context->exponent3[1]); | |
| 2001 | context->exponent3[1] = 1.0 - exp(context->exponent3[1]); | |
| 1967 | 2002 | |
| 1968 | 2003 | dst_tvca_op_amp_step(node); |
| 1969 | 2004 | } |
| r3115 | r3116 | |
|---|---|---|
| 307 | 307 | |
| 308 | 308 | /* create the logfile */ |
| 309 | 309 | sprintf(name, "discrete%d.log", info->sndindex); |
| 310 | if (DISCRETE_DEBUGLOG && !discrete_current_context->disclogfile) | |
| 311 | discrete_current_context->disclogfile = fopen(name, "w"); | |
| 310 | if (DISCRETE_DEBUGLOG && !info->disclogfile) | |
| 311 | info->disclogfile = fopen(name, "w"); | |
| 312 | 312 | |
| 313 | discrete_current_context = info; | |
| 314 | ||
| 313 | 315 | /* first pass through the nodes: sanity check, fill in the indexed_nodes, and make a total count */ |
| 314 | 316 | discrete_log("discrete_start() - Doing node list sanity check"); |
| 315 | 317 | for (info->node_count = 0; intf[info->node_count].type != DSS_NULL; info->node_count++) |
| r3115 | r3116 | |
| 329 | 331 | /* make sure this is a main node */ |
| 330 | 332 | if (NODE_CHILD_NODE_NUM(intf[info->node_count].node) > 0) |
| 331 | 333 | fatalerror("discrete_start() - Child node number on NODE_%02d", NODE_INDEX(intf[info->node_count].node) ); |
| 332 | ||
| 333 | ||
| 334 | 334 | } |
| 335 | 335 | info->node_count++; |
| 336 | 336 | discrete_log("discrete_start() - Sanity check counted %d nodes", info->node_count); |
| r3115 | r3116 | |
| 357 | 357 | setup_output_nodes(info); |
| 358 | 358 | |
| 359 | 359 | setup_disc_logs(info); |
| 360 | ||
| 361 | discrete_current_context = NULL; | |
| 360 | 362 | return info; |
| 361 | 363 | } |
| 362 | 364 | |
| r3115 | r3116 | |
| 414 | 416 | if (DISCRETE_DEBUGLOG) |
| 415 | 417 | { |
| 416 | 418 | /* close the debug log */ |
| 417 | if (discrete_current_context->disclogfile) | |
| 418 | fclose(discrete_current_context->disclogfile); | |
| 419 | discrete_current_context->disclogfile = NULL; | |
| 419 | if (info->disclogfile) | |
| 420 | fclose(info->disclogfile); | |
| 421 | info->disclogfile = NULL; | |
| 420 | 422 | } |
| 421 | 423 | } |
| 422 | 424 | |
| r3115 | r3116 | |
| 449 | 451 | /* otherwise, just step it */ |
| 450 | 452 | else if (node->module.step) |
| 451 | 453 | (*node->module.step)(node); |
| 454 | ||
| 455 | /* and register save state */ | |
| 456 | state_save_register_item_array("discrete", nodenum, node->output); | |
| 452 | 457 | } |
| 453 | 458 | |
| 454 | 459 | discrete_current_context = NULL; |
| r3115 | r3116 | |
| 663 | 668 | node->context = NULL; |
| 664 | 669 | info->discrete_input_streams++; |
| 665 | 670 | } |
| 671 | ||
| 666 | 672 | } |
| 667 | 673 | |
| 668 | 674 | /* if no outputs, give an error */ |
| r3115 | r3116 | |
| 703 | 709 | if (NODE_CHILD_NODE_NUM(inputnode) >= node_ref->module.num_output) |
| 704 | 710 | fatalerror("discrete_start - Node NODE_%02d referenced non existent output %d on node NODE_%02d", NODE_INDEX(node->node), NODE_CHILD_NODE_NUM(inputnode), NODE_INDEX(inputnode)); |
| 705 | 711 | |
| 706 | node->input[inputnum] = &(node_ref->output[NODE_CHILD_NODE_NUM(inputnode)]); // Link referenced node out to input | |
| 707 | node->input_is_node |= 1 << inputnum; // Bit flag if input is node | |
| 712 | node->input[inputnum] = &(node_ref->output[NODE_CHILD_NODE_NUM(inputnode)]); /* Link referenced node out to input */ | |
| 713 | node->input_is_node |= 1 << inputnum; /* Bit flag if input is node */ | |
| 708 | 714 | } |
| 709 | 715 | } |
| 710 | 716 | } |
| r3115 | r3116 | |
|---|---|---|
| 121 | 121 | * |
| 122 | 122 | *********************************************************************** |
| 123 | 123 | * |
| 124 | * x_time - ANTI-ALSING features. | |
| 125 | * | |
| 126 | * Certain modules make use of x_time. This is a feature that passes | |
| 127 | * infomation between modules about how long in the current sample, the | |
| 128 | * switch in state happened. This is a decimal value of the % of the | |
| 129 | * full sample period that it has been in the new state. | |
| 130 | * 0 means it has been at the same state the whole sample. | |
| 131 | * | |
| 132 | * Example: Here is the output of a clock source with x_time on the | |
| 133 | * output. The square wave is the real world waveform we | |
| 134 | * want. The ^'s are the sample point. The numbers under | |
| 135 | * the ^'s are the node output with the logic state left of | |
| 136 | * the decimal and the x_time to the right. Under that is | |
| 137 | * what the node's anti-aliased output energy would be. | |
| 138 | * Note: the example is not 4x sampling so the energy | |
| 139 | * does not provide an accurate representation of the | |
| 140 | * original waveform. This is intentional so it fits | |
| 141 | * in this header file. | |
| 142 | * 1 ____ ____ ____ ____ ____ ____ ____ ____ | |
| 143 | * 0 ___ ____ ____ ____ ____ ____ ____ ____ __ | |
| 144 | * ^....^....^....^....^....^....^....^....^....^....^....^....^ | |
| 145 | * x_time 0.2 1.4 0.6 1.8 1.2 0.4 1.6 0.8 0.2 1.4 0.6 | |
| 146 | * energy 0.8 0.4 0.4 0.8 0.2 0.6 0.6 0.2 0.8 0.4 0.4 | |
| 147 | * | |
| 148 | * Some modules will just pass the x_time onto another module. | |
| 149 | * | |
| 150 | * Modules that process x_time will keep track of the node's previous | |
| 151 | * state so they can calculate the actual energy at the sample time. | |
| 152 | * | |
| 153 | * Example: Say we have a 555 module that outputs a clock with x_time | |
| 154 | * that is connected to a counter. The output of the counter | |
| 155 | * is connected to DAC_R1. | |
| 156 | * In this case the counter module continues counting dependant | |
| 157 | * on the integer portion of the 555 output. But it also | |
| 158 | * passes the decimal portion as the x_time. | |
| 159 | * The DAC_R1 then uses this info to anti-alias its output. | |
| 160 | * Consider the following counter outputs vs DAC_R1 | |
| 161 | * calculations. The count changes from 9 to 10. It has | |
| 162 | * been at the new state for 75% of the sample. | |
| 163 | * | |
| 164 | * counter binary x_time -- DAC_R1 bit energy -- | |
| 165 | * out count D3 D2 D1 D0 | |
| 166 | * 9.0 1001 0.0 1.0 0.0 0.0 1.0 | |
| 167 | * 10.75 1010 0.75 1.0 0.0 0.75 0.25 | |
| 168 | * 10.0 1010 0.0 1.0 0.0 1.0 0.0 | |
| 169 | * | |
| 170 | * The DAC_R1 uses these energy calculations to scale the | |
| 171 | * voltages created on each of its resistors. This | |
| 172 | * anti-aliases the waveform no mater what the resistor | |
| 173 | * weighting is. | |
| 174 | * | |
| 175 | *********************************************************************** | |
| 176 | * | |
| 124 | 177 | * LIST OF CURRENTLY IMPLEMENTED DISCRETE BLOCKS |
| 125 | 178 | * --------------------------------------------- |
| 126 | 179 | * |
| r3115 | r3116 | |
| 142 | 195 | * DISCRETE_INPUTX_STREAM(NODE,NUM, GAIN,OFFSET) |
| 143 | 196 | * |
| 144 | 197 | * DISCRETE_COUNTER(NODE,ENAB,RESET,CLK,MAX,DIR,INIT0,CLKTYPE) |
| 145 | * DISCRETE_COUNTER_7492(NODE,ENAB,RESET,CLK) | |
| 198 | * DISCRETE_COUNTER_7492(NODE,ENAB,RESET,CLK,CLKTYPE) | |
| 146 | 199 | * DISCRETE_LFSR_NOISE(NODE,ENAB,RESET,CLK,AMPL,FEED,BIAS,LFSRTB) |
| 147 | 200 | * DISCRETE_NOISE(NODE,ENAB,FREQ,AMP,BIAS) |
| 148 | 201 | * DISCRETE_NOTE(NODE,ENAB,CLK,DATA,MAX1,MAX2,CLKTYPE) |
| r3115 | r3116 | |
| 386 | 439 | * This counter counts up/down from 0 to MAX. When the enable is low, the output |
| 387 | 440 | * is held at it's last value. When reset is high, the reset value is loaded |
| 388 | 441 | * into the output. The counter can be clocked internally or externally. It also |
| 389 | * supports x | |
| 442 | * supports x_time used by the clock modules to pass on anti-aliasing info. | |
| 390 | 443 | * |
| 391 | 444 | * Declaration syntax |
| 392 | 445 | * |
| r3115 | r3116 | |
| 399 | 452 | * DISC_CLK_IS_FREQ - internally clock at this frequency. |
| 400 | 453 | * Clock node must be static if |
| 401 | 454 | * DISC_CLK_IS_FREQ is used. |
| 455 | * x_time options: you can also | these x_time features to the basic | |
| 456 | * types above if needed, or use seperately with 7492. | |
| 457 | * DISC_OUT_IS_ENERGY - This will uses the x_time to | |
| 458 | * anti-alias the count. Might be | |
| 459 | * usefull if not connected to other | |
| 460 | * modules. | |
| 461 | * DISC_OUT_HAS_XTIME - This will generate x_time if | |
| 462 | * being used with DISC_CLK_IS_FREQ. | |
| 463 | * It will pass x_time for the | |
| 464 | * other clock types. | |
| 402 | 465 | * |
| 403 | 466 | * DISCRETE_COUNTER(name of node, |
| 404 | 467 | * enable node or static value, |
| r3115 | r3116 | |
| 413 | 476 | * enable node or static value, |
| 414 | 477 | * reset node or static value, |
| 415 | 478 | * clock node or static value, |
| 416 | * | |
| 479 | * | |
| 417 | 480 | * |
| 418 | 481 | * Note: A 7492 counter outputs a special bit pattern on its /6 stage. |
| 419 | * A 7492 clocks on falling edge. This emulates the /6 stage only. | |
| 482 | * A 7492 clocks on the falling edge, | |
| 483 | * so it is not recommended to use DISC_CLK_ON_R_EDGE for a 7492. | |
| 484 | * This module emulates the /6 stage only. | |
| 420 | 485 | * Use another DISCRETE_COUNTER for the /2 stage. |
| 421 | 486 | * |
| 422 | 487 | * EXAMPLES: see Fire Truck, Monte Carlo, Super Bug, Polaris |
| r3115 | r3116 | |
| 1659 | 1724 | * DISCRETE_DAC_R1(name of node, |
| 1660 | 1725 | * enable node or static value, |
| 1661 | 1726 | * data node (static value is useless), |
| 1662 | * vData node or static value (v | |
| 1727 | * vData node or static value (voltage when a bit is on ), | |
| 1663 | 1728 | * address of discrete_dac_r1_ladder structure) |
| 1664 | 1729 | * |
| 1665 | 1730 | * discrete_dac_r1_ladder = {ladderLength, r{}, vBias, rBias, rGnd, cFilter} |
| r3115 | r3116 | |
| 1668 | 1733 | * are out of circuit. So the bit selecting them will have no effect |
| 1669 | 1734 | * on the DAC output voltage. |
| 1670 | 1735 | * |
| 1736 | * x_time - this modules automatically handles any non-integer value | |
| 1737 | * on the data input as x_time. | |
| 1738 | * | |
| 1671 | 1739 | * EXAMPLES: see Fire Truck, Monte Carlo, Super Bug, Polaris |
| 1672 | 1740 | * |
| 1673 | 1741 | *********************************************************************** |
| r3115 | r3116 | |
| 1802 | 1870 | * input 7 node, (if used) |
| 1803 | 1871 | * address of discrete_mixer_info structure) |
| 1804 | 1872 | * |
| 1805 | * discrete_mixer_desc = {type, r{}, r | |
| 1873 | * discrete_mixer_desc = {type, r{}, r_node{}, c{}, rI, rF, cF, cAmp, vRef, gain} | |
| 1806 | 1874 | * |
| 1807 | 1875 | * Note: Set all unused components to 0. |
| 1808 | 1876 | * If an rNode is not used it should also be set to 0. |
| r3115 | r3116 | |
| 2681 | 2749 | * DISCRETE_555_ASTABLE - NE555 Chip simulation (astable mode). |
| 2682 | 2750 | * DISCRETE_555_ASTABLE_CV - NE555 Chip simulation (astable mode) with CV control. |
| 2683 | 2751 | * |
| 2684 | * v555 | |
| 2685 | * | | |
| 2686 | * .---------+ | |
| 2687 | * | | | |
| 2688 | * Z |8 | |
| 2689 | * R1 Z .---------. | |
| 2690 | * | 7| Vcc | | |
| 2691 | * +-----|Discharge| | |
| 2692 | * | | | | |
| 2693 | * Z | 555 |3 | |
| 2694 | * R2 Z | Out|---> Netlist Node | |
| 2695 | * | 6| | | |
| 2696 | * +-----|Threshold| | |
| 2697 | * | | | | |
| 2698 | * +-----|Trigger | | |
| 2699 | * | 2| |---< Control Voltage | |
| 2700 | * | | Reset |5 | |
| 2701 | * | '---------' | |
| 2702 | * --- 4| | |
| 2703 | * C --- | | |
| 2704 | * | ^ | |
| 2705 | * gnd Reset | |
| 2752 | * v_charge v_pos | |
| 2753 | * V V | |
| 2754 | * | | | |
| 2755 | * | | | |
| 2756 | * | | | |
| 2757 | * Z |8 | |
| 2758 | * _FAST_CHARGE_DIODE R1 Z .---------. | |
| 2759 | * (optional) | 7| Vcc | | |
| 2760 | * +---------> +-----|Discharge| | |
| 2761 | * | | | | | |
| 2762 | * --- Z | 555 |3 | |
| 2763 | * \ / R2 Z | Out|---> Netlist Node | |
| 2764 | * V | 6| | | |
| 2765 | * --- +-----|Threshold| | |
| 2766 | * | | | | | |
| 2767 | * +---------> +-----|Trigger | | |
| 2768 | * | 2| |---< Control Voltage | |
| 2769 | * | | Reset |5 | |
| 2770 | * | '---------' | |
| 2771 | * --- 4| | |
| 2772 | * C --- | | |
| 2773 | * | ^ | |
| 2774 | * gnd Reset | |
| 2706 | 2775 | * |
| 2707 | 2776 | * Declaration syntax |
| 2708 | 2777 | * |
| r3115 | r3116 | |
| 2723 | 2792 | * |
| 2724 | 2793 | * discrete_555_desc = |
| 2725 | 2794 | * { |
| 2726 | * options, // bit mapped options | |
| 2727 | * v555, // B+ voltage of 555 | |
| 2728 | * v555high, // High output voltage of 555 (Usually v555 - 1.2V) | |
| 2729 | * threshold555, // normally 2/3 of v555 | |
| 2730 | * trigger555 // normally 1/3 of v555 | |
| 2795 | * options, - bit mapped options | |
| 2796 | * v_pos, - B+ voltage of 555 | |
| 2797 | * v_charge, - voltage (or node) to charge circuit (Defaults to v_pos) | |
| 2798 | * v_out_high, - High output voltage of 555 (Defaults to v_pos - 1.2V) | |
| 2731 | 2799 | * } |
| 2732 | 2800 | * |
| 2733 | * The last 3 options of discrete_555_desc can use the following defaults | |
| 2734 | * unless otherwise needed. | |
| 2735 | * DEFAULT_555_HIGH, DEFAULT_555_THRESHOLD, DEFAULT_555_TRIGGER | |
| 2736 | * or all 3 combined as: | |
| 2801 | * The last 2 options of discrete_555_desc can use the following defaults: | |
| 2802 | * DEFAULT_555_CHARGE - to connect v_charge to v_pos | |
| 2803 | * DEFAULT_555_HIGH - to use the normal output voltage based on v_pos | |
| 2804 | * or combine both as: | |
| 2737 | 2805 | * DEFAULT_555_VALUES |
| 2738 | 2806 | * |
| 2739 | * eg. {DISC_555_OUT_ | |
| 2807 | * eg. {DISC_555_OUT_SQW | DISC_555_OUT_DC | |
| 2740 | 2808 | * |
| 2741 | * Output Types: | |
| 2809 | * Output Types: (only needed with DISC_555_OUT_SQW, DISC_555_OUT_CAP | |
| 2810 | * and DISC_555_OUT_ENERGY) | |
| 2742 | 2811 | * DISC_555_OUT_DC - Output is actual DC. (DEFAULT) |
| 2743 | 2812 | * DISC_555_OUT_AC - A cheat to make the waveform AC. |
| 2744 | 2813 | * |
| 2745 | 2814 | * Waveform Types: (ORed with output types) |
| 2746 | * DISC_555_OUT_SQW - Output is Squarewave. 0 or v | |
| 2815 | * DISC_555_OUT_SQW - Output is Squarewave. 0 or v_out_high. (DEFAULT) | |
| 2747 | 2816 | * When the state changes from low to high (or high to low) |
| 2748 | 2817 | * during a sample, the output will high (or low) for that |
| 2749 | 2818 | * sample. This can cause alaising effects. |
| r3115 | r3116 | |
| 2763 | 2832 | * through the sample, then the output will be 75% of the |
| 2764 | 2833 | * normal high value. |
| 2765 | 2834 | * DISC_555_OUT_LOGIC_X - This will output the 0/1 level of the flip-flop with |
| 2766 | * some eXtra info. This | |
| 2835 | * some eXtra info. This x_time | |
| 2767 | 2836 | * It lets you know the percent of sample time where the |
| 2768 | 2837 | * flip-flop changed state. If 0, the change did not happen |
| 2769 | 2838 | * during the sample. 1.75 means the flip-flop is 1 and |
| r3115 | r3116 | |
| 2771 | 2840 | * 0.2 means the flip-flop is 0 and switched over 4/5 of |
| 2772 | 2841 | * the way through the sample. |
| 2773 | 2842 | * X modules can be used with counters to reduce alaising. |
| 2774 | * DISC_555_OUT_COUNT_F_X - Same as DISC_555_OUT_COUNT_F but with X info. | |
| 2775 | * DISC_555_OUT_COUNT_R_X - Same as DISC_555_OUT_COUNT_R but with X info. | |
| 2843 | * DISC_555_OUT_COUNT_F_X - Same as DISC_555_OUT_COUNT_F but with x_time. | |
| 2844 | * DISC_555_OUT_COUNT_R_X - Same as DISC_555_OUT_COUNT_R but with x_time. | |
| 2776 | 2845 | * |
| 2777 | 2846 | * other options - DISCRETE_555_ASTABLE only: |
| 2778 | 2847 | * DISC_555_ASTABLE_HAS_FAST_CHARGE_DIODE - diode used to bypass rDischarge |
| r3115 | r3116 | |
| 2785 | 2854 | * DISCRETE_555_MSTABLE - NE555 Chip simulation (monostable mode) |
| 2786 | 2855 | * - Triggered on falling edge. |
| 2787 | 2856 | * |
| 2788 | * v555 | |
| 2789 | * | | |
| 2790 | * .---------+ | |
| 2857 | * v_charge v_pos | |
| 2858 | * V V | |
| 2791 | 2859 | * | | |
| 2860 | * | | | |
| 2861 | * | | | |
| 2792 | 2862 | * Z | |
| 2793 | 2863 | * R Z .---------. |
| 2794 | 2864 | * | | Vcc | |
| r3115 | r3116 | |
| 2817 | 2887 | * C node (or value) in farads, |
| 2818 | 2888 | * address of discrete_555_desc structure) |
| 2819 | 2889 | * |
| 2890 | * discrete_555_desc = See DISCRETE_555_ASTABLE for description. | |
| 2891 | * Note: v_charge can not be a node for this circuit. | |
| 2892 | * | |
| 2820 | 2893 | * Trigger Types |
| 2821 | 2894 | * DISC_555_TRIGGER_IS_LOGIC - Input is (0 or !0) logic (DEFAULT) |
| 2822 | 2895 | * DISC_555_TRIGGER_IS_VOLTAGE - Input is actual voltage. |
| 2823 | 2896 | * Voltage must drop below |
| 2824 | * trigger | |
| 2897 | * trigger | |
| 2825 | 2898 | * DISC_555_TRIGGER_DISCHARGES_CAP - some circuits connect an external |
| 2826 | 2899 | * device (transistor) to the cap to |
| 2827 | 2900 | * discharge it when the trigger is |
| r3115 | r3116 | |
| 2833 | 2906 | * DISC_555_OUT_AC - A cheat to make the waveform AC. |
| 2834 | 2907 | * |
| 2835 | 2908 | * Waveform Types: (ORed with trigger types) |
| 2836 | * DISC_555_OUT_SQW - Output is Squarewave. 0 or v | |
| 2909 | * DISC_555_OUT_SQW - Output is Squarewave. 0 or v_out_high. (DEFAULT) | |
| 2837 | 2910 | * DISC_555_OUT_CAP - Output is Timing Capacitor 'C' voltage. |
| 2838 | 2911 | * |
| 2839 | 2912 | * EXAMPLES: see Frogs |
| r3115 | r3116 | |
| 2843 | 2916 | * DISCRETE_555_CC - Constant Current Controlled 555 Oscillator |
| 2844 | 2917 | * Which works out to a VCO when R is fixed. |
| 2845 | 2918 | * |
| 2846 | * v | |
| 2919 | * v_cc_source | |
| 2847 | 2920 | * V V |
| 2848 | 2921 | * | .----------------------+ |
| 2849 | 2922 | * | | | |
| r3115 | r3116 | |
| 2895 | 2968 | * address of discrete_555_cc_desc structure) |
| 2896 | 2969 | * |
| 2897 | 2970 | * discrete_555_cc_desc = |
| 2898 | * { | |
| 2899 | * options, // bit mapped options | |
| 2900 | * v555, // B+ voltage of 555 | |
| 2901 | * v555high, // High output voltage of 555 (Usually v555 - 1.2V) | |
| 2902 | * threshold555, // normally 2/3 of v555 | |
| 2903 | * trigger555, // normally 1/3 of v555 | |
| 2904 | * vCCsource, // B+ voltage of the Constant Current source | |
| 2905 | * vCCjunction // The voltage drop of the Constant Current source transitor (0 if Op Amp) | |
| 2906 | * } | |
| 2971 | * { | |
| 2972 | * options; - bit mapped options | |
| 2973 | * v_pos; - B+ voltage of 555 | |
| 2974 | * v_cc_source; - Voltage of the Constant Current source | |
| 2975 | * v_out_high; - High output voltage of 555 (Defaults to v_pos - 1.2V) | |
| 2976 | * v_cc_junction; - The voltage drop of the Constant Current source transitor | |
| 2977 | * (0 if Op Amp) | |
| 2978 | * } | |
| 2907 | 2979 | * |
| 2980 | * The last 2 options of discrete_555_desc can use the following defaults: | |
| 2981 | * DEFAULT_555_CC_SOURCE - to connect v_cc_source to v_pos | |
| 2982 | * DEFAULT_555_HIGH - to use the normal output voltage based on v_pos | |
| 2983 | * or combine both as: | |
| 2984 | * DEFAULT_555_VALUES | |
| 2985 | * | |
| 2908 | 2986 | * Output Types: |
| 2909 | 2987 | * See DISCRETE_555_ASTABLE for description. |
| 2910 | 2988 | * |
| r3115 | r3116 | |
| 2942 | 3020 | * | En|<--------. | .---|Discharge | |
| 2943 | 3021 | * '----' | gnd | '------------' |
| 2944 | 3022 | * | | | |
| 2945 | * gnd '-----------------------+---ZZZZ------> | |
| 3023 | * gnd '-----------------------+---ZZZZ------> v_charge (ignored) | |
| 2946 | 3024 | * rX |
| 2947 | 3025 | * |
| 2948 | 3026 | * Declaration syntax |
| r3115 | r3116 | |
| 2958 | 3036 | * Vin2 (CV) node or static value, |
| 2959 | 3037 | * address of discrete_555_vco1_desc structure) |
| 2960 | 3038 | * |
| 2961 | * discrete_555_vco1_desc = {options, // bit mapped options | |
| 2962 | * r1, r2, r3, r4, c, | |
| 2963 | * v555, // B+ voltage of 555 | |
| 2964 | * v555high, // High output voltage of 555 (Usually v555 - 1.2V) | |
| 2965 | * threshold555, // normally 2/3 of v555 | |
| 2966 | * trigger555} // normally 1/3 of v555 | |
| 3039 | * discrete_555_vco1_desc = | |
| 3040 | * { | |
| 3041 | * options, - bit mapped options | |
| 3042 | * r1, r2, r3, r4, c, | |
| 3043 | * v_pos, - B+ voltage of 555 | |
| 3044 | * v_out_high, - High output voltage of 555 (Defaults to v_pos - 1.2V) | |
| 3045 | * } | |
| 2967 | 3046 | * |
| 3047 | * The last option of discrete_555_vco1_desc can use the following default: | |
| 3048 | * DEFAULT_555_HIGH - to use the normal output voltage based on v_pos | |
| 3049 | * | |
| 2968 | 3050 | * Notes: The value of resistor rX is not needed. It is just a pull-up |
| 2969 | 3051 | * for the discharge output. |
| 2970 | 3052 | * The 'En' block can be a transistor or 4066 switch. It connects |
| r3115 | r3116 | |
| 2974 | 3056 | * |
| 2975 | 3057 | * DISCRETE_566 - NE566 VCO simulation. |
| 2976 | 3058 | * |
| 2977 | * vPlus | |
| 2978 | * V | |
| 2979 | * .-------------+ | |
| 3059 | * v_charge v_pos | |
| 3060 | * V V | |
| 2980 | 3061 | * | | |
| 3062 | * | | | |
| 2981 | 3063 | * | R .-------. |
| 2982 | 3064 | * '---/\/\--|6 8 | |
| 2983 | 3065 | * | | |
| r3115 | r3116 | |
| 2988 | 3070 | * --- | |
| 2989 | 3071 | * --- C | |
| 2990 | 3072 | * | | |
| 2991 | * | |
| 3073 | * | |
| 2992 | 3074 | * |
| 2993 | 3075 | * Declaration syntax |
| 2994 | 3076 | * |
| r3115 | r3116 | |
| 2999 | 3081 | * C node or static value in Farads, |
| 3000 | 3082 | * address of discrete_566_desc structure) |
| 3001 | 3083 | * |
| 3002 | * discrete_566_desc = {options, vPlus, vNeg} | |
| 3084 | * discrete_566_desc = {options, v_pos, v_neg, v_charge} | |
| 3085 | * Note: v_charge can be static value, a node | |
| 3086 | * or use DEFAULT_566_CHARGE to connect to v_pos | |
| 3003 | 3087 | * |
| 3004 | 3088 | * Output Types: |
| 3005 | 3089 | * DISC_566_OUT_DC - Output is actual DC. (DEFAULT) |
| r3115 | r3116 | |
| 3245 | 3329 | /* Mixer types */ |
| 3246 | 3330 | #define DISC_MIXER_IS_RESISTOR 0 |
| 3247 | 3331 | #define DISC_MIXER_IS_OP_AMP 1 |
| 3248 | ||
| 3249 | 3332 | #define DISC_MIXER_IS_OP_AMP_WITH_RI 2 // Used only internally. Use DISC_MIXER_IS_OP_AMP |
| 3250 | #define DISC_MIXER_TYPE_MASK 3 // Used only internally. | |
| 3251 | #define DISC_MIXER_HAS_R_NODE 4 // Used only internally. | |
| 3252 | 3333 | |
| 3253 | 3334 | /* Triggered Op Amp Functions */ |
| 3254 | 3335 | enum |
| r3115 | r3116 | |
| 3348 | 3429 | |
| 3349 | 3430 | #define DISC_566_OUT_MASK 0x30 /* Bits that define output type. |
| 3350 | 3431 | * Used only internally in module. */ |
| 3432 | #define DEFAULT_566_CHARGE -1 | |
| 3433 | ||
| 3351 | 3434 | /* LS624 output flags */ |
| 3352 | 3435 | #define DISC_LS624_OUT_ENERGY 0x01 |
| 3353 | 3436 | #define DISC_LS624_OUT_LOGIC 0x02 |
| r3115 | r3116 | |
| 3543 | 3626 | struct _discrete_mixer_desc |
| 3544 | 3627 | { |
| 3545 | 3628 | int type; |
| 3546 | double r[DISC_MAX_MIXER_INPUTS]; // static input resistance values. These are in series with rNode, if used. | |
| 3547 | int rNode[DISC_MAX_MIXER_INPUTS]; // variable resistance nodes, if needed. 0 if not used. | |
| 3629 | double r[DISC_MAX_MIXER_INPUTS]; /* static input resistance values. These are in series with rNode, if used. */ | |
| 3630 | int r_node[DISC_MAX_MIXER_INPUTS]; /* variable resistance nodes, if needed. 0 if not used. */ | |
| 3548 | 3631 | double c[DISC_MAX_MIXER_INPUTS]; |
| 3549 | 3632 | double rI; |
| 3550 | 3633 | double rF; |
| 3551 | 3634 | double cF; |
| 3552 | 3635 | double cAmp; |
| 3553 | 3636 | double vRef; |
| 3554 | double gain; / | |
| 3637 | double gain; /* Scale value to get output close to +/- 32767 */ | |
| 3555 | 3638 | }; |
| 3556 | 3639 | |
| 3557 | 3640 | |
| r3115 | r3116 | |
| 3632 | 3715 | }; |
| 3633 | 3716 | |
| 3634 | 3717 | |
| 3718 | #define DEFAULT_555_CHARGE -1 | |
| 3635 | 3719 | #define DEFAULT_555_HIGH -1 |
| 3636 | #define DEFAULT_555_THRESHOLD -1 | |
| 3637 | #define DEFAULT_555_TRIGGER -1 | |
| 3638 | #define DEFAULT_555_VALUES DEFAULT_555_HIGH, DEFAULT_555_THRESHOLD, DEFAULT_555_TRIGGER | |
| 3720 | #define DEFAULT_555_VALUES DEFAULT_555_CHARGE, DEFAULT_555_HIGH | |
| 3639 | 3721 | |
| 3640 | 3722 | typedef struct _discrete_555_desc discrete_555_desc; |
| 3641 | 3723 | struct _discrete_555_desc |
| 3642 | 3724 | { |
| 3643 | int options; // bit mapped options | |
| 3644 | double v555; // B+ voltage of 555 | |
| 3645 | double v555high; // High output voltage of 555 (Usually v555 - 1.2V) | |
| 3646 | double threshold555; // normally 2/3 of v555 | |
| 3647 | double trigger555; // normally 1/3 of v555 | |
| 3725 | int options; /* bit mapped options */ | |
| 3726 | double v_pos; /* B+ voltage of 555 */ | |
| 3727 | double v_charge; /* voltage to charge circuit (Defaults to v_pos) */ | |
| 3728 | double v_out_high; /* High output voltage of 555 (Defaults to v_pos - 1.2V) */ | |
| 3648 | 3729 | }; |
| 3649 | 3730 | |
| 3731 | #define DEFAULT_555_CC_SOURCE DEFAULT_555_CHARGE | |
| 3650 | 3732 | |
| 3651 | 3733 | typedef struct _discrete_555_cc_desc discrete_555_cc_desc; |
| 3652 | 3734 | struct _discrete_555_cc_desc |
| 3653 | 3735 | { |
| 3654 | int options; // bit mapped options | |
| 3655 | double v555; // B+ voltage of 555 | |
| 3656 | double v555high; // High output voltage of 555 (Usually v555 - 1.2V) | |
| 3657 | double threshold555; // normally 2/3 of v555 | |
| 3658 | double trigger555; // normally 1/3 of v555 | |
| 3659 | double vCCsource; // B+ voltage of the Constant Current source | |
| 3660 | double vCCjunction; // The voltage drop of the Constant Current source transitor (0 if Op Amp) | |
| 3736 | int options; /* bit mapped options */ | |
| 3737 | double v_pos; /* B+ voltage of 555 */ | |
| 3738 | double v_cc_source; /* Voltage of the Constant Current source */ | |
| 3739 | double v_out_high; /* High output voltage of 555 (Defaults to v_pos - 1.2V) */ | |
| 3740 | double v_cc_junction; /* The voltage drop of the Constant Current source transitor (0 if Op Amp) */ | |
| 3661 | 3741 | }; |
| 3662 | 3742 | |
| 3663 | 3743 | |
| 3664 | 3744 | typedef struct _discrete_555_vco1_desc discrete_555_vco1_desc; |
| 3665 | 3745 | struct _discrete_555_vco1_desc |
| 3666 | 3746 | { |
| 3667 | int options; / | |
| 3747 | int options; /* bit mapped options */ | |
| 3668 | 3748 | double r1, r2, r3, r4, c; |
| 3669 | double v555; // B+ voltage of 555 | |
| 3670 | double v555high; // High output voltage of 555 (Usually v555 - 1.2V) | |
| 3671 | double threshold555; // normally 2/3 of v555 | |
| 3672 | double trigger555; // normally 1/3 of v555 | |
| 3749 | double v_pos; /* B+ voltage of 555 */ | |
| 3750 | double v_charge; /* (ignored) */ | |
| 3751 | double v_out_high; /* High output voltage of 555 (Defaults to v_pos - 1.2V) */ | |
| 3673 | 3752 | }; |
| 3674 | 3753 | |
| 3675 | 3754 | |
| r3115 | r3116 | |
| 3677 | 3756 | struct _discrete_566_desc |
| 3678 | 3757 | { |
| 3679 | 3758 | int options; // bit mapped options |
| 3680 | double vPlus; // B+ voltage of 566 | |
| 3681 | double vNeg; // B- voltage of 566 | |
| 3759 | double v_pos; // B+ voltage of 566 | |
| 3760 | double v_neg; // B- voltage of 566 | |
| 3761 | double v_charge; | |
| 3682 | 3762 | }; |
| 3683 | 3763 | |
| 3684 | 3764 | |
| r3115 | r3116 | |
| 3785 | 3865 | #define NODE_SUB(_x, _y) (NODE(_x) + (_y)) |
| 3786 | 3866 | |
| 3787 | 3867 | #if DISCRETE_MAX_NODE_OUTPUTS == 8 |
| 3788 | #define NODE_CHILD_NODE_NUM(_x) ((_x) & 7) | |
| 3789 | #define NODE_DEFAULT_NODE(_x) ((_x) & ~7) | |
| 3790 | #define NODE_INDEX(_x) (((_x) - NODE_START)>>3) | |
| 3868 | #define NODE_CHILD_NODE_NUM(_x) ((int)(_x) & 7) | |
| 3869 | #define NODE_DEFAULT_NODE(_x) ((int)(_x) & ~7) | |
| 3870 | #define NODE_INDEX(_x) (((int)(_x) - NODE_START)>>3) | |
| 3791 | 3871 | #else |
| 3792 | 3872 | #error "DISCRETE_MAX_NODE_OUTPUTS != 8" |
| 3793 | 3873 | #endif |
| r3115 | r3116 | |
| 3958 | 4038 | /* from disc_wav.c */ |
| 3959 | 4039 | /* generic modules */ |
| 3960 | 4040 | #define DISCRETE_COUNTER(NODE,ENAB,RESET,CLK,MAX,DIR,INIT0,CLKTYPE) { NODE, DSS_COUNTER , 7, { ENAB,RESET,CLK,NODE_NC,DIR,INIT0,NODE_NC }, { ENAB,RESET,CLK,MAX,DIR,INIT0,CLKTYPE }, NULL, "DISCRETE_COUNTER" }, |
| 3961 | #define DISCRETE_COUNTER_7492(NODE,ENAB,RESET,CLK) | |
| 4041 | #define DISCRETE_COUNTER_7492(NODE,ENAB,RESET,CLK,CLKTYPE) | |
| 3962 | 4042 | #define DISCRETE_LFSR_NOISE(NODE,ENAB,RESET,CLK,AMPL,FEED,BIAS,LFSRTB) { NODE, DSS_LFSR_NOISE , 6, { ENAB,RESET,CLK,AMPL,FEED,BIAS }, { ENAB,RESET,CLK,AMPL,FEED,BIAS }, LFSRTB, "LFSR Noise Source" }, |
| 3963 | 4043 | #define DISCRETE_NOISE(NODE,ENAB,FREQ,AMPL,BIAS) { NODE, DSS_NOISE , 4, { ENAB,FREQ,AMPL,BIAS }, { ENAB,FREQ,AMPL,BIAS }, NULL, "Noise Source" }, |
| 3964 | 4044 | #define DISCRETE_NOTE(NODE,ENAB,CLK,DATA,MAX1,MAX2,CLKTYPE) { NODE, DSS_NOTE , 6, { ENAB,CLK,DATA,NODE_NC,NODE_NC,NODE_NC }, { ENAB,CLK,DATA,MAX1,MAX2,CLKTYPE }, NULL, "Note Generator" }, |
| r3115 | r3116 | |
| 4079 | 4159 | #define DISCRETE_555_VCO1_CV(NODE,RESET,VIN,CTRLV,OPTIONS) { NODE, DSD_555_VCO1 , 3, { RESET,VIN,CTRLV }, { RESET,VIN,CTRLV }, OPTIONS, "555 VCO1 with CV - Op-Amp type" }, |
| 4080 | 4160 | #define DISCRETE_566(NODE,ENAB,VMOD,R,C,OPTIONS) { NODE, DSD_566 , 4, { ENAB,VMOD,R,C }, { ENAB,VMOD,R,C }, OPTIONS, "566" }, |
| 4081 | 4161 | #define DISCRETE_74LS624(NODE,ENAB,VMOD,VRNG,C,OUTTYPE) { NODE, DSD_LS624 , 5, { ENAB,VMOD,VRNG,C,NODE_NC }, { ENAB,VMOD,VRNG,C, OUTTYPE }, NULL, "74LS624" }, |
| 4162 | ||
| 4163 | /* logging */ | |
| 4082 | 4164 | #define DISCRETE_CSVLOG1(NODE1) { NODE_SPECIAL, DSO_CSVLOG , 1, { NODE1 }, { NODE1 }, NULL, "CSV Log 1 Node" }, |
| 4083 | 4165 | #define DISCRETE_CSVLOG2(NODE1,NODE2) { NODE_SPECIAL, DSO_CSVLOG , 2, { NODE1,NODE2 }, { NODE1,NODE2 }, NULL, "CSV Log 2 Nodes" }, |
| 4084 | 4166 | #define DISCRETE_CSVLOG3(NODE1,NODE2,NODE3) { NODE_SPECIAL, DSO_CSVLOG , 3, { NODE1,NODE2,NODE3 }, { NODE1,NODE2,NODE3 }, NULL, "CSV Log 3 Nodes" }, |
| r3115 | r3116 | |
| 4086 | 4168 | #define DISCRETE_CSVLOG5(NODE1,NODE2,NODE3,NODE4,NODE5) { NODE_SPECIAL, DSO_CSVLOG , 5, { NODE1,NODE2,NODE3,NODE4,NODE5 }, { NODE1,NODE2,NODE3,NODE4,NODE5 }, NULL, "CSV Log 5 Nodes" }, |
| 4087 | 4169 | #define DISCRETE_WAVELOG1(NODE1,GAIN1) { NODE_SPECIAL, DSO_WAVELOG , 2, { NODE1,NODE_NC }, { NODE1,GAIN1 }, NULL, "Wave Log 1 Node" }, |
| 4088 | 4170 | #define DISCRETE_WAVELOG2(NODE1,GAIN1,NODE2,GAIN2) { NODE_SPECIAL, DSO_WAVELOG , 4, { NODE1,NODE_NC,NODE2,NODE_NC }, { NODE1,GAIN1,NODE2,GAIN2 }, NULL, "Wave Log 2 Nodes" }, |
| 4171 | /* output */ | |
| 4089 | 4172 | #define DISCRETE_OUTPUT(OPNODE,GAIN) { NODE_SPECIAL, DSO_OUTPUT , 2, { OPNODE,NODE_NC }, { 0,GAIN }, NULL, "Output Node" }, |
| 4090 | 4173 | |
| 4091 | 4174 |
| r3115 | r3116 | |
|---|---|---|
| 27 | 27 | |
| 28 | 28 | struct dsd_555_astbl_context |
| 29 | 29 | { |
| 30 | int error; | |
| 31 | 30 | int use_ctrlv; |
| 32 | 31 | int output_type; |
| 33 | 32 | int output_is_ac; |
| 34 | double ac_shift; // DC shift needed to make waveform ac | |
| 35 | int flip_flop; // 555 flip/flop output state | |
| 36 | double x_init; | |
| 37 | double cap_voltage; // voltage on cap | |
| 33 | double ac_shift; /* DC shift needed to make waveform ac */ | |
| 34 | int flip_flop; /* 555 flip/flop output state */ | |
| 35 | double cap_voltage; /* voltage on cap */ | |
| 38 | 36 | double threshold; |
| 39 | 37 | double trigger; |
| 40 | double output_high_voltage; // Logic 1 voltage level | |
| 41 | double v555; | |
| 38 | double v_out_high; /* Logic 1 voltage level */ | |
| 39 | double v_charge; | |
| 40 | double *v_charge_node; /* point to output of node */ | |
| 42 | 41 | }; |
| 43 | 42 | |
| 44 | 43 | struct dsd_555_mstbl_context |
| 45 | 44 | { |
| 46 | int error; | |
| 47 | 45 | int trig_is_logic; |
| 48 | 46 | int trig_discharges_cap; |
| 49 | 47 | int output_type; |
| 50 | 48 | int output_is_ac; |
| 51 | double ac_shift; // DC shift needed to make waveform ac | |
| 52 | int flip_flop; // 555 flip/flop output state | |
| 53 | double cap_voltage; // voltage on cap | |
| 49 | double ac_shift; /* DC shift needed to make waveform ac */ | |
| 50 | int flip_flop; /* 555 flip/flop output state */ | |
| 51 | double cap_voltage; /* voltage on cap */ | |
| 54 | 52 | double threshold; |
| 55 | 53 | double trigger; |
| 56 | double output_high_voltage; // Logic 1 voltage level | |
| 54 | double v_out_high; /* Logic 1 voltage level */ | |
| 55 | double v_charge; | |
| 57 | 56 | }; |
| 58 | 57 | |
| 59 | 58 | struct dsd_555_cc_context |
| 60 | 59 | { |
| 61 | int error; | |
| 62 | unsigned int type; // type of 555cc circuit | |
| 60 | unsigned int type; /* type of 555cc circuit */ | |
| 63 | 61 | int output_type; |
| 64 | 62 | int output_is_ac; |
| 65 | double ac_shift; // DC shift needed to make waveform ac | |
| 66 | int flip_flop; // 555 flip/flop output state | |
| 67 | double x_init; | |
| 68 | double cap_voltage; // voltage on cap | |
| 63 | double ac_shift; /* DC shift needed to make waveform ac */ | |
| 64 | int flip_flop; /* 555 flip/flop output state */ | |
| 65 | double cap_voltage; /* voltage on cap */ | |
| 69 | 66 | double threshold; |
| 70 | 67 | double trigger; |
| 71 | double output_high_voltage; // Logic 1 voltage level | |
| 68 | double v_out_high; /* Logic 1 voltage level */ | |
| 69 | double v_cc_source; | |
| 72 | 70 | }; |
| 73 | 71 | |
| 74 | 72 | struct dsd_555_vco1_context |
| r3115 | r3116 | |
| 76 | 74 | int ctrlv_is_node; |
| 77 | 75 | int output_type; |
| 78 | 76 | int output_is_ac; |
| 79 | double ac_shift; // DC shift needed to make waveform ac | |
| 80 | int flip_flop; // flip/flop output state | |
| 81 | double output_high_voltage; // 555 high voltage | |
| 82 | double threshold; // falling threshold | |
| 83 | double trigger; // rising threshold | |
| 84 | double i_charge; // charge current | |
| 85 | double i_discharge; // discharge current | |
| 86 | double cap_voltage; // current capacitor voltage | |
| 77 | double ac_shift; /* DC shift needed to make waveform ac */ | |
| 78 | int flip_flop; /* flip/flop output state */ | |
| 79 | double v_out_high; /* 555 high voltage */ | |
| 80 | double threshold; /* falling threshold */ | |
| 81 | double trigger; /* rising threshold */ | |
| 82 | double i_charge; /* charge current */ | |
| 83 | double i_discharge; /* discharge current */ | |
| 84 | double cap_voltage; /* current capacitor voltage */ | |
| 87 | 85 | }; |
| 88 | 86 | |
| 89 | 87 | struct dsd_566_context |
| 90 | 88 | { |
| 91 | 89 | int error; |
| 92 | unsigned int state[2]; // keeps track of excess flip_flop changes during the current step | |
| 93 | int flip_flop; // 566 flip/flop output state | |
| 94 | double cap_voltage; // voltage on cap | |
| 95 | double vDiff; // voltage difference between vPlus and vNeg | |
| 96 | double vSqrLow; // voltage for a squarewave at low | |
| 97 | double vSqrHigh; // voltage for a squarewave at high | |
| 98 | double thresholdLow; // falling threshold | |
| 99 | double thresholdHigh; // rising threshold | |
| 100 | double triOffset; // used to shift a triangle to AC | |
| 90 | unsigned int state[2]; /* keeps track of excess flip_flop changes during the current step */ | |
| 91 | int flip_flop; /* 566 flip/flop output state */ | |
| 92 | double cap_voltage; /* voltage on cap */ | |
| 93 | double v_charge; /* static charge value */ | |
| 94 | double *v_charge_node; /* point to charge node */ | |
| 95 | double v_sqr_low; /* voltage for a squarewave at low */ | |
| 96 | double v_sqr_high; /* voltage for a squarewave at high */ | |
| 97 | double threshold_low; /* falling threshold */ | |
| 98 | double threshold_high; /* rising threshold */ | |
| 99 | double triangle_ac_offset; /* used to shift a triangle to AC */ | |
| 101 | 100 | }; |
| 102 | 101 | |
| 103 | 102 | struct dsd_ls624_context |
| 104 | 103 | { |
| 105 | 104 | int state; |
| 106 | double remain; // remaining time from last step | |
| 107 | int outtype; | |
| 105 | double remain; /* remaining time from last step */ | |
| 106 | int out_type; | |
| 108 | 107 | }; |
| 109 | 108 | |
| 110 | 109 | |
| 111 | /* Test to see if basic 555 options are valid. */ | |
| 112 | static int test_555(double threshold, double trigger, double v555, int node) | |
| 113 | { | |
| 114 | int error = 0; | |
| 115 | if (threshold > v555) | |
| 116 | { | |
| 117 | logerror("[Threshold > B+]"); | |
| 118 | error = 1; | |
| 119 | } | |
| 120 | if (threshold <= trigger) | |
| 121 | { | |
| 122 | logerror("[Threshold <= Trigger]"); | |
| 123 | error = 1; | |
| 124 | } | |
| 125 | if (trigger < 0) | |
| 126 | { | |
| 127 | logerror("[Trigger < 0]"); | |
| 128 | error = 1; | |
| 129 | } | |
| 130 | if (v555 <= 0) | |
| 131 | { | |
| 132 | logerror("[B+ <= 0]"); | |
| 133 | error = 1; | |
| 134 | } | |
| 135 | if (error) | |
| 136 | logerror(" - NODE_%d DISABLED!\n", node - NODE_00); | |
| 137 | return error; | |
| 138 | } | |
| 139 | ||
| 140 | ||
| 141 | 110 | /************************************************************************ |
| 142 | 111 | * |
| 143 | 112 | * DSD_555_ASTBL - - 555 Astable simulation |
| r3115 | r3116 | |
| 160 | 129 | |
| 161 | 130 | static void dsd_555_astbl_step(node_description *node) |
| 162 | 131 | { |
| 163 | const discrete_555_desc *info = node->custom; | |
| 132 | const discrete_555_desc *info = node->custom; | |
| 164 | 133 | struct dsd_555_astbl_context *context = node->context; |
| 165 | 134 | |
| 166 | 135 | int count_f = 0; |
| 167 | 136 | int count_r = 0; |
| 168 | double dt; // change in time | |
| 169 | double xTime; // time since change happened | |
| 170 | double tRC = 0; // RC time constant | |
| 171 | double vC = context->cap_voltage; // Current voltage on capacitor, before dt | |
| 172 | double vCnext = 0; // Voltage on capacitor, after dt | |
| 137 | double dt; /* change in time */ | |
| 138 | double x_time = 0; /* time since change happened */ | |
| 139 | double t_rc = 0; /* RC time constant */ | |
| 140 | double v_cap = context->cap_voltage; /* Current voltage on capacitor, before dt */ | |
| 141 | double v_cap_next = 0; /* Voltage on capacitor, after dt */ | |
| 142 | double v_charge; | |
| 173 | 143 | |
| 174 | if(DSD_555_ASTBL__RESET | |
| 144 | if(DSD_555_ASTBL__RESET | |
| 175 | 145 | { |
| 176 | 146 | /* We are in RESET */ |
| 177 | /* If there was a fatal INIT error then we will also stay in RESET */ | |
| 178 | node->output[0] = 0; | |
| 179 | context->flip_flop = 1; | |
| 147 | node->output[0] = 0; | |
| 148 | context->flip_flop = 1; | |
| 180 | 149 | context->cap_voltage = 0; |
| 181 | 150 | return; |
| 182 | 151 | } |
| r3115 | r3116 | |
| 189 | 158 | if (DSD_555_ASTBL__CTRLV < .25) return; |
| 190 | 159 | /* If it is a node then calculate thresholds based on Control Voltage */ |
| 191 | 160 | context->threshold = DSD_555_ASTBL__CTRLV; |
| 192 | context->trigger = DSD_555_ASTBL__CTRLV / 2.0; | |
| 161 | context->trigger = DSD_555_ASTBL__CTRLV / 2.0; | |
| 193 | 162 | /* Since the thresholds may have changed we need to update the FF */ |
| 194 | if (v | |
| 163 | if (v_cap >= context->threshold) | |
| 195 | 164 | { |
| 196 | 165 | context->flip_flop = 0; |
| 197 | 166 | count_f++; |
| 198 | 167 | } |
| 199 | 168 | else |
| 200 | if (v | |
| 169 | if (v_cap <= context->trigger) | |
| 201 | 170 | { |
| 202 | 171 | context->flip_flop = 1; |
| 203 | 172 | count_r++; |
| 204 | 173 | } |
| 205 | 174 | } |
| 206 | 175 | |
| 176 | /* get the v_charge and update each step if it is a node */ | |
| 177 | if (context->v_charge_node != NULL) | |
| 178 | { | |
| 179 | v_charge = *context->v_charge_node; | |
| 180 | if (info->options & DISC_555_ASTABLE_HAS_FAST_CHARGE_DIODE) v_charge -= 0.5; | |
| 181 | } | |
| 182 | else | |
| 183 | v_charge = context->v_charge; | |
| 184 | ||
| 185 | ||
| 207 | 186 | /* Calculate future capacitor voltage. |
| 208 | 187 | * ref@ http://www.physics.rutgers.edu/ugrad/205/capacitance.html |
| 209 | 188 | * The formulas from the ref pages have been modified to reflect that we are stepping the change. |
| r3115 | r3116 | |
| 223 | 202 | */ |
| 224 | 203 | |
| 225 | 204 | dt = discrete_current_context->sample_time; |
| 226 | xTime = context->x_init; | |
| 227 | 205 | |
| 228 | 206 | /* Sometimes a switching network is used to setup the capacitance. |
| 229 | 207 | * These may select no capacitor, causing oscillation to stop. |
| r3115 | r3116 | |
| 232 | 210 | { |
| 233 | 211 | context->flip_flop = 1; |
| 234 | 212 | /* The voltage goes high because the cap circuit is open. */ |
| 235 | vCnext = context->v555; | |
| 236 | vC = context->v555; | |
| 213 | v_cap_next = v_charge; | |
| 214 | v_cap = v_charge; | |
| 237 | 215 | context->cap_voltage = 0; |
| 238 | 216 | } |
| 239 | 217 | else |
| r3115 | r3116 | |
| 247 | 225 | { |
| 248 | 226 | /* Oscillation disabled because there is no longer any charge resistor. */ |
| 249 | 227 | /* Bleed the cap due to circuit losses. */ |
| 250 | tRC = DEFAULT_555_CAP_BLEED * DSD_555_ASTBL__C; | |
| 251 | vCnext = vC - (vC * (1.0 - exp(-(dt / tRC)))); | |
| 228 | t_rc = DEFAULT_555_CAP_BLEED * DSD_555_ASTBL__C; | |
| 229 | v_cap_next = v_cap - (v_cap * (1.0 - exp(-(dt / t_rc )))); | |
| 252 | 230 | dt = 0; |
| 253 | 231 | } |
| 254 | 232 | else |
| 255 | 233 | { |
| 256 | 234 | /* Charging */ |
| 257 | 235 | /* Use quick charge if specified. */ |
| 258 | tRC = (DSD_555_ASTBL__R1 + ((info->options & DISC_555_ASTABLE_HAS_FAST_CHARGE_DIODE) ? 0 : DSD_555_ASTBL__R2)) * DSD_555_ASTBL__C; | |
| 259 | vCnext = vC + ((context->v555 - vC) * (1.0 - exp(-(dt / tRC)))); | |
| 236 | t_rc = (DSD_555_ASTBL__R1 + ((info->options & DISC_555_ASTABLE_HAS_FAST_CHARGE_DIODE) ? 0 : DSD_555_ASTBL__R2)) * DSD_555_ASTBL__C; | |
| 237 | v_cap_next = v_cap + ((v_charge - v_cap) * (1.0 - exp(-(dt / t_rc )))); | |
| 260 | 238 | dt = 0; |
| 261 | 239 | |
| 262 | 240 | /* has it charged past upper limit? */ |
| 263 | if (v | |
| 241 | if (v_cap_next >= context->threshold) | |
| 264 | 242 | { |
| 265 | 243 | /* calculate the overshoot time */ |
| 266 | dt = tRC * log(1.0 / (1.0 - ((vCnext - context->threshold) / (context->v555 - vC)))); | |
| 267 | xTime = dt; | |
| 268 | vC = context->threshold; | |
| 244 | dt = t_rc * log(1.0 / (1.0 - ((v_cap_next - context->threshold) / (v_charge - v_cap)))); | |
| 245 | x_time = dt; | |
| 246 | v_cap = context->threshold; | |
| 269 | 247 | context->flip_flop = 0; |
| 270 | 248 | count_f++; |
| 271 | 249 | } |
| r3115 | r3116 | |
| 274 | 252 | else |
| 275 | 253 | { |
| 276 | 254 | /* Discharging */ |
| 277 | if(DSD_555_ASTBL__R2!=0) | |
| 255 | if(DSD_555_ASTBL__R2 != 0) | |
| 278 | 256 | { |
| 279 | tRC = DSD_555_ASTBL__R2 * DSD_555_ASTBL__C; | |
| 280 | vCnext = vC - (vC * (1 - exp(-(dt / tRC)))); | |
| 257 | t_rc = DSD_555_ASTBL__R2 * DSD_555_ASTBL__C; | |
| 258 | v_cap_next = v_cap - (v_cap * (1 - exp(-(dt / t_rc )))); | |
| 281 | 259 | dt = 0; |
| 282 | 260 | } |
| 283 | 261 | else |
| 284 | 262 | { |
| 285 | vCnext = context->trigger; | |
| 286 | dt = 0; | |
| 263 | /* no discharge resistor so we imediately discharge */ | |
| 264 | v_cap_next = context->trigger; | |
| 287 | 265 | } |
| 288 | 266 | |
| 289 | 267 | /* has it discharged past lower limit? */ |
| 290 | if (v | |
| 268 | if (v_cap_next <= context->trigger) | |
| 291 | 269 | { |
| 292 | 270 | /* calculate the overshoot time */ |
| 293 | dt = tRC * log(1.0 / (1.0 - ((context->trigger - vCnext) / vC))); | |
| 294 | xTime = dt; | |
| 295 | vC = context->trigger; | |
| 271 | if (dt == 0) | |
| 272 | dt = t_rc * log(1.0 / (1.0 - ((context->trigger - v_cap_next) / v_cap))); | |
| 273 | x_time = dt; | |
| 274 | v_cap = context->trigger; | |
| 296 | 275 | context->flip_flop = 1; |
| 297 | 276 | count_r++; |
| 298 | 277 | } |
| 299 | 278 | } |
| 300 | 279 | } while(dt); |
| 301 | 280 | |
| 302 | context->cap_voltage = v | |
| 281 | context->cap_voltage = v_cap_next; | |
| 303 | 282 | } |
| 304 | 283 | |
| 305 | 284 | /* Convert last switch time to a ratio */ |
| 306 | x | |
| 285 | x_time = x_time / discrete_current_context->sample_time; | |
| 307 | 286 | |
| 308 | 287 | switch (context->output_type) |
| 309 | 288 | { |
| 310 | 289 | case DISC_555_OUT_SQW: |
| 311 | node->output[0] = context->flip_flop * context->out | |
| 290 | node->output[0] = context->flip_flop * context->v_out | |
| 312 | 291 | break; |
| 313 | 292 | case DISC_555_OUT_CAP: |
| 314 | node->output[0] = v | |
| 293 | node->output[0] = v_cap_next; | |
| 315 | 294 | /* Fake it to AC if needed */ |
| 316 | 295 | if (context->output_is_ac) |
| 317 | 296 | node->output[0] -= context->threshold * 3.0 /4.0; |
| 318 | 297 | break; |
| 319 | 298 | case DISC_555_OUT_ENERGY: |
| 320 | node->output[0] = context->output_high_voltage * (context->flip_flop ? xTime : (1 - xTime)); | |
| 299 | if (x_time == 0) x_time = 1.0; | |
| 300 | node->output[0] = context->v_out_high * (context->flip_flop ? x_time : (1.0 - x_time)); | |
| 321 | 301 | node->output[0] += context->ac_shift; |
| 322 | 302 | break; |
| 323 | 303 | case DISC_555_OUT_LOGIC_X: |
| 324 | node->output[0] = context->flip_flop + x | |
| 304 | node->output[0] = context->flip_flop + x_time; | |
| 325 | 305 | break; |
| 326 | 306 | case DISC_555_OUT_COUNT_F_X: |
| 327 | node->output[0] = count_f ? count_f + x | |
| 307 | node->output[0] = count_f ? count_f + x_time : count_f; | |
| 328 | 308 | break; |
| 329 | 309 | case DISC_555_OUT_COUNT_R_X: |
| 330 | node->output[0] = count_r ? count_r + x | |
| 310 | node->output[0] = count_r ? count_r + x_time : count_r; | |
| 331 | 311 | break; |
| 332 | 312 | case DISC_555_OUT_COUNT_F: |
| 333 | 313 | node->output[0] = count_f; |
| r3115 | r3116 | |
| 340 | 320 | |
| 341 | 321 | static void dsd_555_astbl_reset(node_description *node) |
| 342 | 322 | { |
| 343 | const discrete_555_desc *info = node->custom; | |
| 323 | const discrete_555_desc *info = node->custom; | |
| 344 | 324 | struct dsd_555_astbl_context *context = node->context; |
| 325 | node_description *v_charge_node; | |
| 345 | 326 | |
| 346 | context->use_ctrlv = (node->input_is_node >> 4) & 1; | |
| 327 | context->use_ctrlv = (node->input_is_node >> 4) & 1; | |
| 347 | 328 | context->output_type = info->options & DISC_555_OUT_MASK; |
| 348 | 329 | |
| 349 | /* Use the supplied values or set to defaults. */ | |
| 350 | context->output_high_voltage = (info->v555high == DEFAULT_555_HIGH) ? info->v555 - 1.2 : info->v555high; | |
| 330 | /* Use the defaults or supplied values. */ | |
| 331 | context->v_out_high = (info->v_out_high == DEFAULT_555_HIGH) ? info->v_pos - 1.2 : info->v_out_high; | |
| 332 | ||
| 333 | /* setup v_charge or node */ | |
| 334 | v_charge_node = discrete_find_node(NULL, info->v_charge); | |
| 335 | if (v_charge_node) | |
| 336 | context->v_charge_node = &(v_charge_node->output[NODE_CHILD_NODE_NUM(info->v_charge)]); | |
| 337 | else | |
| 338 | { | |
| 339 | context->v_charge = (info->v_charge == DEFAULT_555_CHARGE) ? info->v_pos : info->v_charge; | |
| 340 | context->v_charge_node = NULL; | |
| 341 | ||
| 342 | if (info->options & DISC_555_ASTABLE_HAS_FAST_CHARGE_DIODE) context->v_charge -= 0.5; | |
| 343 | } | |
| 344 | ||
| 351 | 345 | if ((DSD_555_ASTBL__CTRLV != -1) && !context->use_ctrlv) |
| 352 | 346 | { |
| 353 | /* Setup based on supplied static value */ | |
| 347 | /* Setup based on supplied Control Voltage static value */ | |
| 354 | 348 | context->threshold = DSD_555_ASTBL__CTRLV; |
| 355 | context->trigger = DSD_555_ASTBL__CTRLV / 2.0; | |
| 349 | context->trigger = DSD_555_ASTBL__CTRLV / 2.0; | |
| 356 | 350 | } |
| 357 | 351 | else |
| 358 | 352 | { |
| 359 | /* use values passed in structure */ | |
| 360 | context->threshold = (info->threshold555 == DEFAULT_555_THRESHOLD) ? info->v555 *2 /3 : info->threshold555; | |
| 361 | context->trigger = (info->trigger555 == DEFAULT_555_TRIGGER) ? info->v555 /3 : info->trigger555; | |
| 353 | /* Setup based on v_pos power source */ | |
| 354 | context->threshold = info->v_pos * 2.0 / 3.0; | |
| 355 | context->trigger = info->v_pos / 3.0; | |
| 362 | 356 | } |
| 363 | 357 | |
| 364 | 358 | context->output_is_ac = info->options & DISC_555_OUT_AC; |
| 365 | 359 | /* Calculate DC shift needed to make squarewave waveform AC */ |
| 366 | context->ac_shift = context->output_is_ac ? -context->out | |
| 360 | context->ac_shift = context->output_is_ac ? -context->v_out | |
| 367 | 361 | |
| 368 | context->error = test_555(context->threshold, context->trigger, info->v555, node->node); | |
| 369 | ||
| 370 | context->v555 = (info->options & DISC_555_ASTABLE_HAS_FAST_CHARGE_DIODE) ? info->v555 - 0.5: info->v555; | |
| 371 | 362 | context->flip_flop = 1; |
| 372 | 363 | context->cap_voltage = 0; |
| 373 | 364 | |
| 374 | /* Used to adjust the ratio depending on if it is the extra percent or energy */ | |
| 375 | context->x_init = 0; | |
| 376 | if (context->output_type == DISC_555_OUT_ENERGY) | |
| 377 | context->x_init = discrete_current_context->sample_time; | |
| 378 | ||
| 379 | 365 | /* Step to set the output */ |
| 380 | 366 | dsd_555_astbl_step(node); |
| 381 | 367 | } |
| r3115 | r3116 | |
| 401 | 387 | |
| 402 | 388 | static void dsd_555_mstbl_step(node_description *node) |
| 403 | 389 | { |
| 404 | const discrete_555_desc *info = node->custom; | |
| 390 | const discrete_555_desc *info = node->custom; | |
| 405 | 391 | struct dsd_555_mstbl_context *context = node->context; |
| 406 | 392 | |
| 407 | double vC; // Current voltage on capacitor, before dt | |
| 408 | double vCnext = 0; // Voltage on capacitor, after dt | |
| 393 | double v_cap; /* Current voltage on capacitor, before dt */ | |
| 394 | double v_cap_next = 0; /* Voltage on capacitor, after dt */ | |
| 409 | 395 | |
| 410 | if(DSD_555_MSTBL__RESET | |
| 396 | if(DSD_555_MSTBL__RESET | |
| 411 | 397 | { |
| 412 | 398 | /* We are in RESET */ |
| 413 | /* If there was a fatal INIT error then we will also stay in RESET */ | |
| 414 | node->output[0] = 0; | |
| 415 | context->flip_flop = 0; | |
| 399 | node->output[0] = 0; | |
| 400 | context->flip_flop = 0; | |
| 416 | 401 | context->cap_voltage = 0; |
| 417 | 402 | } |
| 418 | 403 | else |
| r3115 | r3116 | |
| 435 | 420 | } |
| 436 | 421 | else |
| 437 | 422 | { |
| 438 | v | |
| 423 | v_cap = context->cap_voltage; | |
| 439 | 424 | |
| 440 | 425 | /* Sometimes a switching network is used to setup the capacitance. |
| 441 | 426 | * These may select 'no' capacitor, causing oscillation to stop. |
| r3115 | r3116 | |
| 444 | 429 | { |
| 445 | 430 | context->flip_flop = 0; |
| 446 | 431 | /* The voltage goes high because the cap circuit is open. */ |
| 447 | vCnext = info->v555; | |
| 448 | vC = info->v555; | |
| 432 | v_cap_next = info->v_pos; | |
| 433 | v_cap = info->v_pos; | |
| 449 | 434 | context->cap_voltage = 0; |
| 450 | 435 | } |
| 451 | 436 | else |
| 452 | 437 | { |
| 453 | 438 | /* Charging */ |
| 454 | v | |
| 439 | v_cap_next = v_cap + ((info->v_pos - v_cap) * (1.0 - exp(-(discrete_current_context->sample_time / (DSD_555_MSTBL__R * DSD_555_MSTBL__C))))); | |
| 455 | 440 | |
| 456 | 441 | /* Has it charged past upper limit? */ |
| 457 | 442 | /* If trigger is still enabled, then we keep charging, |
| 458 | 443 | * regardless of threshold. */ |
| 459 | if ((v | |
| 444 | if ((v_cap_next >= context->threshold) && !trigger) | |
| 460 | 445 | { |
| 461 | vCnext = 0; | |
| 462 | vC = context->threshold; | |
| 446 | v_cap_next = 0; | |
| 447 | v_cap = context->threshold; | |
| 463 | 448 | context->flip_flop = 0; |
| 464 | 449 | } |
| 465 | 450 | } |
| 466 | 451 | |
| 467 | context->cap_voltage = v | |
| 452 | context->cap_voltage = v_cap_next; | |
| 468 | 453 | |
| 469 | 454 | switch (info->options & DISC_555_OUT_MASK) |
| 470 | 455 | { |
| 471 | 456 | case DISC_555_OUT_SQW: |
| 472 | node->output[0] = context->flip_flop * context->out | |
| 457 | node->output[0] = context->flip_flop * context->v_out | |
| 473 | 458 | /* Fake it to AC if needed */ |
| 474 | 459 | if (context->output_is_ac) |
| 475 | node->output[0] -= context->out | |
| 460 | node->output[0] -= context->v_out | |
| 476 | 461 | break; |
| 477 | 462 | case DISC_555_OUT_CAP: |
| 478 | node->output[0] = v | |
| 463 | node->output[0] = v_cap_next; | |
| 479 | 464 | /* Fake it to AC if needed */ |
| 480 | 465 | if (context->output_is_ac) |
| 481 | 466 | node->output[0] -= context->threshold * 3.0 /4.0; |
| r3115 | r3116 | |
| 487 | 472 | |
| 488 | 473 | static void dsd_555_mstbl_reset(node_description *node) |
| 489 | 474 | { |
| 490 | const discrete_555_desc *info = node->custom; | |
| 475 | const discrete_555_desc *info = node->custom; | |
| 491 | 476 | struct dsd_555_mstbl_context *context = node->context; |
| 492 | 477 | |
| 493 | 478 | context->output_type = info->options & DISC_555_OUT_MASK; |
| r3115 | r3116 | |
| 497 | 482 | context->output_type = DISC_555_OUT_SQW; |
| 498 | 483 | } |
| 499 | 484 | |
| 500 | /* Use the supplied values or set to defaults. */ | |
| 501 | context->threshold = (info->threshold555 == DEFAULT_555_THRESHOLD) ? info->v555 *2 /3 : info->threshold555; | |
| 502 | context->trigger = (info->trigger555 == DEFAULT_555_TRIGGER) ? info->v555 /3 : info->trigger555; | |
| 503 | context->output_high_voltage = (info->v555high == DEFAULT_555_HIGH) ? info->v555 - 1.2 : info->v555high; | |
| 485 | /* Use the defaults or supplied values. */ | |
| 486 | context->v_out_high = (info->v_out_high == DEFAULT_555_HIGH) ? info->v_pos - 1.2 : info->v_out_high; | |
| 487 | context->v_charge = (info->v_charge == DEFAULT_555_CHARGE) ? info->v_pos : info->v_charge; | |
| 504 | 488 | |
| 489 | /* Setup based on v_pos power source */ | |
| 490 | context->threshold = info->v_pos * 2.0 / 3.0; | |
| 491 | context->trigger = info->v_pos / 3.0; | |
| 492 | ||
| 505 | 493 | context->output_is_ac = info->options & DISC_555_OUT_AC; |
| 506 | 494 | /* Calculate DC shift needed to make squarewave waveform AC */ |
| 507 | context->ac_shift = context->output_is_ac ? -context->out | |
| 495 | context->ac_shift = context->output_is_ac ? -context->v_out | |
| 508 | 496 | |
| 509 | context->error = test_555(context->threshold, context->trigger, info->v555, node->node); | |
| 510 | ||
| 511 | context->trig_is_logic = (info->options & DISC_555_TRIGGER_IS_VOLTAGE) ? 0: 1; | |
| 497 | context->trig_is_logic = (info->options & DISC_555_TRIGGER_IS_VOLTAGE) ? 0: 1; | |
| 512 | 498 | context->trig_discharges_cap = (info->options & DISC_555_TRIGGER_DISCHARGES_CAP) ? 1: 0; |
| 513 | 499 | |
| 514 | context->flip_flop = 0; | |
| 500 | context->flip_flop = 0; | |
| 515 | 501 | context->cap_voltage = 0; |
| 516 | 502 | |
| 517 | 503 | node->output[0] = 0; |
| r3115 | r3116 | |
| 544 | 530 | |
| 545 | 531 | static void dsd_555_cc_step(node_description *node) |
| 546 | 532 | { |
| 547 | const discrete_555_cc_desc *info = node->custom; | |
| 548 | struct dsd_555_cc_context *context = node->context; | |
| 533 | const discrete_555_cc_desc *info = node->custom; | |
| 534 | struct dsd_555_cc_context *context = node->context; | |
| 549 | 535 | |
| 550 | int count_f = 0; | |
| 551 | int count_r = 0; | |
| 552 | double i; // Charging current created by vIn | |
| 553 | double rC = 0; // Equivalent charging resistor | |
| 554 | double rD = 0; // Equivalent discharging resistor | |
| 555 | double vi = 0; // Equivalent voltage from current source | |
| 556 | double vB = 0; // Equivalent voltage from bias voltage | |
| 557 | double v = 0; // Equivalent voltage total from current source and bias circuit if used | |
| 558 | double dt; // change in time | |
| 559 | double xTime; // time since change happened | |
| 560 | double tRC; // RC time constant | |
| 561 | double vC; // Current voltage on capacitor, before dt | |
| 562 | double vCnext = 0; // Voltage on capacitor, after dt | |
| 563 | double viLimit; // vIn and the junction voltage limit the max charging voltage from i | |
| 564 | double rTemp; // play thing | |
| 536 | int count_f = 0; | |
| 537 | int count_r = 0; | |
| 538 | double i; /* Charging current created by vIn */ | |
| 539 | double r_charge = 0; /* Equivalent charging resistor */ | |
| 540 | double r_discharge = 0; /* Equivalent discharging resistor */ | |
| 541 | double vi = 0; /* Equivalent voltage from current source */ | |
| 542 | double v_bias = 0; /* Equivalent voltage from bias voltage */ | |
| 543 | double v = 0; /* Equivalent voltage total from current source and bias circuit if used */ | |
| 544 | double dt; /* change in time */ | |
| 545 | double x_time = 0; /* time since change happened */ | |
| 546 | double t_rc ; /* RC time constant */ | |
| 547 | double v_cap; /* Current voltage on capacitor, before dt */ | |
| 548 | double v_cap_next = 0; /* Voltage on capacitor, after dt */ | |
| 549 | double v_vcharge_limit; /* vIn and the junction voltage limit the max charging voltage from i */ | |
| 550 | double r_temp; /* play thing */ | |
| 565 | 551 | |
| 566 | 552 | |
| 567 | if (DSD_555_CC__RESET | |
| 553 | if (DSD_555_CC__RESET | |
| 568 | 554 | { |
| 569 | 555 | /* We are in RESET */ |
| 570 | /* If there was a fatal INIT error then we will also stay in RESET */ | |
| 571 | node->output[0] = 0; | |
| 572 | context->flip_flop = 1; | |
| 556 | node->output[0] = 0; | |
| 557 | context->flip_flop = 1; | |
| 573 | 558 | context->cap_voltage = 0; |
| 574 | 559 | return; |
| 575 | 560 | } |
| 576 | 561 | |
| 577 | dt = discrete_current_context->sample_time; // Change in time | |
| 578 | xTime = context->x_init; | |
| 579 | vC = context->cap_voltage; // Set to voltage before change | |
| 580 | viLimit = DSD_555_CC__VIN + info->vCCjunction; // the max vC can be and still be charged by i | |
| 562 | dt = discrete_current_context->sample_time; /* Change in time */ | |
| 563 | v_cap = context->cap_voltage; /* Set to voltage before change */ | |
| 564 | v_vcharge_limit = DSD_555_CC__VIN + info->v_cc_junction; /* the max v_cap can be and still be charged by i */ | |
| 581 | 565 | /* Calculate charging current */ |
| 582 | i = ( | |
| 566 | i = (c | |
| 583 | 567 | if ( i < 0) i = 0; |
| 584 | 568 | |
| 585 | 569 | if (info->options & DISCRETE_555_CC_TO_CAP) |
| r3115 | r3116 | |
| 587 | 571 | vi = i * DSD_555_CC__RDIS; |
| 588 | 572 | } |
| 589 | 573 | else |
| 590 | switch (context->type) / | |
| 574 | switch (context->type) /* see dsd_555_cc_reset for descriptions */ | |
| 591 | 575 | { |
| 592 | 576 | case 1: |
| 593 | r | |
| 577 | r_discharge = DSD_555_CC__RDIS; | |
| 594 | 578 | case 0: |
| 595 | 579 | break; |
| 596 | 580 | case 3: |
| 597 | r | |
| 581 | r_discharge = (DSD_555_CC__RDIS * DSD_555_CC__RGND) / (DSD_555_CC__RDIS + DSD_555_CC__RGND); | |
| 598 | 582 | case 2: |
| 599 | rC = DSD_555_CC__RGND; | |
| 600 | vi = i * rC; | |
| 583 | r_charge = DSD_555_CC__RGND; | |
| 584 | vi = i * r_charge; | |
| 601 | 585 | break; |
| 602 | 586 | case 4: |
| 603 | rC = DSD_555_CC__RBIAS; | |
| 604 | vi = i * rC; | |
| 605 | vB = info->v555; | |
| 587 | r_charge = DSD_555_CC__RBIAS; | |
| 588 | vi = i * r_charge; | |
| 589 | v_bias = info->v_pos; | |
| 606 | 590 | break; |
| 607 | 591 | case 5: |
| 608 | rC = DSD_555_CC__RBIAS + DSD_555_CC__RDIS; | |
| 609 | vi = i * DSD_555_CC__RBIAS; | |
| 610 | vB = info->v555; | |
| 611 | rD = DSD_555_CC__RDIS; | |
| 592 | r_charge = DSD_555_CC__RBIAS + DSD_555_CC__RDIS; | |
| 593 | vi = i * DSD_555_CC__RBIAS; | |
| 594 | v_bias = info->v_pos; | |
| 595 | r_discharge = DSD_555_CC__RDIS; | |
| 612 | 596 | break; |
| 613 | 597 | case 6: |
| 614 | rC = (DSD_555_CC__RBIAS * DSD_555_CC__RGND) / (DSD_555_CC__RBIAS + DSD_555_CC__RGND); | |
| 615 | vi = i * rC; | |
| 616 | vB = info->v555 * (DSD_555_CC__RGND / (DSD_555_CC__RBIAS + DSD_555_CC__RGND)); | |
| 598 | r_charge = (DSD_555_CC__RBIAS * DSD_555_CC__RGND) / (DSD_555_CC__RBIAS + DSD_555_CC__RGND); | |
| 599 | vi = i * r_charge; | |
| 600 | v_bias = info->v_pos * (DSD_555_CC__RGND / (DSD_555_CC__RBIAS + DSD_555_CC__RGND)); | |
| 617 | 601 | break; |
| 618 | 602 | case 7: |
| 619 | rTemp = DSD_555_CC__RBIAS + DSD_555_CC__RDIS; | |
| 620 | rC = (rTemp * DSD_555_CC__RGND) / (rTemp + DSD_555_CC__RGND); | |
| 621 | rTemp += DSD_555_CC__RGND; | |
| 622 | rTemp = DSD_555_CC__RGND / rTemp; // now has voltage divider ratio, not resistance | |
| 623 | vi = i * DSD_555_CC__RBIAS * rTemp; | |
| 624 | vB = info->v555 * rTemp; | |
| 625 | rD = (DSD_555_CC__RGND * DSD_555_CC__RDIS) / (DSD_555_CC__RGND + DSD_555_CC__RDIS); | |
| 603 | r_temp = DSD_555_CC__RBIAS + DSD_555_CC__RDIS; | |
| 604 | r_charge = (r_temp * DSD_555_CC__RGND) / (r_temp + DSD_555_CC__RGND); | |
| 605 | r_temp += DSD_555_CC__RGND; | |
| 606 | r_temp = DSD_555_CC__RGND / r_temp; /* now has voltage divider ratio, not resistance */ | |
| 607 | vi = i * DSD_555_CC__RBIAS * r_temp; | |
| 608 | v_bias = info->v_pos * r_temp; | |
| 609 | r_discharge = (DSD_555_CC__RGND * DSD_555_CC__RDIS) / (DSD_555_CC__RGND + DSD_555_CC__RDIS); | |
| 626 | 610 | break; |
| 627 | 611 | } |
| 628 | 612 | |
| r3115 | r3116 | |
| 639 | 623 | /* No charging current, so we have to discharge the cap |
| 640 | 624 | * due to cap and circuit losses. |
| 641 | 625 | */ |
| 642 | tRC = DEFAULT_555_CAP_BLEED * DSD_555_CC__C; | |
| 643 | vCnext = vC - (vC * (1.0 - exp(-(dt / tRC)))); | |
| 626 | t_rc = DEFAULT_555_CAP_BLEED * DSD_555_CC__C; | |
| 627 | v_cap_next = v_cap - (v_cap * (1.0 - exp(-(dt / t_rc )))); | |
| 644 | 628 | dt = 0; |
| 645 | 629 | } |
| 646 | 630 | else |
| 647 | 631 | { |
| 648 | 632 | /* Charging */ |
| 649 | 633 | /* iC=C*dv/dt works out to dv=iC*dt/C */ |
| 650 | v | |
| 634 | v_cap_next = v_cap + (i * dt / DSD_555_CC__C); | |
| 651 | 635 | /* Yes, if the cap voltage has reached the max voltage it can, |
| 652 | 636 | * and the 555 threshold has not been reached, then oscillation stops. |
| 653 | 637 | * This is the way the actual electronics works. |
| 654 | 638 | * This is why you never play with the pots after being factory adjusted |
| 655 | 639 | * to work in the proper range. */ |
| 656 | if (v | |
| 640 | if (v_cap_next > v_vcharge_li | |
| 657 | 641 | dt = 0; |
| 658 | 642 | |
| 659 | 643 | /* has it charged past upper limit? */ |
| 660 | if (v | |
| 644 | if (v_cap_next >= context->threshold) | |
| 661 | 645 | { |
| 662 | 646 | /* calculate the overshoot time */ |
| 663 | dt = DSD_555_CC__C * (vCnext - context->threshold) / i; | |
| 664 | xTime = dt; | |
| 665 | vC = context->threshold; | |
| 647 | dt = DSD_555_CC__C * (v_cap_next - context->threshold) / i; | |
| 648 | x_time = dt; | |
| 649 | v_cap = context->threshold; | |
| 666 | 650 | context->flip_flop = 0; |
| 667 | 651 | count_f++; |
| 668 | 652 | } |
| r3115 | r3116 | |
| 671 | 655 | else if (DSD_555_CC__RDIS) |
| 672 | 656 | { |
| 673 | 657 | /* Discharging */ |
| 674 | t | |
| 658 | t_rc = DSD_555_CC__RDIS * DSD_555_CC__C; | |
| 675 | 659 | |
| 676 | 660 | if (info->options & DISCRETE_555_CC_TO_CAP) |
| 677 | 661 | { |
| r3115 | r3116 | |
| 679 | 663 | /* Charging in discharge mode */ |
| 680 | 664 | /* If the cap voltage is past the current source charging limit |
| 681 | 665 | * then only the bias voltage will charge the cap. */ |
| 682 | v = (vC < viLimit) ? vi : viLimit; | |
| 683 | vCnext = vC + ((v - vC) * (1.0 - exp(-(dt / tRC)))); | |
| 666 | v = (v_cap < v_vcharge_limit) ? vi : v_vcharge_limit; | |
| 667 | v_cap_next = v_cap + ((v - v_cap) * (1.0 - exp(-(dt / t_rc )))); | |
| 684 | 668 | } |
| 685 | 669 | else |
| 686 | 670 | { |
| 687 | v | |
| 671 | v_cap_next = v_cap - (v_cap * (1.0 - exp(-(dt / t_rc )))); | |
| 688 | 672 | } |
| 689 | 673 | |
| 690 | 674 | dt = 0; |
| 691 | 675 | /* has it discharged past lower limit? */ |
| 692 | if (v | |
| 676 | if (v_cap_next <= context->trigger) | |
| 693 | 677 | { |
| 694 | dt = tRC * log(1.0 / (1.0 - ((context->trigger - vCnext) / vC))); | |
| 695 | xTime = dt; | |
| 696 | vC = context->trigger; | |
| 678 | dt = t_rc * log(1.0 / (1.0 - ((context->trigger - v_cap_next) / v_cap))); | |
| 679 | x_time = dt; | |
| 680 | v_cap = context->trigger; | |
| 697 | 681 | context->flip_flop = 1; |
| 698 | 682 | count_r++; |
| 699 | 683 | } |
| 700 | 684 | } |
| 701 | else / | |
| 685 | else /* Immediate discharge. No change in dt. */ | |
| 702 | 686 | { |
| 703 | vC = context->trigger; | |
| 687 | x_time = dt; | |
| 688 | v_cap = context->trigger; | |
| 704 | 689 | context->flip_flop = 1; |
| 705 | 690 | count_r++; |
| 706 | 691 | } |
| r3115 | r3116 | |
| 715 | 700 | /* No charging current, so we have to discharge the cap |
| 716 | 701 | * due to rGnd. |
| 717 | 702 | */ |
| 718 | tRC = DSD_555_CC__RGND * DSD_555_CC__C; | |
| 719 | vCnext = vC - (vC * (1.0 - exp(-(dt / tRC)))); | |
| 703 | t_rc = DSD_555_CC__RGND * DSD_555_CC__C; | |
| 704 | v_cap_next = v_cap - (v_cap * (1.0 - exp(-(dt / t_rc )))); | |
| 720 | 705 | dt = 0; |
| 721 | 706 | } |
| 722 | 707 | else |
| r3115 | r3116 | |
| 724 | 709 | /* Charging */ |
| 725 | 710 | /* If the cap voltage is past the current source charging limit |
| 726 | 711 | * then only the bias voltage will charge the cap. */ |
| 727 | v = vB; | |
| 728 | if (vC < viLimit) v += vi; | |
| 729 | else if (context->type <= 3) v = viLimit; | |
| 712 | v = v_bias; | |
| 713 | if (v_cap < v_vcharge_limit) v += vi; | |
| 714 | else if (context->type <= 3) v = v_vcharge_limit; | |
| 730 | 715 | |
| 731 | tRC = rC * DSD_555_CC__C; | |
| 732 | vCnext = vC + ((v - vC) * (1.0 - exp(-(dt / tRC)))); | |
| 733 | dt = 0; | |
| 716 | t_rc = r_charge * DSD_555_CC__C; | |
| 717 | v_cap_next = v_cap + ((v - v_cap) * (1.0 - exp(-(dt / t_rc )))); | |
| 718 | dt = 0; | |
| 734 | 719 | |
| 735 | 720 | /* has it charged past upper limit? */ |
| 736 | if (v | |
| 721 | if (v_cap_next >= context->threshold) | |
| 737 | 722 | { |
| 738 | 723 | /* calculate the overshoot time */ |
| 739 | dt = tRC * log(1.0 / (1.0 - ((vCnext - context->threshold) / (v - vC)))); | |
| 740 | xTime = dt; | |
| 741 | vC = context->threshold; | |
| 724 | dt = t_rc * log(1.0 / (1.0 - ((v_cap_next - context->threshold) / (v - v_cap)))); | |
| 725 | x_time = dt; | |
| 726 | v_cap = context->threshold; | |
| 742 | 727 | context->flip_flop = 0; |
| 743 | 728 | count_f++; |
| 744 | 729 | } |
| 745 | 730 | } |
| 746 | 731 | } |
| 747 | 732 | else /* Discharging */ |
| 748 | if (r | |
| 733 | if (r_discharge) | |
| 749 | 734 | { |
| 750 | tRC = rD * DSD_555_CC__C; | |
| 751 | vCnext = vC - (vC * (1.0 - exp(-(dt / tRC)))); | |
| 735 | t_rc = r_discharge * DSD_555_CC__C; | |
| 736 | v_cap_next = v_cap - (v_cap * (1.0 - exp(-(dt / t_rc )))); | |
| 752 | 737 | dt = 0; |
| 753 | 738 | |
| 754 | 739 | /* has it discharged past lower limit? */ |
| 755 | if (v | |
| 740 | if (v_cap_next <= context->trigger) | |
| 756 | 741 | { |
| 757 | 742 | /* calculate the overshoot time */ |
| 758 | dt = tRC * log(1.0 / (1.0 - ((context->trigger - vCnext) / vC))); | |
| 759 | xTime = dt; | |
| 760 | vC = context->trigger; | |
| 743 | dt = t_rc * log(1.0 / (1.0 - ((context->trigger - v_cap_next) / v_cap))); | |
| 744 | x_time = dt; | |
| 745 | v_cap = context->trigger; | |
| 761 | 746 | context->flip_flop = 1; |
| 762 | 747 | count_r++; |
| 763 | 748 | } |
| 764 | 749 | } |
| 765 | else / | |
| 750 | else /* Immediate discharge. No change in dt. */ | |
| 766 | 751 | { |
| 767 | vC = context->trigger; | |
| 752 | x_time = dt; | |
| 753 | v_cap = context->trigger; | |
| 768 | 754 | context->flip_flop = 1; |
| 769 | 755 | count_r++; |
| 770 | 756 | } |
| 771 | 757 | } |
| 772 | 758 | } while(dt); |
| 773 | 759 | |
| 774 | context->cap_voltage = v | |
| 760 | context->cap_voltage = v_cap_next; | |
| 775 | 761 | |
| 776 | 762 | /* Convert last switch time to a ratio */ |
| 777 | x | |
| 763 | x_time = x_time / discrete_current_context->sample_time; | |
| 778 | 764 | |
| 779 | 765 | switch (context->output_type) |
| 780 | 766 | { |
| r3115 | r3116 | |
| 785 | 771 | node->output[0] = 0; |
| 786 | 772 | } |
| 787 | 773 | else |
| 788 | node->output[0] = context->flip_flop * context->out | |
| 774 | node->output[0] = context->flip_flop * context->v_out | |
| 789 | 775 | /* Fake it to AC if needed */ |
| 790 | 776 | node->output[0] += context->ac_shift; |
| 791 | 777 | break; |
| 792 | 778 | case DISC_555_OUT_CAP: |
| 793 | node->output[0] = v | |
| 779 | node->output[0] = v_cap_next + context->ac_shift; | |
| 794 | 780 | break; |
| 795 | 781 | case DISC_555_OUT_ENERGY: |
| 796 | node->output[0] = context->output_high_voltage * (context->flip_flop ? xTime : (1 - xTime)); | |
| 782 | if (x_time == 0) x_time = 1.0; | |
| 783 | node->output[0] = context->v_out_high * (context->flip_flop ? x_time : (1.0 - x_time)); | |
| 797 | 784 | node->output[0] += context->ac_shift; |
| 798 | 785 | break; |
| 799 | 786 | case DISC_555_OUT_LOGIC_X: |
| 800 | node->output[0] = context->flip_flop + x | |
| 787 | node->output[0] = context->flip_flop + x_time; | |
| 801 | 788 | break; |
| 802 | 789 | case DISC_555_OUT_COUNT_F_X: |
| 803 | node->output[0] = count_f + x | |
| 790 | node->output[0] = count_f ? count_f + x_time : count_f; | |
| 804 | 791 | break; |
| 805 | 792 | case DISC_555_OUT_COUNT_R_X: |
| 806 | node->output[0] = count_r + x | |
| 793 | node->output[0] = count_r ? count_r + x_time : count_r; | |
| 807 | 794 | break; |
| 808 | 795 | case DISC_555_OUT_COUNT_F: |
| 809 | 796 | node->output[0] = count_f; |
| r3115 | r3116 | |
| 816 | 803 | |
| 817 | 804 | static void dsd_555_cc_reset(node_description *node) |
| 818 | 805 | { |
| 819 | const discrete_555_cc_desc *info = node->custom; | |
| 820 | struct dsd_555_cc_context *context = node->context; | |
| 806 | const discrete_555_cc_desc *info = node->custom; | |
| 807 | struct dsd_555_cc_context *context = node->context; | |
| 821 | 808 | |
| 822 | context->flip_flop=1; | |
| 809 | context->flip_flop = 1; | |
| 823 | 810 | context->cap_voltage = 0; |
| 824 | 811 | |
| 825 | 812 | context->output_type = info->options & DISC_555_OUT_MASK; |
| 826 | 813 | |
| 827 | /* Used to adjust the ratio depending on if it is the extra percent or energy */ | |
| 828 | context->x_init = 0; | |
| 829 | if (context->output_type == DISC_555_OUT_ENERGY) | |
| 830 | context->x_init = discrete_current_context->sample_time; | |
| 814 | /* Use the defaults or supplied values. */ | |
| 815 | context->v_out_high = (info->v_out_high == DEFAULT_555_HIGH) ? info->v_pos - 1.2 : info->v_out_high; | |
| 816 | context->v_cc_source = (info->v_cc_source == DEFAULT_555_CC_SOURCE) ? info->v_pos : info->v_cc_source; | |
| 831 | 817 | |
| 832 | /* Use the supplied values or set to defaults. */ | |
| 833 | context->threshold = (info->threshold555 == DEFAULT_555_THRESHOLD) ? info->v555 *2 /3 : info->threshold555; | |
| 834 | context->trigger = (info->trigger555 == DEFAULT_555_TRIGGER) ? info->v555 /3 : info->trigger555; | |
| 835 | context->output_high_voltage = (info->v555high == DEFAULT_555_HIGH) ? info->v555 - 1.2 : info->v555high; | |
| 818 | /* Setup based on v_pos power source */ | |
| 819 | context->threshold = info->v_pos * 2.0 / 3.0; | |
| 820 | context->trigger = info->v_pos / 3.0; | |
| 836 | 821 | |
| 837 | 822 | context->output_is_ac = info->options & DISC_555_OUT_AC; |
| 838 | 823 | /* Calculate DC shift needed to make squarewave waveform AC */ |
| 839 | context->ac_shift = context->output_is_ac ? -context->out | |
| 824 | context->ac_shift = context->output_is_ac ? -context->v_out | |
| 840 | 825 | |
| 841 | context->error = test_555(context->threshold, context->trigger, info->v555, node->node); | |
| 842 | ||
| 843 | 826 | /* There are 8 different types of basic oscillators |
| 844 | 827 | * depending on the resistors used. We will determine |
| 845 | 828 | * the type of circuit at reset, because the ciruit type |
| 846 | * is constant. */ | |
| 829 | * is constant. | |
| 830 | */ | |
| 847 | 831 | context->type = (DSD_555_CC__RDIS > 0) | ((DSD_555_CC__RGND > 0) << 1) | ((DSD_555_CC__RBIAS > 0) << 2); |
| 848 | 832 | /* |
| 849 | 833 | * TYPES: |
| r3115 | r3116 | |
| 995 | 979 | * |
| 996 | 980 | * Apr 2006, D Renaud. |
| 997 | 981 | ************************************************************************/ |
| 998 | #define DSD_555_VCO1__RESET (*(node->input[0])) / | |
| 982 | #define DSD_555_VCO1__RESET (*(node->input[0])) /* reset active low */ | |
| 999 | 983 | #define DSD_555_VCO1__VIN1 (*(node->input[1])) |
| 1000 | 984 | #define DSD_555_VCO1__VIN2 (*(node->input[2])) |
| 1001 | 985 | |
| 1002 | 986 | static void dsd_555_vco1_step(node_description *node) |
| 1003 | 987 | { |
| 1004 | const discrete_555_vco1_desc *info = node->custom; | |
| 1005 | struct dsd_555_vco1_context *context = node->context; | |
| 988 | const discrete_555_vco1_desc *info = node->custom; | |
| 989 | struct dsd_555_vco1_context *context = node->context; | |
| 1006 | 990 | |
| 1007 | 991 | int count_f = 0; |
| 1008 | 992 | int count_r = 0; |
| 1009 | double dt; // change in time | |
| 1010 | double xTime = 0; // time since change happened | |
| 1011 | double vC; // Current voltage on capacitor, before dt | |
| 1012 | double vCnext = 0; // Voltage on capacitor, after dt | |
| 993 | double dt; /* change in time */ | |
| 994 | double x_time = 0; /* time since change happened */ | |
| 995 | double v_cap; /* Current voltage on capacitor, before dt */ | |
| 996 | double v_cap_next = 0; /* Voltage on capacitor, after dt */ | |
| 1013 | 997 | |
| 1014 | dt = discrete_current_context->sample_time; // Change in time | |
| 1015 | vC = context->cap_voltage; | |
| 998 | dt = discrete_current_context->sample_time; /* Change in time */ | |
| 999 | v_cap = context->cap_voltage; | |
| 1016 | 1000 | |
| 1017 | 1001 | /* Check: if the Control Voltage node is connected. */ |
| 1018 | if (context->ctrlv_is_node && DSD_555_VCO1__RESET) / | |
| 1002 | if (context->ctrlv_is_node && DSD_555_VCO1__RESET) /* reset active low */ | |
| 1019 | 1003 | { |
| 1020 | 1004 | /* If CV is less then .25V, the circuit will oscillate way out of range. |
| 1021 | 1005 | * So we will just ignore it when it happens. */ |
| 1022 | 1006 | if (DSD_555_VCO1__VIN2 < .25) return; |
| 1023 | 1007 | /* If it is a node then calculate thresholds based on Control Voltage */ |
| 1024 | 1008 | context->threshold = DSD_555_VCO1__VIN2; |
| 1025 | context->trigger = DSD_555_VCO1__VIN2 / 2.0; | |
| 1009 | context->trigger = DSD_555_VCO1__VIN2 / 2.0; | |
| 1026 | 1010 | /* Since the thresholds may have changed we need to update the FF */ |
| 1027 | if (v | |
| 1011 | if (v_cap >= context->threshold) | |
| 1028 | 1012 | { |
| 1013 | x_time = dt; | |
| 1029 | 1014 | context->flip_flop = 0; |
| 1030 | 1015 | count_f++; |
| 1031 | 1016 | } |
| 1032 | 1017 | else |
| 1033 | if (v | |
| 1018 | if (v_cap <= context->trigger) | |
| 1034 | 1019 | { |
| 1020 | x_time = dt; | |
| 1035 | 1021 | context->flip_flop = 1; |
| 1036 | 1022 | count_r++; |
| 1037 | 1023 | } |
| r3115 | r3116 | |
| 1042 | 1028 | { |
| 1043 | 1029 | if (context->flip_flop) |
| 1044 | 1030 | { |
| 1045 | // if we are in reset then toggle f/f and discharge | |
| 1046 | if (!DSD_555_VCO1__RESET) // reset active low | |
| 1031 | /* if we are in reset then toggle f/f and discharge */ | |
| 1032 | if (!DSD_555_VCO1__RESET) /* reset active low */ | |
| 1047 | 1033 | { |
| 1048 | 1034 | context->flip_flop = 0; |
| 1049 | 1035 | count_f++; |
| r3115 | r3116 | |
| 1052 | 1038 | { |
| 1053 | 1039 | /* Charging */ |
| 1054 | 1040 | /* iC=C*dv/dt works out to dv=iC*dt/C */ |
| 1055 | vCnext = vC + (context->i_charge * dt / info->c); | |
| 1056 | dt = 0; | |
| 1041 | v_cap_next = v_cap + (context->i_charge * dt / info->c); | |
| 1042 | dt = 0; | |
| 1057 | 1043 | |
| 1058 | 1044 | /* has it charged past upper limit? */ |
| 1059 | if (v | |
| 1045 | if (v_cap_next >= context->threshold) | |
| 1060 | 1046 | { |
| 1061 | if (vCnext > context->threshold) | |
| 1062 | { | |
| 1063 | /* calculate the overshoot time */ | |
| 1064 | dt = info->c * (vCnext - context->threshold) / context->i_charge; | |
| 1065 | } | |
| 1066 | vC = context->threshold; | |
| 1047 | /* calculate the overshoot time */ | |
| 1048 | dt = info->c * (v_cap_next - context->threshold) / context->i_charge; | |
| 1049 | v_cap = context->threshold; | |
| 1050 | x_time = dt; | |
| 1067 | 1051 | context->flip_flop = 0; |
| 1068 | 1052 | count_f++; |
| 1069 | xTime = dt; | |
| 1070 | 1053 | } |
| 1071 | 1054 | } |
| 1072 | 1055 | } |
| r3115 | r3116 | |
| 1074 | 1057 | { |
| 1075 | 1058 | /* Discharging */ |
| 1076 | 1059 | /* iC=C*dv/dt works out to dv=iC*dt/C */ |
| 1077 | v | |
| 1060 | v_cap_next = v_cap - (context->i_discharge * dt / info->c); | |
| 1078 | 1061 | |
| 1079 | // if we are in reset, then the cap can discharge to 0 | |
| 1080 | if (!DSD_555_VCO1__RESET) // reset active low | |
| 1062 | /* if we are in reset, then the cap can discharge to 0 */ | |
| 1063 | if (!DSD_555_VCO1__RESET) /* reset active low */ | |
| 1081 | 1064 | { |
| 1082 | if (v | |
| 1065 | if (v_cap_next < 0) v_cap_next = 0; | |
| 1083 | 1066 | dt = 0; |
| 1084 | 1067 | } |
| 1085 | 1068 | else |
| 1086 | 1069 | { |
| 1087 | // if we are out of reset and the cap voltage is less then | |
| 1088 | // the lower threshold, toggle f/f and start charging | |
| 1089 | if (vC <= context->trigger) | |
| 1070 | /* if we are out of reset and the cap voltage is less then | |
| 1071 | * the lower threshold, toggle f/f and start charging */ | |
| 1072 | if (v_cap <= context->trigger) | |
| 1090 | 1073 | { |
| 1091 | context->flip_flop = 1; | |
| 1092 | count_r++; | |
| 1074 | if (context->flip_flop == 0) | |
| 1075 | { | |
| 1076 | /* don't need to track x_time here */ | |
| 1077 | context->flip_flop = 1; | |
| 1078 | count_r++; | |
| 1079 | } | |
| 1093 | 1080 | } |
| 1094 | 1081 | else |
| 1095 | 1082 | { |
| 1096 | 1083 | dt = 0; |
| 1097 | 1084 | /* has it discharged past lower limit? */ |
| 1098 | if (v | |
| 1085 | if (v_cap_next <= context->trigger) | |
| 1099 | 1086 | { |
| 1100 | if (vCnext < context->trigger) | |
| 1101 | { | |
| 1102 | /* calculate the overshoot time */ | |
| 1103 | dt = info->c * (vCnext - context->trigger) / context->i_discharge; | |
| 1104 | } | |
| 1105 | vC = context->trigger; | |
| 1087 | /* calculate the overshoot time */ | |
| 1088 | dt = info->c * (v_cap_next - context->trigger) / context->i_discharge; | |
| 1089 | v_cap = context->trigger; | |
| 1090 | x_time = dt; | |
| 1106 | 1091 | context->flip_flop = 1; |
| 1107 | 1092 | count_r++; |
| 1108 | xTime = dt; | |
| 1109 | 1093 | } |
| 1110 | 1094 | } |
| 1111 | 1095 | } |
| 1112 | 1096 | } |
| 1113 | 1097 | } while(dt); |
| 1114 | 1098 | |
| 1115 | context->cap_voltage = v | |
| 1099 | context->cap_voltage = v_cap_next; | |
| 1116 | 1100 | |
| 1117 | /* Convert last switch time to a ratio */ | |
| 1118 | xTime = xTime / discrete_current_context->sample_time; | |
| 1101 | /* Convert last switch time to a ratio. No x_time in reset. */ | |
| 1102 | x_time = x_time / discrete_current_context->sample_time; | |
| 1103 | if (!DSD_555_VCO1__RESET) x_time = 0; | |
| 1119 | 1104 | |
| 1120 | 1105 | switch (context->output_type) |
| 1121 | 1106 | { |
| 1122 | 1107 | case DISC_555_OUT_SQW: |
| 1123 | node->output[0] = context->flip_flop * context->out | |
| 1108 | node->output[0] = context->flip_flop * context->v_out | |
| 1124 | 1109 | break; |
| 1125 | 1110 | case DISC_555_OUT_CAP: |
| 1126 | node->output[0] = v | |
| 1111 | node->output[0] = v_cap_next; | |
| 1127 | 1112 | /* Fake it to AC if needed */ |
| 1128 | 1113 | if (context->output_is_ac) |
| 1129 | 1114 | node->output[0] -= context->threshold * 3.0 /4.0; |
| 1130 | 1115 | break; |
| 1131 | 1116 | case DISC_555_OUT_ENERGY: |
| 1132 | node->output[0] = context->output_high_voltage * (context->flip_flop ? xTime : (1 - xTime)); | |
| 1117 | if (x_time == 0) x_time = 1.0; | |
| 1118 | node->output[0] = context->v_out_high * (context->flip_flop ? x_time : (1.0 - x_time)); | |
| 1133 | 1119 | node->output[0] += context->ac_shift; |
| 1134 | 1120 | break; |
| 1135 | 1121 | case DISC_555_OUT_LOGIC_X: |
| 1136 | node->output[0] = context->flip_flop + x | |
| 1122 | node->output[0] = context->flip_flop + x_time; | |
| 1137 | 1123 | break; |
| 1138 | 1124 | case DISC_555_OUT_COUNT_F_X: |
| 1139 | node->output[0] = count_f ? count_f + x | |
| 1125 | node->output[0] = count_f ? count_f + x_time : count_f; | |
| 1140 | 1126 | break; |
| 1141 | 1127 | case DISC_555_OUT_COUNT_R_X: |
| 1142 | node->output[0] = count_r ? count_r + x | |
| 1128 | node->output[0] = count_r ? count_r + x_time : count_r; | |
| 1143 | 1129 | break; |
| 1144 | 1130 | case DISC_555_OUT_COUNT_F: |
| 1145 | 1131 | node->output[0] = count_f; |
| r3115 | r3116 | |
| 1152 | 1138 | |
| 1153 | 1139 | static void dsd_555_vco1_reset(node_description *node) |
| 1154 | 1140 | { |
| 1155 | const discrete_555_vco1_desc *info = node->custom; | |
| 1156 | struct dsd_555_vco1_context *context = node->context; | |
| 1141 | const discrete_555_vco1_desc *info = node->custom; | |
| 1142 | struct dsd_555_vco1_context *context = node->context; | |
| 1157 | 1143 | |
| 1158 | 1144 | double v_ratio_r3, v_ratio_r4_1, r_in_1; |
| 1159 | 1145 | |
| 1160 | context->output_type = info->options & DISC_555_OUT_MASK; | |
| 1146 | context->output_type = info->options & DISC_555_OUT_MASK; | |
| 1161 | 1147 | context->output_is_ac = info->options & DISC_555_OUT_AC; |
| 1162 | 1148 | |
| 1163 | 1149 | /* Setup op-amp parameters */ |
| 1164 | 1150 | |
| 1165 | 1151 | /* The voltage at op-amp +in is always a fixed ratio of the modulation voltage. */ |
| 1166 | v_ratio_r3 = info->r3 / (info->r2 + info->r3); / | |
| 1152 | v_ratio_r3 = info->r3 / (info->r2 + info->r3); /* +in voltage */ | |
| 1167 | 1153 | /* The voltage at op-amp -in is 1 of 2 fixed ratios of the modulation voltage, |
| 1168 | 1154 | * based on the 555 Flip-Flop state. */ |
| 1169 | 1155 | /* If the FF is 0, then only R1 is connected allowing the full modulation volatge to pass. */ |
| 1170 | 1156 | /* v_ratio_r4_0 = 1 */ |
| 1171 | 1157 | /* If the FF is 1, then R1 & R4 make a voltage divider similar to R2 & R3 */ |
| 1172 | v_ratio_r4_1 = info->r4 / (info->r1 + info->r4); / | |
| 1158 | v_ratio_r4_1 = info->r4 / (info->r1 + info->r4); /* -in voltage */ | |
| 1173 | 1159 | /* the input resistance to the op amp depends on the FF state */ |
| 1174 | 1160 | /* r_in_0 = info->r1 when FF = 0 */ |
| 1175 | r_in_1 = 1.0 / (1.0 / info->r1 + 1.0 / info->r4); / | |
| 1161 | r_in_1 = 1.0 / (1.0 / info->r1 + 1.0 / info->r4); /* input resistance when r4 switched in */ | |
| 1176 | 1162 | |
| 1177 | 1163 | /* Now that we know the voltages entering the op amp and the resistance for the |
| 1178 | 1164 | * FF states, we can predetermine the ratios for the charge/discharge currents. */ |
| 1179 | context->i_discharge = (1 - v_ratio_r3) / info->r1; | |
| 1180 | context->i_charge = (v_ratio_r3 - v_ratio_r4_1) / r_in_1; | |
| 1165 | context->i_discharge = (1 - v_ratio_r3) / info->r1; | |
| 1166 | context->i_charge = (v_ratio_r3 - v_ratio_r4_1) / r_in_1; | |
| 1181 | 1167 | |
| 1182 | 1168 | /* the cap starts off discharged */ |
| 1183 | 1169 | context->cap_voltage = 0; |
| r3115 | r3116 | |
| 1185 | 1171 | /* Setup 555 parameters */ |
| 1186 | 1172 | |
| 1187 | 1173 | /* There is no charge on the cap so the 555 goes high at init. */ |
| 1188 | context->flip_flop = 1; | |
| 1174 | context->flip_flop = 1; | |
| 1189 | 1175 | context->ctrlv_is_node = (node->input_is_node >> 2) & 1; |
| 1190 | context->out | |
| 1176 | context->v_out | |
| 1191 | 1177 | |
| 1192 | 1178 | /* Calculate 555 thresholds. |
| 1193 | 1179 | * If the Control Voltage is a node, then the thresholds will be calculated each step. |
| 1194 | 1180 | * If the Control Voltage is a fixed voltage, then the thresholds will be calculated |
| 1195 | * from that. Otherwise we will use th | |
| 1181 | * from that. Otherwise we will use th | |
| 1196 | 1182 | if (!context->ctrlv_is_node && (DSD_555_VCO1__VIN2 != -1)) |
| 1197 | 1183 | { |
| 1198 | /* Setup based on supplied static value */ | |
| 1184 | /* Setup based on supplied Control Voltage static value */ | |
| 1199 | 1185 | context->threshold = DSD_555_VCO1__VIN2; |
| 1200 | context->trigger = DSD_555_VCO1__VIN2 / 2.0; | |
| 1186 | context->trigger = DSD_555_VCO1__VIN2 / 2.0; | |
| 1201 | 1187 | } |
| 1202 | 1188 | else |
| 1203 | 1189 | { |
| 1204 | /* use values passed in structure */ | |
| 1205 | context->threshold = (info->threshold555 == DEFAULT_555_THRESHOLD) ? info->v555 * 2 /3 : info->threshold555; | |
| 1206 | context->trigger = (info->trigger555 == DEFAULT_555_TRIGGER) ? info->v555 /3 : info->trigger555; | |
| 1190 | /* Setup based on v_pos power source */ | |
| 1191 | context->threshold = info->v_pos * 2.0 / 3.0; | |
| 1192 | context->trigger = info->v_pos / 3.0; | |
| 1207 | 1193 | } |
| 1208 | 1194 | |
| 1209 | 1195 | /* Calculate DC shift needed to make squarewave waveform AC */ |
| 1210 | context->ac_shift = context->output_is_ac ? -context->out | |
| 1196 | context->ac_shift = context->output_is_ac ? -context->v_out | |
| 1211 | 1197 | } |
| 1212 | 1198 | |
| 1213 | 1199 | /************************************************************************ |
| r3115 | r3116 | |
| 1230 | 1216 | |
| 1231 | 1217 | static void dsd_566_step(node_description *node) |
| 1232 | 1218 | { |
| 1233 | const discrete_566_desc *info = node->custom; | |
| 1234 | struct dsd_566_context *context = node->context; | |
| 1219 | const discrete_566_desc *info = node->custom; | |
| 1220 | struct dsd_566_context *context = node->context; | |
| 1235 | 1221 | |
| 1236 | double i; // Charging current created by vIn | |
| 1237 | double dt; // change in time | |
| 1238 | double vC; // Current voltage on capacitor, before dt | |
| 1239 | double vCnext = 0; // Voltage on capacitor, after dt | |
| 1222 | double i; /* Charging current created by vIn */ | |
| 1223 | double dt; /* change in time */ | |
| 1224 | double v_cap; /* Current voltage on capacitor, before dt */ | |
| 1225 | double v_cap_next = 0; /* Voltage on capacitor, after dt */ | |
| 1226 | double v_charge; | |
| 1240 | 1227 | |
| 1241 | 1228 | if (DSD_566__ENABLE && !context->error) |
| 1242 | 1229 | { |
| 1243 | dt = discrete_current_context->sample_time; // Change in time | |
| 1244 | vC = context->cap_voltage; // Set to voltage before change | |
| 1230 | dt = discrete_current_context->sample_time; /* Change in time */ | |
| 1231 | v_cap = context->cap_voltage; /* Set to voltage before change */ | |
| 1232 | ||
| 1233 | /* get the v_charge and update each step if it is a node */ | |
| 1234 | if (context->v_charge_node != NULL) | |
| 1235 | { | |
| 1236 | v_charge = *context->v_charge_node; | |
| 1237 | v_charge -= info->v_neg; | |
| 1238 | } | |
| 1239 | else | |
| 1240 | v_charge = context->v_charge; | |
| 1241 | ||
| 1245 | 1242 | /* Calculate charging current */ |
| 1246 | i = (c | |
| 1243 | i = (v_charge | |
| 1247 | 1244 | |
| 1248 | 1245 | /* Keep looping until all toggling in time sample is used up. */ |
| 1249 | 1246 | do |
| r3115 | r3116 | |
| 1251 | 1248 | if (context->flip_flop) |
| 1252 | 1249 | { |
| 1253 | 1250 | /* Discharging */ |
| 1254 | vCnext = vC - (i * dt / DSD_566__C); | |
| 1255 | dt = 0; | |
| 1251 | v_cap_next = v_cap - (i * dt / DSD_566__C); | |
| 1252 | dt = 0; | |
| 1256 | 1253 | |
| 1257 | 1254 | /* has it discharged past lower limit? */ |
| 1258 | if (v | |
| 1255 | if (v_cap_next <= context->threshold_low) | |
| 1259 | 1256 | { |
| 1260 | if (v | |
| 1257 | if (v_cap_next < context->threshold_low) | |
| 1261 | 1258 | { |
| 1262 | 1259 | /* calculate the overshoot time */ |
| 1263 | dt = DSD_566__C * (context->threshold | |
| 1260 | dt = DSD_566__C * (context->threshold_low - v_cap_next) / i; | |
| 1264 | 1261 | } |
| 1265 | v | |
| 1262 | v_cap = context->threshold_low; | |
| 1266 | 1263 | context->flip_flop = 0; |
| 1267 | 1264 | /* |
| 1268 | 1265 | * If the sampling rate is too low and the desired frequency is too high |
| r3115 | r3116 | |
| 1277 | 1274 | { |
| 1278 | 1275 | /* Charging */ |
| 1279 | 1276 | /* iC=C*dv/dt works out to dv=iC*dt/C */ |
| 1280 | vCnext = vC + (i * dt / DSD_566__C); | |
| 1281 | dt = 0; | |
| 1277 | v_cap_next = v_cap + (i * dt / DSD_566__C); | |
| 1278 | dt = 0; | |
| 1282 | 1279 | /* Yes, if the cap voltage has reached the max voltage it can, |
| 1283 | 1280 | * and the 566 threshold has not been reached, then oscillation stops. |
| 1284 | 1281 | * This is the way the actual electronics works. |
| 1285 | 1282 | * This is why you never play with the pots after being factory adjusted |
| 1286 | 1283 | * to work in the proper range. */ |
| 1287 | if (v | |
| 1284 | if (v_cap_next > DSD_566__VMOD) v_cap_next = DSD_566__VMOD; | |
| 1288 | 1285 | |
| 1289 | 1286 | /* has it charged past upper limit? */ |
| 1290 | if (v | |
| 1287 | if (v_cap_next >= context->threshold_high) | |
| 1291 | 1288 | { |
| 1292 | if (v | |
| 1289 | if (v_cap_next > context->threshold_high) | |
| 1293 | 1290 | { |
| 1294 | 1291 | /* calculate the overshoot time */ |
| 1295 | dt = DSD_566__C * (v | |
| 1292 | dt = DSD_566__C * (v_cap_next - context->threshold_high) / i; | |
| 1296 | 1293 | } |
| 1297 | v | |
| 1294 | v_cap = context->threshold_high; | |
| 1298 | 1295 | context->flip_flop = 1; |
| 1299 | 1296 | context->state[1] = (context->state[1] + 1) & 0x03; |
| 1300 | 1297 | } |
| 1301 | 1298 | } |
| 1302 | 1299 | } while(dt); |
| 1303 | 1300 | |
| 1304 | context->cap_voltage = v | |
| 1301 | context->cap_voltage = v_cap_next; | |
| 1305 | 1302 | |
| 1306 | 1303 | switch (info->options & DISC_566_OUT_MASK) |
| 1307 | 1304 | { |
| r3115 | r3116 | |
| 1323 | 1320 | node->output[0] = context->flip_flop; |
| 1324 | 1321 | } |
| 1325 | 1322 | if ((info->options & DISC_566_OUT_MASK) != DISC_566_OUT_LOGIC) |
| 1326 | node->output[0] = context->flip_flop ? context->v | |
| 1323 | node->output[0] = context->flip_flop ? context->v_sqr_high : context->v_sqr_low; | |
| 1327 | 1324 | break; |
| 1328 | 1325 | case DISC_566_OUT_TRIANGLE: |
| 1329 | 1326 | /* we can ignore any unused states when |
| 1330 | 1327 | * outputting the cap voltage */ |
| 1331 | node->output[0] = v | |
| 1328 | node->output[0] = v_cap_next; | |
| 1332 | 1329 | if (info->options & DISC_566_OUT_AC) |
| 1333 | node->output[0] -= context->tri | |
| 1330 | node->output[0] -= context->triangle_ac_offset; | |
| 1334 | 1331 | break; |
| 1335 | 1332 | } |
| 1336 | 1333 | } |
| r3115 | r3116 | |
| 1340 | 1337 | |
| 1341 | 1338 | static void dsd_566_reset(node_description *node) |
| 1342 | 1339 | { |
| 1343 | const discrete_566_desc *info = node->custom; | |
| 1344 | struct dsd_566_context *context = node->context; | |
| 1340 | const discrete_566_desc *info = node->custom; | |
| 1341 | struct dsd_566_context *context = node->context; | |
| 1342 | node_description *v_charge_node; | |
| 1345 | 1343 | |
| 1346 | double temp; | |
| 1344 | double v_diff, temp; | |
| 1347 | 1345 | |
| 1348 | 1346 | context->error = 0; |
| 1349 | if (info->v | |
| 1347 | if (info->v_neg >= info->v_pos) | |
| 1350 | 1348 | { |
| 1351 | logerror("[v | |
| 1349 | logerror("[v_neg >= v_pos] - NODE_%d DISABLED!\n", node->node - NODE_00); | |
| 1352 | 1350 | context->error = 1; |
| 1351 | return; | |
| 1353 | 1352 | } |
| 1354 | 1353 | |
| 1355 | context->vDiff = info->vPlus - info->vNeg; | |
| 1356 | context->flip_flop = 0; | |
| 1354 | /* setup v_charge or node */ | |
| 1355 | v_charge_node = discrete_find_node(NULL, info->v_charge); | |
| 1356 | if (v_charge_node) | |
| 1357 | context->v_charge_node = &(v_charge_node->output[NODE_CHILD_NODE_NUM(info->v_charge)]); | |
| 1358 | else | |
| 1359 | { | |
| 1360 | context->v_charge = (info->v_charge == DEFAULT_566_CHARGE) ? info->v_pos : info->v_charge; | |
| 1361 | context->v_charge -= info->v_neg; | |
| 1362 | context->v_charge_node = NULL; | |
| 1363 | } | |
| 1364 | ||
| 1365 | v_diff = info->v_pos - info->v_neg; | |
| 1366 | context->flip_flop = 0; | |
| 1357 | 1367 | context->cap_voltage = 0; |
| 1358 | context->state[0] = 0; | |
| 1359 | context->state[1] = 0; | |
| 1368 | context->state[0] = 0; | |
| 1369 | context->state[1] = 0; | |
| 1360 | 1370 | |
| 1361 | /* The data sheets are | |
| 1371 | /* The data sheets are useless for this IC. I will have to get my hands on a chip | |
| 1362 | 1372 | * to make real measurements. For now this should work fine for 12V. */ |
| 1363 | context->thresholdHigh = context->vDiff / 2 + info->vNeg; | |
| 1364 | context->thresholdLow = context->thresholdHigh - (0.2 * context->vDiff); | |
| 1365 | context->vSqrHigh = info->vPlus - 0.6; | |
| 1366 | context->vSqrLow = context->thresholdHigh; | |
| 1373 | context->threshold_high = v_diff / 2 + info->v_neg; | |
| 1374 | context->threshold_low = context->threshold_high - (0.2 * v_diff); | |
| 1375 | context->v_sqr_high = info->v_pos - 0.6; | |
| 1376 | context->v_sqr_low = context->threshold_high; | |
| 1367 | 1377 | |
| 1368 | 1378 | if (info->options & DISC_566_OUT_AC) |
| 1369 | 1379 | { |
| 1370 | temp = (context->vSqrHigh - context->vSqrLow) / 2; | |
| 1371 | context->vSqrHigh = temp; | |
| 1372 | context->vSqrLow = -temp; | |
| 1373 | context->triOffset = context->thresholdHigh - (0.1 * context->vDiff); | |
| 1380 | temp = (context->v_sqr_high - context->v_sqr_low) / 2; | |
| 1381 | context->v_sqr_high = temp; | |
| 1382 | context->v_sqr_low = -temp; | |
| 1383 | context->triangle_ac_offset = context->threshold_high - (0.1 * v_diff); | |
| 1374 | 1384 | } |
| 1375 | 1385 | |
| 1376 | 1386 | /* Step the output */ |
| r3115 | r3116 | |
| 1410 | 1420 | |
| 1411 | 1421 | if (DSD_LS624__ENABLE) |
| 1412 | 1422 | { |
| 1413 | double dt; // change in time | |
| 1414 | double sample_t; | |
| 1415 | double t; | |
| 1416 | int lst, cntf=0, cntr=0; | |
| 1423 | double dt; /* change in time */ | |
| 1424 | double sample_t; | |
| 1425 | double t; | |
| 1426 | int lst, cntf=0, cntr=0; | |
| 1417 | 1427 | |
| 1418 | sample_t = discrete_current_context->sample_time; // Change in time | |
| 1419 | dt = LS624_T(DSD_LS624__C, DSD_LS624__VRNG, DSD_LS624__VMOD); | |
| 1420 | dt = 16 * dt; | |
| 1421 | t = context->remain; | |
| 1428 | sample_t = discrete_current_context->sample_time; /* Change in time */ | |
| 1429 | dt = LS624_T(DSD_LS624__C, DSD_LS624__VRNG, DSD_LS624__VMOD); | |
| 1430 | dt = 16 * dt; | |
| 1431 | t = context->remain; | |
| 1422 | 1432 | lst = context->state; |
| 1423 | 1433 | while (t + dt < sample_t) |
| 1424 | 1434 | { |
| r3115 | r3116 | |
| 1431 | 1441 | } |
| 1432 | 1442 | context->remain = t - sample_t; |
| 1433 | 1443 | |
| 1434 | switch (context->outtype) | |
| 1444 | switch (context->out_type) | |
| 1435 | 1445 | { |
| 1436 | 1446 | case DISC_LS624_OUT_ENERGY: |
| 1437 | 1447 | node->output[0] = ((double) lst) * (1.0+context->remain/sample_t) - ((double) context->state) * context->remain/sample_t; |
| r3115 | r3116 | |
| 1456 | 1466 | { |
| 1457 | 1467 | struct dsd_ls624_context *context = node->context; |
| 1458 | 1468 | |
| 1459 | context->remain = 0; | |
| 1460 | context->state = 0; | |
| 1461 | context->outtype = DSD_LS624__OUTTYPE; | |
| 1469 | context->remain = 0; | |
| 1470 | context->state = 0; | |
| 1471 | context->out_type = DSD_LS624__OUTTYPE; | |
| 1462 | 1472 | |
| 1463 | 1473 | /* Step the output */ |
| 1464 | 1474 | dsd_ls624_step(node); |
| r3115 | r3116 | |
|---|---|---|
| 18 | 18 | * DSS_SINEWAVE - Sinewave generator source code |
| 19 | 19 | * DSS_SQUAREWAVE - Squarewave generator source code |
| 20 | 20 | * DSS_SQUAREWFIX - Squarewave generator - fixed frequency |
| 21 | * DSS_SQUAREWAVE2 - Squarewave generator - by t | |
| 21 | * DSS_SQUAREWAVE2 - Squarewave generator - by t_on/t_off | |
| 22 | 22 | * DSS_TRIANGLEWAVE - Triangle waveform generator |
| 23 | 23 | * |
| 24 | 24 | ************************************************************************/ |
| r3115 | r3116 | |
| 33 | 33 | int clock_type; |
| 34 | 34 | int out_type; |
| 35 | 35 | int is_7492; |
| 36 | int last; // Last clock state | |
| 37 | int count; // current count | |
| 38 | double t_clock; // fixed counter clock in seconds | |
| 39 | double t_left; // time unused during last sample in seconds | |
| 36 | int last; /* Last clock state */ | |
| 37 | int count; /* current count */ | |
| 38 | double t_clock; /* fixed counter clock in seconds */ | |
| 39 | double t_left; /* time unused during last sample in seconds */ | |
| 40 | 40 | }; |
| 41 | 41 | |
| 42 | 42 | struct dss_lfsr_context |
| 43 | 43 | { |
| 44 | 44 | unsigned int lfsr_reg; |
| 45 | int last; // Last clock state | |
| 46 | double t_clock; // fixed counter clock in seconds | |
| 47 | double t_left; // time unused during last sample in seconds | |
| 48 | double sampleStep; | |
| 49 | double shiftStep; | |
| 45 | int last; /* Last clock state */ | |
| 46 | double t_clock; /* fixed counter clock in seconds */ | |
| 47 | double t_left; /* time unused during last sample in seconds */ | |
| 48 | double sample_step; | |
| 50 | 49 | double t; |
| 51 | 50 | UINT8 reset_on_high; |
| 52 | 51 | UINT8 invert_output; |
| r3115 | r3116 | |
| 62 | 61 | { |
| 63 | 62 | int clock_type; |
| 64 | 63 | int out_type; |
| 65 | int last; // Last clock state | |
| 66 | double t_clock; // fixed counter clock in seconds | |
| 67 | double t_left; // time unused during last sample in seconds | |
| 68 | int max1; // Max 1 Count stored as int for easy use. | |
| 69 | int max2; // Max 2 Count stored as int for easy use. | |
| 70 | int count1; // current count1 | |
| 71 | int count2; // current count2 | |
| 64 | int last; /* Last clock state */ | |
| 65 | double t_clock; /* fixed counter clock in seconds */ | |
| 66 | double t_left; /* time unused during last sample in seconds */ | |
| 67 | int max1; /* Max 1 Count stored as int for easy use. */ | |
| 68 | int max2; /* Max 2 Count stored as int for easy use. */ | |
| 69 | int count1; /* current count1 */ | |
| 70 | int count2; /* current count2 */ | |
| 72 | 71 | }; |
| 73 | 72 | |
| 74 | 73 | struct dss_op_amp_osc_context |
| 75 | 74 | { |
| 76 | const double *r1; / | |
| 75 | const double *r1; /* pointers to resistor values */ | |
| 77 | 76 | const double *r2; |
| 78 | 77 | const double *r3; |
| 79 | 78 | const double *r4; |
| r3115 | r3116 | |
| 82 | 81 | const double *r7; |
| 83 | 82 | const double *r8; |
| 84 | 83 | int type; |
| 85 | UINT8 flip_flop; // flip/flop output state | |
| 86 | UINT8 flip_flopXOR; // flip_flop ^ flip_flopXOR, 0 = discharge, 1 = charge | |
| 84 | UINT8 flip_flop; /* flip/flop output state */ | |
| 85 | UINT8 flip_flop_xor; /* flip_flop ^ flip_flop_xor, 0 = discharge, 1 = charge */ | |
| 87 | 86 | UINT8 is_squarewave; |
| 88 | double high_out_V; | |
| 89 | double thresholdLow; // falling threshold | |
| 90 | double thresholdHigh; // rising threshold | |
| 91 | double vCap; // current capacitor voltage | |
| 92 | double rTotal; // all input resistors in parallel | |
| 93 | double iFixed; // fixed current at the input | |
| 94 | double temp1; // Multi purpose | |
| 95 | double temp2; // Multi purpose | |
| 96 | double temp3; // Multi purpose | |
| 87 | double v_out_high; | |
| 88 | double threshold_low; /* falling threshold */ | |
| 89 | double threshold_high; /* rising threshold */ | |
| 90 | double v_cap; /* current capacitor voltage */ | |
| 91 | double r_total; /* all input resistors in parallel */ | |
| 92 | double i_fixed; /* fixed current at the input */ | |
| 93 | double temp1; /* Multi purpose */ | |
| 94 | double temp2; /* Multi purpose */ | |
| 95 | double temp3; /* Multi purpose */ | |
| 97 | 96 | }; |
| 98 | 97 | |
| 99 | 98 | struct dss_sawtoothwave_context |
| r3115 | r3116 | |
| 104 | 103 | |
| 105 | 104 | struct dss_schmitt_osc_context |
| 106 | 105 | { |
| 107 | double ratioIn; // ratio of total charging voltage that comes from the input | |
| 108 | double ratioFeedback; // ratio of total charging voltage that comes from the feedback | |
| 109 | double vCap; // current capacitor voltage | |
| 110 | double rc; // r*c | |
| 106 | double ration_in; /* ratio of total charging voltage that comes from the input */ | |
| 107 | double ratio_feedback; /* ratio of total charging voltage that comes from the feedback */ | |
| 108 | double v_cap; /* current capacitor voltage */ | |
| 109 | double rc; /* r*c */ | |
| 111 | 110 | double exponent; |
| 112 | int state; / | |
| 111 | int state; /* state of the output */ | |
| 113 | 112 | int enable_type; |
| 114 | 113 | UINT8 input_is_voltage; |
| 115 | 114 | }; |
| r3115 | r3116 | |
| 128 | 127 | struct dss_squarewfix_context |
| 129 | 128 | { |
| 130 | 129 | int flip_flop; |
| 131 | double sampleStep; | |
| 132 | double tLeft; | |
| 133 | double tOff; | |
| 134 | double tOn; | |
| 130 | double sample_step; | |
| 131 | double t_left; | |
| 132 | double t_off; | |
| 133 | double t_on; | |
| 135 | 134 | }; |
| 136 | 135 | |
| 137 | 136 | struct dss_trianglewave_context |
| r3115 | r3116 | |
| 145 | 144 | { |
| 146 | 145 | double w; |
| 147 | 146 | double wc; |
| 148 | double vCap; | |
| 149 | double vG2_old; | |
| 150 | double Rp; | |
| 151 | double R1; | |
| 152 | double R2; | |
| 153 | double C; | |
| 147 | double v_cap; | |
| 148 | double v_g2_old; | |
| 149 | double rp; | |
| 150 | double r1; | |
| 151 | double r2; | |
| 152 | double c; | |
| 154 | 153 | double tf_a; |
| 155 | 154 | double tf_b; |
| 156 | 155 | double tf_tab[DSS_INV_TAB_SIZE]; |
| 157 | 156 | }; |
| 158 | 157 | |
| 158 | ||
| 159 | 159 | /************************************************************************ |
| 160 | 160 | * |
| 161 | 161 | * DSS_COUNTER - External clock Binary Counter |
| r3115 | r3116 | |
| 177 | 177 | #define DSS_COUNTER__DIR (*(node->input[4])) |
| 178 | 178 | #define DSS_COUNTER__INIT (*(node->input[5])) |
| 179 | 179 | #define DSS_COUNTER__CLOCK_TYPE (*(node->input[6])) |
| 180 | #define DSS_7492__CLOCK_TYPE DSS_COUNTER__MAX | |
| 180 | 181 | |
| 181 | 182 | static const int disc_7492_count[6] = {0x00, 0x01, 0x02, 0x04, 0x05, 0x06}; |
| 182 | 183 | |
| 183 | 184 | static void dss_counter_step(node_description *node) |
| 184 | 185 | { |
| 185 | struct dss_counter_context *context = node->context; | |
| 186 | double cycles; | |
| 187 | int clock = 0, last_count, inc = 0; | |
| 188 | int max = DSS_COUNTER__MAX; | |
| 189 | double xTime = 0; | |
| 186 | struct dss_counter_context *context = node->context; | |
| 187 | double cycles; | |
| 188 | int clock = 0, last_count, inc = 0; | |
| 189 | int max; | |
| 190 | double x_time = 0; | |
| 190 | 191 | |
| 192 | if (context->is_7492) | |
| 193 | max = 5; | |
| 194 | else | |
| 195 | max = DSS_COUNTER__MAX; | |
| 196 | ||
| 191 | 197 | if (context->clock_type == DISC_CLK_IS_FREQ) |
| 192 | 198 | { |
| 193 | 199 | /* We need to keep clocking the internal clock even if disabled. */ |
| 194 | 200 | cycles = (context->t_left + discrete_current_context->sample_time) / context->t_clock; |
| 195 | inc = (int)cycles; | |
| 201 | inc = (int)cycles; | |
| 196 | 202 | context->t_left = (cycles - inc) * context->t_clock; |
| 197 | if (inc) x | |
| 203 | if (inc) x_time = context->t_left / discrete_current_context->sample_time; | |
| 198 | 204 | } |
| 199 | 205 | else |
| 200 | 206 | { |
| 201 | clock = (int)DSS_COUNTER__CLOCK; | |
| 202 | xTime = DSS_COUNTER__CLOCK - clock; | |
| 207 | clock = (int)DSS_COUNTER__CLOCK; | |
| 208 | x_time = DSS_COUNTER__CLOCK - clock; | |
| 203 | 209 | } |
| 204 | 210 | |
| 205 | 211 | |
| 206 | /* If reset enabled then set output to the reset value. No x | |
| 212 | /* If reset enabled then set output to the reset value. No x_time in reset. */ | |
| 207 | 213 | if (DSS_COUNTER__RESET) |
| 208 | 214 | { |
| 209 | 215 | context->count = DSS_COUNTER__INIT; |
| 210 | node->output[0] = context-> | |
| 216 | node->output[0] = context-> | |
| 211 | 217 | return; |
| 212 | 218 | } |
| 213 | 219 | |
| r3115 | r3116 | |
| 244 | 250 | |
| 245 | 251 | for (clock = 0; clock < inc; clock++) |
| 246 | 252 | { |
| 247 | context->count += DSS_COUNTER__DIR ? 1 : -1; / | |
| 253 | context->count += DSS_COUNTER__DIR ? 1 : -1; /* up/down */ | |
| 248 | 254 | if (context->count < 0) context->count = max; |
| 249 | 255 | if (context->count > max) context->count = 0; |
| 250 | 256 | } |
| r3115 | r3116 | |
| 253 | 259 | |
| 254 | 260 | if (context->count != last_count) |
| 255 | 261 | { |
| 256 | /* the x | |
| 262 | /* the x_time is only output if the output changed. */ | |
| 257 | 263 | switch (context->out_type) |
| 258 | 264 | { |
| 259 | 265 | case DISC_OUT_IS_ENERGY: |
| 260 | if (xTime != 0) | |
| 261 | node->output[0] = (context->count > last_count) ? (last_count + xTime) : (last_count - xTime); | |
| 266 | if (x_time == 0) x_time = 1.0; | |
| 267 | node->output[0] = last_count; | |
| 268 | if (context->count > last_count) | |
| 269 | node->output[0] += (context->count - last_count) * x_time; | |
| 270 | else | |
| 271 | node->output[0] -= (last_count - context->count) * x_time; | |
| 262 | 272 | break; |
| 263 | 273 | case DISC_OUT_HAS_XTIME: |
| 264 | node->output[0] += x | |
| 274 | node->output[0] += x_time; | |
| 265 | 275 | break; |
| 266 | 276 | } |
| 267 | 277 | } |
| r3115 | r3116 | |
| 274 | 284 | { |
| 275 | 285 | struct dss_counter_context *context = node->context; |
| 276 | 286 | |
| 277 | context->clock_type = (int)DSS_COUNTER__CLOCK_TYPE; | |
| 278 | if (context->clock_type == DISC_COUNTER_IS_7492) | |
| 287 | if ((int)DSS_COUNTER__CLOCK_TYPE & DISC_COUNTER_IS_7492) | |
| 279 | 288 | { |
| 280 | context->clock_type = DISC_CLK_ON_F_EDGE; | |
| 281 | context->is_7492 = 1; | |
| 289 | context->is_7492 = 1; | |
| 290 | context->clock_type = (int)DSS_7492__CLOCK_TYPE; | |
| 282 | 291 | } |
| 283 | 292 | else |
| 284 | context->is_7492 = 0; | |
| 285 | if ((context->clock_type < DISC_CLK_ON_F_EDGE) || (context->clock_type > DISC_CLK_IS_FREQ)) | |
| 286 | discrete_log("Invalid clock type passed in NODE_%d\n", NODE_INDEX(node->node)); | |
| 287 | context->last = 0; | |
| 288 | if (context->clock_type == DISC_CLK_IS_FREQ) context->t_clock = 1.0 / DSS_COUNTER__CLOCK; | |
| 289 | context->t_left = 0; | |
| 290 | context->count = DSS_COUNTER__INIT; /* count starts at reset value */ | |
| 291 | node->output[0] = DSS_COUNTER__INIT; | |
| 293 | { | |
| 294 | context->is_7492 = 0; | |
| 295 | context->clock_type = (int)DSS_COUNTER__CLOCK_TYPE; | |
| 296 | } | |
| 297 | context->out_type = context->clock_type & DISC_OUT_MASK; | |
| 298 | context->clock_type &= DISC_CLK_MASK; | |
| 299 | ||
| 300 | context->t_clock = 1.0 / DSS_COUNTER__CLOCK; | |
| 301 | context->t_left = 0; | |
| 302 | context->last = 0; | |
| 303 | context->count = DSS_COUNTER__INIT; /* count starts at reset value */ | |
| 304 | node->output[0] = DSS_COUNTER__INIT; | |
| 292 | 305 | } |
| 293 | 306 | |
| 294 | 307 | |
| r3115 | r3116 | |
| 313 | 326 | #define DSS_LFSR_NOISE__FEED (*(node->input[4])) |
| 314 | 327 | #define DSS_LFSR_NOISE__BIAS (*(node->input[5])) |
| 315 | 328 | |
| 316 | int dss_lfsr_function(int myfunc,int in0,int in1,int bitmask) | |
| 329 | static int dss_lfsr_function(int myfunc, int in0, int in1, int bitmask) | |
| 317 | 330 | { |
| 318 | 331 | int retval; |
| 319 | 332 | |
| 320 | in0&=bitmask; | |
| 321 | in1&=bitmask; | |
| 333 | in0 &= bitmask; | |
| 334 | in1 &= bitmask; | |
| 322 | 335 | |
| 323 | 336 | switch(myfunc) |
| 324 | 337 | { |
| 325 | 338 | case DISC_LFSR_XOR: |
| 326 | retval=in0^in1; | |
| 339 | retval = in0 ^ in1; | |
| 327 | 340 | break; |
| 328 | 341 | case DISC_LFSR_OR: |
| 329 | retval=in0|in1; | |
| 342 | retval = in0 | in1; | |
| 330 | 343 | break; |
| 331 | 344 | case DISC_LFSR_AND: |
| 332 | retval=in0&in1; | |
| 345 | retval = in0 & in1; | |
| 333 | 346 | break; |
| 334 | 347 | case DISC_LFSR_XNOR: |
| 335 | retval=in0^in1; | |
| 336 | retval=retval^bitmask; /* Invert output */ | |
| 348 | retval = in0 ^ in1; | |
| 349 | retval = retval ^ bitmask; /* Invert output */ | |
| 337 | 350 | break; |
| 338 | 351 | case DISC_LFSR_NOR: |
| 339 | retval=in0|in1; | |
| 340 | retval=retval^bitmask; /* Invert output */ | |
| 352 | retval = in0 | in1; | |
| 353 | retval = retval ^ bitmask; /* Invert output */ | |
| 341 | 354 | break; |
| 342 | 355 | case DISC_LFSR_NAND: |
| 343 | retval=in0&in1; | |
| 344 | retval=retval^bitmask; /* Invert output */ | |
| 356 | retval = in0 & in1; | |
| 357 | retval = retval ^ bitmask; /* Invert output */ | |
| 345 | 358 | break; |
| 346 | 359 | case DISC_LFSR_IN0: |
| 347 | retval=in0; | |
| 360 | retval = in0; | |
| 348 | 361 | break; |
| 349 | 362 | case DISC_LFSR_IN1: |
| 350 | retval=in1; | |
| 363 | retval = in1; | |
| 351 | 364 | break; |
| 352 | 365 | case DISC_LFSR_NOT_IN0: |
| 353 | retval=in0^bitmask; | |
| 366 | retval = in0 ^ bitmask; | |
| 354 | 367 | break; |
| 355 | 368 | case DISC_LFSR_NOT_IN1: |
| 356 | retval=in1^bitmask; | |
| 369 | retval = in1 ^ bitmask; | |
| 357 | 370 | break; |
| 358 | 371 | case DISC_LFSR_REPLACE: |
| 359 | retval=in0&~in1; | |
| 360 | retval=retval|in1; | |
| 372 | retval = in0 & ~in1; | |
| 373 | retval = retval | in1; | |
| 361 | 374 | break; |
| 362 | 375 | case DISC_LFSR_XOR_INV_IN0: |
| 363 | retval = in0^bitmask; /* invert in0 */ | |
| 364 | retval = retval^in1; /* xor in1 */ | |
| 376 | retval = in0 ^ bitmask; /* invert in0 */ | |
| 377 | retval = retval ^ in1; /* xor in1 */ | |
| 365 | 378 | break; |
| 366 | 379 | case DISC_LFSR_XOR_INV_IN1: |
| 367 | retval = in1^bitmask; /* invert in1 */ | |
| 368 | retval = retval^in0; /* xor in0 */ | |
| 380 | retval = in1 ^ bitmask; /* invert in1 */ | |
| 381 | retval = retval ^ in0; /* xor in0 */ | |
| 369 | 382 | break; |
| 370 | 383 | default: |
| 371 | 384 | discrete_log("dss_lfsr_function - Invalid function type passed"); |
| r3115 | r3116 | |
| 380 | 393 | |
| 381 | 394 | static void dss_lfsr_step(node_description *node) |
| 382 | 395 | { |
| 383 | const discrete_lfsr_desc *lfsr_desc = node->custom; | |
| 384 | struct dss_lfsr_context *context = node->context; | |
| 396 | const discrete_lfsr_desc *lfsr_desc = node->custom; | |
| 397 | struct dss_lfsr_context *context = node->context; | |
| 385 | 398 | double cycles; |
| 386 | 399 | int clock, inc = 0; |
| 387 | int fb0,fb1,fbresult; | |
| 400 | int fb0, fb1, fbresult; | |
| 388 | 401 | |
| 389 | 402 | if (lfsr_desc->clock_type == DISC_CLK_IS_FREQ) |
| 390 | 403 | { |
| 391 | 404 | /* We need to keep clocking the internal clock even if disabled. */ |
| 392 | 405 | cycles = (context->t_left + discrete_current_context->sample_time) / context->t_clock; |
| 393 | inc = (int)cycles; | |
| 406 | inc = (int)cycles; | |
| 394 | 407 | context->t_left = (cycles - inc) * context->t_clock; |
| 395 | 408 | } |
| 396 | 409 | |
| r3115 | r3116 | |
| 427 | 440 | for (clock = 0; clock < inc; clock++) |
| 428 | 441 | { |
| 429 | 442 | /* Fetch the last feedback result */ |
| 430 | fbresult=( | |
| 443 | fbresult = ( | |
| 431 | 444 | |
| 432 | 445 | /* Stage 2 feedback combine fbresultNew with infeed bit */ |
| 433 | fbresult=dss_lfsr_function(lfsr_desc->feedback_function1,fbresult,( | |
| 446 | fbresult = dss_lfsr_function(lfsr_desc->feedback_function1, fbresult, ( | |
| 434 | 447 | |
| 435 | 448 | /* Stage 3 first we setup where the bit is going to be shifted into */ |
| 436 | fbresult=fbresult*lfsr_desc->feedback_function2_mask; | |
| 449 | fbresult = fbresult * lfsr_desc->feedback_function2_mask; | |
| 437 | 450 | /* Then we left shift the register, */ |
| 438 | context->lfsr_reg= | |
| 451 | context->lfsr_reg = context->lfsr_reg << 1; | |
| 439 | 452 | /* Now move the fbresult into the shift register and mask it to the bitlength */ |
| 440 | context->lfsr_reg=dss_lfsr_function(lfsr_desc->feedback_function2,fbresult, | |
| 453 | context->lfsr_reg = dss_lfsr_function(lfsr_desc->feedback_function2, fbresult, | |
| 441 | 454 | |
| 442 | 455 | /* Now get and store the new feedback result */ |
| 443 | 456 | /* Fetch the feedback bits */ |
| 444 | fb0=((context->lfsr_reg)>>(lfsr_desc->feedback_bitsel0))&0x01; | |
| 445 | fb1=((context->lfsr_reg)>>(lfsr_desc->feedback_bitsel1))&0x01; | |
| 457 | fb0 = (context->lfsr_reg >> lfsr_desc->feedback_bitsel0) & 0x01; | |
| 458 | fb1 = (context->lfsr_reg >> lfsr_desc->feedback_bitsel1) & 0x01; | |
| 446 | 459 | /* Now do the combo on them */ |
| 447 | fbresult=dss_lfsr_function(lfsr_desc->feedback_function0,fb0,fb1,0x01); | |
| 448 | context->lfsr_reg=dss_lfsr_function(DISC_LFSR_REPLACE,(context->lfsr_reg), fbresult<<(lfsr_desc->bitlength), ((2<<(lfsr_desc->bitlength))-1)); | |
| 460 | fbresult = dss_lfsr_function(lfsr_desc->feedback_function0, fb0, fb1, 0x01); | |
| 461 | context->lfsr_reg = dss_lfsr_function(DISC_LFSR_REPLACE, context->lfsr_reg, fbresult << lfsr_desc->bitlength, (2 << lfsr_desc->bitlength) - 1); | |
| 449 | 462 | |
| 450 | 463 | /* Now select the output bit */ |
| 451 | 464 | if (context->out_is_f0) |
| 452 | 465 | node->output[0] = fbresult & 0x01; |
| 453 | 466 | else |
| 454 | node->output[0]=( | |
| 467 | node->output[0] = ( | |
| 455 | 468 | |
| 456 | 469 | /* Final inversion if required */ |
| 457 | if(context->invert_output) node->output[0]= | |
| 470 | if (context->invert_output) node->output[0] = node->output[0] ? 0 | |
| 458 | 471 | |
| 459 | 472 | /* Gain stage */ |
| 460 | node->output[0]= | |
| 473 | node->output[0] = node->output[0] ? DSS_LFSR_NOISE__AMP / 2 : - | |
| 461 | 474 | /* Bias input as required */ |
| 462 | node->output[0]=node->output[0]+DSS_LFSR_NOISE__BIAS; | |
| 475 | node->output[0] = node->output[0] + DSS_LFSR_NOISE__BIAS; | |
| 463 | 476 | } |
| 464 | 477 | |
| 465 | 478 | if(!DSS_LFSR_NOISE__ENABLE) |
| 466 | 479 | { |
| 467 | node->output[0]=0; | |
| 480 | node->output[0] = 0; | |
| 468 | 481 | } |
| 469 | 482 | } |
| 470 | 483 | |
| 471 | 484 | static void dss_lfsr_reset(node_description *node) |
| 472 | 485 | { |
| 473 | const discrete_lfsr_desc *lfsr_desc = node->custom; | |
| 474 | struct dss_lfsr_context *context = node->context; | |
| 475 | int fb0,fb1,fbresult; | |
| 486 | const discrete_lfsr_desc *lfsr_desc = node->custom; | |
| 487 | struct dss_lfsr_context *context = node->context; | |
| 488 | int fb0 , fb1, fbresult; | |
| 476 | 489 | |
| 477 | 490 | context->reset_on_high = (lfsr_desc->flags & DISC_LFSR_FLAG_RESET_TYPE_H) ? 1 : 0; |
| 478 | 491 | context->invert_output = lfsr_desc->flags & DISC_LFSR_FLAG_OUT_INVERT; |
| r3115 | r3116 | |
| 484 | 497 | if (lfsr_desc->clock_type == DISC_CLK_IS_FREQ) context->t_clock = 1.0 / DSS_LFSR_NOISE__CLOCK; |
| 485 | 498 | context->t_left = 0; |
| 486 | 499 | |
| 487 | context->lfsr_reg=lfsr_desc->reset_value; | |
| 500 | context->lfsr_reg = lfsr_desc->reset_value; | |
| 488 | 501 | |
| 489 | 502 | /* Now get and store the new feedback result */ |
| 490 | 503 | /* Fetch the feedback bits */ |
| 491 | fb0=((context->lfsr_reg)>>(lfsr_desc->feedback_bitsel0))&0x01; | |
| 492 | fb1=((context->lfsr_reg)>>(lfsr_desc->feedback_bitsel1))&0x01; | |
| 504 | fb0 = (context->lfsr_reg >> lfsr_desc->feedback_bitsel0) & 0x01; | |
| 505 | fb1=(context->lfsr_reg >> lfsr_desc->feedback_bitsel1) & 0x01; | |
| 493 | 506 | /* Now do the combo on them */ |
| 494 | fbresult=dss_lfsr_function(lfsr_desc->feedback_function0,fb0,fb1,0x01); | |
| 495 | context->lfsr_reg=dss_lfsr_function(DISC_LFSR_REPLACE,(context->lfsr_reg), fbresult<<(lfsr_desc->bitlength), ((2<<(lfsr_desc->bitlength))-1)); | |
| 507 | fbresult = dss_lfsr_function(lfsr_desc->feedback_function0, fb0, fb1, 0x01); | |
| 508 | context->lfsr_reg=dss_lfsr_function(DISC_LFSR_REPLACE, context->lfsr_reg, fbresult << lfsr_desc->bitlength, (2<< lfsr_desc->bitlength ) - 1); | |
| 496 | 509 | |
| 497 | 510 | /* Now select and setup the output bit */ |
| 498 | node->output[0]=( | |
| 511 | node->output[0] = ( | |
| 499 | 512 | |
| 500 | 513 | /* Final inversion if required */ |
| 501 | if(lfsr_desc->flags&DISC_LFSR_FLAG_OUT_INVERT) node->output[0]= | |
| 514 | if(lfsr_desc->flags & DISC_LFSR_FLAG_OUT_INVERT) node->output[0] = node->output[0] ? 0 | |
| 502 | 515 | |
| 503 | 516 | /* Gain stage */ |
| 504 | node->output[0]= | |
| 517 | node->output[0] = node->output[0] ? DSS_LFSR_NOISE__AMP / 2 : - | |
| 505 | 518 | /* Bias input as required */ |
| 506 | node->output[0]=node->output[0]+DSS_LFSR_NOISE__BIAS; | |
| 519 | node->output[0] = node->output[0] + DSS_LFSR_NOISE__BIAS; | |
| 507 | 520 | } |
| 508 | 521 | |
| 509 | 522 | |
| r3115 | r3116 | |
| 529 | 542 | if(DSS_NOISE__ENABLE) |
| 530 | 543 | { |
| 531 | 544 | /* Only sample noise on rollover to next cycle */ |
| 532 | if(context->phase > (2.0*M_PI)) | |
| 545 | if(context->phase > (2.0 * M_PI)) | |
| 533 | 546 | { |
| 534 | 547 | /* GCC's rand returns a RAND_MAX value of 0x7fff */ |
| 535 | 548 | int newval = (mame_rand(Machine) & 0x7fff) - 16384; |
| r3115 | r3116 | |
| 551 | 564 | } |
| 552 | 565 | |
| 553 | 566 | /* Keep the new phasor in the 2Pi range.*/ |
| 554 | context->phase = fmod(context->phase, 2.0*M_PI); | |
| 567 | context->phase = fmod(context->phase, 2.0 * M_PI); | |
| 555 | 568 | |
| 556 | 569 | /* The enable input only curtails output, phase rotation still occurs. */ |
| 557 | 570 | /* We allow the phase to exceed 2Pi here, so we can tell when to sample the noise. */ |
| 558 | context->phase += ((2.0*M_PI * DSS_NOISE__FREQ) / discrete_current_context->sample_rate); | |
| 571 | context->phase += ((2.0 * M_PI * DSS_NOISE__FREQ) / discrete_current_context->sample_rate); | |
| 559 | 572 | } |
| 560 | 573 | |
| 561 | 574 | |
| r3115 | r3116 | |
| 592 | 605 | { |
| 593 | 606 | struct dss_note_context *context = node->context; |
| 594 | 607 | |
| 595 | double cycles; | |
| 596 | int clock = 0, last_count2, inc = 0; | |
| 597 | double xTime = 0; | |
| 608 | double cycles; | |
| 609 | int clock = 0, last_count2, inc = 0; | |
| 610 | double x_time = 0; | |
| 598 | 611 | |
| 599 | 612 | if (context->clock_type == DISC_CLK_IS_FREQ) |
| 600 | 613 | { |
| 601 | 614 | /* We need to keep clocking the internal clock even if disabled. */ |
| 602 | 615 | cycles = (context->t_left + discrete_current_context->sample_time) / context->t_clock; |
| 603 | inc = (int)cycles; | |
| 616 | inc = (int)cycles; | |
| 604 | 617 | context->t_left = (cycles - inc) * context->t_clock; |
| 605 | if (inc) x | |
| 618 | if (inc) x_time = context->t_left / discrete_current_context->sample_time; | |
| 606 | 619 | } |
| 607 | 620 | else |
| 608 | 621 | { |
| 609 | /* Seperate clock info from x | |
| 622 | /* Seperate clock info from x_time info. */ | |
| 610 | 623 | clock = (int)DSS_NOTE__CLOCK; |
| 611 | x | |
| 624 | x_time = DSS_NOTE__CLOCK - clock; | |
| 612 | 625 | } |
| 613 | 626 | |
| 614 | 627 | if (DSS_NOTE__ENABLE) |
| r3115 | r3116 | |
| 647 | 660 | if (context->count1 > context->max1) |
| 648 | 661 | { |
| 649 | 662 | /* Max 1 count reached. Load Data into counter. */ |
| 650 | context->count1 = (int)DSS_NOTE__DATA; | |
| 663 | context->count1 = (int)DSS_NOTE__DATA; | |
| 651 | 664 | context->count2 += 1; |
| 652 | 665 | if (context->count2 > context->max2) context->count2 = 0; |
| 653 | 666 | } |
| r3115 | r3116 | |
| 657 | 670 | node->output[0] = context->count2; |
| 658 | 671 | if (context->count2 != last_count2) |
| 659 | 672 | { |
| 660 | /* the x | |
| 673 | /* the x_time is only output if the output changed. */ | |
| 661 | 674 | switch (context->out_type) |
| 662 | 675 | { |
| 663 | 676 | case DISC_OUT_IS_ENERGY: |
| 664 | if (xTime != 0) | |
| 665 | node->output[0] = (context->count2 > last_count2) ? (last_count2 + xTime) : (last_count2 - xTime); | |
| 677 | if (x_time == 0) x_time = 1.0; | |
| 678 | node->output[0] = last_count2; | |
| 679 | if (context->count2 > last_count2) | |
| 680 | node->output[0] += (context->count2 - last_count2) * x_time; | |
| 681 | else | |
| 682 | node->output[0] -= (last_count2 - context->count2) * x_time; | |
| 666 | 683 | break; |
| 667 | 684 | case DISC_OUT_HAS_XTIME: |
| 668 | node->output[0] += x | |
| 685 | node->output[0] += x_time; | |
| 669 | 686 | break; |
| 670 | 687 | } |
| 671 | 688 | } |
| r3115 | r3116 | |
| 679 | 696 | struct dss_note_context *context = node->context; |
| 680 | 697 | |
| 681 | 698 | context->clock_type = (int)DSS_NOTE__CLOCK_TYPE & DISC_CLK_MASK; |
| 682 | context->out_type = (int)DSS_NOTE__CLOCK_TYPE & DISC_OUT_MASK; | |
| 683 | context->last = (DSS_NOTE__CLOCK != 0); | |
| 684 | if (context->clock_type == DISC_CLK_IS_FREQ) context->t_clock = 1.0 / DSS_NOTE__CLOCK; | |
| 685 | context->t_left = 0; | |
| 699 | context->out_type = (int)DSS_NOTE__CLOCK_TYPE & DISC_OUT_MASK; | |
| 686 | 700 | |
| 701 | context->last = (DSS_NOTE__CLOCK != 0); | |
| 702 | context->t_left = 0; | |
| 703 | context->t_clock = 1.0 / DSS_NOTE__CLOCK; | |
| 704 | ||
| 687 | 705 | context->count1 = (int)DSS_NOTE__DATA; |
| 688 | 706 | context->count2 = 0; |
| 689 | context->max1 = (int)DSS_NOTE__MAX1; | |
| 690 | context->max2 = (int)DSS_NOTE__MAX2; | |
| 707 | context->max1 = (int)DSS_NOTE__MAX1; | |
| 708 | context->max2 = (int)DSS_NOTE__MAX2; | |
| 691 | 709 | node->output[0] = 0; |
| 692 | 710 | } |
| 693 | 711 | |
| r3115 | r3116 | |
| 710 | 728 | /* The inputs on a norton op-amp are (info->vP - OP_AMP_NORTON_VBE) */ |
| 711 | 729 | /* which is the same as the output high voltage. We will define them */ |
| 712 | 730 | /* the same to save a calculation step */ |
| 713 | #define DSS_OP_AMP_OSC_NORTON_VP_IN context-> | |
| 731 | #define DSS_OP_AMP_OSC_NORTON_VP_IN context->v | |
| 714 | 732 | |
| 715 | 733 | static void dss_op_amp_osc_step(node_description *node) |
| 716 | 734 | { |
| 717 | const discrete_op_amp_osc_info *info = node->custom; | |
| 718 | struct dss_op_amp_osc_context *context = node->context; | |
| 735 | const discrete_op_amp_osc_info *info = node->custom; | |
| 736 | struct dss_op_amp_osc_context *context = node->context; | |
| 719 | 737 | |
| 720 | 738 | |
| 721 | double i; // Charging current created by vIn | |
| 722 | double v = 0; // all input voltages mixed | |
| 723 | double dt; // change in time | |
| 724 | double vC; // Current voltage on capacitor, before dt | |
| 725 | double vCnext = 0; // Voltage on capacitor, after dt | |
| 726 | double iCharge[2] = {0}; | |
| 739 | double i; /* Charging current created by vIn */ | |
| 740 | double v = 0; /* all input voltages mixed */ | |
| 741 | double dt; /* change in time */ | |
| 742 | double vC; /* Current voltage on capacitor, before dt */ | |
| 743 | double vCnext = 0; /* Voltage on capacitor, after dt */ | |
| 744 | double iCharge[2] = {0}; | |
| 727 | 745 | UINT8 force_charge = 0; |
| 728 | 746 | UINT8 enable = DSS_OP_AMP_OSC__ENABLE; |
| 729 | 747 | |
| 730 | dt = discrete_current_context->sample_time; // Change in time | |
| 731 | vC = context->vCap; // Set to voltage before change | |
| 748 | dt = discrete_current_context->sample_time; /* Change in time */ | |
| 749 | vC = context->v_cap; /* Set to voltage before change */ | |
| 732 | 750 | |
| 733 | 751 | /* work out the charge currents for the VCOs. */ |
| 734 | 752 | switch (context->type) |
| 735 | 753 | { |
| 736 | 754 | case DISC_OP_AMP_OSCILLATOR_VCO_1: |
| 737 | 755 | /* Work out the charge rates. */ |
| 738 | i = DSS_OP_AMP_OSC__VMOD1 * context->temp1; // i is not a current. It is being used as a temp variable. | |
| 756 | /* i is not a current. It is being used as a temp variable. */ | |
| 757 | i = DSS_OP_AMP_OSC__VMOD1 * context->temp1; | |
| 739 | 758 | iCharge[0] = (DSS_OP_AMP_OSC__VMOD1 - i) / info->r1; |
| 740 | 759 | iCharge[1] = (i - (DSS_OP_AMP_OSC__VMOD1 * context->temp2)) / context->temp3; |
| 741 | 760 | break; |
| r3115 | r3116 | |
| 746 | 765 | double i1, i2; |
| 747 | 766 | /* Work out the charge rates. */ |
| 748 | 767 | iCharge[0] = DSS_OP_AMP_OSC_NORTON_VP_IN / *context->r1; |
| 749 | iCharge[1] = (context-> | |
| 768 | iCharge[1] = (context->v | |
| 750 | 769 | /* Work out the Inverting Schmitt thresholds. */ |
| 751 | 770 | i1 = DSS_OP_AMP_OSC_NORTON_VP_IN / *context->r5; |
| 752 | 771 | i2 = (0.0 - OP_AMP_NORTON_VBE) / *context->r4; |
| 753 | context->thresholdLow = (i1 + i2) * *context->r3 + OP_AMP_NORTON_VBE; | |
| 754 | i2 = (context->high_out_V - OP_AMP_NORTON_VBE) / *context->r4; | |
| 755 | context->thresholdHigh = (i1 + i2) * *context->r3 + OP_AMP_NORTON_VBE; | |
| 772 | context->threshold_low = (i1 + i2) * *context->r3 + OP_AMP_NORTON_VBE; | |
| 773 | i2 = (context->v_out_high - OP_AMP_NORTON_VBE) / *context->r4; | |
| 774 | context->threshold_high = (i1 + i2) * *context->r3 + OP_AMP_NORTON_VBE; | |
| 756 | 775 | break; |
| 757 | 776 | } |
| 758 | 777 | |
| r3115 | r3116 | |
| 766 | 785 | else |
| 767 | 786 | { |
| 768 | 787 | /* we need to mix any bias and all modulation voltages together. */ |
| 769 | i = context->i | |
| 788 | i = context->i_fixed; | |
| 770 | 789 | i += DSS_OP_AMP_OSC__VMOD1 / info->r7; |
| 771 | 790 | if (info->r8 != 0) |
| 772 | 791 | i += DSS_OP_AMP_OSC__VMOD2 / info->r8; |
| 773 | v = i * context->r | |
| 792 | v = i * context->r_total; | |
| 774 | 793 | } |
| 775 | 794 | |
| 776 | 795 | /* Work out the charge rates. */ |
| r3115 | r3116 | |
| 792 | 811 | /* then the osc is disabled and the cap keeps charging */ |
| 793 | 812 | if (iCharge[0] < 0) |
| 794 | 813 | { |
| 795 | force_charge = 1; | |
| 796 | iCharge[0] *= -1; | |
| 814 | force_charge = 1; | |
| 815 | iCharge[0] *= -1; | |
| 797 | 816 | } |
| 798 | 817 | break; |
| 799 | 818 | |
| 800 | 819 | case DISC_OP_AMP_OSCILLATOR_VCO_3 | DISC_OP_AMP_IS_NORTON: |
| 801 | 820 | /* we need to mix any bias and all modulation voltages together. */ |
| 802 | iCharge[0] = context->i | |
| 821 | iCharge[0] = context->i_fixed; | |
| 803 | 822 | v = DSS_OP_AMP_OSC__VMOD1 - OP_AMP_NORTON_VBE; |
| 804 | 823 | iCharge[0] += v / info->r1; |
| 805 | 824 | if (info->r6 != 0) |
| r3115 | r3116 | |
| 817 | 836 | /* Keep looping until all toggling in time sample is used up. */ |
| 818 | 837 | do |
| 819 | 838 | { |
| 820 | if ((context->flip_flop ^ context->flip_flop | |
| 839 | if ((context->flip_flop ^ context->flip_flop_xor) || force_charge) | |
| 821 | 840 | { |
| 822 | 841 | /* Charging */ |
| 823 | 842 | /* iC=C*dv/dt works out to dv=iC*dt/C */ |
| r3115 | r3116 | |
| 825 | 844 | dt = 0; |
| 826 | 845 | |
| 827 | 846 | /* has it charged past upper limit? */ |
| 828 | if (vCnext > context->threshold | |
| 847 | if (vCnext > context->threshold_high) | |
| 829 | 848 | { |
| 830 | context->flip_flop = context->flip_flop | |
| 849 | context->flip_flop = context->flip_flop_xor; | |
| 831 | 850 | toggled++; |
| 832 | 851 | if (force_charge) |
| 833 | 852 | { |
| 834 | 853 | /* we need to keep charging the cap to the max thereby disabling the circuit */ |
| 835 | if (vCnext > context->high_out_V) | |
| 836 | vCnext = context->high_out_V; | |
| 854 | if (vCnext > context->v_out_high) | |
| 855 | vCnext = context->v_out_high; | |
| 837 | 856 | } |
| 838 | 857 | else |
| 839 | 858 | { |
| 840 | 859 | /* calculate the overshoot time */ |
| 841 | dt = info->c * (vCnext - context->thresholdHigh) / iCharge[1]; | |
| 842 | vC = context->thresholdHigh; | |
| 860 | dt = info->c * (vCnext - context->threshold_high) / iCharge[1]; | |
| 861 | vC = context->threshold_high; | |
| 843 | 862 | } |
| 844 | 863 | } |
| 845 | 864 | } |
| r3115 | r3116 | |
| 847 | 866 | { |
| 848 | 867 | /* Discharging */ |
| 849 | 868 | vCnext = vC - (iCharge[0] * dt / info->c); |
| 850 | dt = 0; | |
| 869 | dt = 0; | |
| 851 | 870 | |
| 852 | 871 | /* has it discharged past lower limit? */ |
| 853 | if (vCnext < context->threshold | |
| 872 | if (vCnext < context->threshold_low) | |
| 854 | 873 | { |
| 855 | context->flip_flop = !context->flip_flop | |
| 874 | context->flip_flop = !context->flip_flop_xor; | |
| 856 | 875 | toggled++; |
| 857 | 876 | /* calculate the overshoot time */ |
| 858 | dt = info->c * (context->thresholdLow - vCnext) / iCharge[0]; | |
| 859 | vC = context->thresholdLow; | |
| 877 | dt = info->c * (context->threshold_low - vCnext) / iCharge[0]; | |
| 878 | vC = context->threshold_low; | |
| 860 | 879 | } |
| 861 | 880 | } |
| 862 | 881 | } while(dt); |
| 863 | 882 | |
| 864 | context->v | |
| 883 | context->v_cap = vCnext; | |
| 865 | 884 | |
| 866 | 885 | if (context->is_squarewave) |
| 867 | 886 | { |
| r3115 | r3116 | |
| 870 | 889 | /* squarewave to happen in the sample time causing it to be missed. */ |
| 871 | 890 | /* If we toggle 2 states we force the missed output for 1 sample. */ |
| 872 | 891 | /* If more then 2 states happen, there is no hope, the sample rate is just too low. */ |
| 873 | node->output[0] = context-> | |
| 892 | node->output[0] = context->v | |
| 874 | 893 | else |
| 875 | node->output[0] = context-> | |
| 894 | node->output[0] = context->v | |
| 876 | 895 | } |
| 877 | 896 | else |
| 878 | node->output[0] = context->v | |
| 897 | node->output[0] = context->v_cap; | |
| 879 | 898 | } |
| 880 | 899 | else |
| 881 | 900 | { |
| r3115 | r3116 | |
| 893 | 912 | int loop; |
| 894 | 913 | node_description *r_node; |
| 895 | 914 | |
| 896 | double i1 = 0; // inverting input current | |
| 897 | double i2 = 0; // non-inverting input current | |
| 915 | double i1 = 0; /* inverting input current */ | |
| 916 | double i2 = 0; /* non-inverting input current */ | |
| 898 | 917 | |
| 899 | 918 | /* link to resistor static or node values */ |
| 900 | r_info_ptr = &info->r1; | |
| 919 | r_info_ptr = &info->r1; | |
| 901 | 920 | r_context_ptr = &context->r1; |
| 902 | 921 | for (loop = 0; loop < 8; loop ++) |
| 903 | 922 | { |
| r3115 | r3116 | |
| 912 | 931 | r_context_ptr++; |
| 913 | 932 | } |
| 914 | 933 | |
| 915 | context->is_squarewave = (info->type & DISC_OP_AMP_OSCILLATOR_OUT_SQW); | |
| 916 | context->type = info->type & DISC_OP_AMP_OSCILLATOR_TYPE_MASK; | |
| 934 | context->is_squarewave = info->type & DISC_OP_AMP_OSCILLATOR_OUT_SQW; | |
| 935 | context->type = info->type & DISC_OP_AMP_OSCILLATOR_TYPE_MASK; | |
| 917 | 936 | |
| 918 | 937 | switch (context->type) |
| 919 | 938 | { |
| 920 | 939 | case DISC_OP_AMP_OSCILLATOR_VCO_1: |
| 921 | 940 | /* The charge rates vary depending on vMod so they are not precalculated. */ |
| 922 | 941 | /* Charges while FlipFlop High */ |
| 923 | context->flip_flop | |
| 942 | context->flip_flop_xor = 0; | |
| 924 | 943 | /* Work out the Non-inverting Schmitt thresholds. */ |
| 925 | 944 | context->temp1 = (info->vP / 2) / info->r4; |
| 926 | 945 | context->temp2 = (info->vP - OP_AMP_VP_RAIL_OFFSET) / info->r3; |
| 927 | 946 | context->temp3 = 1.0 / (1.0 / info->r3 + 1.0 / info->r4); |
| 928 | context->thresholdLow = context->temp1 * context->temp3; | |
| 929 | context->thresholdHigh = (context->temp1 + context->temp2) * context->temp3; | |
| 947 | context->threshold_low = context->temp1 * context->temp3; | |
| 948 | context->threshold_high = (context->temp1 + context->temp2) * context->temp3; | |
| 930 | 949 | /* There is no charge on the cap so the schmitt goes high at init. */ |
| 931 | 950 | context->flip_flop = 1; |
| 932 | 951 | /* Setup some commonly used stuff */ |
| 933 | context->temp1 = info->r5 / (info->r2 + info->r5); // voltage ratio across r5 | |
| 934 | context->temp2 = info->r6 / (info->r1 + info->r6); // voltage ratio across r6 | |
| 935 | context->temp3 = 1.0 / (1.0 / info->r1 + 1.0 / info->r6); // input resistance when r6 switched in | |
| 952 | context->temp1 = info->r5 / (info->r2 + info->r5); /* voltage ratio across r5 */ | |
| 953 | context->temp2 = info->r6 / (info->r1 + info->r6); /* voltage ratio across r6 */ | |
| 954 | context->temp3 = 1.0 / (1.0 / info->r1 + 1.0 / info->r6); /* input resistance when r6 switched in */ | |
| 936 | 955 | break; |
| 937 | 956 | |
| 938 | 957 | case DISC_OP_AMP_OSCILLATOR_1 | DISC_OP_AMP_IS_NORTON: |
| 939 | 958 | /* Charges while FlipFlop High */ |
| 940 | context->flip_flop | |
| 959 | context->flip_flop_xor = 0; | |
| 941 | 960 | /* There is no charge on the cap so the schmitt inverter goes high at init. */ |
| 942 | 961 | context->flip_flop = 1; |
| 943 | 962 | break; |
| 944 | 963 | |
| 945 | 964 | case DISC_OP_AMP_OSCILLATOR_VCO_1 | DISC_OP_AMP_IS_NORTON: |
| 946 | 965 | /* Charges while FlipFlop Low */ |
| 947 | context->flip_flop | |
| 966 | context->flip_flop_xor = 1; | |
| 948 | 967 | /* There is no charge on the cap so the schmitt goes low at init. */ |
| 949 | 968 | context->flip_flop = 0; |
| 950 | 969 | /* The charge rates vary depending on vMod so they are not precalculated. */ |
| 951 | 970 | /* But we can precalculate the fixed currents. */ |
| 952 | context->iFixed = 0; | |
| 953 | if (info->r6 != 0) context->iFixed += info->vP / info->r6; | |
| 954 | context->iFixed += OP_AMP_NORTON_VBE / info->r1; | |
| 955 | context->iFixed += OP_AMP_NORTON_VBE / info->r2; | |
| 971 | context->i_fixed = 0; | |
| 972 | if (info->r6 != 0) context->i_fixed += info->vP / info->r6; | |
| 973 | context->i_fixed += OP_AMP_NORTON_VBE / info->r1; | |
| 974 | context->i_fixed += OP_AMP_NORTON_VBE / info->r2; | |
| 956 | 975 | /* Work out the input resistance to be used later to calculate the Millman voltage. */ |
| 957 | context->rTotal = 1.0 / info->r1 + 1.0 / info->r2 + 1.0 / info->r7; | |
| 958 | if (info->r6) context->rTotal += 1.0 / info->r6; | |
| 959 | if (info->r8) context->rTotal += 1.0 / info->r8; | |
| 960 | context->rTotal = 1.0 / context->rTotal; | |
| 976 | context->r_total = 1.0 / info->r1 + 1.0 / info->r2 + 1.0 / info->r7; | |
| 977 | if (info->r6) context->r_total += 1.0 / info->r6; | |
| 978 | if (info->r8) context->r_total += 1.0 / info->r8; | |
| 979 | context->r_total = 1.0 / context->r_total; | |
| 961 | 980 | /* Work out the Non-inverting Schmitt thresholds. */ |
| 962 | 981 | i1 = (info->vP - OP_AMP_NORTON_VBE) / info->r5; |
| 963 | 982 | i2 = (info->vP - OP_AMP_NORTON_VBE - OP_AMP_NORTON_VBE) / info->r4; |
| 964 | context->threshold | |
| 983 | context->threshold_low = (i1 - i2) * info->r3 + OP_AMP_NORTON_VBE; | |
| 965 | 984 | i2 = (0.0 - OP_AMP_NORTON_VBE) / info->r4; |
| 966 | context->threshold | |
| 985 | context->threshold_high = (i1 - i2) * info->r3 + OP_AMP_NORTON_VBE; | |
| 967 | 986 | break; |
| 968 | 987 | |
| 969 | 988 | case DISC_OP_AMP_OSCILLATOR_VCO_2 | DISC_OP_AMP_IS_NORTON: |
| 970 | 989 | /* Charges while FlipFlop High */ |
| 971 | context->flip_flop | |
| 990 | context->flip_flop_xor = 0; | |
| 972 | 991 | /* There is no charge on the cap so the schmitt inverter goes high at init. */ |
| 973 | 992 | context->flip_flop = 1; |
| 974 | 993 | /* Work out the charge rates. */ |
| r3115 | r3116 | |
| 977 | 996 | /* Work out the Inverting Schmitt thresholds. */ |
| 978 | 997 | i1 = (info->vP - OP_AMP_NORTON_VBE) / info->r5; |
| 979 | 998 | i2 = (0.0 - OP_AMP_NORTON_VBE) / info->r4; |
| 980 | context->threshold | |
| 999 | context->threshold_low = (i1 + i2) * info->r3 + OP_AMP_NORTON_VBE; | |
| 981 | 1000 | i2 = (info->vP - OP_AMP_NORTON_VBE - OP_AMP_NORTON_VBE) / info->r4; |
| 982 | context->threshold | |
| 1001 | context->threshold_high = (i1 + i2) * info->r3 + OP_AMP_NORTON_VBE; | |
| 983 | 1002 | break; |
| 984 | 1003 | |
| 985 | 1004 | case DISC_OP_AMP_OSCILLATOR_VCO_3 | DISC_OP_AMP_IS_NORTON: |
| 986 | 1005 | /* Charges while FlipFlop High */ |
| 987 | context->flip_flop | |
| 1006 | context->flip_flop_xor = 0; | |
| 988 | 1007 | /* There is no charge on the cap so the schmitt inverter goes high at init. */ |
| 989 | 1008 | context->flip_flop = 1; |
| 990 | 1009 | /* Work out the charge rates. */ |
| 991 | 1010 | /* The charge rates vary depending on vMod so they are not precalculated. */ |
| 992 | 1011 | /* But we can precalculate the fixed currents. */ |
| 993 | if (info->r7 != 0) context->i | |
| 1012 | if (info->r7 != 0) context->i_fixed = (info->vP - OP_AMP_NORTON_VBE) / info->r7; | |
| 994 | 1013 | context->temp1 = (info->vP - OP_AMP_NORTON_VBE - OP_AMP_NORTON_VBE) / info->r2; |
| 995 | 1014 | /* Work out the Inverting Schmitt thresholds. */ |
| 996 | 1015 | i1 = (info->vP - OP_AMP_NORTON_VBE) / info->r5; |
| 997 | 1016 | i2 = (0.0 - OP_AMP_NORTON_VBE) / info->r4; |
| 998 | context->threshold | |
| 1017 | context->threshold_low = (i1 + i2) * info->r3 + OP_AMP_NORTON_VBE; | |
| 999 | 1018 | i2 = (info->vP - OP_AMP_NORTON_VBE - OP_AMP_NORTON_VBE) / info->r4; |
| 1000 | context->threshold | |
| 1019 | context->threshold_high = (i1 + i2) * info->r3 + OP_AMP_NORTON_VBE; | |
| 1001 | 1020 | break; |
| 1002 | 1021 | } |
| 1003 | 1022 | |
| 1004 | context->high_out_V = info->vP - ((context->type & DISC_OP_AMP_IS_NORTON) ? OP_AMP_NORTON_VBE : OP_AMP_VP_RAIL_OFFSET); | |
| 1005 | context->vCap = 0; | |
| 1023 | context->v_out_high = info->vP - ((context->type & DISC_OP_AMP_IS_NORTON) ? OP_AMP_NORTON_VBE : OP_AMP_VP_RAIL_OFFSET); | |
| 1024 | context->v_cap = 0; | |
| 1006 | 1025 | |
| 1007 | 1026 | dss_op_amp_osc_step(node); |
| 1008 | 1027 | } |
| r3115 | r3116 | |
| 1033 | 1052 | |
| 1034 | 1053 | if(DSS_SAWTOOTHWAVE__ENABLE) |
| 1035 | 1054 | { |
| 1036 | node->output[0]=(context->type==0)?context->phase*(DSS_SAWTOOTHWAVE__AMP/(2.0*M_PI)):DSS_SAWTOOTHWAVE__AMP-(context->phase*(DSS_SAWTOOTHWAVE__AMP/(2.0*M_PI))); | |
| 1037 | node->output[0]-=DSS_SAWTOOTHWAVE__AMP/2.0; | |
| 1055 | node->output[0] = (context->type == 0) ? context->phase * (DSS_SAWTOOTHWAVE__AMP / (2.0 * M_PI)) : DSS_SAWTOOTHWAVE__AMP - (context->phase * (DSS_SAWTOOTHWAVE__AMP / (2.0 * M_PI))); | |
| 1056 | node->output[0] -= DSS_SAWTOOTHWAVE__AMP / 2.0; | |
| 1038 | 1057 | /* Add DC Bias component */ |
| 1039 | node->output[0]=node->output[0]+DSS_SAWTOOTHWAVE__BIAS; | |
| 1058 | node->output[0] = node->output[0] + DSS_SAWTOOTHWAVE__BIAS; | |
| 1040 | 1059 | } |
| 1041 | 1060 | else |
| 1042 | 1061 | { |
| 1043 | node->output[0]=0; | |
| 1062 | node->output[0] = 0; | |
| 1044 | 1063 | } |
| 1045 | 1064 | |
| 1046 | 1065 | /* Work out the phase step based on phase/freq & sample rate */ |
| r3115 | r3116 | |
| 1050 | 1069 | /* boils out to */ |
| 1051 | 1070 | /* phase step = (2Pi*output freq)/sample freq) */ |
| 1052 | 1071 | /* Also keep the new phasor in the 2Pi range. */ |
| 1053 | context->phase=fmod((context->phase+((2.0*M_PI*DSS_SAWTOOTHWAVE__FREQ)/discrete_current_context->sample_rate)),2.0*M_PI); | |
| 1072 | context->phase = fmod((context->phase + ((2.0 * M_PI * DSS_SAWTOOTHWAVE__FREQ) / discrete_current_context->sample_rate)), 2.0 * M_PI); | |
| 1054 | 1073 | } |
| 1055 | 1074 | |
| 1056 | 1075 | static void dss_sawtoothwave_reset(node_description *node) |
| r3115 | r3116 | |
| 1059 | 1078 | double start; |
| 1060 | 1079 | |
| 1061 | 1080 | /* Establish starting phase, convert from degrees to radians */ |
| 1062 | start=(DSS_SAWTOOTHWAVE__PHASE/360.0)*(2.0*M_PI); | |
| 1081 | start = (DSS_SAWTOOTHWAVE__PHASE / 360.0) * (2.0 * M_PI); | |
| 1063 | 1082 | /* Make sure its always mod 2Pi */ |
| 1064 | context->phase=fmod(start,2.0*M_PI); | |
| 1083 | context->phase=fmod(start, 2.0 * M_PI); | |
| 1065 | 1084 | |
| 1066 | 1085 | /* Invert gradient depending on sawtooth type /|/|/|/|/| or |\|\|\|\|\ */ |
| 1067 | context->type=(DSS_SAWTOOTHWAVE__GRAD)?1:0; | |
| 1086 | context->type=(DSS_SAWTOOTHWAVE__GRAD) ? 1 : 0; | |
| 1068 | 1087 | |
| 1069 | 1088 | /* Step the node to set the output */ |
| 1070 | 1089 | dss_sawtoothwave_step(node); |
| r3115 | r3116 | |
| 1089 | 1108 | |
| 1090 | 1109 | static void dss_schmitt_osc_step(node_description *node) |
| 1091 | 1110 | { |
| 1092 | const discrete_schmitt_osc_desc *info = node->custom; | |
| 1093 | struct dss_schmitt_osc_context *context = node->context; | |
| 1111 | const discrete_schmitt_osc_desc *info = node->custom; | |
| 1112 | struct dss_schmitt_osc_context *context = node->context; | |
| 1094 | 1113 | |
| 1095 | double supply, v | |
| 1114 | double supply, v_cap, new_vCap, t, exponent; | |
| 1096 | 1115 | |
| 1097 | 1116 | /* We will always oscillate. The enable just affects the output. */ |
| 1098 | v | |
| 1117 | v_cap = context->v_cap; | |
| 1099 | 1118 | exponent = context->exponent; |
| 1100 | 1119 | |
| 1101 | 1120 | /* Keep looping until all toggling in time sample is used up. */ |
| r3115 | r3116 | |
| 1105 | 1124 | /* The charging voltage to the cap is the sum of the input voltage and the gate |
| 1106 | 1125 | * output voltage in the ratios determined by their resistors in a divider network. |
| 1107 | 1126 | * The input voltage is selectable as straight voltage in or logic level that will |
| 1108 | * use vGate as its voltage. Note that ratioIn is just the ratio of the total | |
| 1109 | * voltage and needs to be multipled by the input voltage. ratioFeedback has | |
| 1127 | * use vGate as its voltage. Note that ration_in is just the ratio of the total | |
| 1128 | * voltage and needs to be multipled by the input voltage. ratio_feedback has | |
| 1110 | 1129 | * already been multiplied by vGate to save time because that voltage never changes. */ |
| 1111 | supply = context->input_is_voltage ? context->ratioIn * DSS_SCHMITT_OSC__VIN : (DSS_SCHMITT_OSC__VIN ? context->ratioIn * info->vGate : 0); | |
| 1112 | supply += (context->state ? context->ratioFeedback : 0); | |
| 1113 | new_vCap = vCap + ((supply - vCap) * exponent); | |
| 1130 | supply = context->input_is_voltage ? context->ration_in * DSS_SCHMITT_OSC__VIN : (DSS_SCHMITT_OSC__VIN ? context->ration_in * info->vGate : 0); | |
| 1131 | supply += (context->state ? context->ratio_feedback : 0); | |
| 1132 | new_vCap = v_cap + ((supply - v_cap) * exponent); | |
| 1114 | 1133 | if (context->state) |
| 1115 | 1134 | { |
| 1116 | 1135 | /* Charging */ |
| r3115 | r3116 | |
| 1118 | 1137 | if (new_vCap > info->trshRise) |
| 1119 | 1138 | { |
| 1120 | 1139 | /* calculate the overshoot time */ |
| 1121 | t = context->rc * log(1.0 / (1.0 - ((new_vCap - info->trshRise) / (info->vGate - v | |
| 1140 | t = context->rc * log(1.0 / (1.0 - ((new_vCap - info->trshRise) / (info->vGate - v_cap)))); | |
| 1122 | 1141 | /* calculate new exponent because of reduced time */ |
| 1123 | 1142 | exponent = 1.0 - exp(-t / context->rc); |
| 1124 | v | |
| 1143 | v_cap = new_vCap = info->trshRise; | |
| 1125 | 1144 | context->state = 0; |
| 1126 | 1145 | } |
| 1127 | 1146 | } |
| r3115 | r3116 | |
| 1132 | 1151 | if (new_vCap < info->trshFall) |
| 1133 | 1152 | { |
| 1134 | 1153 | /* calculate the overshoot time */ |
| 1135 | t = context->rc * log(1.0 / (1.0 - ((info->trshFall - new_vCap) / v | |
| 1154 | t = context->rc * log(1.0 / (1.0 - ((info->trshFall - new_vCap) / v_cap))); | |
| 1136 | 1155 | /* calculate new exponent because of reduced time */ |
| 1137 | 1156 | exponent = 1.0 - exp(-t / context->rc); |
| 1138 | v | |
| 1157 | v_cap = new_vCap = info->trshFall; | |
| 1139 | 1158 | context->state = 1; |
| 1140 | 1159 | } |
| 1141 | 1160 | } |
| 1142 | 1161 | } while(t); |
| 1143 | 1162 | |
| 1144 | context->v | |
| 1163 | context->v_cap = new_vCap; | |
| 1145 | 1164 | |
| 1146 | 1165 | switch (context->enable_type) |
| 1147 | 1166 | { |
| r3115 | r3116 | |
| 1163 | 1182 | |
| 1164 | 1183 | static void dss_schmitt_osc_reset(node_description *node) |
| 1165 | 1184 | { |
| 1166 | const discrete_schmitt_osc_desc *info = node->custom; | |
| 1167 | struct dss_schmitt_osc_context *context = node->context; | |
| 1185 | const discrete_schmitt_osc_desc *info = node->custom; | |
| 1186 | struct dss_schmitt_osc_context *context = node->context; | |
| 1168 | 1187 | double rSource; |
| 1169 | 1188 | |
| 1170 | context->enable_type = info->options & DISC_SCHMITT_OSC_ENAB_MASK; | |
| 1189 | context->enable_type = info->options & DISC_SCHMITT_OSC_ENAB_MASK; | |
| 1171 | 1190 | context->input_is_voltage = (info->options & DISC_SCHMITT_OSC_IN_IS_VOLTAGE) ? 1 : 0; |
| 1172 | 1191 | |
| 1173 | 1192 | /* The 2 resistors make a voltage divider, so their ratios add together |
| 1174 | 1193 | * to make the charging voltage. */ |
| 1175 | context->ratioIn = info->rFeedback / (info->rIn + info->rFeedback); | |
| 1176 | context->ratioFeedback = info->rIn / (info->rIn + info->rFeedback) * info->vGate; | |
| 1194 | context->ration_in = info->rFeedback / (info->rIn + info->rFeedback); | |
| 1195 | context->ratio_feedback = info->rIn / (info->rIn + info->rFeedback) * info->vGate; | |
| 1177 | 1196 | |
| 1178 | 1197 | /* The voltage source resistance works out to the 2 resistors in parallel. |
| 1179 | 1198 | * So use this for the RC charge constant. */ |
| 1180 | rSource = 1.0 / ((1.0 / info->rIn) + (1.0 / info->rFeedback)); | |
| 1199 | rSource = 1.0 / ((1.0 / info->rIn) + (1.0 / info->rFeedback)); | |
| 1181 | 1200 | context->rc = rSource * info->c; |
| 1182 | 1201 | context->exponent = -1.0 / (context->rc * discrete_current_context->sample_rate); |
| 1183 | 1202 | context->exponent = 1.0 - exp(context->exponent); |
| 1184 | 1203 | |
| 1185 | 1204 | /* Cap is at 0V on power up. Causing output to be high. */ |
| 1186 | context->v | |
| 1205 | context->v_cap = 0; | |
| 1187 | 1206 | context->state = 1; |
| 1188 | 1207 | |
| 1189 | 1208 | node->output[0] = info->options ? 0 : DSS_SCHMITT_OSC__AMP; |
| r3115 | r3116 | |
| 1214 | 1233 | /* Set the output */ |
| 1215 | 1234 | if(DSS_SINEWAVE__ENABLE) |
| 1216 | 1235 | { |
| 1217 | node->output[0]=(DSS_SINEWAVE__AMPL/2.0) * sin(context->phase); | |
| 1236 | node->output[0] = (DSS_SINEWAVE__AMPL / 2.0) * sin(context->phase); | |
| 1218 | 1237 | /* Add DC Bias component */ |
| 1219 | node->output[0]=node->output[0]+DSS_SINEWAVE__BIAS; | |
| 1238 | node->output[0] = node->output[0] + DSS_SINEWAVE__BIAS; | |
| 1220 | 1239 | } |
| 1221 | 1240 | else |
| 1222 | 1241 | { |
| 1223 | node->output[0]=0; | |
| 1242 | node->output[0] = 0; | |
| 1224 | 1243 | } |
| 1225 | 1244 | |
| 1226 | 1245 | /* Work out the phase step based on phase/freq & sample rate */ |
| r3115 | r3116 | |
| 1230 | 1249 | /* boils out to */ |
| 1231 | 1250 | /* phase step = (2Pi*output freq)/sample freq) */ |
| 1232 | 1251 | /* Also keep the new phasor in the 2Pi range. */ |
| 1233 | context->phase=fmod((context->phase+((2.0*M_PI*DSS_SINEWAVE__FREQ)/discrete_current_context->sample_rate)),2.0*M_PI); | |
| 1252 | context->phase=fmod((context->phase + ((2.0 * M_PI * DSS_SINEWAVE__FREQ) / discrete_current_context->sample_rate)), 2.0 * M_PI); | |
| 1234 | 1253 | } |
| 1235 | 1254 | |
| 1236 | 1255 | static void dss_sinewave_reset(node_description *node) |
| r3115 | r3116 | |
| 1239 | 1258 | double start; |
| 1240 | 1259 | |
| 1241 | 1260 | /* Establish starting phase, convert from degrees to radians */ |
| 1242 | start=(DSS_SINEWAVE__PHASE/360.0)*(2.0*M_PI); | |
| 1261 | start = (DSS_SINEWAVE__PHASE / 360.0) * (2.0 * M_PI); | |
| 1243 | 1262 | /* Make sure its always mod 2Pi */ |
| 1244 | context->phase=fmod(start,2.0*M_PI); | |
| 1263 | context->phase = fmod(start, 2.0 * M_PI); | |
| 1245 | 1264 | /* Step the output to make it correct */ |
| 1246 | 1265 | dss_sinewave_step(node); |
| 1247 | 1266 | } |
| r3115 | r3116 | |
| 1277 | 1296 | if(DSS_SQUAREWAVE__ENABLE) |
| 1278 | 1297 | { |
| 1279 | 1298 | if(context->phase>context->trigger) |
| 1280 | node->output[0]= | |
| 1299 | node->output[0] = DSS_SQUAREWAVE__AMP /2.0 | |
| 1281 | 1300 | else |
| 1282 | node->output[0]=- | |
| 1301 | node->output[0] =- DSS_SQUAREWAVE__AMP / 2.0 | |
| 1283 | 1302 | |
| 1284 | 1303 | /* Add DC Bias component */ |
| 1285 | node->output[0]=node->output[0]+DSS_SQUAREWAVE__BIAS; | |
| 1304 | node->output[0] = node->output[0] + DSS_SQUAREWAVE__BIAS; | |
| 1286 | 1305 | } |
| 1287 | 1306 | else |
| 1288 | 1307 | { |
| 1289 | node->output[0]=0; | |
| 1308 | node->output[0] = 0; | |
| 1290 | 1309 | } |
| 1291 | 1310 | |
| 1292 | 1311 | /* Work out the phase step based on phase/freq & sample rate */ |
| r3115 | r3116 | |
| 1296 | 1315 | /* boils out to */ |
| 1297 | 1316 | /* phase step = (2Pi*output freq)/sample freq) */ |
| 1298 | 1317 | /* Also keep the new phasor in the 2Pi range. */ |
| 1299 | context->phase=fmod( | |
| 1318 | context->phase=fmod( | |
| 1300 | 1319 | } |
| 1301 | 1320 | |
| 1302 | 1321 | static void dss_squarewave_reset(node_description *node) |
| r3115 | r3116 | |
| 1305 | 1324 | double start; |
| 1306 | 1325 | |
| 1307 | 1326 | /* Establish starting phase, convert from degrees to radians */ |
| 1308 | start=(DSS_SQUAREWAVE__PHASE/360.0)*(2.0*M_PI); | |
| 1327 | start = (DSS_SQUAREWAVE__PHASE / 360.0) * (2.0 * M_PI); | |
| 1309 | 1328 | /* Make sure its always mod 2Pi */ |
| 1310 | context->phase=fmod(start,2.0*M_PI); | |
| 1329 | context->phase = fmod(start, 2.0 * M_PI); | |
| 1311 | 1330 | |
| 1312 | 1331 | /* Step the output */ |
| 1313 | 1332 | dss_squarewave_step(node); |
| r3115 | r3116 | |
| 1336 | 1355 | { |
| 1337 | 1356 | struct dss_squarewfix_context *context = node->context; |
| 1338 | 1357 | |
| 1339 | context->t | |
| 1358 | context->t_left -= context->sample_step; | |
| 1340 | 1359 | |
| 1341 | 1360 | /* The enable input only curtails output, phase rotation still occurs */ |
| 1342 | while (context->t | |
| 1361 | while (context->t_left <= 0) | |
| 1343 | 1362 | { |
| 1344 | 1363 | context->flip_flop = context->flip_flop ? 0 : 1; |
| 1345 | context->t | |
| 1364 | context->t_left += context->flip_flop ? context->t_on : context->t_off; | |
| 1346 | 1365 | } |
| 1347 | 1366 | |
| 1348 | 1367 | if(DSS_SQUAREWFIX__ENABLE) |
| 1349 | 1368 | { |
| 1350 | 1369 | /* Add gain and DC Bias component */ |
| 1351 | 1370 | |
| 1352 | context->tOff = 1.0 / DSS_SQUAREWFIX__FREQ; /* cycle time */ | |
| 1353 | context->tOn = context->tOff * (DSS_SQUAREWFIX__DUTY / 100.0); | |
| 1354 | context->tOff -= context->tOn; | |
| 1371 | context->t_off = 1.0 / DSS_SQUAREWFIX__FREQ; /* cycle time */ | |
| 1372 | context->t_on = context->t_off * (DSS_SQUAREWFIX__DUTY / 100.0); | |
| 1373 | context->t_off -= context->t_on; | |
| 1355 | 1374 | |
| 1356 | 1375 | node->output[0] = (context->flip_flop ? DSS_SQUAREWFIX__AMP / 2.0 : -(DSS_SQUAREWFIX__AMP / 2.0)) + DSS_SQUAREWFIX__BIAS; |
| 1357 | 1376 | } |
| r3115 | r3116 | |
| 1365 | 1384 | { |
| 1366 | 1385 | struct dss_squarewfix_context *context = node->context; |
| 1367 | 1386 | |
| 1368 | context->sampleStep = 1.0 / discrete_current_context->sample_rate; | |
| 1369 | context->flip_flop = 1; | |
| 1387 | context->sample_step = 1.0 / discrete_current_context->sample_rate; | |
| 1388 | context->flip_flop = 1; | |
| 1370 | 1389 | |
| 1371 | 1390 | /* Do the intial time shift and convert freq to off/on times */ |
| 1372 | context->tOff = 1.0 / DSS_SQUAREWFIX__FREQ; /* cycle time */ | |
| 1373 | context->tLeft = DSS_SQUAREWFIX__PHASE / 360.0; /* convert start phase to % */ | |
| 1374 | context->tLeft = context->tLeft - (int)context->tLeft; /* keep % between 0 & 1 */ | |
| 1375 | context->tLeft = (context->tLeft < 0) ? 1.0 + context->tLeft : context->tLeft; /* if - then flip to + phase */ | |
| 1376 | context->tLeft *= context->tOff; | |
| 1377 | context->tOn = context->tOff * (DSS_SQUAREWFIX__DUTY / 100.0); | |
| 1378 | context->tOff -= context->tOn; | |
| 1391 | context->t_off = 1.0 / DSS_SQUAREWFIX__FREQ; /* cycle time */ | |
| 1392 | context->t_left = DSS_SQUAREWFIX__PHASE / 360.0; /* convert start phase to % */ | |
| 1393 | context->t_left = context->t_left - (int)context->t_left; /* keep % between 0 & 1 */ | |
| 1394 | context->t_left = (context->t_left < 0) ? 1.0 + context->t_left : context->t_left; /* if - then flip to + phase */ | |
| 1395 | context->t_left *= context->t_off; | |
| 1396 | context->t_on = context->t_off * (DSS_SQUAREWFIX__DUTY / 100.0); | |
| 1397 | context->t_off -= context->t_on; | |
| 1379 | 1398 | |
| 1380 | context->t | |
| 1399 | context->t_left = -context->t_left; | |
| 1381 | 1400 | |
| 1382 | 1401 | /* toggle output and work out intial time shift */ |
| 1383 | while (context->t | |
| 1402 | while (context->t_left <= 0) | |
| 1384 | 1403 | { |
| 1385 | 1404 | context->flip_flop = context->flip_flop ? 0 : 1; |
| 1386 | context->t | |
| 1405 | context->t_left += context->flip_flop ? context->t_on : context->t_off; | |
| 1387 | 1406 | } |
| 1388 | 1407 | |
| 1389 | 1408 | /* Step the output */ |
| r3115 | r3116 | |
| 1418 | 1437 | if(DSS_SQUAREWAVE2__ENABLE) |
| 1419 | 1438 | { |
| 1420 | 1439 | /* Establish trigger phase from time periods */ |
| 1421 | context->trigger=(DSS_SQUAREWAVE2__T_OFF / (DSS_SQUAREWAVE2__T_OFF + DSS_SQUAREWAVE2__T_ON)) * (2.0 * M_PI); | |
| 1440 | context->trigger = (DSS_SQUAREWAVE2__T_OFF / (DSS_SQUAREWAVE2__T_OFF + DSS_SQUAREWAVE2__T_ON)) * (2.0 * M_PI); | |
| 1422 | 1441 | |
| 1423 | 1442 | /* Work out the phase step based on phase/freq & sample rate */ |
| 1424 | 1443 | /* The enable input only curtails output, phase rotation */ |
| r3115 | r3116 | |
| 1432 | 1451 | context->phase = fmod(newphase, 2.0 * M_PI); |
| 1433 | 1452 | |
| 1434 | 1453 | if(context->phase>context->trigger) |
| 1435 | node->output[0]= | |
| 1454 | node->output[0] = DSS_SQUAREWAVE2__AMP / 2.0 | |
| 1436 | 1455 | else |
| 1437 | node->output[0]=- | |
| 1456 | node->output[0] = - | |
| 1438 | 1457 | |
| 1439 | 1458 | /* Add DC Bias component */ |
| 1440 | 1459 | node->output[0] = node->output[0] + DSS_SQUAREWAVE2__BIAS; |
| 1441 | 1460 | } |
| 1442 | 1461 | else |
| 1443 | 1462 | { |
| 1444 | node->output[0]=0; | |
| 1463 | node->output[0] = 0; | |
| 1445 | 1464 | } |
| 1446 | 1465 | } |
| 1447 | 1466 | |
| r3115 | r3116 | |
| 1483 | 1502 | |
| 1484 | 1503 | INLINE double dss_inverter_tftab(node_description *node, double x) |
| 1485 | 1504 | { |
| 1486 | const discrete_inverter_osc_desc *info = node->custom; | |
| 1487 | struct dss_inverter_osc_context *context = node->context; | |
| 1505 | const discrete_inverter_osc_desc *info = node->custom; | |
| 1506 | struct dss_inverter_osc_context *context = node->context; | |
| 1488 | 1507 | |
| 1489 | 1508 | x = x / info->vB; |
| 1490 | if (x>0) | |
| 1491 | return info->vB * exp(-context->tf_a * pow(x,context->tf_b)); | |
| 1509 | if (x > 0) | |
| 1510 | return info->vB * exp(-context->tf_a * pow(x, context->tf_b)); | |
| 1492 | 1511 | else |
| 1493 | 1512 | return info->vB; |
| 1494 | 1513 | } |
| 1495 | 1514 | |
| 1496 | 1515 | INLINE double dss_inverter_tf(node_description *node, double x) |
| 1497 | 1516 | { |
| 1498 | const discrete_inverter_osc_desc *info = node->custom; | |
| 1499 | struct dss_inverter_osc_context *context = node->context; | |
| 1517 | const discrete_inverter_osc_desc *info = node->custom; | |
| 1518 | struct dss_inverter_osc_context *context = node->context; | |
| 1519 | ||
| 1500 | 1520 | if (x < 0.0) |
| 1501 | 1521 | return info->vB; |
| 1502 | 1522 | else if (x <= info->vB) |
| 1503 | return context->tf_tab[(int)((double)(DSS_INV_TAB_SIZE-1) * x / info->vB)]; | |
| 1523 | return context->tf_tab[(int)((double)(DSS_INV_TAB_SIZE - 1) * x / info->vB)]; | |
| 1504 | 1524 | else |
| 1505 | return context->tf_tab[DSS_INV_TAB_SIZE-1]; | |
| 1525 | return context->tf_tab[DSS_INV_TAB_SIZE - 1]; | |
| 1506 | 1526 | } |
| 1507 | 1527 | |
| 1508 | 1528 | static void dss_inverter_osc_step(node_description *node) |
| 1509 | 1529 | { |
| 1510 | struct dss_inverter_osc_context *context = node->context; | |
| 1511 | const discrete_inverter_osc_desc *info = node->custom; | |
| 1512 | double diff,vG1,vG2, vG3, vI; | |
| 1530 | struct dss_inverter_osc_context *context = node->context; | |
| 1531 | const discrete_inverter_osc_desc *info = node->custom; | |
| 1532 | ||
| 1533 | double diff, vG1, vG2, vG3, vI; | |
| 1513 | 1534 | double vMix, rMix; |
| 1514 | 1535 | |
| 1515 | 1536 | /* Get new state */ |
| 1516 | vI = context->v | |
| 1537 | vI = context->v_cap + context->v_g2_old; | |
| 1517 | 1538 | switch (info->options & DISC_OSC_INVERTER_TYPE_MASK) |
| 1518 | 1539 | { |
| 1519 | 1540 | case DISC_OSC_INVERTER_IS_TYPE1: |
| 1520 | 1541 | case DISC_OSC_INVERTER_IS_TYPE3: |
| 1521 | vG1 = dss_inverter_tf(node,vI); | |
| 1522 | vG2 = dss_inverter_tf(node,vG1); | |
| 1523 | vG3 = dss_inverter_tf(node,vG2); | |
| 1542 | vG1 = dss_inverter_tf(node, vI); | |
| 1543 | vG2 = dss_inverter_tf(node, vG1); | |
| 1544 | vG3 = dss_inverter_tf(node, vG2); | |
| 1524 | 1545 | break; |
| 1525 | 1546 | case DISC_OSC_INVERTER_IS_TYPE2: |
| 1526 | 1547 | vG1 = 0; |
| 1527 | vG3 = dss_inverter_tf(node,vI); | |
| 1528 | vG2 = dss_inverter_tf(node,vG3); | |
| 1548 | vG3 = dss_inverter_tf(node, vI); | |
| 1549 | vG2 = dss_inverter_tf(node, vG3); | |
| 1529 | 1550 | break; |
| 1530 | 1551 | case DISC_OSC_INVERTER_IS_TYPE4: |
| 1531 | vI = MIN(DSS_INVERTER_OSC__ENABLE, vI + 0.7); | |
| 1552 | vI = MIN(DSS_INVERTER_OSC__ENABLE, vI + 0.7); | |
| 1532 | 1553 | vG1 = 0; |
| 1533 | vG3 = dss_inverter_tf(node,vI); | |
| 1534 | vG2 = dss_inverter_tf(node,vG3); | |
| 1554 | vG3 = dss_inverter_tf(node, vI); | |
| 1555 | vG2 = dss_inverter_tf(node, vG3); | |
| 1535 | 1556 | break; |
| 1536 | 1557 | case DISC_OSC_INVERTER_IS_TYPE5: |
| 1537 | vI = MAX(DSS_INVERTER_OSC__ENABLE, vI - 0.7); | |
| 1558 | vI = MAX(DSS_INVERTER_OSC__ENABLE, vI - 0.7); | |
| 1538 | 1559 | vG1 = 0; |
| 1539 | 1560 | vG3 = dss_inverter_tf(node,vI); |
| 1540 | 1561 | vG2 = dss_inverter_tf(node,vG3); |
| r3115 | r3116 | |
| 1551 | 1572 | { |
| 1552 | 1573 | vI = MAX(vI, (- info->clamp)); |
| 1553 | 1574 | vI = MIN(vI, info->vB + info->clamp); |
| 1554 | diff = vG3 * (context->Rp / (context->Rp + context->R1)) | |
| 1555 | - (context->vCap + vG2) | |
| 1556 | + vI*(context->R1 / (context->Rp + context->R1)); | |
| 1575 | diff = vG3 * (context->rp / (context->rp + context->r1)) | |
| 1576 | - (context->v_cap + vG2) | |
| 1577 | + vI*(context->r1 / (context->rp + context->r1)); | |
| 1557 | 1578 | diff = diff - diff * context->wc; |
| 1558 | 1579 | } |
| 1559 | 1580 | else |
| 1560 | 1581 | { |
| 1561 | diff = vG3 - (context->v | |
| 1582 | diff = vG3 - (context->v_cap + vG2); | |
| 1562 | 1583 | diff = diff - diff * context->w; |
| 1563 | 1584 | } |
| 1564 | 1585 | break; |
| r3115 | r3116 | |
| 1568 | 1589 | vI = MAX(vI, (- info->clamp)); |
| 1569 | 1590 | vI = MIN(vI, info->vB + info->clamp); |
| 1570 | 1591 | } |
| 1571 | // FIXME handle R2 = 0 | |
| 1572 | rMix = (context->R1 * context->R2) / (context->R1 + context->R2); | |
| 1573 | vMix = rMix* ((vG3-vG2) / context->R1 + (DSS_INVERTER_OSC__MOD-vG2) / context->R2); | |
| 1592 | /* FIXME handle r2 = 0 */ | |
| 1593 | rMix = (context->r1 * context->r2) / (context->r1 + context->r2); | |
| 1594 | vMix = rMix* ((vG3 - vG2) / context->r1 + (DSS_INVERTER_OSC__MOD-vG2) / context->r2); | |
| 1574 | 1595 | if (vMix < (vI-vG2-0.7)) |
| 1575 | 1596 | { |
| 1576 | rMix = 1.0/rMix + 1.0/context-> | |
| 1597 | rMix = 1.0 / rMix + 1.0 / context->rp; | |
| 1577 | 1598 | rMix = 1.0 / rMix; |
| 1578 | vMix = rMix* ( (vG3-vG2) / context-> | |
| 1599 | vMix = rMix* ( (vG3-vG2) / context->r1 + (DSS_INVERTER_OSC__MOD-vG2) / context->r2 + (vI-0.7-vG2)/context->rp); | |
| 1579 | 1600 | } |
| 1580 | diff = vMix - context->vCap; | |
| 1581 | diff = diff - diff * exp(-discrete_current_context->sample_time/(context->C * rMix)); | |
| 1601 | diff = vMix - context->v_cap; | |
| 1602 | diff = diff - diff * exp(-discrete_current_context->sample_time / (context->c * rMix)); | |
| 1582 | 1603 | break; |
| 1583 | 1604 | case DISC_OSC_INVERTER_IS_TYPE5: |
| 1584 | 1605 | if ((info->clamp >= 0.0) && ((vI< - info->clamp) || (vI> info->vB+info->clamp))) |
| r3115 | r3116 | |
| 1586 | 1607 | vI = MAX(vI, (- info->clamp)); |
| 1587 | 1608 | vI = MIN(vI, info->vB + info->clamp); |
| 1588 | 1609 | } |
| 1589 | // FIXME handle R2 = 0 | |
| 1590 | rMix = (context->R1 * context->R2) / (context->R1 + context->R2); | |
| 1591 | vMix = rMix* ((vG3-vG2) / context->R1 + (DSS_INVERTER_OSC__MOD-vG2) / context->R2); | |
| 1592 | if (vMix > (vI-vG2+0.7)) | |
| 1610 | /* FIXME handle r2 = 0 */ | |
| 1611 | rMix = (context->r1 * context->r2) / (context->r1 + context->r2); | |
| 1612 | vMix = rMix* ((vG3 - vG2) / context->r1 + (DSS_INVERTER_OSC__MOD-vG2) / context->r2); | |
| 1613 | if (vMix > (vI -vG2 +0.7)) | |
| 1593 | 1614 | { |
| 1594 | rMix = 1.0/rMix + 1.0/context-> | |
| 1615 | rMix = 1.0 / rMix + 1.0/context->rp; | |
| 1595 | 1616 | rMix = 1.0 / rMix; |
| 1596 | vMix = rMix* ( (vG3-vG2) / context-> | |
| 1617 | vMix = rMix* ( (vG3 - vG2) / context->r1 + (DSS_INVERTER_OSC__MOD-vG2) / context->r2 + (vI+0.7-vG2)/context->rp); | |
| 1597 | 1618 | } |
| 1598 | diff = vMix - context->vCap; | |
| 1599 | diff = diff - diff * exp(-discrete_current_context->sample_time/(context->C * rMix)); | |
| 1619 | diff = vMix - context->v_cap; | |
| 1620 | diff = diff - diff * exp(-discrete_current_context->sample_time/(context->c * rMix)); | |
| 1600 | 1621 | break; |
| 1601 | 1622 | default: |
| 1602 | 1623 | fatalerror("DISCRETE_INVERTER_OSC - Wrong type on NODE_%02d", node->node - NODE_00); |
| 1603 | 1624 | } |
| 1604 | context->vCap += diff; | |
| 1605 | context->vG2_old = vG2; | |
| 1606 | if ((info->options & DISC_OSC_INVERTER_TYPE_MASK)==DISC_OSC_INVERTER_IS_TYPE3) | |
| 1625 | context->v_cap += diff; | |
| 1626 | context->v_g2_old = vG2; | |
| 1627 | if ((info->options & DISC_OSC_INVERTER_TYPE_MASK) == DISC_OSC_INVERTER_IS_TYPE3) | |
| 1607 | 1628 | node->output[0] = vG1; |
| 1608 | 1629 | else |
| 1609 | 1630 | node->output[0] = vG3; |
| r3115 | r3116 | |
| 1613 | 1634 | |
| 1614 | 1635 | static void dss_inverter_osc_reset(node_description *node) |
| 1615 | 1636 | { |
| 1616 | struct dss_inverter_osc_context *context = node->context; | |
| 1617 | const discrete_inverter_osc_desc *info = node->custom; | |
| 1637 | struct dss_inverter_osc_context *context = node->context; | |
| 1638 | const discrete_inverter_osc_desc *info = node->custom; | |
| 1639 | ||
| 1618 | 1640 | int i; |
| 1619 | 1641 | |
| 1620 | 1642 | /* exponent */ |
| 1621 | context->w = exp(-discrete_current_context->sample_time / (DSS_INVERTER_OSC__RC * DSS_INVERTER_OSC__C)); | |
| 1643 | context->w = exp(-discrete_current_context->sample_time / (DSS_INVERTER_OSC__RC * DSS_INVERTER_OSC__C)); | |
| 1622 | 1644 | context->wc = exp(-discrete_current_context->sample_time / ((DSS_INVERTER_OSC__RC * DSS_INVERTER_OSC__RP) / (DSS_INVERTER_OSC__RP + DSS_INVERTER_OSC__RC) * DSS_INVERTER_OSC__C)); |
| 1623 | node->output[0] = 0; | |
| 1624 | context->vCap = 0; | |
| 1625 | context->vG2_old = 0; | |
| 1626 | context->Rp = DSS_INVERTER_OSC__RP; | |
| 1627 | context->R1 = DSS_INVERTER_OSC__RC; | |
| 1628 | context->R2 = DSS_INVERTER_OSC__R2; | |
| 1629 | context->C = DSS_INVERTER_OSC__C; | |
| 1645 | node->output[0] = 0; | |
| 1646 | context->v_cap = 0; | |
| 1647 | context->v_g2_old = 0; | |
| 1648 | context->rp = DSS_INVERTER_OSC__RP; | |
| 1649 | context->r1 = DSS_INVERTER_OSC__RC; | |
| 1650 | context->r2 = DSS_INVERTER_OSC__R2; | |
| 1651 | context->c = DSS_INVERTER_OSC__C; | |
| 1630 | 1652 | context->tf_b = (log(0.0 - log(info->vOutLow/info->vB)) - log(0.0 - log((info->vOutHigh/info->vB))) ) / log(info->vInRise / info->vInFall); |
| 1631 | 1653 | context->tf_a = log(0.0 - log(info->vOutLow/info->vB)) - context->tf_b * log(info->vInRise/info->vB); |
| 1632 | 1654 | context->tf_a = exp(context->tf_a); |
| 1633 | 1655 | |
| 1634 | 1656 | for (i = 0; i < DSS_INV_TAB_SIZE; i++) |
| 1635 | 1657 | { |
| 1636 | context->tf_tab[i] = dss_inverter_tftab(node, (double) | |
| 1658 | context->tf_tab[i] = dss_inverter_tftab(node, (double) | |
| 1637 | 1659 | } |
| 1638 | 1660 | } |
| 1639 | 1661 | |
| r3115 | r3116 | |
| 1660 | 1682 | |
| 1661 | 1683 | if(DSS_TRIANGLEWAVE__ENABLE) |
| 1662 | 1684 | { |
| 1663 | node->output[0]=context->phase < M_PI ? (DSS_TRIANGLEWAVE__AMP * (context->phase / (M_PI/2.0) - 1.0))/2.0 : | |
| 1664 | (DSS_TRIANGLEWAVE__AMP * (3.0 - context->phase / (M_PI/2.0)))/2.0 ; | |
| 1685 | node->output[0] = context->phase < M_PI ? (DSS_TRIANGLEWAVE__AMP * (context->phase / (M_PI / 2.0) - 1.0)) / 2.0 : | |
| 1686 | (DSS_TRIANGLEWAVE__AMP * (3.0 - context->phase / (M_PI / 2.0))) / 2.0 ; | |
| 1665 | 1687 | |
| 1666 | 1688 | /* Add DC Bias component */ |
| 1667 | node->output[0]=node->output[0]+DSS_TRIANGLEWAVE__BIAS; | |
| 1689 | node->output[0] = node->output[0] + DSS_TRIANGLEWAVE__BIAS; | |
| 1668 | 1690 | } |
| 1669 | 1691 | else |
| 1670 | 1692 | { |
| 1671 | node->output[0]=0; | |
| 1693 | node->output[0] = 0; | |
| 1672 | 1694 | } |
| 1673 | 1695 | |
| 1674 | 1696 | /* Work out the phase step based on phase/freq & sample rate */ |
| r3115 | r3116 | |
| 1678 | 1700 | /* boils out to */ |
| 1679 | 1701 | /* phase step = (2Pi*output freq)/sample freq) */ |
| 1680 | 1702 | /* Also keep the new phasor in the 2Pi range. */ |
| 1681 | context->phase=fmod((context->phase+((2.0*M_PI*DSS_TRIANGLEWAVE__FREQ)/discrete_current_context->sample_rate)),2.0*M_PI); | |
| 1703 | context->phase=fmod((context->phase + ((2.0 * M_PI * DSS_TRIANGLEWAVE__FREQ) / discrete_current_context->sample_rate)), 2.0 * M_PI); | |
| 1682 | 1704 | } |
| 1683 | 1705 | |
| 1684 | 1706 | static void dss_trianglewave_reset(node_description *node) |
| r3115 | r3116 | |
| 1687 | 1709 | double start; |
| 1688 | 1710 | |
| 1689 | 1711 | /* Establish starting phase, convert from degrees to radians */ |
| 1690 | start=(DSS_TRIANGLEWAVE__PHASE/360.0)*(2.0*M_PI); | |
| 1712 | start = (DSS_TRIANGLEWAVE__PHASE / 360.0) * (2.0 * M_PI); | |
| 1691 | 1713 | /* Make sure its always mod 2Pi */ |
| 1692 | context->phase=fmod(start,2.0*M_PI); | |
| 1714 | context->phase=fmod(start, 2.0 * M_PI); | |
| 1693 | 1715 | |
| 1694 | 1716 | /* Step to set the output */ |
| 1695 | 1717 | dss_trianglewave_step(node); |
| r3115 | r3116 | |
| 1709 | 1731 | |
| 1710 | 1732 | static void dss_adsrenv_step(node_description *node) |
| 1711 | 1733 | { |
| 1712 | / | |
| 1734 | /* struct dss_adsr_context *context = node->context; */ | |
| 1713 | 1735 | |
| 1714 | 1736 | if(DSS_ADSR__ENABLE) |
| 1715 | 1737 | { |
| 1716 | node->output[0]=0; | |
| 1738 | node->output[0] = 0; | |
| 1717 | 1739 | } |
| 1718 | 1740 | else |
| 1719 | 1741 | { |
| 1720 | node->output[0]=0; | |
| 1742 | node->output[0] = 0; | |
| 1721 | 1743 | } |
| 1722 | 1744 | } |
| 1723 | 1745 |
| r3115 | r3116 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | struct dst_op_amp_filt_context |
| 41 | 41 | { |
| 42 | int type; // What kind of filter | |
| 43 | int is_norton; // 1 = Norton op-amps | |
| 42 | int type; /* What kind of filter */ | |
| 43 | int is_norton; /* 1 = Norton op-amps */ | |
| 44 | 44 | double vRef; |
| 45 | 45 | double vP; |
| 46 | 46 | double vN; |
| 47 | double rTotal; // All input resistance in parallel. | |
| 48 | double iFixed; // Current supplied by r3 & r4 if used. | |
| 47 | double rTotal; /* All input resistance in parallel. */ | |
| 48 | double iFixed; /* Current supplied by r3 & r4 if used. */ | |
| 49 | 49 | double exponentC1; |
| 50 | 50 | double exponentC2; |
| 51 | 51 | double exponentC3; |
| 52 | double rRatio; // divide ratio of resistance network | |
| 53 | double vC1; // Charge on C1 | |
| 54 | double vC1b; // Charge on C1, part of C1 charge if needed | |
| 55 | double vC2; // Charge on C2 | |
| 56 | double vC3; // Charge on C2 | |
| 57 | double gain; // Gain of the filter | |
| 52 | double rRatio; /* divide ratio of resistance network */ | |
| 53 | double vC1; /* Charge on C1 */ | |
| 54 | double vC1b; /* Charge on C1, part of C1 charge if needed */ | |
| 55 | double vC2; /* Charge on C2 */ | |
| 56 | double vC3; /* Charge on C2 */ | |
| 57 | double gain; /* Gain of the filter */ | |
| 58 | 58 | double x1, x2; /* x[k-1], x[k-2], previous 2 input values */ |
| 59 | 59 | double y1, y2; /* y[k-1], y[k-2], previous 2 output values */ |
| 60 | 60 | double a1,a2; /* digital filter coefficients, denominator */ |
| r3115 | r3116 | |
| 64 | 64 | struct dst_rcdisc_context |
| 65 | 65 | { |
| 66 | 66 | int state; |
| 67 | double t; // time | |
| 68 | double f; // RCINTEGRATE | |
| 69 | double R1; // RCINTEGRATE | |
| 70 | double R2; // RCINTEGRATE | |
| 71 | double R3; // RCINTEGRATE | |
| 72 | double C; // RCINTEGRATE | |
| 73 | double vCap; // RCDISC_MOD | |
| 74 | double vCE; // RCINTEGRATE | |
| 67 | double t; /* time */ | |
| 68 | double f; /* RCINTEGRATE */ | |
| 69 | double R1; /* RCINTEGRATE */ | |
| 70 | double R2; /* RCINTEGRATE */ | |
| 71 | double R3; /* RCINTEGRATE */ | |
| 72 | double C; /* RCINTEGRATE */ | |
| 73 | double vCap; /* RCDISC_MOD */ | |
| 74 | double vCE; /* RCINTEGRATE */ | |
| 75 | 75 | double exponent0; |
| 76 | 76 | double exponent1; |
| 77 | double exp_exponent0;// RCINTEGRATE | |
| 78 | double exp_exponent1;// RCINTEGRATE | |
| 77 | double exp_exponent0;/* RCINTEGRATE */ | |
| 78 | double exp_exponent1;/* RCINTEGRATE */ | |
| 79 | 79 | }; |
| 80 | 80 | |
| 81 | 81 | struct dst_rcdisc4_context |
| r3115 | r3116 | |
| 109 | 109 | * input[4] - Voltage reference. Usually 0V. |
| 110 | 110 | * |
| 111 | 111 | ************************************************************************/ |
| 112 | #define DST_CRFILTER__ENABLE | |
| 112 | #define DST_CRFILTER__ENABLE | |
| 113 | 113 | #define DST_CRFILTER__IN (*(node->input[1])) |
| 114 | 114 | #define DST_CRFILTER__R (*(node->input[2])) |
| 115 | 115 | #define DST_CRFILTER__C (*(node->input[3])) |
| r3115 | r3116 | |
| 135 | 135 | struct dst_rcfilter_context *context = node->context; |
| 136 | 136 | |
| 137 | 137 | context->exponent = -1.0 / (DST_CRFILTER__R * DST_CRFILTER__C * discrete_current_context->sample_rate); |
| 138 | context->exponent = 1.0 - exp(context->exponent); | |
| 139 | context->vCap = 0; | |
| 138 | context->exponent = 1.0 - exp(context->exponent); | |
| 139 | context->vCap = 0; | |
| 140 | 140 | node->output[0] = DST_CRFILTER__IN; |
| 141 | 141 | } |
| 142 | 142 | |
| r3115 | r3116 | |
| 186 | 186 | static void dst_filter1_step(node_description *node) |
| 187 | 187 | { |
| 188 | 188 | struct dss_filter1_context *context = node->context; |
| 189 | \ | |
| 189 | 190 | double gain = 1.0; |
| 190 | 191 | |
| 191 | 192 | if (DST_FILTER1__ENABLE == 0.0) |
| r3115 | r3116 | |
| 204 | 205 | struct dss_filter1_context *context = node->context; |
| 205 | 206 | |
| 206 | 207 | calculate_filter1_coefficients(DST_FILTER1__FREQ, DST_FILTER1__TYPE, &context->a1, &context->b0, &context->b1); |
| 207 | node->output[0]=0; | |
| 208 | node->output[0] = 0; | |
| 208 | 209 | } |
| 209 | 210 | |
| 210 | 211 | |
| r3115 | r3116 | |
| 237 | 238 | |
| 238 | 239 | /* calculate digital filter coefficents */ |
| 239 | 240 | /*w = 2.0*M_PI*fc; no pre-warping */ |
| 240 | w = discrete_current_context->sample_rate*2.0*tan(M_PI*fc/discrete_current_context->sample_rate); /* pre-warping */ | |
| 241 | w_squared = w*w; | |
| 241 | w = discrete_current_context->sample_rate * 2.0 * tan(M_PI * fc / discrete_current_context->sample_rate); /* pre-warping */ | |
| 242 | w_squared = w * w; | |
| 242 | 243 | |
| 243 | 244 | den = two_over_T_squared + d*w*two_over_T + w_squared; |
| 244 | 245 | |
| 245 | *a1 = 2.0*(-two_over_T_squared + w_squared)/den; | |
| 246 | *a2 = (two_over_T_squared - d*w*two_over_T + w_squared)/den; | |
| 246 | *a1 = 2.0 * (-two_over_T_squared + w_squared) / den; | |
| 247 | *a2 = (two_over_T_squared - d * w * two_over_T + w_squared) / den; | |
| 247 | 248 | |
| 248 | 249 | if (type == DISC_FILTER_LOWPASS) |
| 249 | 250 | { |
| 250 | 251 | *b0 = *b2 = w_squared/den; |
| 251 | *b1 = 2.0*(*b0); | |
| 252 | *b1 = 2.0 * (*b0); | |
| 252 | 253 | } |
| 253 | 254 | else if (type == DISC_FILTER_BANDPASS) |
| 254 | 255 | { |
| 255 | *b0 = d*w*two_over_T/den; | |
| 256 | *b0 = d * w * two_over_T / den; | |
| 256 | 257 | *b1 = 0.0; |
| 257 | 258 | *b2 = -(*b0); |
| 258 | 259 | } |
| 259 | 260 | else if (type == DISC_FILTER_HIGHPASS) |
| 260 | 261 | { |
| 261 | *b0 = *b2 = two_over_T_squared/den; | |
| 262 | *b1 = -2.0*(*b0); | |
| 262 | *b0 = *b2 = two_over_T_squared / den; | |
| 263 | *b1 = -2.0 * (*b0); | |
| 263 | 264 | } |
| 264 | 265 | else |
| 265 | 266 | { |
| r3115 | r3116 | |
| 270 | 271 | static void dst_filter2_step(node_description *node) |
| 271 | 272 | { |
| 272 | 273 | struct dss_filter2_context *context = node->context; |
| 274 | ||
| 273 | 275 | double gain = 1.0; |
| 274 | 276 | |
| 275 | 277 | if (DST_FILTER2__ENABLE == 0.0) |
| r3115 | r3116 | |
| 277 | 279 | gain = 0.0; |
| 278 | 280 | } |
| 279 | 281 | |
| 280 | node->output[0] = -context->a1*context->y1 - context->a2*context->y2 + | |
| 281 | context->b0*gain*DST_FILTER2__IN + context->b1*context->x1 + context->b2*context->x2; | |
| 282 | node->output[0] = -context->a1 * context->y1 - context->a2 * context->y2 + | |
| 283 | context->b0 * gain * DST_FILTER2__IN + context->b1 * context->x1 + context->b2 * context->x2; | |
| 282 | 284 | |
| 283 | 285 | context->x2 = context->x1; |
| 284 | 286 | context->x1 = gain * DST_FILTER2__IN; |
| r3115 | r3116 | |
| 293 | 295 | calculate_filter2_coefficients(DST_FILTER2__FREQ, DST_FILTER2__DAMP, DST_FILTER2__TYPE, |
| 294 | 296 | &context->a1, &context->a2, |
| 295 | 297 | &context->b0, &context->b1, &context->b2); |
| 296 | node->output[0]=0; | |
| 298 | node->output[0] = 0; | |
| 297 | 299 | } |
| 298 | 300 | |
| 299 | 301 | /************************************************************************ |
| r3115 | r3116 | |
| 315 | 317 | static void dst_sallen_key_step(node_description *node) |
| 316 | 318 | { |
| 317 | 319 | struct dss_filter2_context *context = node->context; |
| 320 | ||
| 318 | 321 | double gain = 1.0; |
| 319 | 322 | |
| 320 | 323 | if (DST_SALLEN_KEY__ENABLE == 0.0) |
| r3115 | r3116 | |
| 322 | 325 | gain = 0.0; |
| 323 | 326 | } |
| 324 | 327 | |
| 325 | node->output[0] = -context->a1*context->y1 - context->a2*context->y2 + | |
| 326 | context->b0*gain*DST_SALLEN_KEY__INP0 + context->b1*context->x1 + context->b2*context->x2; | |
| 328 | node->output[0] = -context->a1 * context->y1 - context->a2 * context->y2 + | |
| 329 | context->b0 * gain * DST_SALLEN_KEY__INP0 + context->b1 * context->x1 + context->b2 * context->x2; | |
| 327 | 330 | |
| 328 | 331 | context->x2 = context->x1; |
| 329 | 332 | context->x1 = gain * DST_SALLEN_KEY__INP0; |
| r3115 | r3116 | |
| 333 | 336 | |
| 334 | 337 | static void dst_sallen_key_reset(node_description *node) |
| 335 | 338 | { |
| 336 | struct dss_filter2_context *context = node->context; | |
| 337 | const discrete_op_amp_filt_info *info = node->custom; | |
| 339 | struct dss_filter2_context *context = node->context; | |
| 340 | const discrete_op_amp_filt_info *info = node->custom; | |
| 341 | ||
| 338 | 342 | double freq, q; |
| 339 | 343 | |
| 340 | 344 | switch ((int) DST_SALLEN_KEY__TYPE) |
| r3115 | r3116 | |
| 350 | 354 | calculate_filter2_coefficients(freq, 1.0 / q, DISC_FILTER_LOWPASS, |
| 351 | 355 | &context->a1, &context->a2, |
| 352 | 356 | &context->b0, &context->b1, &context->b2); |
| 353 | node->output[0]=0; | |
| 357 | node->output[0] = 0; | |
| 354 | 358 | } |
| 355 | 359 | |
| 356 | 360 | /************************************************************************ |
| r3115 | r3116 | |
| 373 | 377 | |
| 374 | 378 | static void dst_op_amp_filt_step(node_description *node) |
| 375 | 379 | { |
| 376 | const discrete_op_amp_filt_info *info = node->custom; | |
| 377 | struct dst_op_amp_filt_context *context = node->context; | |
| 380 | const discrete_op_amp_filt_info *info = node->custom; | |
| 381 | struct dst_op_amp_filt_context *context = node->context; | |
| 378 | 382 | |
| 379 | double i, v=0; | |
| 383 | double i, v = 0; | |
| 380 | 384 | |
| 381 | 385 | if (DST_OP_AMP_FILT__ENABLE) |
| 382 | 386 | { |
| r3115 | r3116 | |
| 388 | 392 | else |
| 389 | 393 | { |
| 390 | 394 | /* Millman the input voltages. */ |
| 391 | i = context->iFixed; | |
| 395 | i = context->iFixed; | |
| 392 | 396 | i += (DST_OP_AMP_FILT__INP1 - context->vRef) / info->r1; |
| 393 | 397 | if (info->r2 != 0) |
| 394 | 398 | i += (DST_OP_AMP_FILT__INP2 - context->vRef) / info->r2; |
| r3115 | r3116 | |
| 433 | 437 | |
| 434 | 438 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_1M: |
| 435 | 439 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_1M | DISC_OP_AMP_IS_NORTON: |
| 436 | node->output[0] = -context->a1*context->y1 - context->a2*context->y2 + | |
| 437 | context->b0*v + context->b1*context->x1 + context->b2*context->x2 + | |
| 440 | node->output[0] = -context->a1 * context->y1 - context->a2 * context->y2 + | |
| 441 | context->b0 * v + context->b1 * context->x1 + context->b2 * context->x2 + | |
| 438 | 442 | context->vRef; |
| 439 | 443 | context->x2 = context->x1; |
| 440 | 444 | context->x1 = v; |
| r3115 | r3116 | |
| 456 | 460 | |
| 457 | 461 | static void dst_op_amp_filt_reset(node_description *node) |
| 458 | 462 | { |
| 459 | const discrete_op_amp_filt_info *info = node->custom; | |
| 460 | struct dst_op_amp_filt_context *context = node->context; | |
| 463 | const discrete_op_amp_filt_info *info = node->custom; | |
| 464 | struct dst_op_amp_filt_context *context = node->context; | |
| 461 | 465 | |
| 462 | 466 | /* Convert the passed filter type into an int for easy use. */ |
| 463 | 467 | context->type = (int)DST_OP_AMP_FILT__TYPE & DISC_OP_AMP_FILTER_TYPE_MASK; |
| r3115 | r3116 | |
| 485 | 489 | context->vN = info->vN; |
| 486 | 490 | |
| 487 | 491 | /* Work out the input resistance. It is all input and bias resistors in parallel. */ |
| 488 | context->rTotal = 1.0 / info->r1; / | |
| 492 | context->rTotal = 1.0 / info->r1; /* There has to be an R1. Otherwise the table is wrong. */ | |
| 489 | 493 | if (info->r2 != 0) context->rTotal += 1.0 / info->r2; |
| 490 | 494 | if (info->r3 != 0) context->rTotal += 1.0 / info->r3; |
| 491 | 495 | context->rTotal = 1.0 / context->rTotal; |
| r3115 | r3116 | |
| 500 | 504 | { |
| 501 | 505 | case DISC_OP_AMP_FILTER_IS_LOW_PASS_1: |
| 502 | 506 | context->exponentC1 = -1.0 / (info->rF * info->c1 * discrete_current_context->sample_rate); |
| 503 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 504 | context->exponentC2 = 0; | |
| 507 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 508 | context->exponentC2 = 0; | |
| 505 | 509 | break; |
| 506 | 510 | case DISC_OP_AMP_FILTER_IS_HIGH_PASS_1: |
| 507 | 511 | context->exponentC1 = -1.0 / (context->rTotal * info->c1 * discrete_current_context->sample_rate); |
| 508 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 509 | context->exponentC2 = 0; | |
| 512 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 513 | context->exponentC2 = 0; | |
| 510 | 514 | break; |
| 511 | 515 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_1: |
| 512 | 516 | context->exponentC1 = -1.0 / (info->rF * info->c1 * discrete_current_context->sample_rate); |
| 513 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 517 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 514 | 518 | context->exponentC2 = -1.0 / (context->rTotal * info->c2 * discrete_current_context->sample_rate); |
| 515 | context->exponentC2 = 1.0 - exp(context->exponentC2); | |
| 519 | context->exponentC2 = 1.0 - exp(context->exponentC2); | |
| 516 | 520 | break; |
| 517 | 521 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_1M | DISC_OP_AMP_IS_NORTON: |
| 518 | 522 | context->rTotal = 1.0 / (1.0 / info->r1 + 1.0 / info->r2); |
| 519 | 523 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_1M: |
| 520 | 524 | { |
| 521 | 525 | double fc = 1.0 / (2 * M_PI * sqrt(context->rTotal * info->rF * info->c1 * info->c2)); |
| 522 | double d = (info->c1 + info->c2) / sqrt(info->rF / context->rTotal * info->c1 * info->c2); | |
| 526 | double d = (info->c1 + info->c2) / sqrt(info->rF / context->rTotal * info->c1 * info->c2); | |
| 523 | 527 | double gain = -info->rF / context->rTotal * info->c2 / (info->c1 + info->c2); |
| 524 | 528 | |
| 525 | 529 | calculate_filter2_coefficients(fc, d, DISC_FILTER_BANDPASS, |
| r3115 | r3116 | |
| 538 | 542 | } |
| 539 | 543 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_0 | DISC_OP_AMP_IS_NORTON: |
| 540 | 544 | context->exponentC1 = -1.0 / ((1.0 / (1.0 / info->r1 + 1.0 / (info->r2 + info->r3 + info->r4))) * info->c1 * discrete_current_context->sample_rate); |
| 541 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 545 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 542 | 546 | context->exponentC2 = -1.0 / ((1.0 / (1.0 / (info->r1 + info->r2) + 1.0 / (info->r3 + info->r4))) * info->c2 * discrete_current_context->sample_rate); |
| 543 | context->exponentC2 = 1.0 - exp(context->exponentC2); | |
| 547 | context->exponentC2 = 1.0 - exp(context->exponentC2); | |
| 544 | 548 | context->exponentC3 = -1.0 / ((info->r1 + info->r2 + info->r3 + info->r4) * info->c3 * discrete_current_context->sample_rate); |
| 545 | context->exponentC3 = 1.0 - exp(context->exponentC3); | |
| 549 | context->exponentC3 = 1.0 - exp(context->exponentC3); | |
| 546 | 550 | break; |
| 547 | 551 | case DISC_OP_AMP_FILTER_IS_HIGH_PASS_0 | DISC_OP_AMP_IS_NORTON: |
| 548 | 552 | context->exponentC1 = -1.0 / (info->r1 * info->c1 * discrete_current_context->sample_rate); |
| 549 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 553 | context->exponentC1 = 1.0 - exp(context->exponentC1); | |
| 550 | 554 | break; |
| 551 | 555 | } |
| 552 | 556 | |
| r3115 | r3116 | |
| 586 | 590 | context->state = 1; |
| 587 | 591 | context->t = 0; |
| 588 | 592 | } |
| 589 | node->output[0]=0; | |
| 593 | node->output[0] = 0; | |
| 590 | 594 | break; |
| 591 | 595 | |
| 592 | 596 | case 1: |
| r3115 | r3116 | |
| 603 | 607 | { |
| 604 | 608 | struct dst_rcdisc_context *context = node->context; |
| 605 | 609 | |
| 606 | node->output[0]=0; | |
| 610 | node->output[0] = 0; | |
| 607 | 611 | |
| 608 | 612 | context->state = 0; |
| 609 | 613 | context->t = 0; |
| r3115 | r3116 | |
| 633 | 637 | |
| 634 | 638 | static void dst_rcdisc2_step(node_description *node) |
| 635 | 639 | { |
| 636 | double diff; | |
| 637 | 640 | struct dst_rcdisc_context *context = node->context; |
| 638 | 641 | |
| 642 | double diff; | |
| 643 | ||
| 639 | 644 | /* Works differently to other as we are always on, no enable */ |
| 640 | 645 | /* exponential based in difference between input/output */ |
| 641 | 646 | |
| r3115 | r3116 | |
| 678 | 683 | |
| 679 | 684 | static void dst_rcdisc3_step(node_description *node) |
| 680 | 685 | { |
| 681 | double diff; | |
| 682 | 686 | struct dst_rcdisc_context *context = node->context; |
| 683 | 687 | |
| 688 | double diff; | |
| 689 | ||
| 684 | 690 | /* Exponential based in difference between input/output */ |
| 685 | 691 | |
| 686 | 692 | if(DST_RCDISC3__ENABLE) |
| r3115 | r3116 | |
| 708 | 714 | { |
| 709 | 715 | struct dst_rcdisc_context *context = node->context; |
| 710 | 716 | |
| 711 | node->output[0]=0; | |
| 717 | node->output[0] = 0; | |
| 712 | 718 | |
| 713 | 719 | context->state = 0; |
| 714 | 720 | context->t = 0; |
| 715 | context->exponent0=-1.0 * DST_RCDISC3__R1 * DST_RCDISC3__C; | |
| 716 | context->exponent1=-1.0 *(DST_RCDISC3__R1 * DST_RCDISC3__R2)/( DST_RCDISC3__R1 + DST_RCDISC3__R2)* DST_RCDISC3__C; | |
| 721 | context->exponent0 = -1.0 * DST_RCDISC3__R1 * DST_RCDISC3__C; | |
| 722 | context->exponent1 = -1.0 *(DST_RCDISC3__R1 * DST_RCDISC3__R2)/( DST_RCDISC3__R1 + DST_RCDISC3__R2)* DST_RCDISC3__C; | |
| 717 | 723 | } |
| 718 | 724 | |
| 719 | 725 | |
| r3115 | r3116 | |
| 742 | 748 | static void dst_rcdisc4_step(node_description *node) |
| 743 | 749 | { |
| 744 | 750 | struct dst_rcdisc4_context *context = node->context; |
| 751 | ||
| 745 | 752 | int inp1 = (DST_RCDISC4__IN == 0) ? 0 : 1; |
| 746 | 753 | |
| 747 | 754 | if (DST_RCDISC4__ENABLE == 0) |
| r3115 | r3116 | |
| 767 | 774 | static void dst_rcdisc4_reset(node_description *node) |
| 768 | 775 | { |
| 769 | 776 | struct dst_rcdisc4_context *context = node->context; |
| 777 | ||
| 770 | 778 | double v, i, r, rT; |
| 771 | 779 | |
| 772 | 780 | context->type = 0; |
| r3115 | r3116 | |
| 802 | 810 | v = DST_RCDISC4__VP - .5; /* diode drop */ |
| 803 | 811 | |
| 804 | 812 | /* When the input is 1, both R1 & R3 are basically in parallel. */ |
| 805 | r = 1.0 / (1.0 / DST_RCDISC4__R1 + 1.0 / DST_RCDISC4__R3); | |
| 813 | r = 1.0 / (1.0 / DST_RCDISC4__R1 + 1.0 / DST_RCDISC4__R3); | |
| 806 | 814 | rT = DST_RCDISC4__R2 + r; |
| 807 | i = v / rT; | |
| 815 | i = v / rT; | |
| 808 | 816 | context->v[1] = i * r + .5; |
| 809 | 817 | rT = 1.0 / (1.0 / DST_RCDISC4__R2 + 1.0 / r); |
| 810 | 818 | context->exp[1] = -1.0 / (rT * DST_RCDISC4__C1 * discrete_current_context->sample_rate); |
| 811 | context->exp[1] = 1.0 - exp(context->exp[1]); | |
| 819 | context->exp[1] = 1.0 - exp(context->exp[1]); | |
| 812 | 820 | |
| 813 | 821 | /* When the input is 0, R1 is out of circuit. */ |
| 814 | 822 | rT = DST_RCDISC4__R2 + DST_RCDISC4__R3; |
| 815 | i = v / rT; | |
| 823 | i = v / rT; | |
| 816 | 824 | context->v[0] = i * DST_RCDISC4__R3 + .5; |
| 817 | 825 | rT = 1.0 / (1.0 / DST_RCDISC4__R2 + 1.0 / DST_RCDISC4__R3); |
| 818 | 826 | context->exp[0] = -1.0 / (rT * DST_RCDISC4__C1 * discrete_current_context->sample_rate); |
| 819 | context->exp[0] = 1.0 - exp(context->exp[0]); | |
| 827 | context->exp[0] = 1.0 - exp(context->exp[0]); | |
| 820 | 828 | break; |
| 821 | 829 | |
| 822 | 830 | case 3: |
| r3115 | r3116 | |
| 828 | 836 | context->v[1] = DST_RCDISC4__R2 / (r + DST_RCDISC4__R2) * (5.0 - 0.5); |
| 829 | 837 | rT = 1.0 / ( 1.0 / r + 1.0 / DST_RCDISC4__R2); |
| 830 | 838 | context->exp[1] = -1.0 / (rT * DST_RCDISC4__C1 * discrete_current_context->sample_rate); |
| 831 | context->exp[1] = 1.0 - exp(context->exp[1]); | |
| 839 | context->exp[1] = 1.0 - exp(context->exp[1]); | |
| 832 | 840 | |
| 833 | 841 | /* When the input is 0, R1 is out of circuit. */ |
| 834 | 842 | context->v[0] = 0; |
| 835 | 843 | context->exp[0] = -1.0 / (DST_RCDISC4__R2 * DST_RCDISC4__C1 * discrete_current_context->sample_rate); |
| 836 | context->exp[0] = 1.0 - exp(context->exp[0]); | |
| 844 | context->exp[0] = 1.0 - exp(context->exp[0]); | |
| 837 | 845 | break; |
| 838 | 846 | } |
| 839 | 847 | } |
| r3115 | r3116 | |
| 855 | 863 | |
| 856 | 864 | static void dst_rcdisc5_step(node_description *node) |
| 857 | 865 | { |
| 858 | double diff,u; | |
| 859 | 866 | struct dst_rcdisc_context *context = node->context; |
| 860 | 867 | |
| 868 | double diff,u; | |
| 869 | ||
| 861 | 870 | /* Exponential based in difference between input/output */ |
| 862 | 871 | |
| 863 | 872 | if(DST_RCDISC5__ENABLE) |
| r3115 | r3116 | |
| 875 | 884 | } |
| 876 | 885 | else |
| 877 | 886 | { |
| 878 | node->output[0]=0; | |
| 887 | node->output[0] = 0; | |
| 879 | 888 | } |
| 880 | 889 | } |
| 881 | 890 | |
| r3115 | r3116 | |
| 883 | 892 | { |
| 884 | 893 | struct dst_rcdisc_context *context = node->context; |
| 885 | 894 | |
| 886 | node->output[0]=0; | |
| 895 | node->output[0] = 0; | |
| 887 | 896 | |
| 888 | 897 | context->state = 0; |
| 889 | 898 | context->t = 0; |
| 890 | context->exponent0=-1.0 * DST_RCDISC5__R * DST_RCDISC5__C; | |
| 899 | context->exponent0 = -1.0 * DST_RCDISC5__R * DST_RCDISC5__C; | |
| 891 | 900 | } |
| 892 | 901 | |
| 893 | 902 | /************************************************************************ |
| r3115 | r3116 | |
| 930 | 939 | |
| 931 | 940 | static void dst_rcintegrate_step(node_description *node) |
| 932 | 941 | { |
| 933 | double diff,u,iQ,iQc,iC,RG,vE; | |
| 934 | 942 | struct dst_rcdisc_context *context = node->context; |
| 935 | double dt,vP; | |
| 936 | 943 | |
| 944 | double diff, u, iQ, iQc, iC, RG, vE; | |
| 945 | double dt, vP; | |
| 946 | ||
| 937 | 947 | if(DST_RCINTEGRATE__ENABLE) |
| 938 | 948 | { |
| 939 | u = DST_RCINTEGRATE__IN1; | |
| 949 | u = DST_RCINTEGRATE__IN1; | |
| 940 | 950 | vP = DST_RCINTEGRATE__VP; |
| 941 | 951 | dt = discrete_current_context->sample_time; |
| 942 | 952 | if ( u-0.7 < context->vCap*context->R2/(context->R1+context->R2)) |
| 943 | 953 | { |
| 944 | 954 | /* discharge .... */ |
| 945 | diff = 0 - context->vCap; | |
| 946 | iC = 0.0 - context->C / context->exponent1 * diff * context->exp_exponent1; // iC | |
| 955 | diff = 0.0 - context->vCap; | |
| 956 | iC = 0.0 - context->C / context->exponent1 * diff * context->exp_exponent1; /* iC */ | |
| 947 | 957 | diff = diff - (diff * context->exp_exponent1); |
| 948 | 958 | context->vCap += diff; |
| 949 | 959 | iQ = 0; |
| r3115 | r3116 | |
| 954 | 964 | { |
| 955 | 965 | /* charging */ |
| 956 | 966 | diff = (vP - context->vCE) * context->f - context->vCap; |
| 957 | iC = 0.0 - context->C / context->exponent0 * diff * context->exp_exponent0; / | |
| 967 | iC = 0.0 - context->C / context->exponent0 * diff * context->exp_exponent0; /* iC */ | |
| 958 | 968 | diff = diff - (diff * context->exp_exponent0); |
| 959 | 969 | context->vCap += diff; |
| 960 | 970 | iQ = iC + (iC * context->R1 + context->vCap) / context->R2; |
| r3115 | r3116 | |
| 964 | 974 | |
| 965 | 975 | |
| 966 | 976 | u = DST_RCINTEGRATE__IN1; |
| 967 | if (u>0.7+vE) | |
| 968 | vE=u-0.7; | |
| 977 | if (u > 0.7+vE) | |
| 978 | vE = u-0.7; | |
| 969 | 979 | iQc = EM_IC(u - vE); |
| 970 | context->vCE = MIN(vP-0.1, vP - RG*iQc); | |
| 980 | context->vCE = MIN(vP - 0.1, vP - RG * iQc); | |
| 971 | 981 | |
| 972 | 982 | /* Avoid oscillations |
| 973 | 983 | * The method tends to largely overshoot - no wonder without |
| r3115 | r3116 | |
| 975 | 985 | */ |
| 976 | 986 | |
| 977 | 987 | context->vCE = MAX(context->vCE, 0.1 ); |
| 978 | context->vCE = 0.1 * context->vCE +0.9 * (vP - vE | |
| 988 | context->vCE = 0.1 * context->vCE + 0.9 * (vP - vE | |
| 979 | 989 | |
| 980 | 990 | switch (context->state) |
| 981 | 991 | { |
| r3115 | r3116 | |
| 986 | 996 | node->output[0] = vE; |
| 987 | 997 | break; |
| 988 | 998 | case DISC_RC_INTEGRATE_TYPE3: |
| 989 | node->output[0] = MAX(0,vP - iQ * context->R3); | |
| 999 | node->output[0] = MAX(0, vP - iQ * context->R3); | |
| 990 | 1000 | break; |
| 991 | 1001 | } |
| 992 | 1002 | } |
| 993 | 1003 | else |
| 994 | 1004 | { |
| 995 | node->output[0]=0; | |
| 1005 | node->output[0] = 0; | |
| 996 | 1006 | } |
| 997 | 1007 | } |
| 998 | 1008 | static void dst_rcintegrate_reset(node_description *node) |
| 999 | 1009 | { |
| 1000 | 1010 | struct dst_rcdisc_context *context = node->context; |
| 1011 | ||
| 1001 | 1012 | double r; |
| 1002 | 1013 | double dt = discrete_current_context->sample_time; |
| 1003 | 1014 | |
| r3115 | r3116 | |
| 1007 | 1018 | context->R1 = DST_RCINTEGRATE__R1; |
| 1008 | 1019 | context->R2 = DST_RCINTEGRATE__R2; |
| 1009 | 1020 | context->R3 = DST_RCINTEGRATE__R3; |
| 1010 | context->C = DST_RCINTEGRATE__C; | |
| 1021 | context->C = DST_RCINTEGRATE__C; | |
| 1011 | 1022 | |
| 1012 | 1023 | context->vCap = 0; |
| 1013 | 1024 | context->vCE = 0; |
| r3115 | r3116 | |
| 1049 | 1060 | |
| 1050 | 1061 | static void dst_rcdisc_mod_step(node_description *node) |
| 1051 | 1062 | { |
| 1052 | double diff,Rc,Rc2,vCap,u,vD=0.0; | |
| 1053 | 1063 | struct dst_rcdisc_context *context = node->context; |
| 1054 | 1064 | |
| 1065 | double diff, Rc, Rc2, vCap, u, vD=0.0; | |
| 1066 | ||
| 1055 | 1067 | /* Exponential based in difference between input/output */ |
| 1056 | 1068 | vCap = context->vCap; |
| 1057 | 1069 | |
| 1058 | 1070 | if(DST_RCDISC_MOD__ENABLE) |
| 1059 | 1071 | { |
| 1060 | 1072 | Rc = (DST_RCDISC_MOD__IN1 > 0.5) ? DST_RCDISC_MOD__R2 : DST_RCDISC_MOD__R1 + DST_RCDISC_MOD__R2; |
| 1061 | if (Rc<1.0) | |
| 1073 | if (Rc < 1.0) | |
| 1062 | 1074 | Rc = 1.0; |
| 1063 | 1075 | u = (DST_RCDISC_MOD__IN1 > 0.5) ? 0 : DST_RCDISC_MOD__VP; |
| 1064 | 1076 | Rc2 = (DST_RCDISC_MOD__IN2 > 0.6) ? (DST_RCDISC_MOD__R3 * DST_RCDISC_MOD__R4 / (DST_RCDISC_MOD__R3 + DST_RCDISC_MOD__R4)) : DST_RCDISC_MOD__R4; |
| 1065 | 1077 | /* Clamp */ |
| 1066 | 1078 | diff = u - vCap; |
| 1067 | vD = diff*Rc2/(Rc+Rc2); | |
| 1068 | if (vD<-0.6) | |
| 1079 | vD = diff * Rc2 / (Rc + Rc2); | |
| 1080 | if (vD < -0.6) | |
| 1069 | 1081 | { |
| 1070 | Rc2=0; | |
| 1071 | diff = u + 0.6 - vCap; | |
| 1072 | diff = diff - (diff * exp(0.0-discrete_current_context->sample_time / (DST_RCDISC_MOD__C*Rc))); | |
| 1082 | Rc2 = 0; | |
| 1083 | diff = u + 0.6 - vCap; | |
| 1084 | diff = diff - (diff * exp(0.0 - discrete_current_context->sample_time / (DST_RCDISC_MOD__C * Rc))); | |
| 1073 | 1085 | vCap += diff; |
| 1074 | 1086 | node->output[0] = (DST_RCDISC_MOD__IN2 <= 0.6) ? -0.6 : 0; |
| 1075 | 1087 | } |
| r3115 | r3116 | |
| 1078 | 1090 | diff = diff - (diff * exp(0.0-discrete_current_context->sample_time / (DST_RCDISC_MOD__C*(Rc+Rc2)))); |
| 1079 | 1091 | vCap += diff; |
| 1080 | 1092 | /* neglecting current through R3 drawn by next node */ |
| 1081 | node->output[0] = (DST_RCDISC_MOD__IN2 <= 0.6) ? (u-vCap)*DST_RCDISC_MOD__R4/(DST_RCDISC_MOD__R4+Rc) : 0; | |
| 1093 | node->output[0] = (DST_RCDISC_MOD__IN2 <= 0.6) ? (u - vCap) * DST_RCDISC_MOD__R4 / (DST_RCDISC_MOD__R4 + Rc) : 0; | |
| 1082 | 1094 | } |
| 1083 | 1095 | context->vCap = vCap; |
| 1084 | 1096 | } |
| 1085 | 1097 | else |
| 1086 | 1098 | { |
| 1087 | node->output[0]=0; | |
| 1099 | node->output[0] = 0; | |
| 1088 | 1100 | } |
| 1089 | 1101 | } |
| 1090 | 1102 | |
| r3115 | r3116 | |
| 1092 | 1104 | { |
| 1093 | 1105 | struct dst_rcdisc_context *context = node->context; |
| 1094 | 1106 | |
| 1095 | node->output[0]=0; | |
| 1096 | context->vCap = 0; | |
| 1107 | node->output[0] = 0; | |
| 1108 | context->vCap = 0; | |
| 1097 | 1109 | } |
| 1098 | 1110 | |
| 1099 | 1111 | /************************************************************************ |
| r3115 | r3116 | |
| 1128 | 1140 | } |
| 1129 | 1141 | else |
| 1130 | 1142 | { |
| 1131 | node->output[0]=0; | |
| 1143 | node->output[0] = 0; | |
| 1132 | 1144 | } |
| 1133 | 1145 | } |
| 1134 | 1146 | |
| r3115 | r3116 | |
| 1138 | 1150 | |
| 1139 | 1151 | context->exponent = -1.0 / (DST_RCFILTER__R * DST_RCFILTER__C * discrete_current_context->sample_rate); |
| 1140 | 1152 | context->exponent = 1.0 - exp(context->exponent); |
| 1141 | context->vCap = 0; | |
| 1153 | context->vCap = 0; | |
| 1142 | 1154 | node->output[0] = 0; |
| 1143 | 1155 | } |
| 1144 | 1156 | |
| r3115 | r3116 | |
| 1164 | 1176 | static void dst_rcfilter_sw_step(node_description *node) |
| 1165 | 1177 | { |
| 1166 | 1178 | struct dst_rcfilter_sw_context *context = node->context; |
| 1179 | ||
| 1167 | 1180 | int i; |
| 1168 | 1181 | double rcexp; |
| 1169 | 1182 | int bits = (int)DST_RCFILTER_SW__SWITCH; |
| 1170 | double us=0, rs=0; | |
| 1183 | double us = 0, rs = 0; | |
| 1171 | 1184 | |
| 1172 | 1185 | if (DST_RCFILTER_SW__ENABLE) |
| 1173 | 1186 | { |
| 1174 | for (i=0;i<4;i++) | |
| 1187 | for (i = 0; i < 4; i++) | |
| 1175 | 1188 | { |
| 1176 | if ( | |
| 1189 | if ( | |
| 1177 | 1190 | { |
| 1178 | 1191 | us += context->vCap[i]; |
| 1179 | 1192 | rs += DST_RCFILTER_SW__R; |
| 1180 | 1193 | } |
| 1181 | 1194 | } |
| 1182 | 1195 | node->output[0] = CD4066_ON_RES / ( CD4066_ON_RES + rs) * DST_RCFILTER_SW__VIN + DST_RCFILTER_SW__R / (CD4066_ON_RES + rs) * us; |
| 1183 | for (i=0;i<4;i++) | |
| 1196 | for (i = 0; i < 4; i++) | |
| 1184 | 1197 | { |
| 1185 | if ( | |
| 1198 | if ( | |
| 1186 | 1199 | { |
| 1187 | 1200 | rcexp = 1.0 - exp(-1.0 / ( CD4066_ON_RES * DST_RCFILTER_SW__C(i)) * discrete_current_context->sample_rate); |
| 1188 | 1201 | context->vCap[i] += ((node->output[0] - context->vCap[i]) * rcexp); |
| r3115 | r3116 | |
| 1191 | 1204 | } |
| 1192 | 1205 | else |
| 1193 | 1206 | { |
| 1194 | node->output[0]=0; | |
| 1207 | node->output[0] = 0; | |
| 1195 | 1208 | } |
| 1196 | 1209 | } |
| 1197 | 1210 | |
| 1198 | 1211 | static void dst_rcfilter_sw_reset(node_description *node) |
| 1199 | 1212 | { |
| 1200 | 1213 | struct dst_rcfilter_sw_context *context = node->context; |
| 1214 | ||
| 1201 | 1215 | int i; |
| 1202 | 1216 | |
| 1203 | for (i=0;i<4;i++) | |
| 1217 | for (i = 0; i < 4; i++) | |
| 1204 | 1218 | context->vCap[i] = 0; |
| 1205 | 1219 | node->output[0] = 0; |
| 1206 | 1220 | } |
| r3115 | r3116 | |
| 1225 | 1239 | |
| 1226 | 1240 | static void dst_rcfilterN_reset(node_description *node) |
| 1227 | 1241 | { |
| 1228 | // double f=1.0/(2*M_PI* DST_RCFILTERN__R * DST_RCFILTERN__C); | |
| 1242 | #if 0 | |
| 1243 | double f=1.0/(2*M_PI* DST_RCFILTERN__R * DST_RCFILTERN__C); | |
| 1229 | 1244 | |
| 1230 | // !!!!!!!!!!!!!! CAN'T CHEAT LIKE THIS !!!!!!!!!!!!!!!! | |
| 1231 | // Put this stuff in a context | |
| 1232 | // | |
| 1233 | // node->input[2] = f; | |
| 1234 | // node->input[3] = DISC_FILTER_LOWPASS; | |
| 1245 | /* !!!!!!!!!!!!!! CAN'T CHEAT LIKE THIS !!!!!!!!!!!!!!!! */ | |
| 1246 | /* Put this stuff in a context */ | |
| 1235 | 1247 | |
| 1248 | node->input[2] = f; | |
| 1249 | node->input[3] = DISC_FILTER_LOWPASS; | |
| 1250 | ||
| 1236 | 1251 | /* Use first order filter */ |
| 1237 | 1252 | dst_filter1_reset(node); |
| 1253 | #endif | |
| 1238 | 1254 | } |
| 1239 | 1255 | |
| 1240 | 1256 | |
| r3115 | r3116 | |
| 1256 | 1272 | |
| 1257 | 1273 | static void dst_rcdiscN_reset(node_description *node) |
| 1258 | 1274 | { |
| 1259 | // double f=1.0/(2*M_PI* DST_RCDISCN__R * DST_RCDISCN__C); | |
| 1275 | #if 0 | |
| 1276 | double f = 1.0 / (2 * M_PI * DST_RCDISCN__R * DST_RCDISCN__C); | |
| 1260 | 1277 | |
| 1261 | // !!!!!!!!!!!!!! CAN'T CHEAT LIKE THIS !!!!!!!!!!!!!!!! | |
| 1262 | // Put this stuff in a context | |
| 1263 | // | |
| 1264 | // node->input[2] = f; | |
| 1265 | // node->input[3] = DISC_FILTER_LOWPASS; | |
| 1278 | /* !!!!!!!!!!!!!! CAN'T CHEAT LIKE THIS !!!!!!!!!!!!!!!! */ | |
| 1279 | /* Put this stuff in a context */ | |
| 1266 | 1280 | |
| 1281 | node->input[2] = f; | |
| 1282 | node->input[3] = DISC_FILTER_LOWPASS; | |
| 1283 | ||
| 1267 | 1284 | /* Use first order filter */ |
| 1268 | 1285 | dst_filter1_reset(node); |
| 1286 | #endif | |
| 1269 | 1287 | } |
| 1270 | 1288 | |
| 1271 | 1289 | static void dst_rcdiscN_step(node_description *node) |
| 1272 | 1290 | { |
| 1273 | 1291 | struct dss_filter1_context *context = node->context; |
| 1292 | ||
| 1274 | 1293 | double gain = 1.0; |
| 1275 | 1294 | |
| 1276 | 1295 | if (DST_RCDISCN__ENABLE == 0.0) |
| r3115 | r3116 | |
| 1321 | 1340 | static void dst_rcdisc2N_step(node_description *node) |
| 1322 | 1341 | { |
| 1323 | 1342 | struct dss_rcdisc2_context *context = node->context; |
| 1343 | ||
| 1324 | 1344 | double input = ((DST_RCDISC2N__ENABLE == 0) ? DST_RCDISC2N__IN0 : DST_RCDISC2N__IN1); |
| 1325 | 1345 | |
| 1326 | 1346 | if (DST_RCDISC2N__ENABLE == 0) |
| r3115 | r3116 | |
| 1337 | 1357 | struct dss_rcdisc2_context *context = node->context; |
| 1338 | 1358 | double f1,f2; |
| 1339 | 1359 | |
| 1340 | f1=1.0/(2*M_PI* DST_RCDISC2N__R0 * DST_RCDISC2N__C); | |
| 1341 | f2=1.0/(2*M_PI* DST_RCDISC2N__R1 * DST_RCDISC2N__C); | |
| 1360 | f1 = 1.0 / (2 * M_PI * DST_RCDISC2N__R0 * DST_RCDISC2N__C); | |
| 1361 | f2 = 1.0 / (2 * M_PI * DST_RCDISC2N__R1 * DST_RCDISC2N__C); | |
| 1342 | 1362 | |
| 1343 | 1363 | calculate_filter1_coefficients(f1, DISC_FILTER_LOWPASS, &context->a1_0, &context->b0_0, &context->b1_0); |
| 1344 | 1364 | calculate_filter1_coefficients(f2, DISC_FILTER_LOWPASS, &context->a1_1, &context->b0_1, &context->b1_1); |
| 1345 | 1365 | |
| 1346 | 1366 | /* Initialize the object */ |
| 1347 | node->output[0]=0; | |
| 1367 | node->output[0] = 0; | |
| 1348 | 1368 | } |
| r3115 | r3116 | |
|---|---|---|
| 12 | 12 | #include "driver.h" |
| 13 | 13 | #include "osdepend.h" |
| 14 | 14 | #include "video/vector.h" |
| 15 | #include "machine/laserdsc.h" | |
| 15 | 16 | #include "profiler.h" |
| 16 | 17 | #include "cheat.h" |
| 17 | 18 | #include "render.h" |
| r3115 | r3116 | |
| 63 | 64 | |
| 64 | 65 | |
| 65 | 66 | /*************************************************************************** |
| 66 | TYPE DEFINITIONS | |
| 67 | ***************************************************************************/ | |
| 68 | ||
| 69 | typedef struct _slider_state slider_state; | |
| 70 | struct _slider_state | |
| 71 | { | |
| 72 | INT32 minval; /* minimum value */ | |
| 73 | INT32 defval; /* default value */ | |
| 74 | INT32 maxval; /* maximum value */ | |
| 75 | INT32 incval; /* increment value */ | |
| 76 | INT32 (*update)(running_machine *machine, INT32 newval, char *buffer, void *arg); /* callback */ | |
| 77 | void * arg; /* argument */ | |
| 78 | }; | |
| 79 | ||
| 80 | ||
| 81 | ||
| 82 | /*************************************************************************** | |
| 83 | 67 | GLOBAL VARIABLES |
| 84 | 68 | ***************************************************************************/ |
| 85 | 69 | |
| r3115 | r3116 | |
| 108 | 92 | static rgb_t messagebox_backcolor; |
| 109 | 93 | |
| 110 | 94 | /* slider info */ |
| 111 | static slider_state slider_list[100]; | |
| 112 | static int slider_count; | |
| 113 | static int slider_current; | |
| 95 | static slider_state *slider_list; | |
| 96 | static slider_state *slider_current; | |
| 114 | 97 | |
| 115 | 98 | static int display_rescale_message; |
| 116 | 99 | static int allow_rescale; |
| r3115 | r3116 | |
| 133 | 116 | static UINT32 handler_messagebox_ok(running_machine *machine, UINT32 state); |
| 134 | 117 | static UINT32 handler_messagebox_anykey(running_machine *machine, UINT32 state); |
| 135 | 118 | static UINT32 handler_ingame(running_machine *machine, UINT32 state); |
| 136 | static UINT32 handler_slider(running_machine *machine, UINT32 state); | |
| 137 | 119 | static UINT32 handler_load_save(running_machine *machine, UINT32 state); |
| 138 | 120 | |
| 139 | 121 | /* slider controls */ |
| 140 | static void slider_init(running_machine *machine); | |
| 141 | static void slider_display(const char *text, int minval, int maxval, int defval, int curval); | |
| 142 | static void slider_draw_bar(float leftx, float topy, float width, float height, float percentage, float default_percentage); | |
| 143 | static INT32 slider_volume(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 144 | static INT32 slider_mixervol(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 145 | static INT32 slider_adjuster(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 146 | static INT32 slider_overclock(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 147 | static INT32 slider_refresh(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 148 | static INT32 slider_brightness(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 149 | static INT32 slider_contrast(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 150 | static INT32 slider_gamma(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 151 | static INT32 slider_xscale(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 152 | static INT32 slider_yscale(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 153 | static INT32 slider_xoffset(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 154 | static INT32 slider_yoffset(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 155 | static INT32 slider_flicker(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 156 | static INT32 slider_beam(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 122 | static slider_state *slider_alloc(const char *title, INT32 minval, INT32 defval, INT32 maxval, INT32 incval, slider_update update, void *arg); | |
| 123 | static slider_state *slider_init(running_machine *machine); | |
| 124 | static INT32 slider_volume(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 125 | static INT32 slider_mixervol(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 126 | static INT32 slider_adjuster(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 127 | static INT32 slider_overclock(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 128 | static INT32 slider_refresh(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 129 | static INT32 slider_brightness(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 130 | static INT32 slider_contrast(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 131 | static INT32 slider_gamma(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 132 | static INT32 slider_xscale(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 133 | static INT32 slider_yscale(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 134 | static INT32 slider_xoffset(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 135 | static INT32 slider_yoffset(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 136 | static INT32 slider_overxscale(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 137 | static INT32 slider_overyscale(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 138 | static INT32 slider_overxoffset(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 139 | static INT32 slider_overyoffset(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 140 | static INT32 slider_flicker(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 141 | static INT32 slider_beam(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 157 | 142 | static char *slider_get_screen_desc(const device_config *screen); |
| 143 | static char *slider_get_laserdisc_desc(const device_config *screen); | |
| 158 | 144 | #ifdef MAME_DEBUG |
| 159 | static INT32 slider_crossscale(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 160 | static INT32 slider_crossoffset(running_machine *machine, INT32 newval, char *buffer, void *arg); | |
| 145 | static INT32 slider_crossscale(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 146 | static INT32 slider_crossoffset(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 161 | 147 | #endif |
| 162 | 148 | |
| 163 | 149 | |
| r3115 | r3116 | |
| 179 | 165 | |
| 180 | 166 | |
| 181 | 167 | /*------------------------------------------------- |
| 182 | slider_config - configure a slider entry | |
| 183 | -------------------------------------------------*/ | |
| 184 | ||
| 185 | INLINE void slider_config(slider_state *state, INT32 minval, INT32 defval, INT32 maxval, INT32 incval, | |
| 186 | INT32 (*update)(running_machine *, INT32, char *, void *), void *arg) | |
| 187 | { | |
| 188 | state->minval = minval; | |
| 189 | state->defval = defval; | |
| 190 | state->maxval = maxval; | |
| 191 | state->incval = incval; | |
| 192 | state->update = update; | |
| 193 | state->arg = arg; | |
| 194 | } | |
| 195 | ||
| 196 | ||
| 197 | /*------------------------------------------------- | |
| 198 | 168 | is_breakable_char - is a given unicode |
| 199 | 169 | character a possible line break? |
| 200 | 170 | -------------------------------------------------*/ |
| r3115 | r3116 | |
| 335 | 305 | show_gameinfo = show_warnings = show_disclaimer = FALSE; |
| 336 | 306 | |
| 337 | 307 | /* initialize the on-screen display system */ |
| 338 | slider_init(machine); | |
| 308 | slider_list = slider_current = slider_init(machine); | |
| 339 | 309 | |
| 340 | 310 | /* loop over states */ |
| 341 | 311 | ui_set_handler(handler_ingame, 0); |
| r3115 | r3116 | |
| 930 | 900 | } |
| 931 | 901 | |
| 932 | 902 | |
| 933 | /*------------------------------------------------- | |
| 934 | ui_is_slider_active - return TRUE if the slider | |
| 935 | UI handler is active | |
| 936 | -------------------------------------------------*/ | |
| 937 | 903 | |
| 938 | int ui_is_slider_active(void) | |
| 939 | { | |
| 940 | return (ui_handler_callback == handler_slider); | |
| 941 | } | |
| 942 | ||
| 943 | ||
| 944 | ||
| 945 | 904 | /*************************************************************************** |
| 946 | 905 | TEXT GENERATORS |
| 947 | 906 | ***************************************************************************/ |
| r3115 | r3116 | |
| 1273 | 1232 | return ui_set_handler(ui_menu_ui_handler, 0); |
| 1274 | 1233 | |
| 1275 | 1234 | /* if the on-screen display isn't up and the user has toggled it, turn it on */ |
| 1276 | if ((machine->debug_flags & DEBUG_FLAG_ENABLED) == 0 && ui_input_pressed(machine, IPT_UI_ON_SCREEN_DISPLAY)) | |
| 1277 | return ui_set_handler(handler_slider, 0); | |
| 1235 | // if ((machine->debug_flags & DEBUG_FLAG_ENABLED) == 0 && ui_input_pressed(machine, IPT_UI_ON_SCREEN_DISPLAY)) | |
| 1236 | // return ui_set_handler(ui_slider_ui_handler, 0); | |
| 1278 | 1237 | |
| 1279 | 1238 | /* handle a reset request */ |
| 1280 | 1239 | if (ui_input_pressed(machine, IPT_UI_RESET_MACHINE)) |
| r3115 | r3116 | |
| 1392 | 1351 | |
| 1393 | 1352 | |
| 1394 | 1353 | /*------------------------------------------------- |
| 1395 | handler_slider - displays the current slider | |
| 1396 | and calls the slider handler | |
| 1397 | -------------------------------------------------*/ | |
| 1398 | ||
| 1399 | static UINT32 handler_slider(running_machine *machine, UINT32 state) | |
| 1400 | { | |
| 1401 | slider_state *cur = &slider_list[slider_current]; | |
| 1402 | INT32 increment = 0, newval; | |
| 1403 | char textbuf[256]; | |
| 1404 | ||
| 1405 | /* left/right control the increment */ | |
| 1406 | if (ui_input_pressed_repeat(machine, IPT_UI_LEFT,6)) | |
| 1407 | increment = -cur->incval; | |
| 1408 | if (ui_input_pressed_repeat(machine, IPT_UI_RIGHT,6)) | |
| 1409 | increment = cur->incval; | |
| 1410 | ||
| 1411 | /* alt goes to 1, shift goes 10x smaller, control goes 10x larger */ | |
| 1412 | if (increment != 0) | |
| 1413 | { | |
| 1414 | if (input_code_pressed(KEYCODE_LALT) || input_code_pressed(KEYCODE_RALT)) | |
| 1415 | increment = (increment < 0) ? -1 : 1; | |
| 1416 | if (input_code_pressed(KEYCODE_LSHIFT) || input_code_pressed(KEYCODE_RSHIFT)) | |
| 1417 | increment = (increment < -10 || increment > 10) ? (increment / 10) : ((increment < 0) ? -1 : 1); | |
| 1418 | if (input_code_pressed(KEYCODE_LCONTROL) || input_code_pressed(KEYCODE_RCONTROL)) | |
| 1419 | increment *= 10; | |
| 1420 | } | |
| 1421 | ||
| 1422 | /* determine the new value */ | |
| 1423 | newval = (*cur->update)(machine, 0, NULL, cur->arg) + increment; | |
| 1424 | ||
| 1425 | /* select resets to the default value */ | |
| 1426 | if (ui_input_pressed(machine, IPT_UI_SELECT)) | |
| 1427 | newval = cur->defval; | |
| 1428 | ||
| 1429 | /* clamp within bounds */ | |
| 1430 | if (newval < cur->minval) | |
| 1431 | newval = cur->minval; | |
| 1432 | if (newval > cur->maxval) | |
| 1433 | newval = cur->maxval; | |
| 1434 | ||
| 1435 | /* update the new data and get the text */ | |
| 1436 | (*cur->update)(machine, newval, textbuf, cur->arg); | |
| 1437 | ||
| 1438 | /* display the UI */ | |
| 1439 | slider_display(textbuf, cur->minval, cur->maxval, cur->defval, newval); | |
| 1440 | ||
| 1441 | /* up/down select which slider to control */ | |
| 1442 | if (ui_input_pressed_repeat(machine, IPT_UI_DOWN,6)) | |
| 1443 | slider_current = (slider_current + 1) % slider_count; | |
| 1444 | if (ui_input_pressed_repeat(machine, IPT_UI_UP,6)) | |
| 1445 | slider_current = (slider_current + slider_count - 1) % slider_count; | |
| 1446 | ||
| 1447 | /* the slider toggle or ESC will cancel out of our display */ | |
| 1448 | if (ui_input_pressed(machine, IPT_UI_ON_SCREEN_DISPLAY) || ui_input_pressed(machine, IPT_UI_CANCEL)) | |
| 1449 | return UI_HANDLER_CANCEL; | |
| 1450 | ||
| 1451 | /* the menu key will take us directly to the menu */ | |
| 1452 | if (ui_input_pressed(machine, IPT_UI_CONFIGURE)) | |
| 1453 | return ui_set_handler(ui_menu_ui_handler, 0); | |
| 1454 | ||
| 1455 | return 0; | |
| 1456 | } | |
| 1457 | ||
| 1458 | ||
| 1459 | /*------------------------------------------------- | |
| 1460 | 1354 | handler_load_save - leads the user through |
| 1461 | 1355 | specifying a game to save or load |
| 1462 | 1356 | -------------------------------------------------*/ |
| r3115 | r3116 | |
| 1531 | 1425 | ***************************************************************************/ |
| 1532 | 1426 | |
| 1533 | 1427 | /*------------------------------------------------- |
| 1428 | ui_get_slider_list - get the list of sliders | |
| 1429 | -------------------------------------------------*/ | |
| 1430 | ||
| 1431 | const slider_state *ui_get_slider_list(void) | |
| 1432 | { | |
| 1433 | return slider_list; | |
| 1434 | } | |
| 1435 | ||
| 1436 | ||
| 1437 | /*------------------------------------------------- | |
| 1438 | slider_alloc - allocate a new slider entry | |
| 1439 | -------------------------------------------------*/ | |
| 1440 | ||
| 1441 | static slider_state *slider_alloc(const char *title, INT32 minval, INT32 defval, INT32 maxval, INT32 incval, slider_update update, void *arg) | |
| 1442 | { | |
| 1443 | int size = sizeof(slider_state) + strlen(title); | |
| 1444 | slider_state *state = auto_malloc(size); | |
| 1445 | memset(state, 0, size); | |
| 1446 | ||
| 1447 | state->minval = minval; | |
| 1448 | state->defval = defval; | |
| 1449 | state->maxval = maxval; | |
| 1450 | state->incval = incval; | |
| 1451 | state->update = update; | |
| 1452 | state->arg = arg; | |
| 1453 | strcpy(state->description, title); | |
| 1454 | ||
| 1455 | return state; | |
| 1456 | } | |
| 1457 | ||
| 1458 | ||
| 1459 | /*------------------------------------------------- | |
| 1534 | 1460 | slider_init - initialize the list of slider |
| 1535 | 1461 | controls |
| 1536 | 1462 | -------------------------------------------------*/ |
| 1537 | 1463 | |
| 1538 | static | |
| 1464 | static slider_state *slider_init(running_machine *machine) | |
| 1539 | 1465 | { |
| 1540 | | |
| 1466 | | |
| 1541 | 1467 | const input_port_config *port; |
| 1542 | const input_field_config *field; | |
| 1543 | 1468 | const device_config *device; |
| 1469 | slider_state *listhead = NULL; | |
| 1470 | slider_state **tailptr = &listhead; | |
| 1471 | astring *string = astring_alloc(); | |
| 1544 | 1472 | int numitems, item; |
| 1545 | 1473 | |
| 1546 | slider_count = 0; | |
| 1547 | ||
| 1548 | 1474 | /* add overall volume */ |
| 1549 | slider_config(&slider_list[slider_count++], -32, 0, 0, 1, slider_volume, NULL); | |
| 1475 | *tailptr = slider_alloc("Master Volume", -32, 0, 0, 1, slider_volume, NULL); | |
| 1476 | tailptr = &(*tailptr)->next; | |
| 1550 | 1477 | |
| 1551 | 1478 | /* add per-channel volume */ |
| 1552 | 1479 | numitems = sound_get_user_gain_count(); |
| r3115 | r3116 | |
| 1558 | 1485 | if (defval > 1000) |
| 1559 | 1486 | maxval = 2 * defval; |
| 1560 | 1487 | |
| 1561 | slider_config(&slider_list[slider_count++], 0, defval, maxval, 20, slider_mixervol, (void *)(FPTR)item); | |
| 1488 | astring_printf(string, "%s Volume", sound_get_user_gain_name(item)); | |
| 1489 | *tailptr = slider_alloc(astring_c(string), 0, defval, maxval, 20, slider_mixervol, (void *)(FPTR)item); | |
| 1490 | tailptr = &(*tailptr)->next; | |
| 1562 | 1491 | } |
| 1563 | 1492 | |
| 1564 | 1493 | /* add analog adjusters */ |
| r3115 | r3116 | |
| 1567 | 1496 | if (field->type == IPT_ADJUSTER) |
| 1568 | 1497 | { |
| 1569 | 1498 | void *param = (void *)field; |
| 1570 | slider_config(&slider_list[slider_count++], 0, field->defvalue, 100, 1, slider_adjuster, param); | |
| 1499 | *tailptr = slider_alloc(field->name, 0, field->defvalue, 100, 1, slider_adjuster, param); | |
| 1500 | tailptr = &(*tailptr)->next; | |
| 1571 | 1501 | } |
| 1572 | 1502 | |
| 1503 | /* add CPU overclocking (cheat only) */ | |
| 1573 | 1504 | if (options_get_bool(mame_options(), OPTION_CHEAT)) |
| 1574 | 1505 | { |
| 1575 | /* add CPU overclocking */ | |
| 1576 | 1506 | numitems = cpu_gettotalcpu(); |
| 1577 | 1507 | for (item = 0; item < numitems; item++) |
| 1578 | slider_config(&slider_list[slider_count++], 10, 1000, 2000, 1, slider_overclock, (void *)(FPTR)item); | |
| 1508 | { | |
| 1509 | astring_printf(string, "Overclock CPU %s", machine->config->cpu[item].tag); | |
| 1510 | *tailptr = slider_alloc(astring_c(string), 10, 1000, 2000, 1, slider_overclock, (void *)(FPTR)item); | |
| 1511 | tailptr = &(*tailptr)->next; | |
| 1512 | } | |
| 1579 | 1513 | } |
| 1580 | 1514 | |
| 1581 | for (item = 0; item < numscreens; item++) | |
| 1515 | /* add screen parameters */ | |
| 1516 | for (device = video_screen_first(machine->config); device != NULL; device = video_screen_next(device)) | |
| 1582 | 1517 | { |
| 1583 | const device_config *screen = device_list_find_by_index(machine->config->devicelist, VIDEO_SCREEN, item); | |
| 1584 | const screen_config *scrconfig = screen->inline_config; | |
| 1518 | const screen_config *scrconfig = device->inline_config; | |
| 1585 | 1519 | int defxscale = floor(scrconfig->xscale * 1000.0f + 0.5f); |
| 1586 | 1520 | int defyscale = floor(scrconfig->yscale * 1000.0f + 0.5f); |
| 1587 | 1521 | int defxoffset = floor(scrconfig->xoffset * 1000.0f + 0.5f); |
| 1588 | 1522 | int defyoffset = floor(scrconfig->yoffset * 1000.0f + 0.5f); |
| 1589 | void *param = (void *) | |
| 1523 | void *param = (void *)devic | |
| 1590 | 1524 | |
| 1591 | 1525 | /* add refresh rate tweaker */ |
| 1592 | 1526 | if (options_get_bool(mame_options(), OPTION_CHEAT)) |
| 1593 | slider_config(&slider_list[slider_count++], -10000, 0, 10000, 1000, slider_refresh, param); | |
| 1527 | { | |
| 1528 | astring_printf(string, "%s Refresh Rate", slider_get_screen_desc(device)); | |
| 1529 | *tailptr = slider_alloc(astring_c(string), -10000, 0, 10000, 1000, slider_refresh, param); | |
| 1530 | tailptr = &(*tailptr)->next; | |
| 1531 | } | |
| 1594 | 1532 | |
| 1595 | 1533 | /* add standard brightness/contrast/gamma controls per-screen */ |
| 1596 | slider_config(&slider_list[slider_count++], 100, 1000, 2000, 10, slider_brightness, param); | |
| 1597 | slider_config(&slider_list[slider_count++], 100, 1000, 2000, 50, slider_contrast, param); | |
| 1598 | slider_config(&slider_list[slider_count++], 100, 1000, 3000, 50, slider_gamma, param); | |
| 1534 | astring_printf(string, "%s Brightness", slider_get_screen_desc(device)); | |
| 1535 | *tailptr = slider_alloc(astring_c(string), 100, 1000, 2000, 10, slider_brightness, param); | |
| 1536 | tailptr = &(*tailptr)->next; | |
| 1537 | astring_printf(string, "%s Contrast", slider_get_screen_desc(device)); | |
| 1538 | *tailptr = slider_alloc(astring_c(string), 100, 1000, 2000, 50, slider_contrast, param); | |
| 1539 | tailptr = &(*tailptr)->next; | |
| 1540 | astring_printf(string, "%s Gamma", slider_get_screen_desc(device)); | |
| 1541 | *tailptr = slider_alloc(astring_c(string), 100, 1000, 3000, 50, slider_gamma, param); | |
| 1542 | tailptr = &(*tailptr)->next; | |
| 1599 | 1543 | |
| 1600 | 1544 | /* add scale and offset controls per-screen */ |
| 1601 | slider_config(&slider_list[slider_count++], 500, (defxscale == 0) ? 1000 : defxscale, 1500, 2, slider_xscale, param); | |
| 1602 | slider_config(&slider_list[slider_count++], -500, defxoffset, 500, 2, slider_xoffset, param); | |
| 1603 | slider_config(&slider_list[slider_count++], 500, (defyscale == 0) ? 1000 : defyscale, 1500, 2, slider_yscale, param); | |
| 1604 | slider_config(&slider_list[slider_count++], -500, defyoffset, 500, 2, slider_yoffset, param); | |
| 1545 | astring_printf(string, "%s Horiz Stretch", slider_get_screen_desc(device)); | |
| 1546 | *tailptr = slider_alloc(astring_c(string), 500, (defxscale == 0) ? 1000 : defxscale, 1500, 2, slider_xscale, param); | |
| 1547 | tailptr = &(*tailptr)->next; | |
| 1548 | astring_printf(string, "%s Horiz Position", slider_get_screen_desc(device)); | |
| 1549 | *tailptr = slider_alloc(astring_c(string), -500, defxoffset, 500, 2, slider_xoffset, param); | |
| 1550 | tailptr = &(*tailptr)->next; | |
| 1551 | astring_printf(string, "%s Vert Stretch", slider_get_screen_desc(device)); | |
| 1552 | *tailptr = slider_alloc(astring_c(string), 500, (defyscale == 0) ? 1000 : defyscale, 1500, 2, slider_yscale, param); | |
| 1553 | tailptr = &(*tailptr)->next; | |
| 1554 | astring_printf(string, "%s Vert Position", slider_get_screen_desc(device)); | |
| 1555 | *tailptr = slider_alloc(astring_c(string), -500, defyoffset, 500, 2, slider_yoffset, param); | |
| 1556 | tailptr = &(*tailptr)->next; | |
| 1605 | 1557 | } |
| 1606 | 1558 | |
| 1559 | for (device = device_list_first(machine->config->devicelist, LASERDISC); device != NULL; device = device_list_next(device, LASERDISC)) | |
| 1560 | { | |
| 1561 | const laserdisc_config *config = device->inline_config; | |
| 1562 | if (config->overupdate != NULL) | |
| 1563 | { | |
| 1564 | int defxscale = floor(config->overscalex * 1000.0f + 0.5f); | |
| 1565 | int defyscale = floor(config->overscaley * 1000.0f + 0.5f); | |
| 1566 | int defxoffset = floor(config->overposx * 1000.0f + 0.5f); | |
| 1567 | int defyoffset = floor(config->overposy * 1000.0f + 0.5f); | |
| 1568 | void *param = (void *)device; | |
| 1569 | ||
| 1570 | /* add scale and offset controls per-overlay */ | |
| 1571 | astring_printf(string, "%s Horiz Stretch", slider_get_laserdisc_desc(device)); | |
| 1572 | *tailptr = slider_alloc(astring_c(string), 500, (defxscale == 0) ? 1000 : defxscale, 1500, 2, slider_overxscale, param); | |
| 1573 | tailptr = &(*tailptr)->next; | |
| 1574 | astring_printf(string, "%s Horiz Position", slider_get_laserdisc_desc(device)); | |
| 1575 | *tailptr = slider_alloc(astring_c(string), -500, defxoffset, 500, 2, slider_overxoffset, param); | |
| 1576 | tailptr = &(*tailptr)->next; | |
| 1577 | astring_printf(string, "%s Vert Stretch", slider_get_laserdisc_desc(device)); | |
| 1578 | *tailptr = slider_alloc(astring_c(string), 500, (defyscale == 0) ? 1000 : defyscale, 1500, 2, slider_overyscale, param); | |
| 1579 | tailptr = &(*tailptr)->next; | |
| 1580 | astring_printf(string, "%s Vert Position", slider_get_laserdisc_desc(device)); | |
| 1581 | *tailptr = slider_alloc(astring_c(string), -500, defyoffset, 500, 2, slider_overyoffset, param); | |
| 1582 | tailptr = &(*tailptr)->next; | |
| 1583 | } | |
| 1584 | } | |
| 1585 | ||
| 1607 | 1586 | for (device = video_screen_first(machine->config); device != NULL; device = video_screen_next(device)) |
| 1608 | 1587 | { |
| 1609 | 1588 | const screen_config *scrconfig = device->inline_config; |
| 1610 | 1589 | if (scrconfig->type == SCREEN_TYPE_VECTOR) |
| 1611 | 1590 | { |
| 1612 | 1591 | /* add flicker control */ |
| 1613 | slider_config(&slider_list[slider_count++], 0, 0, 1000, 10, slider_flicker, NULL); | |
| 1614 | slider_config(&slider_list[slider_count++], 10, 100, 1000, 10, slider_beam, NULL); | |
| 1592 | *tailptr = slider_alloc("Vector Flicker", 0, 0, 1000, 10, slider_flicker, NULL); | |
| 1593 | tailptr = &(*tailptr)->next; | |
| 1594 | *tailptr = slider_alloc("Beam Width", 10, 100, 1000, 10, slider_beam, NULL); | |
| 1595 | tailptr = &(*tailptr)->next; | |
| 1615 | 1596 | break; |
| 1616 | 1597 | } |
| 1617 | 1598 | } |
| r3115 | r3116 | |
| 1623 | 1604 | if (field->crossaxis != CROSSHAIR_AXIS_NONE && field->player == 0) |
| 1624 | 1605 | { |
| 1625 | 1606 | void *param = (void *)field; |
| 1626 | slider_config(&slider_list[slider_count++], -3000, 1000, 3000, 100, slider_crossscale, param); | |
| 1627 | slider_config(&slider_list[slider_count++], -3000, 0, 3000, 100, slider_crossoffset, param); | |
| 1607 | astring_printf(string, "Crosshair Scale %s", (field->crossaxis == CROSSHAIR_AXIS_X) ? "X" : "Y"); | |
| 1608 | *tailptr = slider_alloc(astring_c(string), -3000, 1000, 3000, 100, slider_crossscale, param); | |
| 1609 | tailptr = &(*tailptr)->next; | |
| 1610 | astring_printf(string, "Crosshair Offset %s", (field->crossaxis == CROSSHAIR_AXIS_X) ? "X" : "Y"); | |
| 1611 | *tailptr = slider_alloc(astring_c(string), -3000, 0, 3000, 100, slider_crossoffset, param); | |
| 1612 | tailptr = &(*tailptr)->next; | |
| 1628 | 1613 | } |
| 1629 | 1614 | #endif |
| 1630 | } | |
| 1631 | 1615 | |
| 1632 | ||
| 1633 | /*------------------------------------------------- | |
| 1634 | slider_display - display a slider box with | |
| 1635 | text | |
| 1636 | -------------------------------------------------*/ | |
| 1637 | ||
| 1638 | static void slider_display(const char *text, int minval, int maxval, int defval, int curval) | |
| 1639 | { | |
| 1640 | float percentage = (float)(curval - minval) / (float)(maxval - minval); | |
| 1641 | float default_percentage = (float)(defval - minval) / (float)(maxval - minval); | |
| 1642 | float space_width = ui_get_char_width(' '); | |
| 1643 | float line_height = ui_get_line_height(); | |
| 1644 | float ui_width, ui_height; | |
| 1645 | float text_height; | |
| 1646 | ||
| 1647 | /* leave a spaces' worth of room along the left/right sides, and a lines' worth on the top/bottom */ | |
| 1648 | ui_width = 1.0f - 2.0f * space_width; | |
| 1649 | ui_height = 1.0f - 2.0f * line_height; | |
| 1650 | ||
| 1651 | /* determine the text height */ | |
| 1652 | ui_draw_text_full(text, 0, 0, ui_width - 2 * UI_BOX_LR_BORDER, | |
| 1653 | JUSTIFY_CENTER, WRAP_WORD, DRAW_NONE, ARGB_WHITE, ARGB_BLACK, NULL, &text_height); | |
| 1654 | ||
| 1655 | /* add a box around the whole area */ | |
| 1656 | ui_draw_outlined_box(space_width, | |
| 1657 | line_height + ui_height - text_height - line_height - 2 * UI_BOX_TB_BORDER, | |
| 1658 | space_width + ui_width, | |
| 1659 | line_height + ui_height, UI_FILLCOLOR); | |
| 1660 | ||
| 1661 | /* draw the thermometer */ | |
| 1662 | slider_draw_bar(2.0f * space_width, line_height + ui_height - UI_BOX_TB_BORDER - text_height - line_height * 0.75f, | |
| 1663 | ui_width - 2.0f * space_width, line_height * 0.75f, percentage, default_percentage); | |
| 1664 | ||
| 1665 | /* draw the actual text */ | |
| 1666 | ui_draw_text_full(text, space_width + UI_BOX_LR_BORDER, line_height + ui_height - UI_BOX_TB_BORDER - text_height, ui_width - 2.0f * UI_BOX_LR_BORDER, | |
| 1667 | JUSTIFY_CENTER, WRAP_WORD, DRAW_NORMAL, ARGB_WHITE, ARGB_BLACK, NULL, &text_height); | |
| 1616 | astring_free(string); | |
| 1617 | return listhead; | |
| 1668 | 1618 | } |
| 1669 | 1619 | |
| 1670 | 1620 | |
| 1671 | 1621 | /*------------------------------------------------- |
| 1672 | slider_draw_bar - draw a slider thermometer | |
| 1673 | -------------------------------------------------*/ | |
| 1674 | ||
| 1675 | static void slider_draw_bar(float leftx, float topy, float width, float height, float percentage, float default_percentage) | |
| 1676 | { | |
| 1677 | float current_x, default_x; | |
| 1678 | float bar_top, bar_bottom; | |
| 1679 | ||
| 1680 | /* compute positions */ | |
| 1681 | bar_top = topy + 0.125f * height; | |
| 1682 | bar_bottom = topy + 0.875f * height; | |
| 1683 | default_x = leftx + width * default_percentage; | |
| 1684 | current_x = leftx + width * percentage; | |
| 1685 | ||
| 1686 | /* fill in the percentage */ | |
| 1687 | render_ui_add_rect(leftx, bar_top, current_x, bar_bottom, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 1688 | ||
| 1689 | /* draw the top and bottom lines */ | |
| 1690 | render_ui_add_line(leftx, bar_top, leftx + width, bar_top, UI_LINE_WIDTH, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 1691 | render_ui_add_line(leftx, bar_bottom, leftx + width, bar_bottom, UI_LINE_WIDTH, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 1692 | ||
| 1693 | /* draw default marker */ | |
| 1694 | render_ui_add_line(default_x, topy, default_x, bar_top, UI_LINE_WIDTH, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 1695 | render_ui_add_line(default_x, bar_bottom, default_x, topy + height, UI_LINE_WIDTH, ARGB_WHITE, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); | |
| 1696 | } | |
| 1697 | ||
| 1698 | ||
| 1699 | /*------------------------------------------------- | |
| 1700 | 1622 | slider_volume - global volume slider callback |
| 1701 | 1623 | -------------------------------------------------*/ |
| 1702 | 1624 | |
| 1703 | static INT32 slider_volume(running_machine *machine, | |
| 1625 | static INT32 slider_volume(running_machine *machine, | |
| 1704 | 1626 | { |
| 1705 | if (buffer != NULL) | |
| 1706 | { | |
| 1627 | if (newval != SLIDER_NOCHANGE) | |
| 1707 | 1628 | sound_set_attenuation(newval); |
| 1708 | sprintf(buffer, "Master Volume %3ddB", sound_get_attenuation()); | |
| 1709 | } | |
| 1629 | if (string != NULL) | |
| 1630 | astring_printf(string, "%3ddB", sound_get_attenuation()); | |
| 1710 | 1631 | return sound_get_attenuation(); |
| 1711 | 1632 | } |
| 1712 | 1633 | |
| r3115 | r3116 | |
| 1716 | 1637 | slider callback |
| 1717 | 1638 | -------------------------------------------------*/ |
| 1718 | 1639 | |
| 1719 | static INT32 slider_mixervol(running_machine *machine, | |
| 1640 | static INT32 slider_mixervol(running_machine *machine, | |
| 1720 | 1641 | { |
| 1721 | 1642 | int which = (FPTR)arg; |
| 1722 | if (buffer != NULL) | |
| 1723 | { | |
| 1643 | if (newval != SLIDER_NOCHANGE) | |
| 1724 | 1644 | sound_set_user_gain(which, (float)newval * 0.001f); |
| 1725 | sprintf(buffer, "%s Volume %4.2f", sound_get_user_gain_name(which), sound_get_user_gain(which)); | |
| 1726 | } | |
| 1645 | if (string != NULL) | |
| 1646 | astring_printf(string, "%4.2f", sound_get_user_gain(which)); | |
| 1727 | 1647 | return floor(sound_get_user_gain(which) * 1000.0f + 0.5f); |
| 1728 | 1648 | } |
| 1729 | 1649 | |
| r3115 | r3116 | |
| 1733 | 1653 | callback |
| 1734 | 1654 | -------------------------------------------------*/ |
| 1735 | 1655 | |
| 1736 | static INT32 slider_adjuster(running_machine *machine, | |
| 1656 | static INT32 slider_adjuster(running_machine *machine, | |
| 1737 | 1657 | { |
| 1738 | 1658 | const input_field_config *field = arg; |
| 1739 | 1659 | input_field_user_settings settings; |
| 1740 | 1660 | |
| 1741 | 1661 | input_field_get_user_settings(field, &settings); |
| 1742 | if ( | |
| 1662 | if (n | |
| 1743 | 1663 | { |
| 1744 | 1664 | settings.value = newval; |
| 1745 | 1665 | input_field_set_user_settings(field, &settings); |
| 1746 | sprintf(buffer, "%s %d%%", field->name, settings.value); | |
| 1747 | 1666 | } |
| 1667 | if (string != NULL) | |
| 1668 | astring_printf(string, "%d%%", settings.value); | |
| 1748 | 1669 | return settings.value; |
| 1749 | 1670 | } |
| 1750 | 1671 | |
| r3115 | r3116 | |
| 1754 | 1675 | callback |
| 1755 | 1676 | -------------------------------------------------*/ |
| 1756 | 1677 | |
| 1757 | static INT32 slider_overclock(running_machine *machine, | |
| 1678 | static INT32 slider_overclock(running_machine *machine, | |
| 1758 | 1679 | { |
| 1759 | 1680 | int which = (FPTR)arg; |
| 1760 | if (buffer != NULL) | |
| 1761 | { | |
| 1681 | if (newval != SLIDER_NOCHANGE) | |
| 1762 | 1682 | cpunum_set_clockscale(machine, which, (float)newval * 0.001f); |
| 1763 | sprintf(buffer, "Overclock CPU %d %3.0f%%", which, floor(cpunum_get_clockscale(which) * 100.0f + 0.5f)); | |
| 1764 | } | |
| 1683 | if (string != NULL) | |
| 1684 | astring_printf(string, "%3.0f%%", floor(cpunum_get_clockscale(which) * 100.0f + 0.5f)); | |
| 1765 | 1685 | return floor(cpunum_get_clockscale(which) * 1000.0f + 0.5f); |
| 1766 | 1686 | } |
| 1767 | 1687 | |
| r3115 | r3116 | |
| 1770 | 1690 | slider_refresh - refresh rate slider callback |
| 1771 | 1691 | -------------------------------------------------*/ |
| 1772 | 1692 | |
| 1773 | static INT32 slider_refresh(running_machine *machine, | |
| 1693 | static INT32 slider_refresh(running_machine *machine, | |
| 1774 | 1694 | { |
| 1775 | 1695 | const device_config *screen = arg; |
| 1776 | 1696 | const screen_config *scrconfig = screen->inline_config; |
| 1777 | 1697 | double defrefresh = ATTOSECONDS_TO_HZ(scrconfig->refresh); |
| 1778 | 1698 | double refresh; |
| 1779 | 1699 | |
| 1780 | if ( | |
| 1700 | if (n | |
| 1781 | 1701 | { |
| 1782 | 1702 | int width = video_screen_get_width(screen); |
| 1783 | 1703 | int height = video_screen_get_height(screen); |
| 1784 | 1704 | const rectangle *visarea = video_screen_get_visible_area(screen); |
| 1785 | 1705 | |
| 1786 | 1706 | video_screen_configure(screen, width, height, visarea, HZ_TO_ATTOSECONDS(defrefresh + (double)newval * 0.001)); |
| 1787 | sprintf(buffer, "%s Refresh Rate %.3ffps", slider_get_screen_desc(screen), ATTOSECONDS_TO_HZ(video_screen_get_frame_period(machine->primary_screen).attoseconds)); | |
| 1788 | 1707 | } |
| 1708 | if (string != NULL) | |
| 1709 | astring_printf(string, "%.3ffps", ATTOSECONDS_TO_HZ(video_screen_get_frame_period(machine->primary_screen).attoseconds)); | |
| 1789 | 1710 | refresh = ATTOSECONDS_TO_HZ(video_screen_get_frame_period(machine->primary_screen).attoseconds); |
| 1790 | 1711 | return floor((refresh - defrefresh) * 1000.0f + 0.5f); |
| 1791 | 1712 | } |
| r3115 | r3116 | |
| 1796 | 1717 | callback |
| 1797 | 1718 | -------------------------------------------------*/ |
| 1798 | 1719 | |
| 1799 | static INT32 slider_brightness(running_machine *machine, | |
| 1720 | static INT32 slider_brightness(running_machine *machine, | |
| 1800 | 1721 | { |
| 1801 | 1722 | const device_config *screen = arg; |
| 1802 | 1723 | render_container *container = render_container_get_screen(screen); |
| 1803 | 1724 | render_container_user_settings settings; |
| 1804 | 1725 | |
| 1805 | 1726 | render_container_get_user_settings(container, &settings); |
| 1806 | if ( | |
| 1727 | if (n | |
| 1807 | 1728 | { |
| 1808 | 1729 | settings.brightness = (float)newval * 0.001f; |
| 1809 | 1730 | render_container_set_user_settings(container, &settings); |
| 1810 | sprintf(buffer, "%s Brightness %.3f", slider_get_screen_desc(screen), settings.brightness); | |
| 1811 | 1731 | } |
| 1732 | if (string != NULL) | |
| 1733 | astring_printf(string, "%.3f", settings.brightness); | |
| 1812 | 1734 | return floor(settings.brightness * 1000.0f + 0.5f); |
| 1813 | 1735 | } |
| 1814 | 1736 | |
| r3115 | r3116 | |
| 1818 | 1740 | callback |
| 1819 | 1741 | -------------------------------------------------*/ |
| 1820 | 1742 | |
| 1821 | static INT32 slider_contrast(running_machine *machine, | |
| 1743 | static INT32 slider_contrast(running_machine *machine, | |
| 1822 | 1744 | { |
| 1823 | 1745 | const device_config *screen = arg; |
| 1824 | 1746 | render_container *container = render_container_get_screen(screen); |
| 1825 | 1747 | render_container_user_settings settings; |
| 1826 | 1748 | |
| 1827 | 1749 | render_container_get_user_settings(container, &settings); |
| 1828 | if ( | |
| 1750 | if (n | |
| 1829 | 1751 | { |
| 1830 | 1752 | settings.contrast = (float)newval * 0.001f; |
| 1831 | 1753 | render_container_set_user_settings(container, &settings); |
| 1832 | sprintf(buffer, "%s Contrast %.3f", slider_get_screen_desc(screen), settings.contrast); | |
| 1833 | 1754 | } |
| 1755 | if (string != NULL) | |
| 1756 | astring_printf(string, "%.3f", settings.contrast); | |
| 1834 | 1757 | return floor(settings.contrast * 1000.0f + 0.5f); |
| 1835 | 1758 | } |
| 1836 | 1759 | |
| r3115 | r3116 | |
| 1839 | 1762 | slider_gamma - screen gamma slider callback |
| 1840 | 1763 | -------------------------------------------------*/ |
| 1841 | 1764 | |
| 1842 | static INT32 slider_gamma(running_machine *machine, | |
| 1765 | static INT32 slider_gamma(running_machine *machine, | |
| 1843 | 1766 | { |
| 1844 | 1767 | const device_config *screen = arg; |
| 1845 | 1768 | render_container *container = render_container_get_screen(screen); |
| 1846 | 1769 | render_container_user_settings settings; |
| 1847 | 1770 | |
| 1848 | 1771 | render_container_get_user_settings(container, &settings); |
| 1849 | if ( | |
| 1772 | if (n | |
| 1850 | 1773 | { |
| 1851 | 1774 | settings.gamma = (float)newval * 0.001f; |
| 1852 | 1775 | render_container_set_user_settings(container, &settings); |
| 1853 | sprintf(buffer, "%s Gamma %.3f", slider_get_screen_desc(screen), settings.gamma); | |
| 1854 | 1776 | } |
| 1777 | if (string != NULL) | |
| 1778 | astring_printf(string, "%.3f", settings.gamma); | |
| 1855 | 1779 | return floor(settings.gamma * 1000.0f + 0.5f); |
| 1856 | 1780 | } |
| 1857 | 1781 | |
| r3115 | r3116 | |
| 1861 | 1785 | callback |
| 1862 | 1786 | -------------------------------------------------*/ |
| 1863 | 1787 | |
| 1864 | static INT32 slider_xscale(running_machine *machine, | |
| 1788 | static INT32 slider_xscale(running_machine *machine, | |
| 1865 | 1789 | { |
| 1866 | 1790 | const device_config *screen = arg; |
| 1867 | 1791 | render_container *container = render_container_get_screen(screen); |
| 1868 | 1792 | render_container_user_settings settings; |
| 1869 | 1793 | |
| 1870 | 1794 | render_container_get_user_settings(container, &settings); |
| 1871 | if ( | |
| 1795 | if (n | |
| 1872 | 1796 | { |
| 1873 | 1797 | settings.xscale = (float)newval * 0.001f; |
| 1874 | 1798 | render_container_set_user_settings(container, &settings); |
| 1875 | sprintf(buffer, "%s %s %.3f", slider_get_screen_desc(screen), "Horiz Stretch", settings.xscale); | |
| 1876 | 1799 | } |
| 1800 | if (string != NULL) | |
| 1801 | astring_printf(string, "%.3f", settings.xscale); | |
| 1877 | 1802 | return floor(settings.xscale * 1000.0f + 0.5f); |
| 1878 | 1803 | } |
| 1879 | 1804 | |
| r3115 | r3116 | |
| 1883 | 1808 | callback |
| 1884 | 1809 | -------------------------------------------------*/ |
| 1885 | 1810 | |
| 1886 | static INT32 slider_yscale(running_machine *machine, | |
| 1811 | static INT32 slider_yscale(running_machine *machine, | |
| 1887 | 1812 | { |
| 1888 | 1813 | const device_config *screen = arg; |
| 1889 | 1814 | render_container *container = render_container_get_screen(screen); |
| 1890 | 1815 | render_container_user_settings settings; |
| 1891 | 1816 | |
| 1892 | 1817 | render_container_get_user_settings(container, &settings); |
| 1893 | if ( | |
| 1818 | if (n | |
| 1894 | 1819 | { |
| 1895 | 1820 | settings.yscale = (float)newval * 0.001f; |
| 1896 | 1821 | render_container_set_user_settings(container, &settings); |
| 1897 | sprintf(buffer, "%s %s %.3f", slider_get_screen_desc(screen), "Vert Stretch", settings.yscale); | |
| 1898 | 1822 | } |
| 1823 | if (string != NULL) | |
| 1824 | astring_printf(string, "%.3f", settings.yscale); | |
| 1899 | 1825 | return floor(settings.yscale * 1000.0f + 0.5f); |
| 1900 | 1826 | } |
| 1901 | 1827 | |
| r3115 | r3116 | |
| 1905 | 1831 | slider callback |
| 1906 | 1832 | -------------------------------------------------*/ |
| 1907 | 1833 | |
| 1908 | static INT32 slider_xoffset(running_machine *machine, | |
| 1834 | static INT32 slider_xoffset(running_machine *machine, | |
| 1909 | 1835 | { |
| 1910 | 1836 | const device_config *screen = arg; |
| 1911 | 1837 | render_container *container = render_container_get_screen(screen); |
| 1912 | 1838 | render_container_user_settings settings; |
| 1913 | 1839 | |
| 1914 | 1840 | render_container_get_user_settings(container, &settings); |
| 1915 | if ( | |
| 1841 | if (n | |
| 1916 | 1842 | { |
| 1917 | 1843 | settings.xoffset = (float)newval * 0.001f; |
| 1918 | 1844 | render_container_set_user_settings(container, &settings); |
| 1919 | sprintf(buffer, "%s %s %.3f", slider_get_screen_desc(screen), "Horiz Position", settings.xoffset); | |
| 1920 | 1845 | } |
| 1846 | if (string != NULL) | |
| 1847 | astring_printf(string, "%.3f", settings.xoffset); | |
| 1921 | 1848 | return floor(settings.xoffset * 1000.0f + 0.5f); |
| 1922 | 1849 | } |
| 1923 | 1850 | |
| r3115 | r3116 | |
| 1927 | 1854 | slider callback |
| 1928 | 1855 | -------------------------------------------------*/ |
| 1929 | 1856 | |
| 1930 | static INT32 slider_yoffset(running_machine *machine, | |
| 1857 | static INT32 slider_yoffset(running_machine *machine, | |
| 1931 | 1858 | { |
| 1932 | 1859 | const device_config *screen = arg; |
| 1933 | 1860 | render_container *container = render_container_get_screen(screen); |
| 1934 | 1861 | render_container_user_settings settings; |
| 1935 | 1862 | |
| 1936 | 1863 | render_container_get_user_settings(container, &settings); |
| 1937 | if ( | |
| 1864 | if (n | |
| 1938 | 1865 | { |
| 1939 | 1866 | settings.yoffset = (float)newval * 0.001f; |
| 1940 | 1867 | render_container_set_user_settings(container, &settings); |
| 1941 | sprintf(buffer, "%s %s %.3f", slider_get_screen_desc(screen), "Vert Position", settings.yoffset); | |
| 1942 | 1868 | } |
| 1869 | if (string != NULL) | |
| 1870 | astring_printf(string, "%.3f", settings.yoffset); | |
| 1943 | 1871 | return floor(settings.yoffset * 1000.0f + 0.5f); |
| 1944 | 1872 | } |
| 1945 | 1873 | |
| 1946 | 1874 | |
| 1947 | 1875 | /*------------------------------------------------- |
| 1876 | slider_overxscale - screen horizontal scale slider | |
| 1877 | callback | |
| 1878 | -------------------------------------------------*/ | |
| 1879 | ||
| 1880 | static INT32 slider_overxscale(running_machine *machine, void *arg, astring *string, INT32 newval) | |
| 1881 | { | |
| 1882 | const device_config *laserdisc = arg; | |
| 1883 | laserdisc_config settings; | |
| 1884 | ||
| 1885 | laserdisc_get_config(laserdisc, &settings); | |
| 1886 | if (newval != SLIDER_NOCHANGE) | |
| 1887 | { | |
| 1888 | settings.overscalex = (float)newval * 0.001f; | |
| 1889 | laserdisc_set_config(laserdisc, &settings); | |
| 1890 | } | |
| 1891 | if (string != NULL) | |
| 1892 | astring_printf(string, "%.3f", settings.overscalex); | |
| 1893 | return floor(settings.overscalex * 1000.0f + 0.5f); | |
| 1894 | } | |
| 1895 | ||
| 1896 | ||
| 1897 | /*------------------------------------------------- | |
| 1898 | slider_overyscale - screen vertical scale slider | |
| 1899 | callback | |
| 1900 | -------------------------------------------------*/ | |
| 1901 | ||
| 1902 | static INT32 slider_overyscale(running_machine *machine, void *arg, astring *string, INT32 newval) | |
| 1903 | { | |
| 1904 | const device_config *laserdisc = arg; | |
| 1905 | laserdisc_config settings; | |
| 1906 | ||
| 1907 | laserdisc_get_config(laserdisc, &settings); | |
| 1908 | if (newval != SLIDER_NOCHANGE) | |
| 1909 | { | |
| 1910 | settings.overscaley = (float)newval * 0.001f; | |
| 1911 | laserdisc_set_config(laserdisc, &settings); | |
| 1912 | } | |
| 1913 | if (string != NULL) | |
| 1914 | astring_printf(string, "%.3f", settings.overscaley); | |
| 1915 | return floor(settings.overscaley * 1000.0f + 0.5f); | |
| 1916 | } | |
| 1917 | ||
| 1918 | ||
| 1919 | /*------------------------------------------------- | |
| 1920 | slider_overxoffset - screen horizontal position | |
| 1921 | slider callback | |
| 1922 | -------------------------------------------------*/ | |
| 1923 | ||
| 1924 | static INT32 slider_overxoffset(running_machine *machine, void *arg, astring *string, INT32 newval) | |
| 1925 | { | |
| 1926 | const device_config *laserdisc = arg; | |
| 1927 | laserdisc_config settings; | |
| 1928 | ||
| 1929 | laserdisc_get_config(laserdisc, &settings); | |
| 1930 | if (newval != SLIDER_NOCHANGE) | |
| 1931 | { | |
| 1932 | settings.overposx = (float)newval * 0.001f; | |
| 1933 | laserdisc_set_config(laserdisc, &settings); | |
| 1934 | } | |
| 1935 | if (string != NULL) | |
| 1936 | astring_printf(string, "%.3f", settings.overposx); | |
| 1937 | return floor(settings.overposx * 1000.0f + 0.5f); | |
| 1938 | } | |
| 1939 | ||
| 1940 | ||
| 1941 | /*------------------------------------------------- | |
| 1942 | slider_overyoffset - screen vertical position | |
| 1943 | slider callback | |
| 1944 | -------------------------------------------------*/ | |
| 1945 | ||
| 1946 | static INT32 slider_overyoffset(running_machine *machine, void *arg, astring *string, INT32 newval) | |
| 1947 | { | |
| 1948 | const device_config *laserdisc = arg; | |
| 1949 | laserdisc_config settings; | |
| 1950 | ||
| 1951 | laserdisc_get_config(laserdisc, &settings); | |
| 1952 | if (newval != SLIDER_NOCHANGE) | |
| 1953 | { | |
| 1954 | settings.overposy = (float)newval * 0.001f; | |
| 1955 | laserdisc_set_config(laserdisc, &settings); | |
| 1956 | } | |
| 1957 | if (string != NULL) | |
| 1958 | astring_printf(string, "%.3f", settings.overposy); | |
| 1959 | return floor(settings.overposy * 1000.0f + 0.5f); | |
| 1960 | } | |
| 1961 | ||
| 1962 | ||
| 1963 | /*------------------------------------------------- | |
| 1948 | 1964 | slider_flicker - vector flicker slider |
| 1949 | 1965 | callback |
| 1950 | 1966 | -------------------------------------------------*/ |
| 1951 | 1967 | |
| 1952 | static INT32 slider_flicker(running_machine *machine, | |
| 1968 | static INT32 slider_flicker(running_machine *machine, | |
| 1953 | 1969 | { |
| 1954 | if (buffer != NULL) | |
| 1955 | { | |
| 1970 | if (newval != SLIDER_NOCHANGE) | |
| 1956 | 1971 | vector_set_flicker((float)newval * 0.1f); |
| 1957 | sprintf(buffer, "Vector Flicker %1.2f", vector_get_flicker()); | |
| 1958 | } | |
| 1972 | if (string != NULL) | |
| 1973 | astring_printf(string, "%1.2f", vector_get_flicker()); | |
| 1959 | 1974 | return floor(vector_get_flicker() * 10.0f + 0.5f); |
| 1960 | 1975 | } |
| 1961 | 1976 | |
| r3115 | r3116 | |
| 1965 | 1980 | callback |
| 1966 | 1981 | -------------------------------------------------*/ |
| 1967 | 1982 | |
| 1968 | static INT32 slider_beam(running_machine *machine, | |
| 1983 | static INT32 slider_beam(running_machine *machine, | |
| 1969 | 1984 | { |
| 1970 | if (buffer != NULL) | |
| 1971 | { | |
| 1985 | if (newval != SLIDER_NOCHANGE) | |
| 1972 | 1986 | vector_set_beam((float)newval * 0.01f); |
| 1973 | sprintf(buffer, "%s %1.2f", "Beam Width", vector_get_beam()); | |
| 1974 | } | |
| 1987 | if (string != NULL) | |
| 1988 | astring_printf(string, "%1.2f", vector_get_beam()); | |
| 1975 | 1989 | return floor(vector_get_beam() * 100.0f + 0.5f); |
| 1976 | 1990 | } |
| 1977 | 1991 | |
| 1978 | 1992 | |
| 1979 | 1993 | /*------------------------------------------------- |
| 1980 | 1994 | slider_get_screen_desc - returns the |
| 1981 | description for a given screen | |
| 1995 | description for a given screen | |
| 1982 | 1996 | -------------------------------------------------*/ |
| 1983 | 1997 | |
| 1984 | 1998 | static char *slider_get_screen_desc(const device_config *screen) |
| r3115 | r3116 | |
| 1996 | 2010 | |
| 1997 | 2011 | |
| 1998 | 2012 | /*------------------------------------------------- |
| 2013 | slider_get_laserdisc_desc - returns the | |
| 2014 | description for a given laseridsc | |
| 2015 | -------------------------------------------------*/ | |
| 2016 | ||
| 2017 | static char *slider_get_laserdisc_desc(const device_config *laserdisc) | |
| 2018 | { | |
| 2019 | int ldcount = device_list_items(laserdisc->machine->config->devicelist, LASERDISC); | |
| 2020 | static char descbuf[256]; | |
| 2021 | ||
| 2022 | if (ldcount > 1) | |
| 2023 | sprintf(descbuf, "Laserdisc '%s'", laserdisc->tag); | |
| 2024 | else | |
| 2025 | strcpy(descbuf, "Laserdisc"); | |
| 2026 | ||
| 2027 | return descbuf; | |
| 2028 | } | |
| 2029 | ||
| 2030 | ||
| 2031 | /*------------------------------------------------- | |
| 1999 | 2032 | slider_crossscale - crosshair scale slider |
| 2000 | 2033 | callback |
| 2001 | 2034 | -------------------------------------------------*/ |
| 2002 | 2035 | |
| 2003 | 2036 | #ifdef MAME_DEBUG |
| 2004 | static INT32 slider_crossscale(running_machine *machine, | |
| 2037 | static INT32 slider_crossscale(running_machine *machine, | |
| 2005 | 2038 | { |
| 2006 | 2039 | input_field_config *field = arg; |
| 2007 | 2040 | |
| 2008 | if (buffer != NULL) | |
| 2009 | { | |
| 2041 | if (newval != SLIDER_NOCHANGE) | |
| 2010 | 2042 | field->crossscale = (float)newval * 0.001f; |
| 2011 | sprintf(buffer, "%s %s %1.3f", "Crosshair Scale", (field->crossaxis == CROSSHAIR_AXIS_X) ? "X" : "Y", (float)newval * 0.001f); | |
| 2012 | } | |
| 2043 | if (string != NULL) | |
| 2044 | astring_printf(string, "%s %s %1.3f", "Crosshair Scale", (field->crossaxis == CROSSHAIR_AXIS_X) ? "X" : "Y", (float)newval * 0.001f); | |
| 2013 | 2045 | return floor(field->crossscale * 1000.0f + 0.5f); |
| 2014 | 2046 | } |
| 2015 | 2047 | #endif |
| r3115 | r3116 | |
| 2021 | 2053 | -------------------------------------------------*/ |
| 2022 | 2054 | |
| 2023 | 2055 | #ifdef MAME_DEBUG |
| 2024 | static INT32 slider_crossoffset(running_machine *machine, | |
| 2056 | static INT32 slider_crossoffset(running_machine *machine, | |
| 2025 | 2057 | { |
| 2026 | 2058 | input_field_config *field = arg; |
| 2027 | 2059 | |
| 2028 | if (buffer != NULL) | |
| 2029 | { | |
| 2060 | if (newval != SLIDER_NOCHANGE) | |
| 2030 | 2061 | field->crossoffset = (float)newval * 0.001f; |
| 2031 | sprintf(buffer, "%s %s %1.3f", "Crosshair Offset", (field->crossaxis == CROSSHAIR_AXIS_X) ? "X" : "Y", (float)newval * 0.001f); | |
| 2032 | } | |
| 2062 | if (string != NULL) | |
| 2063 | astring_printf(string, "%s %s %1.3f", "Crosshair Offset", (field->crossaxis == CROSSHAIR_AXIS_X) ? "X" : "Y", (float)newval * 0.001f); | |
| 2033 | 2064 | return field->crossoffset; |
| 2034 | 2065 | } |
| 2035 | 2066 | #endif |
| r3115 | r3116 | |
|---|---|---|
| 69 | 69 | DRAW_OPAQUE |
| 70 | 70 | }; |
| 71 | 71 | |
| 72 | #define SLIDER_NOCHANGE 0x12345678 | |
| 72 | 73 | |
| 73 | 74 | |
| 75 | ||
| 74 | 76 | /*************************************************************************** |
| 77 | TYPE DEFINITIONS | |
| 78 | ***************************************************************************/ | |
| 79 | ||
| 80 | typedef INT32 (*slider_update)(running_machine *machine, void *arg, astring *string, INT32 newval); | |
| 81 | ||
| 82 | typedef struct _slider_state slider_state; | |
| 83 | struct _slider_state | |
| 84 | { | |
| 85 | slider_state * next; /* pointer to next slider */ | |
| 86 | slider_update update; /* callback */ | |
| 87 | void * arg; /* argument */ | |
| 88 | INT32 minval; /* minimum value */ | |
| 89 | INT32 defval; /* default value */ | |
| 90 | INT32 maxval; /* maximum value */ | |
| 91 | INT32 incval; /* increment value */ | |
| 92 | char description[1]; /* textual description */ | |
| 93 | }; | |
| 94 | ||
| 95 | ||
| 96 | ||
| 97 | /*************************************************************************** | |
| 75 | 98 | MACROS |
| 76 | 99 | ***************************************************************************/ |
| 77 | 100 | |
| r3115 | r3116 | |
| 132 | 155 | /* force the menus to display */ |
| 133 | 156 | void ui_show_menu(void); |
| 134 | 157 | |
| 135 | /* return true if a menu | |
| 158 | /* return true if a menu | |
| 136 | 159 | int ui_is_menu_active(void); |
| 137 | int ui_is_slider_active(void); | |
| 138 | 160 | |
| 139 | 161 | /* print the game info string into a buffer */ |
| 140 | 162 | astring *game_info_astring(running_machine *machine, astring *string); |
| 141 | 163 | |
| 164 | /* get the list of sliders */ | |
| 165 | const slider_state *ui_get_slider_list(void); | |
| 166 | ||
| 142 | 167 | #endif /* __USRINTRF_H__ */ |
| r3115 | r3116 | |
|---|---|---|
| 219 | 219 | TOKEN_UINT32_PACK1(MCONFIG_TOKEN_DEVICE_CONFIG, 8), \ |
| 220 | 220 | TOKEN_PTR(voidptr, &(_config)), |
| 221 | 221 | |
| 222 | #define MDRV_DEVICE_CONFIG_DATA32(_struct, _field, _val) \ | |
| 223 | TOKEN_UINT32_PACK3(MCONFIG_TOKEN_DEVICE_CONFIG_DATA32, 8, sizeof(((_struct *)NULL)->_field), 6, offsetof(_struct, _field), 12), \ | |
| 222 | #define structsizeof(_struct, _field) sizeof(((_struct *)NULL)->_field) | |
| 223 | ||
| 224 | #define MDRV_DEVICE_CONFIG_DATA32_EXPLICIT(_size, _offset, _val) \ | |
| 225 | TOKEN_UINT32_PACK3(MCONFIG_TOKEN_DEVICE_CONFIG_DATA32, 8, (_size), 6, (_offset), 12), \ | |
| 224 | 226 | TOKEN_UINT32((UINT32)(_val)), |
| 225 | 227 | |
| 226 | #define MDRV_DEVICE_CONFIG_DATA64(_struct, _field, _val) \ | |
| 227 | TOKEN_UINT32_PACK3(MCONFIG_TOKEN_DEVICE_CONFIG_DATA64, 8, sizeof(((_struct *)NULL)->_field), 6, offsetof(_struct, _field), 12), \ | |
| 228 | #define MDRV_DEVICE_CONFIG_DATA32(_struct, _field, _val) \ | |
| 229 | MDRV_DEVICE_CONFIG_DATA32_EXPLICIT(structsizeof(_struct, _field), offsetof(_struct, _field), _val) | |
| 230 | ||
| 231 | #define MDRV_DEVICE_CONFIG_DATA32_ARRAY(_struct, _field, _index, _val) \ | |
| 232 | MDRV_DEVICE_CONFIG_DATA32_EXPLICIT(structsizeof(_struct, _field[0]), offsetof(_struct, _field) + (_index) * structsizeof(_struct, _field[0]), _val) | |
| 233 | ||
| 234 | #define MDRV_DEVICE_CONFIG_DATA32_ARRAY_MEMBER(_struct, _field, _index, _memstruct, _member, _val) \ | |
| 235 | MDRV_DEVICE_CONFIG_DATA32_EXPLICIT(structsizeof(_memstruct, _member), offsetof(_struct, _field) + (_index) * structsizeof(_struct, _field[0]) + offsetof(_memstruct, _member), _val) | |
| 236 | ||
| 237 | #define MDRV_DEVICE_CONFIG_DATA64_EXPLICIT(_size, _offset, _val) \ | |
| 238 | TOKEN_UINT32_PACK3(MCONFIG_TOKEN_DEVICE_CONFIG_DATA64, 8, (_size), 6, (_offset), 12), \ | |
| 228 | 239 | TOKEN_UINT64((UINT64)(_val)), |
| 229 | 240 | |
| 241 | #define MDRV_DEVICE_CONFIG_DATA64(_struct, _field, _val) \ | |
| 242 | MDRV_DEVICE_CONFIG_DATA64_EXPLICIT(structsizeof(_struct, _field), offsetof(_struct, _field), _val) | |
| 243 | ||
| 244 | #define MDRV_DEVICE_CONFIG_DATA64_ARRAY(_struct, _field, _index, _val) \ | |
| 245 | MDRV_DEVICE_CONFIG_DATA64_EXPLICIT(structsizeof(_struct, _field[0]), offsetof(_struct, _field) + (_index) * structsizeof(_struct, _field[0]), _val) | |
| 246 | ||
| 247 | #define MDRV_DEVICE_CONFIG_DATA64_ARRAY_MEMBER(_struct, _field, _index, _memstruct, _member, _val) \ | |
| 248 | MDRV_DEVICE_CONFIG_DATA64_EXPLICIT(structsizeof(_memstruct, _member), offsetof(_struct, _field) + (_index) * structsizeof(_struct, _field[0]) + offsetof(_memstruct, _member), _val) | |
| 249 | ||
| 230 | 250 | #define MDRV_DEVICE_CONFIG_DATAFP32(_struct, _field, _val, _fixbits) \ |
| 231 | TOKEN_UINT32_PACK4(MCONFIG_TOKEN_DEVICE_CONFIG_DATAFP32, 8, sizeof( | |
| 251 | TOKEN_UINT32_PACK4(MCONFIG_TOKEN_DEVICE_CONFIG_DATAFP32, 8, structsizeof( | |
| 232 | 252 | TOKEN_UINT32((INT32)((float)(_val) * (float)(1 << (_fixbits)))), |
| 233 | 253 | |
| 234 | 254 | #define MDRV_DEVICE_CONFIG_DATAFP64(_struct, _field, _val, _fixbits) \ |
| 235 | TOKEN_UINT32_PACK4(MCONFIG_TOKEN_DEVICE_CONFIG_DATAFP64, 8, sizeof( | |
| 255 | TOKEN_UINT32_PACK4(MCONFIG_TOKEN_DEVICE_CONFIG_DATAFP64, 8, structsizeof( | |
| 236 | 256 | TOKEN_UINT64((INT64)((float)(_val) * (float)((UINT64)1 << (_fixbits)))), |
| 237 | 257 | |
| 238 | 258 | #ifdef PTR64 |
| 259 | #define MDRV_DEVICE_CONFIG_DATAPTR_EXPLICIT(_struct, _size, _offset) MDRV_DEVICE_CONFIG_DATA64_EXPLICIT(_struct, _size, _offset) | |
| 239 | 260 | #define MDRV_DEVICE_CONFIG_DATAPTR(_struct, _field, _val) MDRV_DEVICE_CONFIG_DATA64(_struct, _field, _val) |
| 261 | #define MDRV_DEVICE_CONFIG_DATAPTR_ARRAY(_struct, _field, _index, _val) MDRV_DEVICE_CONFIG_DATA64_ARRAY(_struct, _field, _index, _val) | |
| 262 | #define MDRV_DEVICE_CONFIG_DATAPTR_ARRAY_MEMBER(_struct, _field, _index, _memstruct, _member, _val) MDRV_DEVICE_CONFIG_DATA64_ARRAY_MEMBER(_struct, _field, _index, _memstruct, _member, _val) | |
| 240 | 263 | #else |
| 264 | #define MDRV_DEVICE_CONFIG_DATAPTR_EXPLICIT(_struct, _size, _offset) MDRV_DEVICE_CONFIG_DATA32_EXPLICIT(_struct, _size, _offset) | |
| 241 | 265 | #define MDRV_DEVICE_CONFIG_DATAPTR(_struct, _field, _val) MDRV_DEVICE_CONFIG_DATA32(_struct, _field, _val) |
| 266 | #define MDRV_DEVICE_CONFIG_DATAPTR_ARRAY(_struct, _field, _index, _val) MDRV_DEVICE_CONFIG_DATA32_ARRAY(_struct, _field, _index, _val) | |
| 267 | #define MDRV_DEVICE_CONFIG_DATAPTR_ARRAY_MEMBER(_struct, _field, _index, _memstruct, _member, _val) MDRV_DEVICE_CONFIG_DATA32_ARRAY_MEMBER(_struct, _field, _index, _memstruct, _member, _val) | |
| 242 | 268 | #endif |
| 243 | 269 | |
| 244 | 270 |
| r3115 | r3116 | |
|---|---|---|
| 54 | 54 | XTAL_3_6864MHz = 3686400, /* CPS3 */ |
| 55 | 55 | XTAL_4MHz = 4000000, |
| 56 | 56 | XTAL_4_224MHz = 4224000, /* Used to drive OKI M6295 chips, usually with /4 divider */ |
| 57 | XTAL_4_41MHz = 4410000, /* Pioneer PR-8210 ldplayer */ | |
| 57 | 58 | XTAL_4_43361MHz = 4433610, /* Cidelsa Draco */ |
| 58 | 59 | XTAL_4_433619MHz = 4433619, /* PAL color subcarrier */ |
| 59 | 60 | XTAL_4_9152MHz = 4915200, |
| r3115 | r3116 | |
|---|---|---|
| 1004 | 1004 | err = open_disk_image(Machine->gamedrv, romp, &chd.origfile, &chd.origchd); |
| 1005 | 1005 | if (err != CHDERR_NONE) |
| 1006 | 1006 | { |
| 1007 | if (err == CHDERR_UNSUPPORTED_VERSION) | |
| 1008 | sprintf(&romdata->errorbuf[strlen(romdata->errorbuf)], "%s UNSUPPORTED CHD VERSION\n", astring_c(filename)); | |
| 1009 | else | |
| 1007 | if (err == CHDERR_FILE_NOT_FOUND) | |
| 1010 | 1008 | sprintf(&romdata->errorbuf[strlen(romdata->errorbuf)], "%s NOT FOUND\n", astring_c(filename)); |
| 1009 | else | |
| 1010 | sprintf(&romdata->errorbuf[strlen(romdata->errorbuf)], "%s CHD ERROR: %s\n", astring_c(filename), chd_error_string(err)); | |
| 1011 | 1011 | |
| 1012 | 1012 | /* if this is NO_DUMP, keep going, though the system may not be able to handle it */ |
| 1013 | 1013 | if (hash_data_has_info(ROM_GETHASHDATA(romp), HASH_INFO_NO_DUMP) || DISK_ISOPTIONAL(romp)) |
| r3115 | r3116 | |
| 1043 | 1043 | err = open_disk_diff(Machine->gamedrv, romp, chd.origchd, &chd.difffile, &chd.diffchd); |
| 1044 | 1044 | if (err != CHDERR_NONE) |
| 1045 | 1045 | { |
| 1046 | if (err == CHDERR_UNSUPPORTED_VERSION) | |
| 1047 | sprintf(&romdata->errorbuf[strlen(romdata->errorbuf)], "%s UNSUPPORTED CHD VERSION\n", astring_c(filename)); | |
| 1048 | else | |
| 1049 | sprintf(&romdata->errorbuf[strlen(romdata->errorbuf)], "%s: CAN'T OPEN DIFF FILE\n", astring_c(filename)); | |
| 1046 | sprintf(&romdata->errorbuf[strlen(romdata->errorbuf)], "%s DIFF CHD ERROR: %s\n", astring_c(filename), chd_error_string(err)); | |
| 1050 | 1047 | romdata->errors++; |
| 1051 | 1048 | continue; |
| 1052 | 1049 | } |
| r3115 | r3116 | |
|---|---|---|
| 1719 | 1719 | UINT32 written; |
| 1720 | 1720 | |
| 1721 | 1721 | /* if we are getting too big, split the RIFF */ |
| 1722 | /* note that we ignore writes before the current RIFF base, as those are assumed to be | |
| 1723 | overwrites of a chunk from the previous RIFF */ | |
| 1722 | 1724 | if ((file->riffbase == 0 && file->writeoffs + length + compute_idx1_size(file) >= MAX_RIFF_SIZE) || |
| 1723 | file->writeoffs + length - file->riffbase >= MAX_RIFF_SIZE) | |
| 1725 | (file->writeoffs >= file->riffbase && file->writeoffs + length - file->riffbase >= MAX_RIFF_SIZE)) | |
| 1724 | 1726 | { |
| 1725 | 1727 | /* close the movi list */ |
| 1726 | 1728 | avierr = chunk_close(file); |
| r3115 | r3116 | |
|---|---|---|
| 75 | 75 | #CPUS += V60 |
| 76 | 76 | #CPUS += V70 |
| 77 | 77 | CPUS += I8035 |
| 78 | #CPUS += I8041 | |
| 79 | CPUS += I8048 | |
| 80 | #CPUS += I8648 | |
| 81 | #CPUS += I8748 | |
| 82 | #CPUS += MB8884 | |
| 78 | 83 | CPUS += I8039 |
| 79 | CPUS += I804 | |
| 84 | #CPUS += I8049 | |
| 80 | 85 | CPUS += I8749 |
| 81 | 86 | #CPUS += N7751 |
| 82 | #CPUS += MB8884 | |
| 83 | 87 | #CPUS += M58715 |
| 84 | 88 | CPUS += I8X41 |
| 85 | 89 | CPUS += I8051 |
| r3115 | r3116 | |
|---|---|---|
| 22 | 22 | # specify required CPU cores (none) |
| 23 | 23 | #------------------------------------------------- |
| 24 | 24 | |
| 25 | CPUS += I8049 | |
| 25 | 26 | |
| 26 | 27 | |
| 28 | ||
| 27 | 29 | #------------------------------------------------- |
| 28 | 30 | # specify required sound cores |
| 29 | 31 | #------------------------------------------------- |
| r3115 | r3116 | |
|---|---|---|
| 39 | 39 | #else /* DRIVER_RECURSIVE */ |
| 40 | 40 | |
| 41 | 41 | DRIVER( ldv1000 ) /* Pioneer LD-V1000 */ |
| 42 | DRIVER( pr8210 ) /* Pioneer PR-8210 */ | |
| 42 | 43 | |
| 43 | 44 | #endif /* DRIVER_RECURSIVE */ |
| r3115 | r3116 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #include "driver.h" |
| 13 | 13 | #include "uimenu.h" |
| 14 | #include "cpu/mcs48/mcs48.h" | |
| 14 | 15 | #include "machine/laserdsc.h" |
| 15 | 16 | #include <ctype.h> |
| 16 | 17 | |
| 17 | 18 | |
| 19 | #define TEST_PR8210_ROM 0 | |
| 20 | ||
| 21 | ||
| 22 | ||
| 23 | /************************************* | |
| 24 | * | |
| 25 | * Constants | |
| 26 | * | |
| 27 | *************************************/ | |
| 28 | ||
| 29 | enum | |
| 30 | { | |
| 31 | CMD_SCAN_REVERSE, | |
| 32 | CMD_SCAN_REVERSE_END, | |
| 33 | CMD_STEP_REVERSE, | |
| 34 | CMD_SCAN_FORWARD, | |
| 35 | CMD_SCAN_FORWARD_END, | |
| 36 | CMD_STEP_FORWARD, | |
| 37 | CMD_PLAY, | |
| 38 | CMD_PAUSE, | |
| 39 | CMD_DISPLAY_ON, | |
| 40 | CMD_DISPLAY_OFF, | |
| 41 | CMD_0, | |
| 42 | CMD_1, | |
| 43 | CMD_2, | |
| 44 | CMD_3, | |
| 45 | CMD_4, | |
| 46 | CMD_5, | |
| 47 | CMD_6, | |
| 48 | CMD_7, | |
| 49 | CMD_8, | |
| 50 | CMD_9, | |
| 51 | CMD_SEARCH | |
| 52 | }; | |
| 53 | ||
| 54 | ||
| 55 | ||
| 56 | /************************************* | |
| 57 | * | |
| 58 | * Globals | |
| 59 | * | |
| 60 | *************************************/ | |
| 61 | ||
| 18 | 62 | static astring *filename; |
| 19 | 63 | |
| 20 | 64 | static input_port_value last_controls; |
| 21 | 65 | static UINT8 playing; |
| 22 | 66 | static UINT8 displaying; |
| 23 | 67 | |
| 68 | static UINT8 pr8210_last_was_number; | |
| 69 | static emu_timer *pr8210_bit_timer; | |
| 70 | static UINT32 pr8210_command_buffer_in, pr8210_command_buffer_out; | |
| 71 | static UINT8 pr8210_command_buffer[10]; | |
| 24 | 72 | |
| 73 | static void (*execute_command)(const device_config *laserdisc, int command); | |
| 25 | 74 | |
| 75 | #if TEST_PR8210_ROM | |
| 76 | ||
| 77 | static UINT8 pia[0x100]; | |
| 78 | static UINT8 pr8210_porta; | |
| 79 | static UINT8 pr8210_portb; | |
| 80 | static UINT8 pr8210_pia_porta; | |
| 81 | static UINT8 pr8210_pia_portb; | |
| 82 | ||
| 83 | #endif | |
| 84 | ||
| 85 | ||
| 86 | ||
| 26 | 87 | /************************************* |
| 27 | 88 | * |
| 28 | 89 | * Timers and sync |
| r3115 | r3116 | |
| 31 | 92 | |
| 32 | 93 | static void process_commands(const device_config *laserdisc) |
| 33 | 94 | { |
| 34 | static const UINT8 digits[10] = { 0x3f, 0x0f, 0x8f, 0x4f, 0x2f, 0xaf, 0x6f, 0x1f, 0x9f, 0x5f }; | |
| 35 | 95 | input_port_value controls = input_port_read(laserdisc->machine, "controls"); |
| 36 | 96 | int number; |
| 37 | 97 | |
| r3115 | r3116 | |
| 39 | 99 | if (!(last_controls & 0x01) && (controls & 0x01)) |
| 40 | 100 | { |
| 41 | 101 | if (playing) |
| 42 | | |
| 102 | (* | |
| 43 | 103 | else |
| 44 | | |
| 104 | (* | |
| 45 | 105 | } |
| 46 | 106 | else if ((last_controls & 0x01) && !(controls & 0x01)) |
| 47 | 107 | { |
| 48 | 108 | if (playing) |
| 49 | | |
| 109 | (* | |
| 50 | 110 | } |
| 51 | 111 | |
| 52 | 112 | /* scan/step forwards */ |
| 53 | 113 | if (!(last_controls & 0x02) && (controls & 0x02)) |
| 54 | 114 | { |
| 55 | 115 | if (playing) |
| 56 | | |
| 116 | (* | |
| 57 | 117 | else |
| 58 | | |
| 118 | (* | |
| 59 | 119 | } |
| 60 | 120 | else if ((last_controls & 0x02) && !(controls & 0x02)) |
| 61 | 121 | { |
| 62 | 122 | if (playing) |
| 63 | | |
| 123 | (* | |
| 64 | 124 | } |
| 65 | 125 | |
| 66 | 126 | /* play/pause */ |
| 67 | 127 | if (!(last_controls & 0x10) && (controls & 0x10)) |
| 68 | 128 | { |
| 69 | 129 | playing = !playing; |
| 70 | | |
| 130 | (* | |
| 71 | 131 | } |
| 72 | 132 | |
| 73 | 133 | /* toggle display */ |
| 74 | 134 | if (!(last_controls & 0x20) && (controls & 0x20)) |
| 75 | 135 | { |
| 76 | 136 | displaying = !displaying; |
| 77 | laserdisc_data_w(laserdisc, digits[displaying]); | |
| 78 | laserdisc_data_w(laserdisc, 0xf1); | |
| 137 | (*execute_command)(laserdisc, displaying ? CMD_DISPLAY_ON : CMD_DISPLAY_OFF); | |
| 79 | 138 | } |
| 80 | 139 | |
| 81 | 140 | /* numbers */ |
| 82 | 141 | for (number = 0; number < 10; number++) |
| 83 | 142 | if (!(last_controls & (0x100 << number)) && (controls & (0x100 << number))) |
| 84 | | |
| 143 | (* | |
| 85 | 144 | |
| 86 | 145 | /* enter */ |
| 87 | 146 | if (!(last_controls & 0x40000) && (controls & 0x40000)) |
| 88 | { | |
| 89 | playing = FALSE; | |
| 90 | laserdisc_data_w(laserdisc, 0xf7); | |
| 91 | } | |
| 147 | (*execute_command)(laserdisc, CMD_SEARCH); | |
| 92 | 148 | |
| 93 | 149 | last_controls = controls; |
| 94 | 150 | } |
| r3115 | r3116 | |
| 125 | 181 | const device_config *laserdisc = device_list_first(machine->config->devicelist, LASERDISC); |
| 126 | 182 | |
| 127 | 183 | /* start playing */ |
| 128 | | |
| 184 | (* | |
| 129 | 185 | playing = TRUE; |
| 130 | 186 | displaying = FALSE; |
| 131 | 187 | } |
| r3115 | r3116 | |
| 144 | 200 | |
| 145 | 201 | /************************************* |
| 146 | 202 | * |
| 203 | * PR-8210 implementation | |
| 204 | * | |
| 205 | *************************************/ | |
| 206 | ||
| 207 | INLINE void pr8210_add_command(UINT8 command) | |
| 208 | { | |
| 209 | pr8210_command_buffer[pr8210_command_buffer_in++ % ARRAY_LENGTH(pr8210_command_buffer)] = (command & 0x1f) | 0x20; | |
| 210 | pr8210_command_buffer[pr8210_command_buffer_in++ % ARRAY_LENGTH(pr8210_command_buffer)] = (command & 0x1f) | 0x20; | |
| 211 | pr8210_command_buffer[pr8210_command_buffer_in++ % ARRAY_LENGTH(pr8210_command_buffer)] = 0x00 | 0x20; | |
| 212 | } | |
| 213 | ||
| 214 | ||
| 215 | static TIMER_CALLBACK( pr8210_bit_off_callback ) | |
| 216 | { | |
| 217 | const device_config *laserdisc = ptr; | |
| 218 | ||
| 219 | /* deassert the control line */ | |
| 220 | laserdisc_line_w(laserdisc, LASERDISC_LINE_CONTROL, CLEAR_LINE); | |
| 221 | } | |
| 222 | ||
| 223 | ||
| 224 | static TIMER_CALLBACK( pr8210_bit_callback ) | |
| 225 | { | |
| 226 | attotime duration = ATTOTIME_IN_MSEC(30); | |
| 227 | const device_config *laserdisc = ptr; | |
| 228 | UINT8 bitsleft = param >> 16; | |
| 229 | UINT8 data = param; | |
| 230 | ||
| 231 | /* if we have bits, process */ | |
| 232 | if (bitsleft != 0) | |
| 233 | { | |
| 234 | /* assert the line and set a timer for deassertion */ | |
| 235 | laserdisc_line_w(laserdisc, LASERDISC_LINE_CONTROL, ASSERT_LINE); | |
| 236 | timer_set(ATTOTIME_IN_USEC(250), ptr, 0, pr8210_bit_off_callback); | |
| 237 | ||
| 238 | /* space 0 bits apart by 1msec, and 1 bits by 2msec */ | |
| 239 | duration = attotime_mul(ATTOTIME_IN_MSEC(1), (data & 0x80) ? 2 : 1); | |
| 240 | data <<= 1; | |
| 241 | bitsleft--; | |
| 242 | } | |
| 243 | ||
| 244 | /* if we're out of bits, queue up the next command */ | |
| 245 | else if (bitsleft == 0 && pr8210_command_buffer_in != pr8210_command_buffer_out) | |
| 246 | { | |
| 247 | data = pr8210_command_buffer[pr8210_command_buffer_out++ % ARRAY_LENGTH(pr8210_command_buffer)]; | |
| 248 | #if TEST_PR8210_ROM | |
| 249 | pr8210_pia_porta = BITSWAP8(data, 0,1,2,3,4,5,6,7); | |
| 250 | #else | |
| 251 | bitsleft = 12; | |
| 252 | #endif | |
| 253 | } | |
| 254 | timer_adjust_oneshot(pr8210_bit_timer, duration, (bitsleft << 16) | data); | |
| 255 | } | |
| 256 | ||
| 257 | ||
| 258 | static MACHINE_START( pr8210 ) | |
| 259 | { | |
| 260 | const device_config *laserdisc = device_list_first(machine->config->devicelist, LASERDISC); | |
| 261 | MACHINE_START_CALL(ldplayer); | |
| 262 | pr8210_bit_timer = timer_alloc(pr8210_bit_callback, (void *)laserdisc); | |
| 263 | } | |
| 264 | ||
| 265 | ||
| 266 | static MACHINE_RESET( pr8210 ) | |
| 267 | { | |
| 268 | MACHINE_RESET_CALL(ldplayer); | |
| 269 | timer_adjust_oneshot(pr8210_bit_timer, attotime_zero, 0); | |
| 270 | } | |
| 271 | ||
| 272 | ||
| 273 | static void pr8210_execute(const device_config *laserdisc, int command) | |
| 274 | { | |
| 275 | static const UINT8 digits[10] = { 0x01, 0x11, 0x09, 0x19, 0x05, 0x15, 0x0d, 0x1d, 0x03, 0x13 }; | |
| 276 | int prev_was_number = pr8210_last_was_number; | |
| 277 | ||
| 278 | pr8210_last_was_number = FALSE; | |
| 279 | switch (command) | |
| 280 | { | |
| 281 | case CMD_SCAN_REVERSE: | |
| 282 | pr8210_add_command(0x1c); | |
| 283 | playing = TRUE; | |
| 284 | break; | |
| 285 | ||
| 286 | case CMD_SCAN_REVERSE_END: | |
| 287 | pr8210_add_command(0x14); | |
| 288 | playing = TRUE; | |
| 289 | break; | |
| 290 | ||
| 291 | case CMD_STEP_REVERSE: | |
| 292 | pr8210_add_command(0x12); | |
| 293 | playing = FALSE; | |
| 294 | break; | |
| 295 | ||
| 296 | case CMD_SCAN_FORWARD: | |
| 297 | pr8210_add_command(0x08); | |
| 298 | playing = TRUE; | |
| 299 | break; | |
| 300 | ||
| 301 | case CMD_SCAN_FORWARD_END: | |
| 302 | pr8210_add_command(0x14); | |
| 303 | playing = TRUE; | |
| 304 | break; | |
| 305 | ||
| 306 | case CMD_STEP_FORWARD: | |
| 307 | pr8210_add_command(0x04); | |
| 308 | playing = FALSE; | |
| 309 | break; | |
| 310 | ||
| 311 | case CMD_PLAY: | |
| 312 | pr8210_add_command(0x14); | |
| 313 | playing = TRUE; | |
| 314 | break; | |
| 315 | ||
| 316 | case CMD_PAUSE: | |
| 317 | pr8210_add_command(0x0a); | |
| 318 | playing = FALSE; | |
| 319 | break; | |
| 320 | ||
| 321 | case CMD_DISPLAY_ON: | |
| 322 | // pr8210_add_command(digits[1]); | |
| 323 | // pr8210_add_command(0xf1); | |
| 324 | break; | |
| 325 | ||
| 326 | case CMD_DISPLAY_OFF: | |
| 327 | // pr8210_add_command(digits[0]); | |
| 328 | // pr8210_add_command(0xf1); | |
| 329 | break; | |
| 330 | ||
| 331 | case CMD_0: | |
| 332 | case CMD_1: | |
| 333 | case CMD_2: | |
| 334 | case CMD_3: | |
| 335 | case CMD_4: | |
| 336 | case CMD_5: | |
| 337 | case CMD_6: | |
| 338 | case CMD_7: | |
| 339 | case CMD_8: | |
| 340 | case CMD_9: | |
| 341 | if (!prev_was_number) | |
| 342 | pr8210_add_command(0x1a); | |
| 343 | pr8210_add_command(digits[command - CMD_0]); | |
| 344 | pr8210_last_was_number = TRUE; | |
| 345 | break; | |
| 346 | ||
| 347 | case CMD_SEARCH: | |
| 348 | pr8210_add_command(0x1a); | |
| 349 | playing = FALSE; | |
| 350 | break; | |
| 351 | } | |
| 352 | } | |
| 353 | ||
| 354 | ||
| 355 | ||
| 356 | /************************************* | |
| 357 | * | |
| 358 | * LD-V1000 implementation | |
| 359 | * | |
| 360 | *************************************/ | |
| 361 | ||
| 362 | static void ldv1000_execute(const device_config *laserdisc, int command) | |
| 363 | { | |
| 364 | static const UINT8 digits[10] = { 0x3f, 0x0f, 0x8f, 0x4f, 0x2f, 0xaf, 0x6f, 0x1f, 0x9f, 0x5f }; | |
| 365 | switch (command) | |
| 366 | { | |
| 367 | case CMD_SCAN_REVERSE: | |
| 368 | laserdisc_data_w(laserdisc, 0xf8); | |
| 369 | playing = TRUE; | |
| 370 | break; | |
| 371 | ||
| 372 | case CMD_SCAN_REVERSE_END: | |
| 373 | laserdisc_data_w(laserdisc, 0xfd); | |
| 374 | playing = TRUE; | |
| 375 | break; | |
| 376 | ||
| 377 | case CMD_STEP_REVERSE: | |
| 378 | laserdisc_data_w(laserdisc, 0xfe); | |
| 379 | playing = FALSE; | |
| 380 | break; | |
| 381 | ||
| 382 | case CMD_SCAN_FORWARD: | |
| 383 | laserdisc_data_w(laserdisc, 0xf0); | |
| 384 | playing = TRUE; | |
| 385 | break; | |
| 386 | ||
| 387 | case CMD_SCAN_FORWARD_END: | |
| 388 | laserdisc_data_w(laserdisc, 0xfd); | |
| 389 | playing = TRUE; | |
| 390 | break; | |
| 391 | ||
| 392 | case CMD_STEP_FORWARD: | |
| 393 | laserdisc_data_w(laserdisc, 0xf6); | |
| 394 | playing = FALSE; | |
| 395 | break; | |
| 396 | ||
| 397 | case CMD_PLAY: | |
| 398 | laserdisc_data_w(laserdisc, 0xfd); | |
| 399 | playing = TRUE; | |
| 400 | break; | |
| 401 | ||
| 402 | case CMD_PAUSE: | |
| 403 | laserdisc_data_w(laserdisc, 0xa0); | |
| 404 | playing = FALSE; | |
| 405 | break; | |
| 406 | ||
| 407 | case CMD_DISPLAY_ON: | |
| 408 | laserdisc_data_w(laserdisc, digits[1]); | |
| 409 | laserdisc_data_w(laserdisc, 0xf1); | |
| 410 | break; | |
| 411 | ||
| 412 | case CMD_DISPLAY_OFF: | |
| 413 | laserdisc_data_w(laserdisc, digits[0]); | |
| 414 | laserdisc_data_w(laserdisc, 0xf1); | |
| 415 | break; | |
| 416 | ||
| 417 | case CMD_0: | |
| 418 | case CMD_1: | |
| 419 | case CMD_2: | |
| 420 | case CMD_3: | |
| 421 | case CMD_4: | |
| 422 | case CMD_5: | |
| 423 | case CMD_6: | |
| 424 | case CMD_7: | |
| 425 | case CMD_8: | |
| 426 | case CMD_9: | |
| 427 | laserdisc_data_w(laserdisc, digits[command - CMD_0]); | |
| 428 | break; | |
| 429 | ||
| 430 | case CMD_SEARCH: | |
| 431 | laserdisc_data_w(laserdisc, 0xf7); | |
| 432 | playing = FALSE; | |
| 433 | break; | |
| 434 | } | |
| 435 | } | |
| 436 | ||
| 437 | ||
| 438 | ||
| 439 | /************************************* | |
| 440 | * | |
| 147 | 441 | * Port definitions |
| 148 | 442 | * |
| 149 | 443 | *************************************/ |
| r3115 | r3116 | |
| 173 | 467 | |
| 174 | 468 | /************************************* |
| 175 | 469 | * |
| 470 | * Test PR-8210 ROM emulation | |
| 471 | * | |
| 472 | *************************************/ | |
| 473 | ||
| 474 | #if TEST_PR8210_ROM | |
| 475 | ||
| 476 | static READ8_HANDLER( pr8210_pia_r ) | |
| 477 | { | |
| 478 | UINT8 result = pia[offset]; | |
| 479 | switch (offset) | |
| 480 | { | |
| 481 | case 0xa0: | |
| 482 | // printf("%03X:pia_r(%02X) = %02X\n", activecpu_get_pc(), offset, pr8210_pia_porta); | |
| 483 | result = pr8210_pia_porta; | |
| 484 | pr8210_pia_porta = 0; | |
| 485 | break; | |
| 486 | ||
| 487 | default: | |
| 488 | printf("%03X:pia_r(%02X)\n", activecpu_get_pc(), offset); | |
| 489 | break; | |
| 490 | } | |
| 491 | return result; | |
| 492 | } | |
| 493 | ||
| 494 | static WRITE8_HANDLER( pr8210_pia_w ) | |
| 495 | { | |
| 496 | /* | |
| 497 | $22-26 (R) = read and copied to memory $23-27 | |
| 498 | $23 (R) = something compared against $F4 | |
| 499 | $22-26 (W) = SRCH. text | |
| 500 | $27-2B (W) = FRAME/CHAP. text | |
| 501 | $2C-30 (W) = frame or chapter number | |
| 502 | $40 (W) = $CF at initialization, tracked by ($78) | |
| 503 | $60 (W) = port B output, tracked by ($77) | |
| 504 | $80 = n/c | |
| 505 | $40 = (out) LED3 | |
| 506 | $20 = (out) LED2 | |
| 507 | $10 = (out) LED1 | |
| 508 | 123 -> LHL = Play | |
| 509 | -> HLL = Slow fwd | |
| 510 | -> LLL = Slow rev | |
| 511 | -> HHL = Still | |
| 512 | -> LLH = Pause | |
| 513 | -> HHH = all off | |
| 514 | $08 = (out) CAV LED | |
| 515 | $04 = (out) CLV LED | |
| 516 | $02 = (out) A2 LED/AUDIO 2 | |
| 517 | $01 = (out) A1 LED/AUDIO 1 | |
| 518 | $80 (W) = 0 or 1 | |
| 519 | $A0 (R) = port A input | |
| 520 | $C0 (R) = stored to ($2E) | |
| 521 | $E0 (R) = stored to ($2F) | |
| 522 | */ | |
| 523 | if (pia[offset] != data) | |
| 524 | { | |
| 525 | switch (offset) | |
| 526 | { | |
| 527 | case 0x60: | |
| 528 | printf("%03X:pia_w(%02X) = %02X (PORT B LEDS:", activecpu_get_pc(), offset, data); | |
| 529 | if (!(data & 0x01)) printf(" AUDIO1"); | |
| 530 | if (!(data & 0x02)) printf(" AUDIO2"); | |
| 531 | if (!(data & 0x04)) printf(" CLV"); | |
| 532 | if (!(data & 0x08)) printf(" CAV"); | |
| 533 | printf(" LED123=%c%c%c", (data & 0x10) ? 'H' : 'L', (data & 0x20) ? 'H' : 'L', (data & 0x40) ? 'H' : 'L'); | |
| 534 | if (!(data & 0x80)) printf(" ???"); | |
| 535 | printf(")\n"); | |
| 536 | pr8210_pia_portb = data; | |
| 537 | break; | |
| 538 | ||
| 539 | default: | |
| 540 | printf("%03X:pia_w(%02X) = %02X\n", activecpu_get_pc(), offset, data); | |
| 541 | break; | |
| 542 | } | |
| 543 | pia[offset] = data; | |
| 544 | } | |
| 545 | } | |
| 546 | ||
| 547 | static READ8_HANDLER( pr8210_bus_r ) | |
| 548 | { | |
| 549 | /* | |
| 550 | $80 = n/c | |
| 551 | $40 = (in) slide pot interrupt source (slider position limit detector, inside and outside) | |
| 552 | $20 = n/c | |
| 553 | $10 = (in) /FOCUS LOCK | |
| 554 | $08 = (in) /SPDL LOCK | |
| 555 | $04 = (in) SIZE 8/12 | |
| 556 | $02 = (in) FG via op-amp (spindle motor stop detector) | |
| 557 | $01 = (in) SLOW TIMER OUT | |
| 558 | */ | |
| 559 | offs_t pc = activecpu_get_pc(); | |
| 560 | if (pc != 0x11c) | |
| 561 | printf("%03X:bus_r\n", pc); | |
| 562 | ||
| 563 | /* loop at beginning waits for $40=0, $02=1 */ | |
| 564 | return 0xff & ~0x40 & ~0x04; | |
| 565 | } | |
| 566 | ||
| 567 | static WRITE8_HANDLER( pr8210_porta_w ) | |
| 568 | { | |
| 569 | /* | |
| 570 | $80 = (out) SCAN C (F/R) | |
| 571 | $40 = (out) AUDIO SQ | |
| 572 | $20 = (out) VIDEO SQ | |
| 573 | $10 = (out) /SPDL ON | |
| 574 | $08 = (out) /FOCUS ON | |
| 575 | $04 = (out) SCAN B (L/H) | |
| 576 | $02 = (out) SCAN A (/SCAN) | |
| 577 | $01 = (out) JUMP TRG (jump back trigger, clock on high->low) | |
| 578 | */ | |
| 579 | if (data != pr8210_porta) | |
| 580 | { | |
| 581 | printf("%03X:porta_w = %02X", activecpu_get_pc(), data); | |
| 582 | if (!(data & 0x01)) printf(" JUMPTRG"); | |
| 583 | if (!(data & 0x02)) | |
| 584 | { | |
| 585 | printf(" SCAN:%c:%c", (data & 0x80) ? 'F' : 'R', (data & 0x04) ? 'L' : 'H'); | |
| 586 | } | |
| 587 | if (!(data & 0x08)) printf(" /FOCUSON"); | |
| 588 | if (!(data & 0x10)) printf(" /SPDLON"); | |
| 589 | if (data & 0x20) printf(" VIDEOSQ"); | |
| 590 | if (data & 0x40) printf(" AUDIOSQ"); | |
| 591 | printf("\n"); | |
| 592 | pr8210_porta = data; | |
| 593 | } | |
| 594 | } | |
| 595 | ||
| 596 | static WRITE8_HANDLER( pr8210_portb_w ) | |
| 597 | { | |
| 598 | /* | |
| 599 | $80 = (out) /CS on PIA | |
| 600 | $40 = (out) 0 to self-generate IRQ | |
| 601 | $20 = (out) SLOW TRG | |
| 602 | $10 = (out) STANDBY LED | |
| 603 | $08 = (out) TP2 | |
| 604 | $04 = (out) TP1 | |
| 605 | $02 = (out) ??? | |
| 606 | $01 = (out) LASER ON | |
| 607 | */ | |
| 608 | cputag_set_input_line(machine, "pr8210", 0, (data & 0x40) ? CLEAR_LINE : ASSERT_LINE); | |
| 609 | if ((data & 0x7f) != (pr8210_portb & 0x7f)) | |
| 610 | { | |
| 611 | printf("%03X:portb_w = %02X", activecpu_get_pc(), data); | |
| 612 | if (!(data & 0x01)) printf(" LASERON"); | |
| 613 | if (!(data & 0x02)) printf(" ???"); | |
| 614 | if (!(data & 0x04)) printf(" TP1"); | |
| 615 | if (!(data & 0x08)) printf(" TP2"); | |
| 616 | if (!(data & 0x10)) printf(" STANDBYLED"); | |
| 617 | if (!(data & 0x20)) printf(" SLOWTRG"); | |
| 618 | if (!(data & 0x40)) printf(" IRQGEN"); | |
| 619 | // if (data & 0x80) printf(" PIASEL"); | |
| 620 | printf("\n"); | |
| 621 | pr8210_portb = data; | |
| 622 | } | |
| 623 | } | |
| 624 | ||
| 625 | ||
| 626 | static ADDRESS_MAP_START( pr8210_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 627 | AM_RANGE(0x00, 0xff) AM_READWRITE(pr8210_pia_r, pr8210_pia_w) | |
| 628 | AM_RANGE(MCS48_PORT_BUS, MCS48_PORT_BUS) AM_READ(pr8210_bus_r) | |
| 629 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_WRITE(pr8210_porta_w) | |
| 630 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(pr8210_portb_w) | |
| 631 | ADDRESS_MAP_END | |
| 632 | ||
| 633 | #endif | |
| 634 | ||
| 635 | ||
| 636 | ||
| 637 | /************************************* | |
| 638 | * | |
| 176 | 639 | * Machine drivers |
| 177 | 640 | * |
| 178 | 641 | *************************************/ |
| r3115 | r3116 | |
| 204 | 667 | MACHINE_DRIVER_END |
| 205 | 668 | |
| 206 | 669 | |
| 670 | static MACHINE_DRIVER_START( pr8210 ) | |
| 671 | MDRV_IMPORT_FROM(ldplayer_ntsc) | |
| 672 | MDRV_MACHINE_START(pr8210) | |
| 673 | MDRV_MACHINE_RESET(pr8210) | |
| 674 | MDRV_LASERDISC_ADD("laserdisc", PIONEER_PR8210) | |
| 207 | 675 | |
| 676 | #if TEST_PR8210_ROM | |
| 677 | MDRV_CPU_ADD("pr8210", I8049, XTAL_4_41MHz) | |
| 678 | MDRV_CPU_IO_MAP(pr8210_portmap,0) | |
| 679 | #endif | |
| 680 | MACHINE_DRIVER_END | |
| 681 | ||
| 682 | ||
| 683 | ||
| 208 | 684 | /************************************* |
| 209 | 685 | * |
| 210 | 686 | * ROM definitions |
| r3115 | r3116 | |
| 216 | 692 | ROM_END |
| 217 | 693 | |
| 218 | 694 | |
| 695 | ROM_START( pr8210 ) | |
| 696 | DISK_REGION( "laserdisc" ) | |
| 219 | 697 | |
| 698 | #if TEST_PR8210_ROM | |
| 699 | ROM_REGION( 0x800, "pr8210", 0 ) | |
| 700 | ROM_LOAD( "pr-8210_mcu_ud6005a.bin", 0x000, 0x800, CRC(120fa83b) SHA1(b514326ca1f52d6d89056868f9d17eabd4e3f31d) ) | |
| 701 | #endif | |
| 702 | ROM_END | |
| 703 | ||
| 704 | ||
| 705 | ||
| 220 | 706 | /************************************* |
| 221 | 707 | * |
| 222 | 708 | * Driver initialization |
| r3115 | r3116 | |
| 286 | 772 | |
| 287 | 773 | |
| 288 | 774 | |
| 775 | static DRIVER_INIT( ldv1000 ) { execute_command = ldv1000_execute; DRIVER_INIT_CALL(ldplayer); } | |
| 776 | static DRIVER_INIT( pr8210 ) { execute_command = pr8210_execute; DRIVER_INIT_CALL(ldplayer); } | |
| 777 | ||
| 778 | ||
| 779 | ||
| 289 | 780 | /************************************* |
| 290 | 781 | * |
| 291 | 782 | * Game drivers |
| 292 | 783 | * |
| 293 | 784 | *************************************/ |
| 294 | 785 | |
| 295 | GAME( 2008, ldv1000, 0, ldv1000, ldplayer, ldplayer, ROT0, "MAME", "LDV-1000 Simulator", 0 ) | |
| 786 | GAME( 2008, ldv1000, 0, ldv1000, ldplayer, ldv1000, ROT0, "MAME", "Pioneer LDV-1000 Simulator", 0 ) | |
| 787 | GAME( 2008, pr8210, 0, pr8210, ldplayer, pr8210, ROT0, "MAME", "Pioneer PR-8210 Simulator", 0 ) |
| r3115 | r3116 | |
|---|---|---|
| 31 | 31 | |
| 32 | 32 | Source Changes: |
| 33 | 33 | ---------------- |
| 34 | (none) | |
| 34 | - The core is based on MAME 0.127u1. This incorporates all features of the | |
| 35 | update to this core. [MAME team] | |
| 35 | 36 | |
| 36 | 37 | |
| 37 | 38 |
| Previous | 15994 Revisions | Next |